Searched defs:bit (Results 1 - 25 of 147) sorted by relevance

123456

/illumos-gate/usr/src/boot/lib/libc/string/
H A Dffs.c39 * Find First Set bit
44 int bit; local
48 for (bit = 1; !(mask & 1); bit++)
50 return (bit);
H A Dfls.c36 * Find Last Set bit
41 int bit; local
45 for (bit = 1; mask != 1; bit++)
47 return (bit);
H A Dstrcspn.c41 * NB: idx and bit are temporaries whose use causes gcc 3.4.2 to
45 u_long bit; local
52 #if LONG_BIT == 64 /* always better to unroll on 64-bit architectures */
61 bit = BIT(*charset);
62 tbl[idx] |= bit;
67 bit = BIT(*s1);
68 if ((tbl[idx] & bit) != 0)
H A Dstrspn.c41 * NB: idx and bit are temporaries whose use causes gcc 3.4.2 to
45 u_long bit; local
52 #if LONG_BIT == 64 /* always better to unroll on 64-bit architectures */
60 bit = BIT(*charset);
61 tbl[idx] |= bit;
66 bit = BIT(*s1);
67 if ((tbl[idx] & bit) == 0)
/illumos-gate/usr/src/uts/sun4/ml/
H A Dgenconst.c113 printf("#define\tPSR_PIL_BIT %d\n", bit(PSR_PIL));
164 bit(long mask) function
/illumos-gate/usr/src/cmd/fm/modules/common/cpumem-retire/
H A Dcma_cache.c43 uint16_t bit = 0; local
94 * Tag faults will use it to set the bit to a stable state
97 if (nvlist_lookup_uint16(asru, FM_FMRI_CPU_CACHE_BIT, &bit) != 0) {
105 "cpu %d: Unretire for index %d, way %d\n bit %d"
108 cpuid, index, way, bit, type);
117 "cpu %d: Retiring index %d, way %d\n bit %d"
118 " type 0x%02x", cpuid, index, way, bit, type);
126 cache_info.bit = bit;
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_regset.c109 ulong_t bit, bx; local
112 for (bit = 1, bx = 0; bx <= maxb; bx++, bit <<= 1) {
113 if ((word & bit) == 0) {
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dmem_cache_ioctl.h34 #define PN_ECSTATE_MASK 0x7 /* three bit field */
50 uint16_t bit; member in struct:cache_info32
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Ddisp_major_status.c193 /* code should be set to the bit offset (log_2) of a supplementary info bit */
223 message_context > 2 : print supplementary info bit (message_context-2)
234 int bit; local
307 /* compute the bit offset */
309 for (bit=0; (((OM_uint32) 1)<<bit) != LSBGET(tmp); bit++) ;
312 if ((ret = display_bit(minor_status, bit, status_string)))
316 status_value -= ((OM_uint32) 1)<<bit;
[all...]
/illumos-gate/usr/src/common/mc/mc-amd/
H A Dmcamd_synd.c31 * Indexed by syndrome, value is bit number. If value is -1, a multi-bit
55 * The first dimension of this table is the errored bit pattern, which is the
56 * column dimension of the table in the BKDG. Conveniently, the bit pattern
62 * 0 is not a valid errored bit pattern.
204 char bit; local
211 if ((bit = eccsynd[synd]) == -1) {
213 "synd 0x%x is a multi-bit syndrome\n", synd);
218 "synd 0x%x is single-bit and indicates %s bit
[all...]
/illumos-gate/usr/src/common/mpi/
H A Dmplogic.c124 Grows a if needed to set a bit to 1.
158 mp_size bit, ix; local
166 bit = bitNum % MP_DIGIT_BIT;
167 rv = (mp_err)(MP_DIGIT(a, ix) >> bit) & 1;
173 - Extracts numBits bits from a, where the least significant extracted bit
174 is bit lsbNum. Returns a negative value if error occurs.
175 - Because sign bit is used to indicate error, maximum number of bits to
179 integer a, as long as bit lsbNum is in the high order digit of a.
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_prom.c110 u_int bit)
167 *dp |= bit;
179 u_int bit)
195 * First read the existing list, filtering out 'bd' if 'bit'
226 if (board == bd && (*dp & bit) == 0)
233 if ((*dp & bit) != 0) {
105 prom_read_one( mema_disabled_t *dp, int bd, int prom_fd, char *var, u_int bit) argument
174 prom_write_one( mema_disabled_t *dp, int bd, int prom_fd, char *var, u_int bit) argument
/illumos-gate/usr/src/cmd/dtrace/test/cmd/baddof/
H A Dbaddof.c58 int bit, i; local
67 * We are going iterate through, flipping one bit and attempting
70 for (bit = 0; bit < len * 8; bit++) {
71 saved = buf[bit / 8];
72 buf[bit / 8] ^= (1 << (bit % 8));
74 if ((bit % 100) == 0)
75 printf("%d\n", bit);
[all...]
/illumos-gate/usr/src/uts/sun4v/io/n2rng/
H A Dn2rng_entp_algs.c51 * returns the position of the MSB of x. The 1 bit is position 0. An
57 int bit; local
63 bit = 0;
64 MSBSTEP(x, 32, bit);
65 MSBSTEP(x, 16, bit);
66 MSBSTEP(x, 8, bit);
67 MSBSTEP(x, 4, bit);
68 MSBSTEP(x, 2, bit);
69 MSBSTEP(x, 1, bit);
71 return (bit);
[all...]
/illumos-gate/usr/src/uts/common/io/sfxge/common/
H A Defx_wol.c140 unsigned int pos, bit; local
148 * MC bitmask is supposed to be bit swapped
149 * amongst 32 bit words(!)
160 for (bit = 0; bit < 8; ++bit) {
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dseq.c264 /* Check that a bit is set in a sequence array */
266 check_bit(seq_array_t sa, unsigned int bit) argument
268 if (bit >= NBITS)
271 return (sa->arr[bit/WBITS] & ((seq_word_t)1 << (bit % WBITS)) ? 1 : 0);
274 /* Set a bit in a sequence array */
276 set_bit(seq_array_t sa, unsigned int bit) argument
278 if (bit < NBITS)
279 sa->arr[bit/WBITS] |= ((seq_word_t)1 << (bit
[all...]
/illumos-gate/usr/src/uts/common/des/
H A Ddes_soft.c48 * Won't work without 8 bit chars and 32 bit longs
127 * the key. The low order bit of each
128 * 8-bit char is not used, so C and D are only 28
132 short bit; local
139 bit = *pcc++;
140 if (btst(userkey, bit))
142 bit = *pcd++;
143 if (btst(userkey, bit))
154 short j, k, bit; local
[all...]
/illumos-gate/usr/src/uts/common/io/dmfe/
H A Ddmfe_mii.c29 * The bit-twiddling required by the MII interface makes the functions
44 * NB: <romaddr> is a byte address but must be 16-bit aligned.
51 uint16_t bit; local
61 /* loop over multiple words... rom access in 16-bit increments */
74 /* send 3 bit read command */
75 for (bit = HIGH_CMD_BIT; bit != 0; bit >>= 1) {
77 value = (bit & EEPROM_READ_CMD) ? DATA_IN : 0;
79 /* strobe the bit i
[all...]
/illumos-gate/usr/src/uts/common/io/drm/
H A Ddrm_context.c87 int bit; local
93 bit = find_first_zero_bit(dev->ctx_bitmap, DRM_MAX_CTXBITMAP);
94 if (bit >= DRM_MAX_CTXBITMAP) {
99 set_bit(bit, dev->ctx_bitmap);
100 DRM_DEBUG("drm_ctxbitmap_next: bit : %d", bit);
101 if ((bit+1) > dev->max_context) {
102 dev->max_context = (bit+1);
112 clear_bit(bit, dev->ctx_bitmap);
117 dev->context_sareas[bit]
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dbitmap.c45 * Return index of first available bit in denoted bitmap, or -1 for
58 * Look for a word with a bit off.
70 * Found a word with a bit off. Now find the bit in the word.
72 index_t bx; /* bit index in word */
73 index_t maxbit; /* last bit to look at */
75 ulong_t bit; local
79 bit = 1;
80 for (bx = 0; bx <= maxbit; bx++, bit <<= 1) {
81 if (!(word & bit)) {
[all...]
/illumos-gate/usr/src/uts/common/io/sdcard/impl/
H A Dsda_mem.c220 uint32_t bit; local
222 for (bit = hibit; len--; bit--) {
224 val |= ((resp[bit / 32]) >> (bit % 32)) & 1;
/illumos-gate/usr/src/uts/common/ipp/ipgpc/
H A Dtrie.c89 * assume 8 bit keys for all examples
125 int bit; local
131 /* pos is past the last bit covered at this node */
140 /* find the mismatch bit */
141 bit = EXTRACTBIT(nodep->val, pos, key_len);
142 if (bit == ZERO) {
153 /* pos is before the last bit covered at this node */
154 nodep->zero->pos = pos - 1; /* link is one bit */
169 } else { /* bit == ONE */
180 /* pos is before the last bit covere
219 int bit; local
333 int bit, i; local
404 int bit; local
630 int bit, i; local
704 int bit; local
781 int bit, i; local
[all...]
/illumos-gate/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) argument
142 int cont = bit >> DBG_BITS;
149 ddi_get_instance(dip), px_debug_sym[bit]);
151 prom_printf("px: %s: ", px_debug_sym[bit]);
164 px_dbg_queue(px_debug_bit_t bit, dev_info_t *dip, char *fmt, va_list args) argument
189 msg_p->bit = bit;
220 px_dbg_print(msg_p->bit, msg_
231 px_dbg(px_debug_bit_t bit, dev_info_t *dip, char *fmt, ...) argument
[all...]
/illumos-gate/usr/src/boot/sys/boot/common/
H A Disapnp.c95 int i, bit, valid = 0, sum = 0x6a; local
100 bit = inb(isapnp_readport) == 0x55;
104 bit = (inb(isapnp_readport) == 0xaa) && bit;
107 valid = valid || bit;
111 (((sum ^ (sum >> 1) ^ bit) << 7) & 0xff);
113 data[i / 8] = (data[i / 8] >> 1) | (bit ? 0x80 : 0);
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dcpu.c255 uint16_t bit; local
289 rc |= nvlist_lookup_uint16(nvl, FM_FMRI_CPU_CACHE_BIT, &bit);
307 FM_FMRI_CPU_CACHE_BIT, bit,
323 FM_FMRI_CPU_CACHE_BIT, bit,
376 uint16_t bit = 0; local
437 bit = strtoul(s, &end, 0);
469 bit);

Completed in 104 milliseconds

123456