/freebsd-src/sys/sys/ |
H A D | sx.h | 46 * In general, the sx locks and rwlocks use very similar algorithms. 48 * blocked when a lock is unavailable. For this, sx locks use sleep 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); 157 __sx_xlock(struct sx * sx,struct thread * td,int opts,const char * file,int line) __sx_xlock() argument 173 __sx_xunlock(struct sx * sx,struct thread * td,const char * file,int line) __sx_xunlock() argument 190 sx_xlock_(sx,file,line) global() argument 192 sx_xlock_sig_(sx,file,line) global() argument 194 sx_xunlock_(sx,file,line) global() argument 197 sx_xlock_(sx,file,line) global() argument 199 sx_xlock_sig_(sx,file,line) global() argument 201 sx_xunlock_(sx,file,line) global() argument 205 sx_slock_(sx,file,line) global() argument 207 sx_slock_sig_(sx,file,line) global() argument 209 sx_sunlock_(sx,file,line) global() argument 211 sx_try_slock(sx) global() argument 212 sx_try_xlock(sx) global() argument 213 sx_try_upgrade(sx) global() argument 214 sx_downgrade(sx) global() argument 216 sx_slock_(sx,file,line) global() argument 218 sx_slock_sig_(sx,file,line) global() argument 220 sx_sunlock_(sx,file,line) global() argument 222 sx_try_slock(sx) global() argument 223 sx_try_xlock(sx) global() argument 224 sx_try_upgrade(sx) global() argument 225 sx_downgrade(sx) global() argument 228 sx_assert_(sx,what,file,line) global() argument 231 sx_assert_(sx,what,file,line) global() argument 234 sx_xlock(sx) global() argument 235 sx_xlock_sig(sx) global() argument 236 sx_xunlock(sx) global() argument 237 sx_slock(sx) global() argument 238 sx_slock_sig(sx) global() argument 239 sx_sunlock(sx) global() argument 240 sx_assert(sx,what) global() argument 246 sx_xholder(sx) global() argument 250 sx_xlocked(sx) global() argument 254 sx_unlock_(sx,file,line) global() argument 262 sx_unlock(sx) global() argument 264 sx_sleep(chan,sx,pri,wmesg,timo) global() argument 312 sx_init_flags(struct sx * sx,const char * description,int opts) sx_init_flags() argument 318 sx_destroy(struct sx * sx) sx_destroy() argument [all...] |
/freebsd-src/sys/kern/ |
H A D | kern_sx.c | 38 * so should not be relied upon in combination with sx locks. 55 #include <sys/sx.h> 112 #define sx_recursed(sx) ((sx)->sx_recurse != 0) argument 125 .lc_name = "sx", 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 196 struct sx *sx; unlock_sx() local 213 const struct sx *sx; owner_sx() local 233 sx_init_flags(struct sx * sx,const char * description,int opts) sx_init_flags() argument 263 sx_destroy(struct sx * sx) sx_destroy() argument 306 sx_try_slock_(struct sx * sx,const char * file,int line) sx_try_slock_() argument 313 _sx_xlock(struct sx * sx,int opts,const char * file,int line) _sx_xlock() argument 393 sx_try_xlock_(struct sx * sx,const char * file,int line) sx_try_xlock_() argument 400 _sx_xunlock(struct sx * sx,const char * file,int line) _sx_xunlock() argument 464 sx_try_upgrade_(struct sx * sx,const char * file,int line) sx_try_upgrade_() argument 538 sx_downgrade_(struct sx * sx,const char * file,int line) sx_downgrade_() argument 568 _sx_xlock_hard(struct sx * sx,uintptr_t x,int opts LOCK_FILE_LINE_ARG_DEF) _sx_xlock_hard() argument 920 _sx_xunlock_hard(struct sx * sx,uintptr_t x LOCK_FILE_LINE_ARG_DEF) _sx_xunlock_hard() argument 1000 __sx_slock_try(struct sx * sx,struct thread * td,uintptr_t * xp,bool fp LOCK_FILE_LINE_ARG_DEF) __sx_slock_try() argument 1025 _sx_slock_hard(struct sx * sx,int opts,uintptr_t x LOCK_FILE_LINE_ARG_DEF) _sx_slock_hard() argument 1271 _sx_slock_int(struct sx * sx,int opts LOCK_FILE_LINE_ARG_DEF) _sx_slock_int() argument 1303 _sx_slock(struct sx * sx,int opts,const char * file,int line) _sx_slock() argument 1310 _sx_sunlock_try(struct sx * sx,struct thread * td,uintptr_t * xp) _sx_sunlock_try() argument 1333 _sx_sunlock_hard(struct sx * sx,struct thread * td,uintptr_t x LOCK_FILE_LINE_ARG_DEF) _sx_sunlock_hard() argument 1405 _sx_sunlock(struct sx * sx,const char * file,int line) _sx_sunlock() argument 1422 _sx_assert(const struct sx * sx,int what,const char * file,int line) _sx_assert() argument 1508 const struct sx *sx; db_show_sx() local 1553 const struct sx *sx; sx_chain() local [all...] |
H A D | kern_lockstat.c | 54 SDT_PROBE_DEFINE2(lockstat, , , sx__acquire, "struct sx *", "int"); 55 SDT_PROBE_DEFINE2(lockstat, , , sx__release, "struct sx *", "int"); 56 SDT_PROBE_DEFINE5(lockstat, , , sx__block, "struct sx *", "uint64_t", "int", 58 SDT_PROBE_DEFINE2(lockstat, , , sx__spin, "struct sx *", "uint64_t"); 59 SDT_PROBE_DEFINE1(lockstat, , , sx__upgrade, "struct sx *"); 60 SDT_PROBE_DEFINE1(lockstat, , , sx__downgrade, "struct sx *");
|
/freebsd-src/share/man/man9/ |
H A D | sx.9 | 31 .Nm sx , 58 .Fn sx_init "struct sx *sx" "const char *description" 60 .Fn sx_init_flags "struct sx *sx" "const char *description" "int opts" 62 .Fn sx_destroy "struct sx *sx" 64 .Fn sx_slock "struct sx *sx" 66 .Fn sx_xlock "struct sx *sx" 68 .Fn sx_slock_sig "struct sx *sx" 70 .Fn sx_xlock_sig "struct sx *sx" 72 .Fn sx_try_slock "struct sx *sx" 74 .Fn sx_try_xlock "struct sx *sx" [all …]
|
/freebsd-src/crypto/openssl/crypto/x509/ |
H A D | 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-src/share/man/man4/ |
H A D | dtrace_lockstat.4 | 45 .Fn lockstat:::sx-acquire "struct sx *" "int" 46 .Fn lockstat:::sx-release "struct sx *" "int" 47 .Fn lockstat:::sx-block "struct sx *" "uint64_t" "int" "int" "int" 48 .Fn lockstat:::sx-spin "struct sx *" "uint64_t" 49 .Fn lockstat:::sx-upgrade "struct sx *" 50 .Fn lockstat:::sx-downgrade "struct sx *" 73 .Xr sx 9 168 .Fn lockstat:::sx-acquire 170 .Fn lockstat:::sx-release , 176 .Xr sx 9 [all …]
|
H A D | msk.4 | 136 D-Link 550SX Gigabit Ethernet 138 D-Link 560SX Gigabit Ethernet 144 Marvell Yukon 88E8021 SX/LX Gigabit Ethernet 148 Marvell Yukon 88E8022 SX/LX Gigabit Ethernet 152 Marvell Yukon 88E8061 SX/LX Gigabit Ethernet 156 Marvell Yukon 88E8062 SX/LX Gigabit Ethernet
|
/freebsd-src/contrib/llvm-project/llvm/lib/Target/VE/ |
H A D | VEInstrInfo.td | 272 // SX-Aurora has following fields. 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, (OpNod [all...] |
/freebsd-src/sys/compat/linuxkpi/common/include/linux/ |
H A D | rwsem.h | 34 #include <sys/sx.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()
|
H A D | mutex.h | 35 #include <sys/sx.h> 43 struct sx sx; member 59 sx_xlock(&(_m)->sx); \ 73 * Reuse the interruptable method since the SX 87 sx_xunlock(&(_m)->sx); \ 92 !!sx_try_xlock(&(_m)->sx); \ 104 if (unlikely(sx_xholder(&lock->sx) == curthread)) in mutex_trylock_recursive() 125 return ((struct thread *)SX_OWNER(m->sx.sx_lock) != NULL); in mutex_is_locked() 131 return (sx_xlocked(&m->sx)); in mutex_is_owned() 157 SX_SYSINIT_FLAGS(lock, &(lock).sx, mutex_name(#lock), SX_DUPOK) [all …]
|
/freebsd-src/sys/arm64/intel/ |
H A D | stratix10-soc-fpga-mgr.c | 51 #include <sys/sx.h> 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() [all …]
|
/freebsd-src/sys/contrib/device-tree/src/powerpc/ |
H A D | eiger.dts | 2 * Device Tree Source for AMCC (AppliedMicro) Eiger(460SX) 35 model = "PowerPC,460SX"; 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"; [all …]
|
H A D | redwood.dts | 2 * Device Tree Source for AMCC Redwood(460SX) 31 model = "PowerPC,460SX"; 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"; [all …]
|
/freebsd-src/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | event_os.c | 30 #include <sys/sx.h> 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)
|
/freebsd-src/contrib/gdtoa/ |
H A D | 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-src/lib/msun/src/ |
H A D | 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()
|
H A D | 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() 62 * w = TWO52[sx]+x, adjust the 0.25 bit to a lower in rint() 82 STRICT_ASSIGN(double,w,TWO52[sx]+x); in rint() 83 return w-TWO52[sx]; in rint()
|
H A D | 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()
|
H A D | 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()
|
H A D | 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()
|
/freebsd-src/contrib/ntp/scripts/monitoring/ |
H A D | 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-src/sys/compat/linuxkpi/common/src/ |
H A D | 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-src/contrib/ncurses/ncurses/base/ |
H A D | 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-src/lib/libthread_db/arch/i386/ |
H A D | 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-src/contrib/libedit/ |
H A D | refresh.c | 492 * the line. fx and sx is the number of characters inserted or deleted 497 re_clear_eol(EditLine *el, int fx, int sx, int diff) in re_clear_eol() argument 500 ELRE_DEBUG(1, (__F, "re_clear_eol sx %d, fx %d, diff %d\n", in re_clear_eol() 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 676 * sx is the number of characters we need to insert/delete: in the in re_update_line() [all …]
|