Home
last modified time | relevance | path

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

12345678910>>...21

/titanic_53/usr/src/uts/sun4u/io/px/
H A Dpx_csr.h50 #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 Dpx_err.c123 #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 …]
/titanic_53/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
/titanic_53/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()
125 bit = lrand48() % (len * 8); in corrupt()
[all …]
/titanic_53/usr/src/uts/sun4/io/px/
H A Dpx_debug.c129 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 …]
/titanic_53/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))
/titanic_53/usr/src/uts/common/io/nxge/
H A Dnxge_fflp_hash.c115 uint32_t index, bit, byte, crc; in nxge_crc32c_init() local
120 for (bit = 0; bit < 8; bit++) { in nxge_crc32c_init()
141 uint16_t index, bit, byte; in nxge_crc_ccitt_init() local
146 for (bit = 0; bit < 8; bit++) { in nxge_crc_ccitt_init()
281 uint32_t crc, bit, byte, index; in nxge_init_h1_table() local
286 for (bit = 0; bit < 8; bit++) { in nxge_init_h1_table()
305 int bit, byte; in nxge_compute_h1_serial() local
311 for (bit = 0; bit < 8; bit++) { in nxge_compute_h1_serial()
313 ((buf[byte] << bit) & 0x80)) ? in nxge_compute_h1_serial()
/titanic_53/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))))
/titanic_53/usr/src/cmd/sgs/rtld.4.x/
H A Dumultiply.s71 be umul_4bit ! 4-bit multiplier
72 sethi %hi(0xffff0000), %o5 ! mask for 16-bit case; have to
77 be,a umul_8bit ! 8-bit multiplier
81 be,a umul_12bit ! 12-bit multiplier
85 be,a umul_16bit ! 16-bit multiplier
130 ! With 32-bit twos-complement numbers, -x can be represented as
135 ! to the left of the sign bit. So:
146 ! But for unsigned multiplies, the high-order bit of the multiplicand
147 ! is incorrectly treated as a sign bit. For unsigned multiplies where
148 ! the high-order bit of the multiplicand is one, the result is
[all …]
/titanic_53/usr/src/uts/common/io/aggr/
H A Daggr_lacp.c292 pl->ActorAdminPortState.bit.activity = B_FALSE; in aggr_lacp_init_port()
293 pl->ActorAdminPortState.bit.timeout = B_TRUE; in aggr_lacp_init_port()
294 pl->ActorAdminPortState.bit.aggregation = B_TRUE; in aggr_lacp_init_port()
295 pl->ActorAdminPortState.bit.sync = B_FALSE; in aggr_lacp_init_port()
296 pl->ActorAdminPortState.bit.collecting = B_FALSE; in aggr_lacp_init_port()
297 pl->ActorAdminPortState.bit.distributing = B_FALSE; in aggr_lacp_init_port()
298 pl->ActorAdminPortState.bit.defaulted = B_FALSE; in aggr_lacp_init_port()
299 pl->ActorAdminPortState.bit.expired = B_FALSE; in aggr_lacp_init_port()
307 pl->PartnerAdminPortState.bit.timeout = in aggr_lacp_init_port()
308 pl->PartnerOperPortState.bit.timeout = B_TRUE; in aggr_lacp_init_port()
[all …]
/titanic_53/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()
/titanic_53/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
/titanic_53/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()
/titanic_53/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
/titanic_53/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
/titanic_53/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
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 …]
/titanic_53/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))))
/titanic_53/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()
/titanic_53/usr/src/common/atomic/sparcv9/
H A Datomic.s214 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 …]
/titanic_53/usr/src/boot/lib/libc/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()
/titanic_53/usr/src/cmd/fm/modules/common/cpumem-retire/
H A Dcma_cache.c43 uint16_t bit = 0; in cma_cache_way_retire() local
97 if (nvlist_lookup_uint16(asru, FM_FMRI_CPU_CACHE_BIT, &bit) != 0) { in cma_cache_way_retire()
108 cpuid, index, way, bit, type); in cma_cache_way_retire()
118 " type 0x%02x", cpuid, index, way, bit, type); in cma_cache_way_retire()
126 cache_info.bit = bit; in cma_cache_way_retire()

12345678910>>...21