| /freebsd/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); 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); [all …]
|
| /freebsd/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 186 sx = (struct sx *)lock; in lock_sx() 188 sx_slock(sx); in lock_sx() [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/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/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/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 …]
|
| /freebsd/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, (OpNode Tyi:$sy, (Tyi mOp:$sz)))]>; [all …]
|
| H A D | VEInstrVec.td | 49 def SVMyi : Pseudo<(outs I64:$sx), (ins VM512:$vz, uimm3:$sy), 50 "# pseudo SVM $sx, $vz, $sy">; 92 // Define all vector instructions defined in SX-Aurora TSUBASA Architecture 168 defm VLDLSX : VLDm<"vldl.sx", 0x83, V64>; 178 defm VLDL2DSX : VLDm<"vldl2d.sx", 0xc3, V64>; 291 defm VGTLSX : VGTm<"vgtl.sx", 0xa3, V64>; 372 let sx = 0, vx = ?, hasSideEffects = 0 in 395 def vr : RR<opc, (outs I64:$sx), (ins RC:$vx, I64:$sy), 396 opcStr#" $sx, ${vx}(${sy})">; 398 def vi : RR<opc, (outs I64:$sx), (ins RC:$vx, uimm7:$sy), [all …]
|
| /freebsd/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/sys/compat/linuxkpi/common/include/linux/ |
| H A D | mutex.h | 35 #include <sys/sx.h> 44 struct sx sx; member 60 sx_xlock(&(_m)->sx); \ 74 * Reuse the interruptable method since the 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) [all …]
|
| 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()
|
| /freebsd/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/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/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/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 | e_fmod.c | 29 int32_t hx, hy, hz, ix, iy, n, sx; 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() 93 return Zero[(u_int32_t)sx>>31]; in fmod() 102 return Zero[(u_int32_t)sx>>31]; in fmod() 109 INSERT_WORDS(x,hx|sx,lx); in fmod() 116 lx = (hx<<(32-n))|(lx>>n); hx = sx; in fmod() 118 lx = hx>>(n-32); hx = sx; in fmod() 120 INSERT_WORDS(x,hx|sx,lx); in fmod()
|
| 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_fmodf.c | 30 int32_t hx, hy, hz, ix, iy, n, sx; 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() 79 return Zero[(u_int32_t)sx>>31]; in fmodf() 88 return Zero[(u_int32_t)sx>>31]; in fmodf() 95 SET_FLOAT_WORD(x,hx|sx); in fmodf() 99 SET_FLOAT_WORD(x,hx|sx); in fmodf()
|
| /freebsd/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/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) in knlist_init_sx()
|
| /freebsd/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/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/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 …]
|
| /freebsd/crypto/openssl/Configurations/ |
| H A D | 50-cppbuilder.conf | 22 # -Sx isn't documented, but 'cpp32 -H -S' explains it: 24 # -Sx Omit preprocessed text in output 25 makedepcmd => "cpp32 -oCON -Sx -Hp", 81 # -Sx isn't documented, but 'cpp64 -H -S' explains it: 83 # -Sx Omit preprocessed text in output 84 makedepcmd => "cpp64 -oCON -Sx -Hp",
|