| /freebsd-head/sys/sys/ |
| HD | sx.h | 93 #define SX_READ_VALUE(sx) ((sx)->sx_lock) argument 103 #define sx_init(sx, desc) sx_init_flags((sx), (desc), 0) argument 104 void sx_init_flags(struct sx *sx, const char *description, int opts); 105 void sx_destroy(struct sx *sx); 106 int sx_try_slock_int(struct sx *sx LOCK_FILE_LINE_ARG_DEF); 107 int sx_try_slock_(struct sx *sx, const char *file, int line); 108 int sx_try_xlock_int(struct sx *sx LOCK_FILE_LINE_ARG_DEF); 109 int sx_try_xlock_(struct sx *sx, const char *file, int line); 110 int sx_try_upgrade_int(struct sx *sx LOCK_FILE_LINE_ARG_DEF); 111 int sx_try_upgrade_(struct sx *sx, const char *file, int line); [all …]
|
| /freebsd-head/sys/kern/ |
| HD | kern_sx.c | 112 #define sx_recursed(sx) ((sx)->sx_recurse != 0) argument 139 #define _sx_assert(sx, what, file, line) argument 146 static SYSCTL_NODE(_debug, OID_AUTO, sx, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, 178 sx_assert((const struct sx *)lock, what); in assert_sx() 184 struct sx *sx; in lock_sx() local 186 sx = (struct sx *)lock; in lock_sx() 188 sx_slock(sx); in lock_sx() 190 sx_xlock(sx); in lock_sx() 196 struct sx *sx; in unlock_sx() local 198 sx = (struct sx *)lock; in unlock_sx() [all …]
|
| /freebsd-head/crypto/openssl/crypto/x509/ |
| HD | v3_sxnet.c | 22 static int sxnet_i2r(X509V3_EXT_METHOD *method, SXNET *sx, BIO *out, 57 static int sxnet_i2r(X509V3_EXT_METHOD *method, SXNET *sx, BIO *out, 69 if (!ASN1_INTEGER_get_int64(&v, sx->version) 78 for (i = 0; i < sk_SXNETID_num(sx->ids); i++) { 79 id = sk_SXNETID_value(sx->ids, i); 102 SXNET *sx = NULL; in sxnet_v2i() local 106 if (!SXNET_add_id_asc(&sx, cnf->name, cnf->value, -1)) { in sxnet_v2i() 107 SXNET_free(sx); in sxnet_v2i() 111 return sx; in sxnet_v2i() 163 SXNET *sx = NULL; in SXNET_add_id_INTEGER() local [all …]
|
| /freebsd-head/sys/arm64/intel/ |
| HD | stratix10-soc-fpga-mgr.c | 71 struct sx sx; member 86 sx_xlock(&sc->sx); in fpga_open() 88 sx_xunlock(&sc->sx); in fpga_open() 95 sx_xunlock(&sc->sx); in fpga_open() 105 sx_xunlock(&sc->sx); in fpga_open() 110 sx_xunlock(&sc->sx); in fpga_open() 157 sx_xlock(&sc->sx); in fpga_write() 160 sx_xunlock(&sc->sx); in fpga_write() 177 sx_xunlock(&sc->sx); in fpga_write() 184 sx_xunlock(&sc->sx); in fpga_write() [all …]
|
| /freebsd-head/sys/compat/linuxkpi/common/include/linux/ |
| HD | rwsem.h | 39 struct sx sx; member 42 #define down_write(_rw) sx_xlock(&(_rw)->sx) 43 #define up_write(_rw) sx_xunlock(&(_rw)->sx) 44 #define down_read(_rw) sx_slock(&(_rw)->sx) 45 #define up_read(_rw) sx_sunlock(&(_rw)->sx) 46 #define down_read_trylock(_rw) !!sx_try_slock(&(_rw)->sx) 48 #define down_write_trylock(_rw) !!sx_try_xlock(&(_rw)->sx) 50 #define downgrade_write(_rw) sx_downgrade(&(_rw)->sx) 79 sx_init_flags(&rw->sx, name, SX_NOWITNESS); in linux_init_rwsem()
|
| HD | mutex.h | 44 struct sx sx; member 60 sx_xlock(&(_m)->sx); \ 88 sx_xunlock(&(_m)->sx); \ 93 !!sx_try_xlock(&(_m)->sx); \ 105 if (unlikely(sx_xholder(&lock->sx) == curthread)) in mutex_trylock_recursive() 126 return ((struct thread *)SX_OWNER(m->sx.sx_lock) != NULL); in mutex_is_locked() 132 return (sx_xlocked(&m->sx)); in mutex_is_owned() 158 SX_SYSINIT_FLAGS(lock, &(lock).sx, mutex_name(#lock), SX_DUPOK) 164 sx_init_flags(&m->sx, name, flags); in linux_mutex_init() 172 sx_destroy(&m->sx); in linux_mutex_destroy()
|
| /freebsd-head/contrib/ntp/scripts/monitoring/ |
| HD | lr.pl | 48 $self->{sx} = 0.0; 61 $self->{sx} += $_x; 72 return 1 unless ($self->{n} * $self->{sx2} - $self->{sx}**2); 73 return ($self->{n} * $self->{sxy} - $self->{sx} * $self->{sy}) 74 / ($self->{n} * $self->{sx2} - $self->{sx}**2); 81 return ($self->{sy} - B() * $self->{sx}) / $self->{n}; 102 my $s = ($self->{n} * $self->{sx2} - $self->{sx}**2) 107 return ($self->{n} * $self->{sxy} - $self->{sx} * $self->{sy}) / sqrt($s); 114 return ($self->{sxy} - $self->{sx} * $self->{sy} / $self->{n}) 140 sx => undef,
|
| /freebsd-head/lib/msun/src/ |
| HD | s_rintf.c | 31 int32_t i0,j0,sx; in rintf() local 34 sx = (i0>>31)&1; in rintf() 39 STRICT_ASSIGN(float,w,TWO23[sx]+x); in rintf() 40 t = w-TWO23[sx]; in rintf() 42 SET_FLOAT_WORD(t,(i0&0x7fffffff)|(sx<<31)); in rintf() 45 STRICT_ASSIGN(float,w,TWO23[sx]+x); in rintf() 46 return w-TWO23[sx]; in rintf()
|
| HD | e_fmod.c | 29 int32_t n,hx,hy,hz,ix,iy,sx,i; in fmod() local 34 sx = hx&0x80000000; /* sign of x */ in fmod() 35 hx ^=sx; /* |x| */ in fmod() 45 return Zero[(u_int32_t)sx>>31]; /* |x|=|y| return x*0*/ in fmod() 99 return Zero[(u_int32_t)sx>>31]; in fmod() 108 return Zero[(u_int32_t)sx>>31]; in fmod() 115 INSERT_WORDS(x,hx|sx,lx); in fmod() 122 lx = (hx<<(32-n))|(lx>>n); hx = sx; in fmod() 124 lx = hx>>(n-32); hx = sx; in fmod() 126 INSERT_WORDS(x,hx|sx,lx); in fmod()
|
| HD | e_fmodf.c | 30 int32_t n,hx,hy,hz,ix,iy,sx,i; in fmodf() local 34 sx = hx&0x80000000; /* sign of x */ in fmodf() 35 hx ^=sx; /* |x| */ in fmodf() 44 return Zero[(u_int32_t)sx>>31]; /* |x|=|y| return x*0*/ in fmodf() 77 return Zero[(u_int32_t)sx>>31]; in fmodf() 86 return Zero[(u_int32_t)sx>>31]; in fmodf() 93 SET_FLOAT_WORD(x,hx|sx); in fmodf() 97 SET_FLOAT_WORD(x,hx|sx); in fmodf()
|
| HD | s_rint.c | 36 int32_t i0,j0,sx; in rint() local 40 sx = (i0>>31)&1; in rint() 49 STRICT_ASSIGN(double,w,TWO52[sx]+x); in rint() 50 t = w-TWO52[sx]; in rint() 52 SET_HIGH_WORD(t,(i0&0x7fffffff)|(sx<<31)); in rint() 82 STRICT_ASSIGN(double,w,TWO52[sx]+x); in rint() 83 return w-TWO52[sx]; in rint()
|
| HD | s_remquof.c | 28 int32_t n,hx,hy,hz,ix,iy,sx,i; in remquof() local 34 sx = hx&0x80000000; /* sign of x */ in remquof() 35 hx ^=sx; /* |x| */ in remquof() 46 return Zero[(u_int32_t)sx>>31]; /* |x|=|y| return x*0*/ in remquof() 89 return Zero[(u_int32_t)sx>>31]; in remquof() 114 SET_FLOAT_WORD(x,hx^sx); in remquof()
|
| HD | s_remquo.c | 30 int32_t n,hx,hy,hz,ix,iy,sx,i; in remquo() local 36 sx = hx&0x80000000; /* sign of x */ in remquo() 37 hx ^=sx; /* |x| */ in remquo() 51 return Zero[(u_int32_t)sx>>31]; /* |x|=|y| return x*0*/ in remquo() 115 return Zero[(u_int32_t)sx>>31]; in remquo() 147 SET_HIGH_WORD(x,hx^sx); in remquo()
|
| HD | s_remquol.c | 70 int ix,iy,n,q,sx,sxy; in remquol() local 74 sx = ux.bits.sign; in remquol() 75 sxy = sx ^ uy.bits.sign; in remquol() 95 return Zero[sx]; /* |x|=|y| return x*0*/ in remquol() 137 return Zero[sx]; in remquol() 164 ux.bits.sign ^= sx; in remquol()
|
| HD | e_fmodl.c | 67 int ix,iy,n,sx; in fmodl() local 71 sx = ux.bits.sign; in fmodl() 87 return Zero[sx]; /* |x|=|y| return x*0*/ in fmodl() 121 return Zero[sx]; in fmodl() 130 return Zero[sx]; in fmodl()
|
| /freebsd-head/contrib/gdtoa/ |
| HD | dmisc.c | 109 ULong *bx, *bxe, q, *sx, *sxe; local 126 sx = S->x; 127 sxe = sx + --n; 140 ys = *sx++ * (ULLong)q + carry; 147 si = *sx++; 157 ys = *sx++ * q + carry; 165 while(sx <= sxe); 178 sx = S->x; 181 ys = *sx++ + carry; 188 si = *sx++; [all …]
|
| /freebsd-head/contrib/llvm-project/llvm/lib/Target/VE/ |
| HD | VEInstrInfo.td | 548 def rr : RR<opc, (outs RCo:$sx), (ins RCi:$sy, RCi:$sz), 549 !strconcat(opcStr, " $sx, $sy, $sz"), 550 [(set Tyo:$sx, (OpNode Tyi:$sy, Tyi:$sz))]>; 554 def ri : RR<opc, (outs RCo:$sx), (ins RCi:$sz, immOp:$sy), 555 !strconcat(opcStr, " $sx, $sy, $sz"), 556 [(set Tyo:$sx, (OpNode Tyi:$sz, (Tyi immOp:$sy)))]>; 558 def rm : RR<opc, (outs RCo:$sx), (ins RCi:$sy, mOp:$sz), 559 !strconcat(opcStr, " $sx, $sy, $sz"), 560 [(set Tyo:$sx, (OpNode Tyi:$sy, (Tyi mOp:$sz)))]>; 562 def im : RR<opc, (outs RCo:$sx), (ins immOp:$sy, mOp:$sz), [all …]
|
| /freebsd-head/sys/compat/linuxkpi/common/src/ |
| HD | linux_lock.c | 83 if (unlikely(sx_try_xlock(&lock->base.sx) == 0)) { in linux_ww_mutex_lock_sub() 90 SX_OWNER(lock->base.sx.sx_lock); in linux_ww_mutex_lock_sub() 105 other->lock->base.sx.sx_lock) == curthread) { in linux_ww_mutex_lock_sub() 120 } while (sx_try_xlock(&lock->base.sx) == 0); in linux_ww_mutex_lock_sub() 125 if ((struct thread *)SX_OWNER(lock->base.sx.sx_lock) == NULL) in linux_ww_mutex_lock_sub() 141 sx_xunlock(&lock->base.sx); in linux_ww_mutex_unlock_sub() 152 error = -sx_xlock_sig(&m->sx); in linux_mutex_lock_interruptible() 165 error = -sx_slock_sig(&rw->sx); in linux_down_read_killable() 178 error = -sx_xlock_sig(&rw->sx); in linux_down_write_killable()
|
| /freebsd-head/contrib/ncurses/ncurses/base/ |
| HD | lib_overlay.c | 169 int sx, sy, dx, dy; in copywin() local 183 for (dx = dmincol, sx = smincol; in copywin() 185 sx++, dx++) { in copywin() 187 if (dx < 0 || sx < 0) in copywin() 192 if ((CharOf(src->_line[sy].text[sx]) != L(' ')) && in copywin() 194 src->_line[sy].text[sx]))) { in copywin() 196 src->_line[sy].text[sx]; in copywin() 198 ((AttrOf(src->_line[sy].text[sx]) & in copywin() 204 src->_line[sy].text[sx])) { in copywin() 206 src->_line[sy].text[sx]; in copywin()
|
| /freebsd-head/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| HD | event_os.c | 39 sx_xlock((struct sx *)arg); in knlist_sx_xlock() 46 sx_xunlock((struct sx *)arg); in knlist_sx_xunlock() 54 sx_assert((struct sx *)arg, SX_LOCKED); in knlist_sx_assert_lock() 56 sx_assert((struct sx *)arg, SX_UNLOCKED); in knlist_sx_assert_lock() 60 knlist_init_sx(struct knlist *knl, struct sx *lock) in knlist_init_sx()
|
| /freebsd-head/sys/contrib/device-tree/src/powerpc/ |
| HD | eiger.dts | 54 compatible = "ibm,uic-460sx","ibm,uic"; 64 compatible = "ibm,uic-460sx","ibm,uic"; 76 compatible = "ibm,uic-460sx","ibm,uic"; 88 compatible = "ibm,uic-460sx","ibm,uic"; 100 compatible = "ibm,sdr-460sx"; 105 compatible = "ibm,cpr-460sx"; 110 compatible = "ibm,plb-460sx", "ibm,plb4"; 117 compatible = "ibm,sdram-460sx", "ibm,sdram-405gp"; 122 compatible = "ibm,mcmal-460sx", "ibm,mcmal2"; 145 compatible = "ibm,opb-460sx", "ibm,opb"; [all …]
|
| HD | redwood.dts | 50 compatible = "ibm,uic-460sx","ibm,uic"; 60 compatible = "ibm,uic-460sx","ibm,uic"; 72 compatible = "ibm,uic-460sx","ibm,uic"; 84 compatible = "ibm,uic-460sx","ibm,uic"; 96 compatible = "ibm,sdr-460sx"; 101 compatible = "ibm,cpr-460sx"; 106 compatible = "ibm,plb-460sx", "ibm,plb4"; 113 compatible = "ibm,sdram-460sx", "ibm,sdram-405gp"; 118 compatible = "ibm,mcmal-460sx", "ibm,mcmal2"; 141 compatible = "ibm,opb-460sx", "ibm,opb"; [all …]
|
| /freebsd-head/lib/libthread_db/arch/i386/ |
| HD | libpthread_md.c | 60 struct savexmm *sx = (struct savexmm *)&uc->uc_mcontext.mc_fpstate; in pt_fpreg_to_ucontext() local 61 memcpy(&sx->sv_env, &r->fpr_env, sizeof(r->fpr_env)); in pt_fpreg_to_ucontext() 63 memcpy(&sx->sv_fp[i].fp_acc, &r->fpr_acc[i], 10); in pt_fpreg_to_ucontext() 74 const struct savexmm *sx = (const struct savexmm *)&uc->uc_mcontext.mc_fpstate; in pt_ucontext_to_fpreg() local 75 memcpy(&r->fpr_env, &sx->sv_env, sizeof(r->fpr_env)); in pt_ucontext_to_fpreg() 77 memcpy(&r->fpr_acc[i], &sx->sv_fp[i].fp_acc, 10); in pt_ucontext_to_fpreg()
|
| /freebsd-head/contrib/libedit/ |
| HD | refresh.c | 497 re_clear_eol(EditLine *el, int fx, int sx, int diff) in re_clear_eol() argument 501 sx, fx, diff)); in re_clear_eol() 505 if (sx < 0) in re_clear_eol() 506 sx = -sx; in re_clear_eol() 509 if (sx > diff) in re_clear_eol() 510 diff = sx; in re_clear_eol() 546 int fx, sx; in re_update_line() local 679 sx = (int)((nls - nse) - (ols - ose)); in re_update_line() 688 if (sx > 0) { in re_update_line() 704 if (sx < 0) { in re_update_line() [all …]
|
| /freebsd-head/lib/libc/tests/string/ |
| HD | wcscoll_test.c | 137 int sx = strcmp(data[i].xval, data[j].xval); in ATF_TC_BODY() local 139 ATF_CHECK_MSG(!((sr * sx < 0) || in ATF_TC_BODY() 140 (sr * sx == 0 && sr + sx != 0)), in ATF_TC_BODY()
|