Searched refs:sx (Results 1 - 25 of 427) sorted by relevance

1234567891011>>

/freebsd-10.0-release/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
94 #define sx_init(sx, desc) sx_init_flags((sx), (desc), 0)
95 void sx_init_flags(struct sx *sx, const char *description, int opts);
96 void sx_destroy(struct sx *sx);
97 int sx_try_slock_(struct sx *sx, cons
145 __sx_xlock(struct sx *sx, struct thread *td, int opts, const char *file, int line) argument
162 __sx_xunlock(struct sx *sx, struct thread *td, const char *file, int line) argument
172 __sx_slock(struct sx *sx, int opts, const char *file, int line) argument
195 __sx_sunlock(struct sx *sx, const char *file, int line) argument
[all...]
H A D_sx.h37 struct sx { struct
H A D_rmlock.h53 struct sx _rm_lock_sx;
/freebsd-10.0-release/sys/ofed/include/linux/
H A Drwsem.h33 #include <sys/sx.h>
36 struct sx sx; member in struct:rw_semaphore
39 #define down_write(_rw) sx_xlock(&(_rw)->sx)
40 #define up_write(_rw) sx_xunlock(&(_rw)->sx)
41 #define down_read(_rw) sx_slock(&(_rw)->sx)
42 #define up_read(_rw) sx_sunlock(&(_rw)->sx)
43 #define down_read_trylock(_rw) !!sx_try_slock(&(_rw)->sx)
44 #define down_write_trylock(_rw) !!sx_try_xlock(&(_rw)->sx)
45 #define downgrade_write(_rw) sx_downgrade(&(_rw)->sx)
[all...]
H A Dmutex.h33 #include <sys/sx.h>
38 struct sx sx; member in struct:mutex
41 #define mutex_lock(_m) sx_xlock(&(_m)->sx)
44 #define mutex_unlock(_m) sx_xunlock(&(_m)->sx)
45 #define mutex_trylock(_m) !!sx_try_xlock(&(_m)->sx)
49 SX_SYSINIT_FLAGS(lock, &(lock).sx, "lnxmtx", SX_NOWITNESS)
55 memset(&m->sx, 0, sizeof(m->sx));
56 sx_init_flags(&m->sx, "lnxmt
[all...]
/freebsd-10.0-release/sys/kern/
H A Dkern_sx.c36 * so should not be relied upon in combination with sx locks.
55 #include <sys/sx.h>
113 #define sx_recursed(sx) ((sx)->sx_recurse != 0)
126 .lc_name = "sx",
140 #define _sx_assert(sx, what, file, line)
146 static SYSCTL_NODE(_debug, OID_AUTO, sx, CTLFLAG_RD, NULL, "sxlock debugging");
155 sx_assert((const struct sx *)lock, what);
161 struct sx *sx; local
173 struct sx *sx; local
190 const struct sx *sx = (const struct sx *)lock; local
208 sx_init_flags(struct sx *sx, const char *description, int opts) argument
237 sx_destroy(struct sx *sx) argument
247 _sx_slock(struct sx *sx, int opts, const char *file, int line) argument
270 sx_try_slock_(struct sx *sx, const char *file, int line) argument
300 _sx_xlock(struct sx *sx, int opts, const char *file, int line) argument
325 sx_try_xlock_(struct sx *sx, const char *file, int line) argument
357 _sx_sunlock(struct sx *sx, const char *file, int line) argument
373 _sx_xunlock(struct sx *sx, const char *file, int line) argument
396 sx_try_upgrade_(struct sx *sx, const char *file, int line) argument
429 sx_downgrade_(struct sx *sx, const char *file, int line) argument
499 _sx_xlock_hard(struct sx *sx, uintptr_t tid, int opts, const char *file, int line) argument
720 _sx_xunlock_hard(struct sx *sx, uintptr_t tid, const char *file, int line) argument
782 _sx_slock_hard(struct sx *sx, int opts, const char *file, int line) argument
967 _sx_sunlock_hard(struct sx *sx, const char *file, int line) argument
1061 _sx_assert(const struct sx *sx, int what, const char *file, int line) argument
1147 const struct sx *sx; local
1192 struct sx *sx; local
[all...]
/freebsd-10.0-release/lib/msun/src/
H A Ds_rintf.c34 int32_t i0,j0,sx; local
37 sx = (i0>>31)&1;
42 STRICT_ASSIGN(float,w,TWO23[sx]+x);
43 t = w-TWO23[sx];
45 SET_FLOAT_WORD(t,(i0&0x7fffffff)|(sx<<31));
48 STRICT_ASSIGN(float,w,TWO23[sx]+x);
49 return w-TWO23[sx];
H A Ds_rint.c40 int32_t i0,j0,sx; local
44 sx = (i0>>31)&1;
53 STRICT_ASSIGN(double,w,TWO52[sx]+x);
54 t = w-TWO52[sx];
56 SET_HIGH_WORD(t,(i0&0x7fffffff)|(sx<<31));
66 * w = TWO52[sx]+x, adjust the 0.25 bit to a lower
86 STRICT_ASSIGN(double,w,TWO52[sx]+x);
87 return w-TWO52[sx];
H A De_fmodf.c33 int32_t n,hx,hy,hz,ix,iy,sx,i; local
37 sx = hx&0x80000000; /* sign of x */
38 hx ^=sx; /* |x| */
47 return Zero[(u_int32_t)sx>>31]; /* |x|=|y| return x*0*/
80 return Zero[(u_int32_t)sx>>31];
89 return Zero[(u_int32_t)sx>>31];
96 SET_FLOAT_WORD(x,hx|sx);
100 SET_FLOAT_WORD(x,hx|sx);
H A De_fmod.c31 int32_t n,hx,hy,hz,ix,iy,sx,i; local
36 sx = hx&0x80000000; /* sign of x */
37 hx ^=sx; /* |x| */
47 return Zero[(u_int32_t)sx>>31]; /* |x|=|y| return x*0*/
101 return Zero[(u_int32_t)sx>>31];
110 return Zero[(u_int32_t)sx>>31];
117 INSERT_WORDS(x,hx|sx,lx);
124 lx = (hx<<(32-n))|(lx>>n); hx = sx;
126 lx = hx>>(n-32); hx = sx;
128 INSERT_WORDS(x,hx|sx,l
[all...]
H A Ds_remquof.c32 int32_t n,hx,hy,hz,ix,iy,sx,i; local
38 sx = hx&0x80000000; /* sign of x */
39 hx ^=sx; /* |x| */
50 return Zero[(u_int32_t)sx>>31]; /* |x|=|y| return x*0*/
93 return Zero[(u_int32_t)sx>>31];
118 SET_FLOAT_WORD(x,hx^sx);
H A De_remainder.c38 u_int32_t sx,lx,lp; local
43 sx = hx&0x80000000;
73 SET_HIGH_WORD(x,hx^sx);
H A De_remainderf.c29 u_int32_t sx; local
34 sx = hx&0x80000000;
63 SET_FLOAT_WORD(x,hx^sx);
H A Ds_remquo.c34 int32_t n,hx,hy,hz,ix,iy,sx,i; local
40 sx = hx&0x80000000; /* sign of x */
41 hx ^=sx; /* |x| */
55 return Zero[(u_int32_t)sx>>31]; /* |x|=|y| return x*0*/
119 return Zero[(u_int32_t)sx>>31];
151 SET_HIGH_WORD(x,hx^sx);
H A De_fmodl.c71 int ix,iy,n,sx; local
75 sx = ux.bits.sign;
91 return Zero[sx]; /* |x|=|y| return x*0*/
125 return Zero[sx];
134 return Zero[sx];
/freebsd-10.0-release/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
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/x509v3/
H A Dv3_sxnet.c70 static int sxnet_i2r(X509V3_EXT_METHOD *method, SXNET *sx, BIO *out, int indent);
104 static int sxnet_i2r(X509V3_EXT_METHOD *method, SXNET *sx, BIO *out,
111 v = ASN1_INTEGER_get(sx->version);
113 for(i = 0; i < sk_SXNETID_num(sx->ids); i++) {
114 id = sk_SXNETID_value(sx->ids, i);
135 SXNET *sx = NULL;
139 if(!SXNET_add_id_asc(&sx, cnf->name, cnf->value, -1))
142 return sx;
186 SXNET *sx = NULL;
198 if(!(sx
[all...]
/freebsd-10.0-release/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-10.0-release/lib/libthread_db/arch/i386/
H A Dlibpthread_md.c61 struct savexmm *sx = (struct savexmm *)&uc->uc_mcontext.mc_fpstate; local
62 memcpy(&sx->sv_env, &r->fpr_env, sizeof(r->fpr_env));
64 memcpy(&sx->sv_fp[i].fp_acc, &r->fpr_acc[i], 10);
75 struct savexmm *sx = (struct savexmm *)&uc->uc_mcontext.mc_fpstate; local
76 memcpy(&r->fpr_env, &sx->sv_env, sizeof(r->fpr_env));
78 memcpy(&r->fpr_acc[i], &sx->sv_fp[i].fp_acc, 10);
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/types/
H A Dtst.complex.d62 } sx;
/freebsd-10.0-release/sys/cddl/compat/opensolaris/sys/
H A Dmutex.h38 #include <sys/sx.h>
47 typedef struct sx kmutex_t;
60 bzero((lock), sizeof(struct sx)); \
H A Drwlock.h35 #include <sys/sx.h>
48 typedef struct sx krwlock_t;
66 bzero((lock), sizeof(struct sx)); \
90 /* TODO: Change to sx_xholder() once it is moved from kern_sx.c to sx.h. */
/freebsd-10.0-release/contrib/ncurses/ncurses/base/
H A Dlib_overlay.c142 int sx, sy, dx, dy; local
172 for (dx = dmincol, sx = smincol;
174 sx++, dx++) {
176 if ((CharOf(src->_line[sy].text[sx]) != L(' ')) &&
178 src->_line[sy].text[sx]))) {
180 src->_line[sy].text[sx];
182 ((AttrOf(src->_line[sy].text[sx]) &
188 src->_line[sy].text[sx])) {
190 src->_line[sy].text[sx];
/freebsd-10.0-release/etc/periodic/security/
H A D100.chksetuid49 find -sx $MP /dev/null -type f \
H A D110.neggrpperm47 n=$(find -sx $MP /dev/null -type f \

Completed in 287 milliseconds

1234567891011>>