Home
last modified time | relevance | path

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

12345678910>>...20

/titanic_41/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_41/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_41/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_41/usr/src/lib/libshell/misc/
H A Dbuildksh93.readme33 for { 32bit SPARC, 64bit SPARC, 32bit i386, 64bit AMD64, 32bit S390,
34 64bit S390x }) which are moved later to their matching OS/Net build
54 ## Unpack the sources (32bit SPARC):
60 ## Build ast-ksh for 32bit SPARC
62 # - "build.solaris.sparc.32bit.suncc" - 32bit SPARC
63 # - "build.solaris.sparc.64bit.suncc" - 64bit SPARC
64 # - "build.solaris.i386.32bit.suncc" - 32bit x86/i386
65 # - "build.solaris.i386.64bit.suncc" - 64bit x86/AMD64
66 # - "build.solaris.s390.32bit.gcc" - 32bit SystemZ/S390
67 # - "build.solaris.s390.64bit.gcc" - 64bit SystemZ/S390x
[all …]
/titanic_41/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_41/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_41/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_41/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_41/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_41/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_41/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_41/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_41/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_41/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_41/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_41/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_41/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_41/usr/src/uts/common/io/drm/
H A Ddrm_context.c87 int bit; in drm_ctxbitmap_next() local
93 bit = find_first_zero_bit(dev->ctx_bitmap, DRM_MAX_CTXBITMAP); in drm_ctxbitmap_next()
94 if (bit >= DRM_MAX_CTXBITMAP) { in drm_ctxbitmap_next()
99 set_bit(bit, dev->ctx_bitmap); in drm_ctxbitmap_next()
100 DRM_DEBUG("drm_ctxbitmap_next: bit : %d", bit); in drm_ctxbitmap_next()
101 if ((bit+1) > dev->max_context) { in drm_ctxbitmap_next()
102 dev->max_context = (bit+1); in drm_ctxbitmap_next()
112 clear_bit(bit, dev->ctx_bitmap); in drm_ctxbitmap_next()
117 dev->context_sareas[bit] = NULL; in drm_ctxbitmap_next()
123 clear_bit(bit, dev->ctx_bitmap); in drm_ctxbitmap_next()
[all …]
/titanic_41/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()
/titanic_41/usr/src/cmd/sgs/libelf/common/
H A DREADME.LFS28 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 …]
/titanic_41/usr/src/uts/common/ipp/ipgpc/
H A Dtrie.c125 int bit; in t_split() local
141 bit = EXTRACTBIT(nodep->val, pos, key_len); in t_split()
142 if (bit == ZERO) { in t_split()
219 int bit; in t_insert() local
249 bit = EXTRACTBIT(key, (pos - 1), key_len); in t_insert()
255 if (bit != EXTRACTBIT(c_node->val, (pos - 1), in t_insert()
279 if (bit == ZERO) { in t_insert()
333 int bit, i; in t_insert6() local
359 bit = EXTRACTBIT(key.s6_addr32[i], (pos - 1), type_len); in t_insert6()
360 if (bit == ZERO) { in t_insert6()
[all …]
/titanic_41/usr/src/uts/common/sys/
H A Dpcmcia.h279 #define PR_GET(map, bit) (((uchar_t *)(map))[(bit)/PR_WORDSIZE] &\ argument
280 (1 << ((bit) & PR_MASK)))
281 #define PR_SET(map, bit) (((uchar_t *)(map))[(bit)/PR_WORDSIZE] |=\ argument
282 (1 << ((bit) & PR_MASK)))
283 #define PR_CLEAR(map, bit) (((uchar_t *)(map))[(bit)/PR_WORDSIZE] &=\ argument
284 ~(1 << ((bit) & PR_MASK)))
285 #define PR_ADDR(map, bit) (((uchar_t *)(map)) + ((bit)/PR_WORDSIZE)) argument
/titanic_41/usr/src/lib/libbc/libc/gen/common/sparc/
H A Dffs.s38 clr %o1 ! delay slot, return zero if no bit set
40 inc %o1 ! bit that will get checked
42 be 1b ! if bit is zero, keep checking
43 srl %o0, 1, %o0 ! shift input right until we hit a 1 bit

12345678910>>...20