/titanic_41/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_rwlock.c | 59 smbfs_rw_enter_sig(smbfs_rwlock_t *l, krw_t rw, int intr) in smbfs_rw_enter_sig() argument 62 mutex_enter(&l->lock); in smbfs_rw_enter_sig() 68 if (l->owner == curthread) { in smbfs_rw_enter_sig() 71 l->count--; in smbfs_rw_enter_sig() 79 while (l->count < 0 || l->waiters > 0) { in smbfs_rw_enter_sig() 85 if (!cv_wait_sig(&l->cv, &l->lock)) { in smbfs_rw_enter_sig() 88 mutex_exit(&l->lock); in smbfs_rw_enter_sig() 94 cv_wait(&l->cv, &l->lock); in smbfs_rw_enter_sig() 96 ASSERT(l->count < INT_MAX); in smbfs_rw_enter_sig() 98 if ((l->count % 10000) == 9999) in smbfs_rw_enter_sig() [all …]
|
/titanic_41/usr/src/lib/libc/sparc/fp/ |
H A D | _Q_fcc.c | 51 if ((QUAD_ISNAN(*x) && !(x->l.msw & 0x8000)) || in _Q_feq() 52 (QUAD_ISNAN(*y) && !(y->l.msw & 0x8000))) { in _Q_feq() 67 return ((x->l.msw ^ y->l.msw | x->l.frac2 ^ y->l.frac2 | in _Q_feq() 68 x->l.frac3 ^ y->l.frac3 | x->l.frac4 ^ y->l.frac4) == 0); in _Q_feq() 82 if ((QUAD_ISNAN(*x) && !(x->l.msw & 0x8000)) || in _Q_fne() 83 (QUAD_ISNAN(*y) && !(y->l.msw & 0x8000))) { in _Q_fne() 98 return ((x->l.msw ^ y->l.msw | x->l.frac2 ^ y->l.frac2 | in _Q_fne() 99 x->l.frac3 ^ y->l.frac3 | x->l.frac4 ^ y->l.frac4) != 0); in _Q_fne() 125 xm = x->l.msw; in _Q_flt() 128 ym = y->l.msw; in _Q_flt() [all …]
|
H A D | _Q_qtou.c | 45 xm = x->l.msw & 0x7fffffff; in _Q_qtou() 51 if (x->l.msw < 0x401f0000) { in _Q_qtou() 53 (x->l.frac2 >> 17); in _Q_qtou() 54 if ((x->l.frac2 & 0x1ffff) | x->l.frac3 | x->l.frac4) { in _Q_qtou() 59 x->l.frac2 & 0xffff0000) { in _Q_qtou() 60 z.l.msw = xm & 0xffff; in _Q_qtou() 61 z.l.frac2 = x->l.frac2; in _Q_qtou() 62 z.l.frac3 = x->l.frac3; in _Q_qtou() 63 z.l.frac4 = x->l.frac4; in _Q_qtou() 64 } else if (x->l.frac2 & 0xffff || in _Q_qtou() [all …]
|
H A D | _Q_qtod.c | 45 xm = x->l.msw & 0x7fffffff; in _Q_qtod() 51 if (x->l.msw & 0x80000000) in _Q_qtod() 57 if ((xm & 0xffff) | x->l.frac2 | x->l.frac3 | in _Q_qtod() 58 x->l.frac4) { in _Q_qtod() 60 u.l.hi = (x->l.msw & 0x80000000) | 0x7ff80000; in _Q_qtod() 61 u.l.hi |= ((xm & 0x7fff) << 4) | in _Q_qtod() 62 (x->l.frac2 >> 28); in _Q_qtod() 63 u.l.lo = (x->l.frac2 << 4) | in _Q_qtod() 64 (x->l.frac3 >> 28); in _Q_qtod() 78 u.l.hi = (x->l.msw & 0x80000000) | 0x7ff00000; in _Q_qtod() [all …]
|
H A D | _Q_qtos.c | 43 unsigned int l; in _Q_qtos() member 48 xm = x->l.msw & 0x7fffffff; in _Q_qtos() 54 if (x->l.msw & 0x80000000) in _Q_qtos() 60 if ((xm & 0xffff) | x->l.frac2 | x->l.frac3 | in _Q_qtos() 61 x->l.frac4) { in _Q_qtos() 63 u.l = (x->l.msw & 0x80000000) | 0x7fc00000; in _Q_qtos() 64 u.l |= ((xm & 0x7fff) << 7) | in _Q_qtos() 65 (x->l.frac2 >> 25); in _Q_qtos() 79 u.l = (x->l.msw & 0x80000000) | 0x7f800000; in _Q_qtos() 84 u.l = 0x7f800000; in _Q_qtos() [all …]
|
H A D | __quad_mag.c | 53 ex = (x->l.msw & 0x7fffffff) >> 16; in __quad_mag_add() 54 lx = x->l.msw & 0xffff; in __quad_mag_add() 60 ey = (y->l.msw & 0x7fffffff) >> 16; in __quad_mag_add() 61 ly = y->l.msw & 0xffff; in __quad_mag_add() 71 frac2 = x->l.frac2; in __quad_mag_add() 72 frac3 = x->l.frac3; in __quad_mag_add() 73 frac4 = x->l.frac4; in __quad_mag_add() 74 sticky = ly | y->l.frac2 | y->l.frac3 | y->l.frac4; in __quad_mag_add() 76 frac2 = y->l.frac2; in __quad_mag_add() 77 frac3 = y->l.frac3; in __quad_mag_add() [all …]
|
H A D | _Q_mul.c | 94 xm = x->l.msw & 0x7fffffff; in _Qp_mul() 95 ym = y->l.msw & 0x7fffffff; in _Qp_mul() 96 sign = (x->l.msw ^ y->l.msw) & ~0x7fffffff; in _Qp_mul() 104 if (!(y->l.msw & 0x8000)) { in _Qp_mul() 110 Z.l.msw |= 0x8000; in _Qp_mul() 116 } else if (QUAD_ISNAN(*x) && !(x->l.msw & 0x8000)) { in _Qp_mul() 122 Z.l.msw |= 0x8000; in _Qp_mul() 133 if (!(x->l.msw & 0x8000)) { in _Qp_mul() 139 Z.l.msw |= 0x8000; in _Qp_mul() 156 Z.l.msw = 0x7fffffff; in _Qp_mul() [all …]
|
H A D | _Q_cmp.c | 45 if ((QUAD_ISNAN(*x) && !(x->l.msw & 0x8000)) || in _Q_cmp() 46 (QUAD_ISNAN(*y) && !(y->l.msw & 0x8000))) { in _Q_cmp() 61 xm = x->l.msw; in _Q_cmp() 64 ym = y->l.msw; in _Q_cmp() 76 if (x->l.frac2 > y->l.frac2) in _Q_cmp() 78 if (x->l.frac2 < y->l.frac2) in _Q_cmp() 80 if (x->l.frac3 > y->l.frac3) in _Q_cmp() 82 if (x->l.frac3 < y->l.frac3) in _Q_cmp() 84 if (x->l.frac4 > y->l.frac4) in _Q_cmp() 86 if (x->l.frac4 < y->l.frac4) in _Q_cmp() [all …]
|
H A D | _Q_sub.c | 57 xm = ox->l.msw & 0x7fffffff; in _Qp_sub() 58 ym = oy->l.msw & 0x7fffffff; in _Qp_sub() 59 if (ym > xm || ym == xm && (oy->l.frac2 > ox->l.frac2 || in _Qp_sub() 60 oy->l.frac2 == ox->l.frac2 && (oy->l.frac3 > ox->l.frac3 || in _Qp_sub() 61 oy->l.frac3 == ox->l.frac3 && oy->l.frac4 > ox->l.frac4))) { in _Qp_sub() 82 if ((ym & 0xffff) | y->l.frac2 | y->l.frac3 | in _Qp_sub() 83 y->l.frac4) { in _Qp_sub() 92 Z.l.msw |= 0x8000; in _Qp_sub() 103 if (!((xm & 0xffff) | x->l.frac2 | x->l.frac3 | in _Qp_sub() 104 x->l.frac4)) { in _Qp_sub() [all …]
|
H A D | _Q_add.c | 56 xm = ox->l.msw & 0x7fffffff; in _Qp_add() 57 ym = oy->l.msw & 0x7fffffff; in _Qp_add() 58 if (ym > xm || ym == xm && (oy->l.frac2 > ox->l.frac2 || in _Qp_add() 59 oy->l.frac2 == ox->l.frac2 && (oy->l.frac3 > ox->l.frac3 || in _Qp_add() 60 oy->l.frac3 == ox->l.frac3 && oy->l.frac4 > ox->l.frac4))) { in _Qp_add() 79 if ((ym & 0xffff) | y->l.frac2 | y->l.frac3 | in _Qp_add() 80 y->l.frac4) { in _Qp_add() 89 Z.l.msw |= 0x8000; in _Qp_add() 100 if (!((xm & 0xffff) | x->l.frac2 | x->l.frac3 | in _Qp_add() 101 x->l.frac4)) { in _Qp_add() [all …]
|
H A D | _Q_div.c | 112 xm = x->l.msw & 0x7fffffff; in _Qp_div() 113 ym = y->l.msw & 0x7fffffff; in _Qp_div() 114 sign = (x->l.msw ^ y->l.msw) & ~0x7fffffff; in _Qp_div() 122 if (!(y->l.msw & 0x8000)) { in _Qp_div() 128 Z.l.msw |= 0x8000; in _Qp_div() 134 } else if (QUAD_ISNAN(*x) && !(x->l.msw & 0x8000)) { in _Qp_div() 140 Z.l.msw |= 0x8000; in _Qp_div() 151 if (!(x->l.msw & 0x8000)) { in _Qp_div() 157 Z.l.msw |= 0x8000; in _Qp_div() 174 Z.l.msw = 0x7fffffff; in _Qp_div() [all …]
|
H A D | _Q_cmpe.c | 58 xm = x->l.msw; in _Q_cmpe() 61 ym = y->l.msw; in _Q_cmpe() 73 if (x->l.frac2 > y->l.frac2) in _Q_cmpe() 75 if (x->l.frac2 < y->l.frac2) in _Q_cmpe() 77 if (x->l.frac3 > y->l.frac3) in _Q_cmpe() 79 if (x->l.frac3 < y->l.frac3) in _Q_cmpe() 81 if (x->l.frac4 > y->l.frac4) in _Q_cmpe() 83 if (x->l.frac4 < y->l.frac4) in _Q_cmpe() 91 if (x->l.frac2 < y->l.frac2) in _Q_cmpe() 93 if (x->l.frac2 > y->l.frac2) in _Q_cmpe() [all …]
|
H A D | _Q_dtoq.c | 58 m = ((u.l.hi & 0x7ff00000) >> 4) + 0x3c000000; in _Qp_dtoq() 61 if ((u.l.hi & 0xfffff) | u.l.lo) { in _Qp_dtoq() 64 lhi = u.l.hi & 0xfffff; in _Qp_dtoq() 65 llo = u.l.lo; in _Qp_dtoq() 71 u.l.hi = (u.l.hi & 0x80000000) | lhi; in _Qp_dtoq() 72 u.l.lo = llo; in _Qp_dtoq() 79 if (((u.l.hi & 0x7ffff) | u.l.lo) && (u.l.hi & 0x80000) == 0) { in _Qp_dtoq() 89 u.l.hi |= 0x80000; in _Qp_dtoq() 92 Z.l.msw = m | (u.l.hi & 0x80000000) | ((u.l.hi & 0xffff0) >> 4); in _Qp_dtoq() 93 Z.l.frac2 = (u.l.hi << 28) | (u.l.lo >> 4); in _Qp_dtoq() [all …]
|
H A D | _Q_lltoq.c | 45 Z.l.msw = 0xc03e0000; in _Q_lltoq() 46 Z.l.frac2 = Z.l.frac3 = Z.l.frac4 = 0; in _Q_lltoq() 52 Z.l.msw = Z.l.frac2 = Z.l.frac3 = Z.l.frac4 = 0; in _Q_lltoq() 61 Z.l.msw = ((unsigned long long) x >> (e - 16)) & 0xffff; in _Q_lltoq() 62 Z.l.frac2 = (unsigned long long) x >> (e - 48); in _Q_lltoq() 63 Z.l.frac3 = (unsigned long long) x << (80 - e); in _Q_lltoq() 65 Z.l.msw = ((unsigned long long) x >> (e - 16)) & 0xffff; in _Q_lltoq() 66 Z.l.frac2 = (unsigned long long) x << (48 - e); in _Q_lltoq() 67 Z.l.frac3 = 0; in _Q_lltoq() 69 Z.l.msw = ((unsigned long long) x << (16 - e)) & 0xffff; in _Q_lltoq() [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | rwstlock.c | 61 rwst_enter_common(rwstlock_t *l, krw_t rw, int flags) in rwst_enter_common() argument 67 mutex_enter(&l->rwst_lock); in rwst_enter_common() 69 while (RWST_WRITE_HELD(l) || in rwst_enter_common() 70 (rw != RW_READER_STARVEWRITER && RWST_WRITE_WANTED(l))) { in rwst_enter_common() 73 mutex_exit(&l->rwst_lock); in rwst_enter_common() 79 if (RWST_WRITE_HELD(l)) { in rwst_enter_common() 84 readers = l->rwst_count; in rwst_enter_common() 87 if (!RWST_READ_WAIT(l, flags)) { in rwst_enter_common() 88 mutex_exit(&l->rwst_lock); in rwst_enter_common() 92 LOCKSTAT_RECORD4(LS_RW_ENTER_BLOCK, l, sleep_time, rw, in rwst_enter_common() [all …]
|
/titanic_41/usr/src/lib/libc/sparcv9/fp/ |
H A D | _Qp_qtoux.c | 41 xm = x->l.msw & 0x7fffffff; in _Qp_qtoux() 47 if (x->l.msw < 0x403f0000) { in _Qp_qtoux() 50 ((long) x->l.frac2 << 15) | (x->l.frac3 >> 17); in _Qp_qtoux() 51 if ((x->l.frac3 & 0x1ffff) | x->l.frac4) { in _Qp_qtoux() 56 x->l.frac2 & 0xffff0000) { in _Qp_qtoux() 57 z.l.msw = xm & 0xffff; in _Qp_qtoux() 58 z.l.frac2 = x->l.frac2; in _Qp_qtoux() 59 z.l.frac3 = x->l.frac3; in _Qp_qtoux() 60 z.l.frac4 = x->l.frac4; in _Qp_qtoux() 61 } else if (x->l.frac2 & 0xffff || in _Qp_qtoux() [all …]
|
H A D | _Qp_xtoq.c | 44 Z.l.msw = 0xc03e0000; in _Qp_xtoq() 45 Z.l.frac2 = Z.l.frac3 = Z.l.frac4 = 0; in _Qp_xtoq() 51 Z.l.msw = Z.l.frac2 = Z.l.frac3 = Z.l.frac4 = 0; in _Qp_xtoq() 60 Z.l.msw = ((unsigned long) x >> (e - 16)) & 0xffff; in _Qp_xtoq() 61 Z.l.frac2 = (unsigned long) x >> (e - 48); in _Qp_xtoq() 62 Z.l.frac3 = (unsigned long) x << (80 - e); in _Qp_xtoq() 64 Z.l.msw = ((unsigned long) x >> (e - 16)) & 0xffff; in _Qp_xtoq() 65 Z.l.frac2 = (unsigned long) x << (48 - e); in _Qp_xtoq() 66 Z.l.frac3 = 0; in _Qp_xtoq() 68 Z.l.msw = ((unsigned long) x << (16 - e)) & 0xffff; in _Qp_xtoq() [all …]
|
/titanic_41/usr/src/uts/common/sys/tsol/ |
H A D | label_macro.h | 110 #define _MTYPE(l, t) \ argument 111 (((_mac_label_impl_t *)(l))->id == (t)) 113 #define _MSETTYPE(l, t) \ argument 114 (((_mac_label_impl_t *)(l))->id = (t)) 116 #define _MGETTYPE(l) (((_mac_label_impl_t *)(l))->id) argument 145 #define LCLASS_SET(slp, l) ((slp)->_lclass.class_u.class_chunk = (l)) argument 150 #define LCLASS_SET(slp, l) \ argument 151 ((slp)->_lclass.class_u.class_ar[0] = (uint8_t)((l)>> 8), \ 152 (slp)->_lclass.class_u.class_ar[1] = (uint8_t)(l)) 161 #define ICLASS_SET(ilp, l) ((ilp)->_iclass.class_u.class_chunk = (l)) argument [all …]
|
/titanic_41/usr/src/tools/pmodes/ |
H A D | binsearch.c | 62 item_add(itemlist l, char *s) in item_add() argument 64 if (l->nallocated < 0) { in item_add() 66 l->nallocated = l->nused + ALLOCCHUNK; in item_add() 67 new = malloc(sizeof (char *) * l->nused); in item_add() 68 memcpy(new, l->items, l->nused * sizeof (char *)); in item_add() 69 l->items = new; in item_add() 70 } else if (l->nallocated == l->nused) { in item_add() 71 if (l->nallocated) in item_add() 72 l->nallocated *= 2; in item_add() 74 l->nallocated = ALLOCCHUNK; in item_add() [all …]
|
/titanic_41/usr/src/uts/i86pc/sys/ |
H A D | hpet_acpi.h | 139 #define HPET_GCAP_CNTR_CLK_PERIOD(l) (l >> 32) argument 140 #define HPET_GCAP_VENDOR_ID(l) BITX(l, 31, 16) argument 141 #define HPET_GCAP_LEG_ROUTE_CAP(l) BITX(l, 15, 15) argument 142 #define HPET_GCAP_CNT_SIZE_CAP(l) BITX(l, 13, 13) argument 143 #define HPET_GCAP_NUM_TIM_CAP(l) BITX(l, 12, 8) argument 144 #define HPET_GCAP_REV_ID(l) BITX(l, 7, 0) argument 175 #define HPET_GCFR_LEG_RT_CNF_BITX(l) BITX(l, 1, 1) argument 176 #define HPET_GCFR_ENABLE_CNF_BITX(l) BITX(l, 0, 0) argument 181 #define HPET_GIS_T2_INT_STS(l) BITX(l, 2, 2) argument 182 #define HPET_GIS_T1_INT_STS(l) BITX(l, 1, 1) argument [all …]
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | rwstlock.h | 60 #define RWST_HELD(l) ((l)->rwst_count != 0) argument 61 #define RWST_READ_HELD(l) ((l)->rwst_count > 0) argument 62 #define RWST_WRITE_HELD(l) ((l)->rwst_count < 0) argument 63 #define RWST_WRITE_OWNER(l) \ argument 64 ((l)->rwst_count == (LONG_MIN | (intptr_t)curthread)) 65 #define RWST_OWNER(l) (RWST_WRITE_HELD(l) ? \ argument 66 ((struct _kthread *)((l)->rwst_count & ~LONG_MIN)) : NULL) 67 #define RWST_READ_WANTED(l) CV_HAS_WAITERS(&(l)->rwst_rcv) argument 68 #define RWST_WRITE_WANTED(l) CV_HAS_WAITERS(&(l)->rwst_wcv) argument 71 #define RWST_READ_WAIT(l, f) RWST_WAIT(&(l)->rwst_rcv, &(l)->rwst_lock, f) argument [all …]
|
/titanic_41/usr/src/stand/lib/fs/ufs/ |
H A D | lufsboot.c | 195 #define inslist(lh, l) if ((*(lh))) { \ argument 196 (*(lh))->l_prev->l_next = (l); \ 197 (l)->l_next = (*(lh)); \ 198 (l)->l_prev = (*(lh))->l_prev; \ 199 (*(lh))->l_prev = (l); \ 201 (l)->l_next = (l); \ 202 (l)->l_prev = (l); \ 203 (*(lh)) = l; \ 206 #define remlist(lh, l) \ argument 207 if ((l)->l_next == (l)) { \ [all …]
|
/titanic_41/usr/src/uts/common/fs/zfs/ |
H A D | zap_leaf.c | 42 static uint16_t *zap_leaf_rehash_entry(zap_leaf_t *l, uint16_t entry); 49 #define LEAF_HASH(l, h) \ argument 50 ((ZAP_LEAF_HASH_NUMENTRIES(l)-1) & \ 52 (64 - ZAP_LEAF_HASH_SHIFT(l) - zap_leaf_phys(l)->l_hdr.lh_prefix_len))) 54 #define LEAF_HASH_ENTPTR(l, h) (&zap_leaf_phys(l)->l_hash[LEAF_HASH(l, h)]) argument 56 extern inline zap_leaf_phys_t *zap_leaf_phys(zap_leaf_t *l); 109 zap_leaf_t l; in zap_leaf_byteswap() local 113 l.l_bs = highbit64(size) - 1; in zap_leaf_byteswap() 114 l.l_dbuf = &l_dbuf; in zap_leaf_byteswap() 124 for (i = 0; i < ZAP_LEAF_HASH_NUMENTRIES(&l); i++) in zap_leaf_byteswap() [all …]
|
/titanic_41/usr/src/lib/libm/common/Q/ |
H A D | sqrtl.c | 59 } l; member 86 } l; member 133 unsigned int l[2]; in __q_unpack() member 140 ex = (int) ((x->l.msw & 0x7fffffff) >> 16); in __q_unpack() 141 lx = x->l.msw & 0xffff; in __q_unpack() 145 w[0] = x->l.frac2; in __q_unpack() 146 w[1] = x->l.frac3; in __q_unpack() 147 w[2] = x->l.frac4; in __q_unpack() 151 if (lx | (x->l.frac2 & 0xfffe0000)) in __q_unpack() 153 w[0] = x->l.frac2; in __q_unpack() [all …]
|
/titanic_41/usr/src/uts/i86pc/io/amd_iommu/ |
H A D | amd_iommu_page_tables.h | 45 #define AMD_IOMMU_VA_NBITS(l) ((l) == 6 ? 7 : 9) argument 46 #define AMD_IOMMU_VA_BITMASK(l) ((1 << AMD_IOMMU_VA_NBITS(l)) - 1) argument 47 #define AMD_IOMMU_VA_SHIFT(v, l) \ argument 48 ((v) >> (MMU_PAGESHIFT + (AMD_IOMMU_VA_NBITS(l - 1) * (l - 1)))) 49 #define AMD_IOMMU_VA_BITS(v, l) \ argument 50 (AMD_IOMMU_VA_SHIFT(v, l) & AMD_IOMMU_VA_BITMASK(l)) 51 #define AMD_IOMMU_VA_TOTBITS(l) \ argument 52 (((l) == 6 ? 7 + (l - 1) * 9: l*9) + MMU_PAGESHIFT) 53 #define AMD_IOMMU_VA_TOTMASK(l) ((1 << AMD_IOMMU_VA_TOTBITS(l)) - 1) argument 54 #define AMD_IOMMU_VA_INVAL_SETMASK(l) \ argument [all …]
|