/illumos-gate/usr/src/uts/common/io/cxgbe/shared/ |
H A D | shared.h | 32 #define bitloc(a, i) ((a)[(i)/NBBY]) 33 #define setbit(a, i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) 34 #define clrbit(a, i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) 35 #define isset(a, i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) 36 #define isclr(a, i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | defs.h | 69 #ifndef NBBY 70 #define NBBY 8 macro
|
H A D | zfs_lzjb.c | 41 int copymask = 1 << (NBBY - 1); 44 if ((copymask <<= 1) == (1 << NBBY)) { 49 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; 50 int offset = ((src[0] << NBBY) | src[1]) & OFFSET_MASK;
|
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/ |
H A D | lzjb.c | 54 int copymask = 1 << (NBBY - 1); 57 if ((copymask <<= 1) == (1 << NBBY)) { 62 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; 63 int offset = ((src[0] << NBBY) | src[1]) & OFFSET_MASK;
|
H A D | blkptr.c | 71 buf8[i] = BF64_GET(w, (i % sizeof (w)) * NBBY, NBBY);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | lzjb.c | 56 int copymask = 1 << (NBBY - 1); 62 if ((copymask <<= 1) == (1 << NBBY)) { 63 if (dst >= (uchar_t *)d_start + d_len - 1 - 2 * NBBY) 86 *dst++ = ((mlen - MATCH_MIN) << (NBBY - MATCH_BITS)) | 87 (offset >> NBBY); 106 int copymask = 1 << (NBBY - 1); 109 if ((copymask <<= 1) == (1 << NBBY)) { 114 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; 115 int offset = ((src[0] << NBBY) | src[1]) & OFFSET_MASK;
|
H A D | blkptr.c | 72 BF64_SET(w, (i % sizeof (w)) * NBBY, NBBY, data8[i]); 117 buf8[i] = BF64_GET(w, (i % sizeof (w)) * NBBY, NBBY);
|
/illumos-gate/usr/src/lib/libbc/inc/include/sys/ |
H A D | param.h | 169 #define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) 170 #define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) 171 #define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) 172 #define isclr(a,i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
|
H A D | types.h | 54 #define NBBY 8 /* number of bits in a byte */ macro 66 #define NFDBITS (sizeof (fd_mask) * NBBY) /* bits per mask */
|
/illumos-gate/usr/src/lib/abi/apptrace/common/ |
H A D | apptraceutil.c | 69 (CTF_INT_CHAR | CTF_INT_SIGNED) && e.cte_bits == NBBY) { 104 size_t size = (ep->cte_bits + (NBBY - 1)) / NBBY; 118 shift = off % NBBY; 125 shift = NBBY - shift; 132 if (off % NBBY != 0) 146 ulong_t addr = pap->pa_addr + off / NBBY; 160 size = e.cte_bits / NBBY; 161 if (size > 8 || (e.cte_bits % NBBY) != 0 || (size & (size - 1)) != 0) { 167 (CTF_INT_CHAR | CTF_INT_SIGNED) && (e).cte_bits == NBBY) { [all...] |
/illumos-gate/usr/src/ucbhead/sys/ |
H A D | param.h | 178 #ifndef NBBY 179 #define NBBY 8 /* number of bits per byte */ macro 250 #define setbit(a, i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) 251 #define clrbit(a, i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) 252 #define isset(a, i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) 253 #define isclr(a, i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | compress.c | 133 int copymask = 1 << (NBBY - 1); 139 if ((copymask <<= 1) == (1 << NBBY)) { 140 if (dst >= (uchar_t *)d_start + s_len - 1 - 2 * NBBY) { 165 *dst++ = ((mlen - MATCH_MIN) << (NBBY - MATCH_BITS)) | 166 (offset >> NBBY); 184 int copymask = 1 << (NBBY - 1); 194 if ((copymask <<= 1) == (1 << NBBY)) { 199 int mlen = (src[0] >> (NBBY - MATCH_BITS)) + MATCH_MIN; 200 int offset = ((src[0] << NBBY) | src[1]) & OFFSET_MASK;
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | param.h | 221 #define NBBY 8 /* number of bits in a byte */ macro 282 #define setbit(a,i) (((unsigned char *)(a))[(i)/NBBY] |= 1<<((i)%NBBY)) 283 #define clrbit(a,i) (((unsigned char *)(a))[(i)/NBBY] &= ~(1<<((i)%NBBY))) 285 (((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY))) 287 ((((const unsigned char *)(a))[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_print.c | 90 (CTF_INT_CHAR | CTF_INT_SIGNED) && (e).cte_bits == NBBY) 158 caddr_t addr = pap->pa_addr + off / NBBY; 161 size_t size = (ep->cte_bits + (NBBY - 1)) / NBBY; 175 shift = off % NBBY; 182 shift = NBBY - shift; 189 if (off % NBBY != 0) 235 caddr_t addr = pap->pa_addr + off / NBBY; 255 size = e.cte_bits / NBBY; 256 if (size > 8 || (e.cte_bits % NBBY) ! [all...] |
/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_hash.c | 127 uint32_t key_bits[NBBY] = { 0 }; 137 for (j = 1, mask = 1 << (NBBY - 1); j < NBBY; j++, mask >>= 1) { 145 for (j = 0, mask = 1 << (NBBY - 1); 146 j < NBBY;
|
/illumos-gate/usr/src/uts/common/net/ |
H A D | bridge_impl.h | 150 (P2ROUNDUP(VLAN_ID_MAX, NBBY) / NBBY) 152 #define BRIDGE_VLAN_ISSET(l, v) ((l)->bl_vlans[(v) / NBBY] & \ 153 (1 << ((v) % NBBY))) 155 #define BRIDGE_VLAN_SET(l, v) ((l)->bl_vlans[(v) / NBBY] |= \ 156 (1 << ((v) % NBBY))) 158 #define BRIDGE_VLAN_CLR(l, v) ((l)->bl_vlans[(v) / NBBY] &= \ 159 ~(1 << ((v) % NBBY))) 161 #define BRIDGE_AF_ISSET(l, v) ((l)->bl_afs[(v) / NBBY] & \ 162 (1 << ((v) % NBBY))) [all...] |
H A D | trill.h | 155 (((uint8_t *)(TNI_VLANFILTERSPTR(v)))+((n)*((1<<12)/NBBY))) 160 (((1<<12)/NBBY) * (v)->tni_adjcount))
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | trill_impl.h | 57 #define TRILL_VLANS_ARRSIZE ((1<<12)/NBBY) 58 #define TRILL_VLANBIT(v) ((v) % NBBY) 59 #define TRILL_VLANBYTE(v) ((v)/NBBY)
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | select.h | 114 * of NBBY in <sys/param.h>. 118 #ifndef NBBY /* number of bits per byte */ 119 #define NBBY _NBBY macro 124 #define NFDBITS (sizeof (fd_mask) * NBBY) /* bits per mask */
|
H A D | priv_impl.h | 89 #ifndef NBBY 90 #define NBBY 8 macro 93 #define __NBWRD (NBBY * sizeof (priv_chunk_t))
|
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/ |
H A D | fsck.h | 215 #define bitloc(a, i) ((a)[(i)/NBBY]) 216 #define setbit(a, i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) 217 #define clrbit(a, i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) 218 #define isset(a, i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) 219 #define isclr(a, i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
|
/illumos-gate/usr/src/uts/common/io/ath/ |
H A D | ath_impl.h | 63 #define setbit(a, i) ((a)[(i)/NBBY] |= (1 << ((i)%NBBY))) 64 #define clrbit(a, i) ((a)[(i)/NBBY] &= ~(1 << ((i)%NBBY))) 65 #define isset(a, i) ((a)[(i)/NBBY] & (1 << ((i)%NBBY))) 66 #define isclr(a, i) (!((a)[(i)/NBBY] & (1 << ((i)%NBBY))))
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | ufs_fs.h | 127 #define UFS_MAXOFFSET_T ((1LL << NBBY * sizeof (daddr32_t) + DEV_BSHIFT - 1) \ 599 (((map)[(loc) / NBBY] >> ((loc) % NBBY)) & \ 600 (0xff >> (NBBY - (fs)->fs_frag))) 733 #define bitloc(a, i) ((a)[(i)/NBBY]) 734 #define setbit(a, i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) 735 #define clrbit(a, i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) 736 #define isset(a, i) ((a)[(i)/NBBY] [all...] |
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_print.c | 91 (CTF_INT_CHAR | CTF_INT_SIGNED) && (e).cte_bits == NBBY) 276 if (off % NBBY != 0) { 281 mdb_printf("%#lr", off / NBBY); 286 tn, member, off / NBBY); 287 if (off % NBBY != 0) 288 mdb_printf(".%lr", off % NBBY); 863 mdb_tgt_addr_t addr = pap->pa_addr + off / NBBY; 864 size_t size = (ep->cte_bits + (NBBY - 1)) / NBBY; 875 if (ep->cte_bits > sizeof (value) * NBBY [all...] |
/illumos-gate/usr/src/uts/common/io/net80211/ |
H A D | net80211_impl.h | 363 #define ieee80211_setbit(a, i) ((a)[(i)/NBBY] |= (1 << ((i)%NBBY))) 364 #define ieee80211_clrbit(a, i) ((a)[(i)/NBBY] &= ~(1 << ((i)%NBBY))) 365 #define ieee80211_isset(a, i) ((a)[(i)/NBBY] & (1 << ((i)%NBBY))) 366 #define ieee80211_isclr(a, i) (!((a)[(i)/NBBY] & (1 << ((i)%NBBY))))
|