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

1234567

/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dasm-goto-lables.c1 static inline int __static_cpu_has(unsigned char bit) argument
9 " .byte %P0\n" /* feature bit */
14 : : "i" (bit) : : t_no, ble);
/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/tools/smatch/src/
H A Dbitmap.h13 unsigned long bit = nr & (BITS_IN_LONG-1); local
14 return (bitmap[offset] >> bit) & 1;
20 unsigned long bit = nr & (BITS_IN_LONG-1); local
21 bitmap[offset] |= 1UL << bit;
27 unsigned long bit = nr & (BITS_IN_LONG-1); local
28 bitmap[offset] &= ~(1UL << bit);
34 unsigned long bit = nr & (BITS_IN_LONG-1); local
36 unsigned long mask = 1UL << bit;
44 unsigned long bit = nr & (BITS_IN_LONG-1); local
46 unsigned long mask = 1UL << bit;
[all...]
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dcudbg.c59 int bit = type % 8; local
61 bitmap[index] |= (1 << bit);
68 int bit = type % 8; local
70 bitmap[index] &= ~(1 << 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/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/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/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/uts/i86pc/io/pcplusmp/
H A Dapic_regops.c185 int bit = ((0x1 << (X2APIC_ENABLE_BIT + 1)) | local
190 if ((apic_base_msr & bit) == 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/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/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/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/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/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;

Completed in 60 milliseconds

1234567