/freebsd-11-stable/sys/sys/ |
H A D | sx.h | 29 * $FreeBSD: stable/11/sys/sys/sx.h 327413 2017-12-31 05:06:35Z mjg $ 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 91 #define SX_READ_VALUE(sx) ((sx)->sx_lock) 101 #define sx_init(sx, desc) sx_init_flags((sx), (desc), 0) 102 void sx_init_flags(struct sx *sx, const char *description, int opts); 103 void sx_destroy(struct sx *s 155 __sx_xlock(struct sx *sx, struct thread *td, int opts, const char *file, int line) argument 171 __sx_xunlock(struct sx *sx, struct thread *td, 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-11-stable/sys/kern/ |
H A D | kern_sx.c | 36 * so should not be relied upon in combination with sx locks. 56 #include <sys/sx.h> 115 #define sx_recursed(sx) ((sx)->sx_recurse != 0) 128 .lc_name = "sx", 142 #define _sx_assert(sx, what, file, line) 148 static SYSCTL_NODE(_debug, OID_AUTO, sx, CTLFLAG_RD, NULL, "sxlock debugging"); 174 sx_assert((const struct sx *)lock, what); 180 struct sx *sx; local 192 struct sx *sx; local 209 const struct sx *sx; local 229 sx_init_flags(struct sx *sx, const char *description, int opts) argument 260 sx_destroy(struct sx *sx) argument 302 sx_try_slock_(struct sx *sx, const char *file, int line) argument 309 _sx_xlock(struct sx *sx, int opts, const char *file, int line) argument 389 sx_try_xlock_(struct sx *sx, const char *file, int line) argument 396 _sx_xunlock(struct sx *sx, const char *file, int line) argument 459 sx_try_upgrade_(struct sx *sx, const char *file, int line) argument 532 sx_downgrade_(struct sx *sx, const char *file, int line) argument 545 _sx_xlock_hard(struct sx *sx, uintptr_t x, int opts LOCK_FILE_LINE_ARG_DEF) argument 832 _sx_xunlock_hard(struct sx *sx, uintptr_t x LOCK_FILE_LINE_ARG_DEF) argument 900 __sx_slock_try(struct sx *sx, uintptr_t *xp LOCK_FILE_LINE_ARG_DEF) argument 924 _sx_slock_hard(struct sx *sx, int opts, uintptr_t x LOCK_FILE_LINE_ARG_DEF) argument 1134 _sx_slock_int(struct sx *sx, int opts LOCK_FILE_LINE_ARG_DEF) argument 1164 _sx_slock(struct sx *sx, int opts, const char *file, int line) argument 1171 _sx_sunlock_try(struct sx *sx, uintptr_t *xp) argument 1221 _sx_sunlock_hard(struct sx *sx, uintptr_t x LOCK_FILE_LINE_ARG_DEF) argument 1292 _sx_sunlock(struct sx *sx, const char *file, int line) argument 1309 _sx_assert(const struct sx *sx, int what, const char *file, int line) argument 1395 const struct sx *sx; local 1440 struct sx *sx; local [all...] |
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | rwsem.h | 36 #include <sys/sx.h> 41 struct sx sx; member in struct:rw_semaphore 44 #define down_write(_rw) sx_xlock(&(_rw)->sx) 45 #define up_write(_rw) sx_xunlock(&(_rw)->sx) 46 #define down_read(_rw) sx_slock(&(_rw)->sx) 47 #define up_read(_rw) sx_sunlock(&(_rw)->sx) 48 #define down_read_trylock(_rw) !!sx_try_slock(&(_rw)->sx) 49 #define down_write_trylock(_rw) !!sx_try_xlock(&(_rw)->sx) 51 #define downgrade_write(_rw) sx_downgrade(&(_rw)->sx) [all...] |
H A D | mutex.h | 37 #include <sys/sx.h> 42 struct sx sx; member in struct:mutex 58 sx_xlock(&(_m)->sx); \ 84 sx_xunlock(&(_m)->sx); \ 89 !!sx_try_xlock(&(_m)->sx); \ 101 if (unlikely(sx_xholder(&lock->sx) == curthread)) 119 return ((struct thread *)SX_OWNER(m->sx.sx_lock) != NULL); 125 return (sx_xlocked(&m->sx)); 141 SX_SYSINIT_FLAGS(lock, &(lock).sx, mutex_nam [all...] |
H A D | ww_mutex.h | 65 sx_xlocked(&(_m)->base.sx) 87 else if ((struct thread *)SX_OWNER(lock->base.sx.sx_lock) == curthread) 98 else if ((struct thread *)SX_OWNER(lock->base.sx.sx_lock) == curthread)
|
/freebsd-11-stable/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 | 33 int32_t n,hx,hy,hz,ix,iy,sx,i; local 38 sx = hx&0x80000000; /* sign of x */ 39 hx ^=sx; /* |x| */ 49 return Zero[(u_int32_t)sx>>31]; /* |x|=|y| return x*0*/ 103 return Zero[(u_int32_t)sx>>31]; 112 return Zero[(u_int32_t)sx>>31]; 119 INSERT_WORDS(x,hx|sx,lx); 126 lx = (hx<<(32-n))|(lx>>n); hx = sx; 128 lx = hx>>(n-32); hx = sx; 130 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);
|
/freebsd-11-stable/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-11-stable/crypto/openssl/crypto/x509v3/ |
H A D | v3_sxnet.c | 71 static int sxnet_i2r(X509V3_EXT_METHOD *method, SXNET *sx, BIO *out, 106 static int sxnet_i2r(X509V3_EXT_METHOD *method, SXNET *sx, BIO *out, 113 v = ASN1_INTEGER_get(sx->version); 115 for (i = 0; i < sk_SXNETID_num(sx->ids); i++) { 116 id = sk_SXNETID_value(sx->ids, i); 137 SXNET *sx = NULL; 141 if (!SXNET_add_id_asc(&sx, cnf->name, cnf->value, -1)) 144 return sx; 186 SXNET *sx = NULL; 200 if (!(sx [all...] |
/freebsd-11-stable/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-11-stable/sys/dev/mlx5/mlx5_fpga_tools/ |
H A D | tools.h | 39 #include <sys/sx.h> 52 struct sx lock;
|
/freebsd-11-stable/sys/compat/linuxkpi/common/src/ |
H A D | linux_lock.c | 85 if (unlikely(sx_try_xlock(&lock->base.sx) == 0)) { 92 SX_OWNER(lock->base.sx.sx_lock); 107 other->lock->base.sx.sx_lock) == curthread) { 122 } while (sx_try_xlock(&lock->base.sx) == 0); 127 if ((struct thread *)SX_OWNER(lock->base.sx.sx_lock) == NULL) 143 sx_xunlock(&lock->base.sx); 154 error = -sx_xlock_sig(&m->sx); 167 error = -sx_xlock_sig(&rw->sx);
|
/freebsd-11-stable/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 const struct savexmm *sx = (const 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-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/types/ |
H A D | tst.complex.d | 62 } sx;
|
/freebsd-11-stable/contrib/ncurses/ncurses/base/ |
H A D | lib_overlay.c | 142 int sx, sy, dx, dy; local 183 for (dx = dmincol, sx = smincol; 185 sx++, dx++) { 187 if (dx < 0 || sx < 0) 192 if ((CharOf(src->_line[sy].text[sx]) != L(' ')) && 194 src->_line[sy].text[sx]))) { 196 src->_line[sy].text[sx]; 198 ((AttrOf(src->_line[sy].text[sx]) & 204 src->_line[sy].text[sx])) { 206 src->_line[sy].text[sx]; [all...] |
/freebsd-11-stable/sys/cddl/compat/opensolaris/sys/ |
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-11-stable/lib/libc/tests/string/ |
H A D | wcscoll_test.c | 140 int sx = strcmp(data[i].xval, data[j].xval); local 142 ATF_CHECK_MSG(!((sr * sx < 0) || 143 (sr * sx == 0 && sr + sx != 0)),
|