/freebsd-10.0-release/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 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.h | 37 struct sx { struct
|
H A D | _rmlock.h | 53 struct sx _rm_lock_sx;
|
/freebsd-10.0-release/sys/ofed/include/linux/ |
H A D | rwsem.h | 33 #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 D | mutex.h | 33 #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 D | kern_sx.c | 36 * 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 D | s_rintf.c | 34 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 D | s_rint.c | 40 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 D | e_fmodf.c | 33 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 D | e_fmod.c | 31 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 D | s_remquof.c | 32 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 D | e_remainder.c | 38 u_int32_t sx,lx,lp; local 43 sx = hx&0x80000000; 73 SET_HIGH_WORD(x,hx^sx);
|
H A D | e_remainderf.c | 29 u_int32_t sx; local 34 sx = hx&0x80000000; 63 SET_FLOAT_WORD(x,hx^sx);
|
H A D | s_remquo.c | 34 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 D | e_fmodl.c | 71 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 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 [all...] |
/freebsd-10.0-release/crypto/openssl/crypto/x509v3/ |
H A D | v3_sxnet.c | 70 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 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-10.0-release/lib/libthread_db/arch/i386/ |
H A D | libpthread_md.c | 61 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 D | tst.complex.d | 62 } sx;
|
/freebsd-10.0-release/sys/cddl/compat/opensolaris/sys/ |
H A D | mutex.h | 38 #include <sys/sx.h> 47 typedef struct sx kmutex_t; 60 bzero((lock), sizeof(struct sx)); \
|
H A D | rwlock.h | 35 #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 D | lib_overlay.c | 142 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 D | 100.chksetuid | 49 find -sx $MP /dev/null -type f \
|
H A D | 110.neggrpperm | 47 n=$(find -sx $MP /dev/null -type f \
|