/illumos-gate/usr/src/test/util-tests/tests/mdb/format/ |
H A D | tst.format-j.mdb.out | 5 … |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+-- bit 0 mask 0x0000000000000001 6 … ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+--- bit 1 mask 0x0000000000000002 7 … |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+---- bit 2 mask 0x0000000000000004 8 … ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+----- bit 3 mask 0x0000000000000008 9 … |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+------ bit 4 mask 0x0000000000000010 10 … ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+------- bit 5 mask 0x0000000000000020 11 … |||||||||||||||||||||||||||||||||||||||||||||||||||||||||+-------- bit 6 mask 0x0000000000000040 12 … ||||||||||||||||||||||||||||||||||||||||||||||||||||||||+--------- bit 7 mask 0x0000000000000080 13 … |||||||||||||||||||||||||||||||||||||||||||||||||||||||+---------- bit 8 mask 0x0000000000000100 14 … ||||||||||||||||||||||||||||||||||||||||||||||||||||||+----------- bit 9 mask 0x0000000000000200 [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/px/ |
H A D | px_csr.h | 50 #define CSR_FR(base, off, bit) \ argument 52 (off ## _ ## bit)) & (off ## _ ## bit ## _MASK)) 54 #define CSRA_FR(base, off, index, bit) \ argument 56 (off ## _ ## bit)) & (off ## _ ## bit ## _MASK)) 58 #define CSR_FS(base, off, bit, val) \ argument 61 ~(((uint64_t)(off ## _ ## bit ## _MASK)) << \ 62 (off ## _ ## bit))) | (((uint64_t)(val)) << (off ## _ ## bit)))) 64 #define CSRA_FS(base, off, index, bit, val) \ argument 67 ~(((uint64_t)(off ## _ ## bit ## _MASK)) << \ 68 (off ## _ ## bit))) | (((uint64_t)(val)) << (off ## _ ## bit)))) [all …]
|
H A D | px_err.c | 123 #define JBC_BIT_DESC(bit, hdl, erpt) \ argument 124 JBC_INTERRUPT_STATUS_ ## bit ## _P, \ 128 PX_ERR_JBC_CLASS(bit) }, \ 129 { JBC_INTERRUPT_STATUS_ ## bit ## _S, \ 133 PX_ERR_JBC_CLASS(bit) 191 #define UBC_BIT_DESC(bit, hdl, erpt) \ argument 192 UBC_INTERRUPT_STATUS_ ## bit ## _P, \ 196 PX_ERR_UBC_CLASS(bit) }, \ 197 { UBC_INTERRUPT_STATUS_ ## bit ## _S, \ 201 PX_ERR_UBC_CLASS(bit) [all …]
|
/illumos-gate/usr/src/cmd/sendmail/include/sm/ |
H A D | bitops.h | 34 # define _BITWORD(bit) (((unsigned char)(bit) / (BYTEBITS * sizeof (int))) & BITMAPMAX) argument 35 # define _BITBIT(bit) ((unsigned int)1 << ((unsigned char)(bit) % (BYTEBITS * sizeof (int)))) argument 40 # define bitidx(bit) ((unsigned int) (bit) & 0xff) argument 43 # define bitnset(bit, map) ((map)[_BITWORD(bit)] & _BITBIT(bit)) argument 46 # define setbitn(bit, map) (map)[_BITWORD(bit)] |= _BITBIT(bit) argument 49 # define clrbitn(bit, map) (map)[_BITWORD(bit)] &= ~_BITBIT(bit) argument 55 # define bitset(bit, word) (((word) & (bit)) != 0) argument
|
/illumos-gate/usr/src/cmd/dtrace/test/cmd/baddof/ |
H A D | baddof.c | 58 int bit, i; in corrupt() local 70 for (bit = 0; bit < len * 8; bit++) { in corrupt() 71 saved = buf[bit / 8]; in corrupt() 72 buf[bit / 8] ^= (1 << (bit % 8)); in corrupt() 74 if ((bit % 100) == 0) in corrupt() 75 printf("%d\n", bit); in corrupt() 81 buf[bit / 8] = saved; in corrupt() 94 buf[bit / 8] = saved; in corrupt() 112 buf[bit / 8] = saved; in corrupt() 125 bit = lrand48() % (len * 8); in corrupt() [all …]
|
/illumos-gate/usr/src/uts/sun4/io/px/ |
H A D | px_debug.c | 129 static void px_dbg_print(px_debug_bit_t bit, dev_info_t *dip, char *fmt, 131 static void px_dbg_queue(px_debug_bit_t bit, dev_info_t *dip, char *fmt, 140 px_dbg_print(px_debug_bit_t bit, dev_info_t *dip, char *fmt, va_list args) in px_dbg_print() argument 142 int cont = bit >> DBG_BITS; in px_dbg_print() 149 ddi_get_instance(dip), px_debug_sym[bit]); in px_dbg_print() 151 prom_printf("px: %s: ", px_debug_sym[bit]); in px_dbg_print() 164 px_dbg_queue(px_debug_bit_t bit, dev_info_t *dip, char *fmt, va_list args) in px_dbg_queue() argument 189 msg_p->bit = bit; in px_dbg_queue() 220 px_dbg_print(msg_p->bit, msg_p->dip, msg_p->msg, NULL); in px_dbg_drain() 231 px_dbg(px_debug_bit_t bit, dev_info_t *dip, char *fmt, ...) in px_dbg() argument [all …]
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | bitstring.h | 42 #define _bit_byte(bit) \ argument 43 ((bit) >> 3) 46 #define _bit_mask(bit) \ argument 47 (1 << ((bit)&0x7)) 63 #define bit_test(name, bit) \ argument 64 ((name)[_bit_byte(bit)] & _bit_mask(bit)) 67 #define bit_set(name, bit) \ argument 68 ((name)[_bit_byte(bit)] |= _bit_mask(bit)) 71 #define bit_clear(name, bit) \ argument 72 ((name)[_bit_byte(bit)] &= ~_bit_mask(bit))
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | bitmap.h | 13 unsigned long bit = nr & (BITS_IN_LONG-1); in test_bit() local 14 return (bitmap[offset] >> bit) & 1; in test_bit() 20 unsigned long bit = nr & (BITS_IN_LONG-1); in set_bit() local 21 bitmap[offset] |= 1UL << bit; in set_bit() 27 unsigned long bit = nr & (BITS_IN_LONG-1); in clear_bit() local 28 bitmap[offset] &= ~(1UL << bit); in clear_bit() 34 unsigned long bit = nr & (BITS_IN_LONG-1); in test_and_set_bit() local 36 unsigned long mask = 1UL << bit; in test_and_set_bit() 44 unsigned long bit = nr & (BITS_IN_LONG-1); in test_and_clear_bit() local 46 unsigned long mask = 1UL << bit; in test_and_clear_bit()
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_fflp_hash.c | 114 uint32_t index, bit, byte, crc; in nxge_crc32c_init() local 119 for (bit = 0; bit < 8; bit++) { in nxge_crc32c_init() 140 uint16_t index, bit, byte; in nxge_crc_ccitt_init() local 145 for (bit = 0; bit < 8; bit++) { in nxge_crc_ccitt_init() 280 uint32_t crc, bit, byte, index; in nxge_init_h1_table() local 285 for (bit = 0; bit < 8; bit++) { in nxge_init_h1_table() 304 int bit, byte; in nxge_compute_h1_serial() local 310 for (bit = 0; bit < 8; bit++) { in nxge_compute_h1_serial() 312 ((buf[byte] << bit) & 0x80)) ? in nxge_compute_h1_serial()
|
/illumos-gate/usr/src/uts/common/io/aggr/ |
H A D | aggr_lacp.c | 294 pl->ActorAdminPortState.bit.activity = B_FALSE; in aggr_lacp_init_port() 295 pl->ActorAdminPortState.bit.timeout = B_TRUE; in aggr_lacp_init_port() 296 pl->ActorAdminPortState.bit.aggregation = B_TRUE; in aggr_lacp_init_port() 297 pl->ActorAdminPortState.bit.sync = B_FALSE; in aggr_lacp_init_port() 298 pl->ActorAdminPortState.bit.collecting = B_FALSE; in aggr_lacp_init_port() 299 pl->ActorAdminPortState.bit.distributing = B_FALSE; in aggr_lacp_init_port() 300 pl->ActorAdminPortState.bit.defaulted = B_FALSE; in aggr_lacp_init_port() 301 pl->ActorAdminPortState.bit.expired = B_FALSE; in aggr_lacp_init_port() 309 pl->PartnerAdminPortState.bit.timeout = in aggr_lacp_init_port() 310 pl->PartnerOperPortState.bit.timeout = B_TRUE; in aggr_lacp_init_port() [all …]
|
/illumos-gate/usr/src/uts/i86xpv/sys/ |
H A D | evtchn_impl.h | 81 #define SET_EVTCHN_BIT(bit, arrayp) \ argument 82 ((arrayp)[bit >> EVTCHN_SHIFT] |= \ 83 (1ul << ((bit) & ((1ul << EVTCHN_SHIFT) - 1)))) 84 #define CLEAR_EVTCHN_BIT(bit, arrayp) \ argument 85 ((arrayp)[bit >> EVTCHN_SHIFT] &= \ 86 ~((1ul << ((bit) & ((1ul << EVTCHN_SHIFT) - 1))))) 87 #define TEST_EVTCHN_BIT(bit, arrayp) \ argument 88 ((arrayp)[bit >> EVTCHN_SHIFT] & \ 89 (1ul << ((bit) & ((1ul << EVTCHN_SHIFT) - 1))))
|
/illumos-gate/usr/src/uts/common/io/dmfe/ |
H A D | dmfe_mii.c | 51 uint16_t bit; in dmfe_read_eeprom() local 75 for (bit = HIGH_CMD_BIT; bit != 0; bit >>= 1) { in dmfe_read_eeprom() 77 value = (bit & EEPROM_READ_CMD) ? DATA_IN : 0; in dmfe_read_eeprom() 92 for (bit = HIGH_ADDRESS_BIT; bit != 0; bit >>= 1) { in dmfe_read_eeprom() 93 value = (bit & raddr) ? DATA_IN : 0; in dmfe_read_eeprom() 109 for (bit = HIGH_DATA_BIT; bit != 0; bit >>= 1) { in dmfe_read_eeprom() 116 value |= bit; in dmfe_read_eeprom()
|
/illumos-gate/usr/src/common/atomic/sparc/ |
H A D | atomic.S | 93 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 95 sll %o3, %g1, %o3 ! %o3 = shifted to bit offset 96 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset 165 sll %o4, 3, %o4 ! %o4 = bit offset, left-to-right 166 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 168 srl %o3, %o4, %o3 ! %o3 = shifted to bit offset 169 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset 172 ! if low-order bit is 1, we will properly get an alignment fault here 303 add %o1, %o2, %o1 ! convert 2 32-bit args into 1 64-bit 330 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left [all …]
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audio1575/ |
H A D | audio1575.h | 413 #define SET8(reg, bit) PUT8(reg, GET8(reg) | (bit)) argument 414 #define SET16(reg, bit) PUT16(reg, GET16(reg) | (bit)) argument 415 #define SET32(reg, bit) PUT32(reg, GET32(reg) | (bit)) argument 416 #define CLR8(reg, bit) PUT8(reg, GET8(reg) & ~(bit)) argument 417 #define CLR16(reg, bit) PUT16(reg, GET16(reg) & ~(bit)) argument 418 #define CLR32(reg, bit) PUT32(reg, GET32(reg) & ~(bit)) argument
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | tlan.h | 456 inline void TLan_ClearBit(u8 bit, u16 port) 458 outb_p(inb_p(port) & ~bit, port); 464 inline int TLan_GetBit(u8 bit, u16 port) 466 return ((int) (inb_p(port) & bit)); 472 inline void TLan_SetBit(u8 bit, u16 port) 474 outb_p(inb_p(port) | bit, port); 478 #define TLan_ClearBit( bit, port ) outb_p(inb_p(port) & ~bit, port) argument 479 #define TLan_GetBit( bit, port ) ((int) (inb_p(port) & bit)) argument 480 #define TLan_SetBit( bit, port ) outb_p(inb_p(port) | bit, port) argument 507 #define DA( a, bit ) ( ( (u8) a[bit/8] ) & ( (u8) ( 1 << bit%8 ) ) ) argument
|
/illumos-gate/usr/src/lib/libc/i386/gen/ |
H A D | byteorder.S | 66 shrl $16, %eax / moves high 16-bit to low 16-bit 73 shrl $16, %eax / moves high 16-bit to low 16-bit 84 shrl $16, %eax / moves high 16-bit to low 16-bit 106 shrl $16, %eax / moves high 16-bit to low 16-bit 113 shrl $16, %eax / moves high 16-bit to low 16-bit
|
/illumos-gate/usr/src/common/mc/mc-amd/ |
H A D | mcamd_synd.c | 202 char bit; in mcamd_eccsynd_decode() local 209 if ((bit = eccsynd[synd]) == -1) { in mcamd_eccsynd_decode() 217 bit >= 64 ? "check" : "data", in mcamd_eccsynd_decode() 218 bit >= 64 ? bit - 64 : bit); in mcamd_eccsynd_decode() 220 *bitp = bit; in mcamd_eccsynd_decode()
|
/illumos-gate/usr/src/common/atomic/sparcv9/ |
H A D | atomic.S | 214 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 216 sll %o3, %g1, %o3 ! %o3 = shifted to bit offset 217 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset 286 sll %o4, 3, %o4 ! %o4 = bit offset, left-to-right 287 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 289 srl %o3, %o4, %o3 ! %o3 = shifted to bit offset 290 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset 293 ! if low-order bit is 1, we will properly get an alignment fault here 455 sll %g1, 3, %g1 ! %g1 = bit offset, right-to-left 457 sll %o3, %g1, %o3 ! %o3 = shifted to bit offset [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/n2rng/ |
H A D | n2rng_entp_algs.c | 57 int bit; in msb() local 63 bit = 0; in msb() 64 MSBSTEP(x, 32, bit); in msb() 65 MSBSTEP(x, 16, bit); in msb() 66 MSBSTEP(x, 8, bit); in msb() 67 MSBSTEP(x, 4, bit); in msb() 68 MSBSTEP(x, 2, bit); in msb() 69 MSBSTEP(x, 1, bit); in msb() 71 return (bit); in msb()
|
/illumos-gate/usr/src/uts/sun4u/sys/i2c/clients/ |
H A D | pcf8574_impl.h | 43 #define PCF8574_BIT_READ_MASK(byte, bit) ((byte >> bit) & 0x01) argument 52 #define PCF8574_BIT_WRITE_MASK(byte, bit, value)\ argument 53 ((value << bit) | (byte & (~(0x01 << bit))))
|
H A D | ssc100_impl.h | 43 #define SSC100_BIT_READ_MASK(byte, bit) ((byte >> bit) & 0x01) argument 52 #define SSC100_BIT_WRITE_MASK(byte, bit, value)\ argument 53 ((value << bit) | (byte & (~(0x01 << bit))))
|
/illumos-gate/usr/src/boot/libsa/string/ |
H A D | strcspn.c | 45 u_long bit; in strcspn() local 61 bit = BIT(*charset); in strcspn() 62 tbl[idx] |= bit; in strcspn() 67 bit = BIT(*s1); in strcspn() 68 if ((tbl[idx] & bit) != 0) in strcspn()
|
H A D | strspn.c | 45 u_long bit; in strspn() local 60 bit = BIT(*charset); in strspn() 61 tbl[idx] |= bit; in strspn() 66 bit = BIT(*s1); in strspn() 67 if ((tbl[idx] & bit) == 0) in strspn()
|
/illumos-gate/usr/src/uts/common/ipp/ipgpc/ |
H A D | trie.c | 123 int bit; in t_split() local 139 bit = EXTRACTBIT(nodep->val, pos, key_len); in t_split() 140 if (bit == ZERO) { in t_split() 217 int bit; in t_insert() local 247 bit = EXTRACTBIT(key, (pos - 1), key_len); in t_insert() 253 if (bit != EXTRACTBIT(c_node->val, (pos - 1), in t_insert() 277 if (bit == ZERO) { in t_insert() 331 int bit, i; in t_insert6() local 357 bit = EXTRACTBIT(key.s6_addr32[i], (pos - 1), type_len); in t_insert6() 358 if (bit == ZERO) { in t_insert6() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | README.LFS | 28 Why 32-bit libelf is not Large File Aware 31 The ELF format uses unsigned 32-bit integers for offsets, so the 32 theoretical limit on a 32-bit ELF object is 4GB. However, libelf 35 32-bit version of the link-editor also has a 2GB limit, despite 38 Large file support (LFS) is a half step between the 32 and 64-bit 39 worlds, in which an otherwise 32-bit limited process is allowed to 41 of a signed 32-bit integer, as represented by the system type off_t). 50 objects, and half to hold the result. This means that a 32-bit 53 large file aware 32-bit version of libelf has no significant value. 140 To work around the 2GB limit in 32-bit libelf: [all …]
|