Home
last modified time | relevance | path

Searched refs:bit (Results 1 – 25 of 519) sorted by relevance

12345678910>>...21

/illumos-gate/usr/src/test/util-tests/tests/mdb/format/
H A Dtst.format-j.mdb.out80 +-- bit 0 mask 0x1
87 ||||||| ||| || |||||| | || ||+--- bit 1 mask 0x00000002
88 ||||||| ||| || |||||| | || |+---- bit 2 mask 0x00000004
89 ||||||| ||| || |||||| | || +----- bit 3 mask 0x00000008
90 ||||||| ||| || |||||| | |+-------- bit 6 mask 0x00000040
91 ||||||| ||| || |||||| | +--------- bit 7 mask 0x00000080
92 ||||||| ||| || |||||| +----------- bit 9 mask 0x00000200
93 ||||||| ||| || |||||+------------- bit 11 mask 0x00000800
94 ||||||| ||| || ||||+-------------- bit 12 mask 0x00001000
95 ||||||| ||| || |||+--------------- bit 13 mask 0x00002000
[all …]
/illumos-gate/usr/src/uts/sun4u/io/px/
H A Dpx_csr.h52 (off ## _ ## bit)) & (off ## _ ## bit ## _MASK))
56 (off ## _ ## bit)) & (off ## _ ## bit ## _MASK))
62 (off ## _ ## bit))) | (((uint64_t)(val)) << (off ## _ ## bit))))
68 (off ## _ ## bit))) | (((uint64_t)(val)) << (off ## _ ## bit))))
73 ~(((uint64_t)(off ## _ ## bit ## _MASK)) << (off ## _ ## bit))))
78 ~(((uint64_t)(off ## _ ## bit ## _MASK)) << (off ## _ ## bit))))
83 (off ## _ ## bit)) & 0x1)
87 (off ## _ ## bit)) & 0x1)
92 (1ull<<(off ## _ ## bit))))
97 (1ull<<(off ## _ ## bit))))
[all …]
H A Dpx_err.c128 PX_ERR_JBC_CLASS(bit) }, \
133 PX_ERR_JBC_CLASS(bit)
201 PX_ERR_UBC_CLASS(bit)
242 PX_ERR_DMC_CLASS(bit)
274 PX_ERR_DMC_CLASS(bit)
308 PX_ERR_PEC_CLASS(bit)
331 PX_ERR_PEC_CLASS(bit)
342 PX_ERR_PEC_OB_CLASS(bit)
384 PX_ERR_PEC_CLASS(bit)
408 PX_ERR_PEC_CLASS(bit)
[all …]
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dbitops.h36 # define _BITWORD(bit) (((unsigned char)(bit) / (BYTEBITS * sizeof (int))) & BITMAPMAX) argument
37 # define _BITBIT(bit) ((unsigned int)1 << ((unsigned char)(bit) % (BYTEBITS * sizeof (int)))) argument
42 # define bitidx(bit) ((unsigned int) (bit) & 0xff) argument
45 # define bitnset(bit, map) ((map)[_BITWORD(bit)] & _BITBIT(bit)) argument
48 # define setbitn(bit, map) (map)[_BITWORD(bit)] |= _BITBIT(bit) argument
51 # define clrbitn(bit, map) (map)[_BITWORD(bit)] &= ~_BITBIT(bit) argument
57 # define bitset(bit, word) (((word) & (bit)) != 0) argument
/illumos-gate/usr/src/cmd/dtrace/test/cmd/baddof/
H A Dbaddof.c58 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()
128 pos[i] = bit / 8; in corrupt()
[all …]
/illumos-gate/usr/src/uts/sun4/io/px/
H A Dpx_debug.c142 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()
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
235 bit &= DBG_MASK; in px_dbg()
236 if (bit >= sizeof (px_debug_sym) / sizeof (char *)) in px_dbg()
238 if (!(1ull << bit & px_debug_flags)) in px_dbg()
243 px_dbg_queue(bit, dip, fmt, ap); in px_dbg()
[all …]
/illumos-gate/usr/src/boot/sys/sys/
H A Dbitstring.h42 #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 Dbitmap.h13 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 Dnxge_fflp_hash.c114 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/i86xpv/sys/
H A Devtchn_impl.h81 #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/aggr/
H A Daggr_lacp.c308 pl->PartnerAdminPortState.bit.timeout = in aggr_lacp_init_port()
380 pl->ActorOperPortState.bit.timeout = in lacp_reset_port()
381 pl->ActorAdminPortState.bit.timeout; in lacp_reset_port()
383 pl->ActorOperPortState.bit.sync = B_FALSE; in lacp_reset_port()
765 pl->ActorOperPortState.bit.collecting = in lacp_mux_sm()
808 pl->PartnerOperPortState.bit.sync) { in lacp_mux_sm()
838 pl->ActorOperPortState.bit.sync = in lacp_mux_sm()
868 if (pl->PartnerOperPortState.bit.sync) { in lacp_mux_sm()
1871 pl->PartnerOperPortState.bit.sync = in record_PDU()
1872 lacp->actor_info.state.bit.sync; in record_PDU()
[all …]
/illumos-gate/usr/src/uts/common/io/dmfe/
H A Ddmfe_mii.c51 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/uts/common/io/audio/drv/audio1575/
H A Daudio1575.h413 #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/common/atomic/sparc/
H A Datomic.s93 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
168 srl %o3, %o4, %o3 ! %o3 = shifted to bit offset
169 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset
303 add %o1, %o2, %o1 ! convert 2 32-bit args into 1 64-bit
332 sll %o3, %g1, %o3 ! %o3 = shifted to bit offset
333 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset
367 srl %o3, %o4, %o3 ! %o3 = shifted to bit offset
426 add %o1, %o2, %o1 ! convert 2 32-bit args into 1 64-bit
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dtlan.h456 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 Dbyteorder.s66 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 Dmcamd_synd.c204 char bit; in mcamd_eccsynd_decode() local
211 if ((bit = eccsynd[synd]) == -1) { in mcamd_eccsynd_decode()
219 bit >= 64 ? "check" : "data", in mcamd_eccsynd_decode()
220 bit >= 64 ? bit - 64 : bit); in mcamd_eccsynd_decode()
222 *bitp = bit; in mcamd_eccsynd_decode()
/illumos-gate/usr/src/uts/sun4v/io/n2rng/
H A Dn2rng_entp_algs.c57 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 Dpcf8574_impl.h43 #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 Dssc100_impl.h43 #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/common/atomic/sparcv9/
H A Datomic.s216 sll %o3, %g1, %o3 ! %o3 = shifted to bit offset
217 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset
289 srl %o3, %o4, %o3 ! %o3 = shifted to bit offset
290 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset
457 sll %o3, %g1, %o3 ! %o3 = shifted to bit offset
458 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset
492 srl %o3, %o4, %o3 ! %o3 = shifted to bit offset
493 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset
583 sll %o3, %g1, %o3 ! %o3 = shifted to bit offset
584 sll %o1, %g1, %o1 ! %o1 = shifted to bit offset
[all …]
/illumos-gate/usr/src/boot/libsa/string/
H A Dstrcspn.c45 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 Dstrspn.c45 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()
H A Dfls.c41 int bit; in fls() local
45 for (bit = 1; mask != 1; bit++) in fls()
47 return (bit); in fls()
H A Dffs.c44 int bit; in ffs() local
48 for (bit = 1; !(mask & 1); bit++) in ffs()
50 return (bit); in ffs()

12345678910>>...21