Home
last modified time | relevance | path

Searched full:sx (Results 1 – 25 of 778) sorted by relevance

12345678910>>...32

/freebsd/sys/sys/
H A Dsx.h46 * 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/sys/kern/
H A Dkern_sx.c38 * 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 Dkern_lockstat.c54 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 Dsx.931 .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 Dv3_sxnet.c22 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 Ddtrace_lockstat.445 .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 Dmsk.4136 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/contrib/llvm-project/llvm/lib/Target/VE/
H A DVEInstrInfo.td272 // 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 DVEInstrVec.td49 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 Dstratix10-soc-fpga-mgr.c51 #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 Drwsem.h34 #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 Dmutex.h35 #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/sys/contrib/device-tree/src/powerpc/
H A Deiger.dts2 * 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 Dredwood.dts2 * 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 Ddmisc.c109 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 Dlr.pl48 $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 Ds_rintf.c31 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 Ds_rint.c36 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 De_fmod.c29 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 De_fmodf.c30 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()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_lock.c83 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 Devent_os.c30 #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 Dlib_overlay.c169 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 Dlibpthread_md.c60 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 Drefresh.c492 * 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 …]

12345678910>>...32