Searched defs:bit (Results 51 - 75 of 147) sorted by relevance

123456

/illumos-gate/usr/src/uts/sun4u/io/i2c/clients/
H A Dssc050.c42 #define SSC050_BIT_REG(port, bit) (SSC050_PORT_BIT_REG(port) | (bit))
686 ssc050_get_port_bit(dev_info_t *dip, int port, int bit, uchar_t *rval, argument
691 int reg = (uchar_t)SSC050_BIT_REG(port, bit);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dndbm.c404 long bit; local
407 bit = db->dbm_hmask+1;
409 bit >>= 1;
410 if (bit == 0)
412 if ((hash&bit) == 0)
413 return (hash|bit);
414 hash &= ~bit;
917 /* could consider to make it 32-bit int table to minimize memory usage */
/illumos-gate/usr/src/common/atomic/
H A Datomic.c517 ulong_t bit = (1UL << value); local
518 if ((*target & bit) != 0)
520 *target |= bit;
527 ulong_t bit = (1UL << value); local
528 if ((*target & bit) == 0)
530 *target &= ~bit;
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dundi.c149 int bit; local
155 bit = FIRING_SQUAD_TARGET_BIT ( target );
156 lineup->targets[index] = ( shoot << bit ) |
157 ( lineup->targets[index] & ~( 1 << bit ) );
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dlgrp.c567 klgrpset_t bit = 1; local
572 for (id = 0; (id < max_lgrp) && !(set & bit); id++, bit <<= 1)
/illumos-gate/usr/src/uts/common/io/arn/
H A Darn_regd.c343 ath9k_regd_is_bit_set(int bit, uint64_t *bitmask) argument
348 byteOffset = bit / 64;
349 bitnum = bit - byteOffset * 64;
383 enum reg_ext_bitmap bit)
385 return ((ah->ah_currentRDExt & (1 << bit)) ? B_TRUE : B_FALSE);
382 ath9k_regd_get_eeprom_reg_ext_bits(struct ath_hal *ah, enum reg_ext_bitmap bit) argument
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dpm3393.c118 2. Enable PM3393 Master Interrupt bit(INTE)
119 3. Enable ELMER's PM3393 bit.
219 * bit WCIMODE=0 for a clear-on-read.
455 /* calculate crc one bit at a time */
504 int bit; local
508 bit = (calc_crc(addr, ETH_ALEN) >> 23) & 0x3f; /* bit[23:28] */
509 mc_filter[bit >> 4] |= 1 << (bit & 0xf);
778 (void) t1_tpi_write(adapter, OFFSET(0x320c), 0x0000ffff); /* EFLX enable overflow interrupt The other bit ar
[all...]
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhxge_pfc.c353 * Note that mchash is an 8 bit value and thus 0 <= mchash <= 255.
478 * Convert a byte array to a 48 bit value.
1199 * Calculate the bit in the multicast address filter
1210 int bit; local
1217 for (bit = 0; bit < 8; bit++) {
/illumos-gate/usr/src/uts/common/io/idm/
H A Didm_impl.c630 * A pool of IDs is a pool of 16 bit numbers. It is implemented as a bitmap.
631 * A bit set to '1' indicates that that particular value has been allocated.
632 * The allocation process is done shifting a bit through the whole bitmap.
633 * The current position of that index bit is kept in the idm_idpool_t
635 * a bit index (0 to 7).
731 uint8_t bit; local
745 bit = pool->id_bit;
748 while (bit) {
749 if (byte & bit) {
750 bit
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Daggr.h111 #error "unknown bit fields ordering"
113 } bit; member in union:__anon7011
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhash_page.c1079 int32_t bit, first_page, free_bit, free_page, i, in_use_bits, j; local
1108 bit = hashp->hdr.last_freed &
1110 j = bit / BITS_PER_MAP;
1111 bit = bit & ~(BITS_PER_MAP - 1);
1113 bit = 0;
1116 for (; bit <= in_use_bits; j++, bit += BITS_PER_MAP)
1148 * allocated with 1 clear bit. Actually, you are going to
1152 * the first bit o
[all...]
/illumos-gate/usr/src/uts/sun4v/io/niumx/
H A Dniumx.c283 /* hv devhdl: low 28-bit of 1st "reg" entry's addr.hi */
1219 niumx_dbg(niumx_debug_bit_t bit, dev_info_t *dip, char *fmt, ...) argument
1224 if (!(1ull << bit & niumx_debug_flags))
1229 cmn_err(CE_NOTE, "%s: %s", niumx_debug_sym[bit], msgbuf);
/illumos-gate/usr/src/uts/sun4u/cherrystone/os/
H A Dcherrystone.c226 int bit = CHERRY_KEY_POLL_BIT; local
229 err = cherry_ssc050_get_port_bit(dip, port, bit,
371 * The "reg" property returns 4 32-bit values. The first two are
372 * combined to form a 64-bit address. The second two are for a
373 * 64-bit size, but we don't actually need to look at that value.
414 * If the upper bit is set, we have a valid mask
/illumos-gate/usr/src/uts/common/io/efe/
H A Defe.c739 int bit; local
755 bit = 1U << (val % MCHASHSZ);
760 efep->efe_mchash[index] |= bit;
767 efep->efe_mchash[index] &= ~bit;
1644 efe_eeprom_writebit(efe_t *efep, int bit) argument
1650 EECTL_EESK | (bit ? EECTL_EEDI : 0));
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzap_leaf.c803 int bit = 64 - 1 - zap_leaf_phys(l)->l_hdr.lh_prefix_len; local
821 * Transfer entries whose hash bit 'bit' is set to nl; rehash
834 if (le->le_hash & (1ULL << bit))
/illumos-gate/usr/src/uts/sun4u/daktari/os/
H A Ddaktari.c218 int bit = DAK_KEY_POLL_BIT; local
221 err = daktari_ssc050_get_port_bit(dip, port, bit,
363 * The "reg" property returns 4 32-bit values. The first two are
364 * combined to form a 64-bit address. The second two are for a
365 * 64-bit size, but we don't actually need to look at that value.
406 * If the upper bit is set, we have a valid mask
/illumos-gate/usr/src/lib/rpcsec_gss/
H A Dsvc_rpcsec_gss.c313 uint_t bit; local
343 * If within sequence window, set the bit corresponding to it
347 bit = j > 0 ? (1 << j) : 1;
349 if (cl->seq_bits[i] & bit)
351 cl->seq_bits[i] |= bit;
1217 * The client context handle is a 32-bit key (unsigned int).
/illumos-gate/usr/src/lib/fm/libdiagcode/common/
H A Ddiagcode.c454 /* convert code back to bit vector */
709 int bit; /* for looping through bits */ local
710 int limbit; /* upper bit limit when looping */
787 * - 2 bit code type, set to 01
788 * - 2 bit size field
801 for (bit = 0; bit < infop->numx; bit++) {
811 for (bit = 0; bit < info
840 int bit; /* for looping through bits */ local
1214 int bit; local
1232 int bit; local
[all...]
/illumos-gate/usr/src/common/lzma/
H A DLzmaDec.c199 unsigned bit; local
202 bit = (matchByte & offs);
203 probLit = prob + offs + bit + symbol;
204 GET_BIT2(probLit, symbol, offs &= ~bit, offs &= bit)
547 unsigned bit; local
550 bit = (matchByte & offs);
551 probLit = prob + offs + bit + symbol;
552 GET_BIT2_CHECK(probLit, symbol, offs &= ~bit, offs &= bit)
[all...]
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_bitmap.c84 * Chunk of bit map in each node.
315 * Generic function to set bit in a chunk. This can set or unset the
316 * specified bit.
343 * Generic function to get bit in a chunk.
349 uint_t bit; local
353 bit = 1 <<(bn & BMAP_BPW_MASK);
354 rv = (cp->c_bmp[bn >> BMAP_BPW_SHIFT] & bit) != 0;
507 * Find and return the chunks which holds the specified bit. Allocate
648 * Allocate a bit map and return a handle to it.
848 * Generic function to set bit i
895 uint_t bit; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ospf.h50 uint32_t bit; member in struct:bits
57 #define OSPF_OPTION_T 0x01 /* RFC 2328 T bit: TOS support */
58 #define OSPF_OPTION_E 0x02 /* E bit: External routes advertised */
59 #define OSPF_OPTION_MC 0x04 /* MC bit: Multicast capable */
60 #define OSPF_OPTION_N 0x08 /* N bit: For type-7 LSA */
61 #define OSPF_OPTION_R 0x10 /* R bit: Router bit */
62 #define OSPF_OPTION_DC 0x20 /* DC bit: Demand circuits */
64 #define OSPF_OPTION_V6 0x01 /* RFC 2740 V6 bit */
/illumos-gate/usr/src/cmd/ctstat/
H A Dctstat.c104 uint_t bit; member in struct:optvect
136 if (desc[i].bit & bits) {
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/
H A Dcmd_Lxcache.c138 " bit = %d\n"
201 cmd_ptrsubtype_t pstype, int32_t index, int8_t way, int16_t bit)
210 (Lxcache->Lxcache_bit == (uint16_t)bit))
220 int8_t way, int16_t bit)
229 "\n%s:cpu_id %d:Creating new Lxcache for index=%d way=%d bit=%d\n",
230 pstype_name, cpu->cpu_cpuid, index, way, bit);
242 Lxcache->Lxcache_bit = (uint16_t)bit;
272 index, way, bit);
282 bit)) != 0 ||
290 "%s_asru_%d_%d_%d", pstype_name, index, way, bit);
200 cmd_Lxcache_lookup_by_type_index_way_bit(cmd_cpu_t *cpu, cmd_ptrsubtype_t pstype, int32_t index, int8_t way, int16_t bit) argument
218 cmd_Lxcache_create(fmd_hdl_t *hdl, cmd_xr_t *xr, cmd_cpu_t *cpu, nvlist_t *modasru, cmd_ptrsubtype_t pstype, int32_t index, int8_t way, int16_t bit) argument
472 cmd_Lxcache_serdnm_create(fmd_hdl_t *hdl, uint32_t cpu_id, cmd_ptrsubtype_t pstype, int32_t index, int8_t way, int16_t bit) argument
489 cmd_Lxcache_anonymous_serdnm_create(fmd_hdl_t *hdl, uint32_t cpu_id, cmd_ptrsubtype_t pstype, int32_t index, int8_t way, int16_t bit) argument
1036 cmd_Lxcache_lookup_by_type_index_bit_reason(cmd_cpu_t *cpu, cmd_ptrsubtype_t pstype, int32_t index, int16_t bit, int32_t reason) argument
1055 cmd_Lxcache_destroy_anonymous_serd_engines(fmd_hdl_t *hdl, cmd_cpu_t *cpu, cmd_ptrsubtype_t type, int32_t index, int16_t bit) argument
1093 uint16_t bit; local
[all...]
H A Dcmd_Lxcacheerr.c77 /* Macro for putting 64-bit onto stack as two 32-bit ints */
110 * e (for ecctable) maps single bit positions (0-127, or 0-0x7F) to the
140 * This table is used to determine which bit(s) is(are) bad when an ECC
141 * error occurs. The array is indexed by an 9-bit syndrome. The entries
144 * 00-127 The number of the bad bit, when only one bit is bad.
145 * 128 ECC bit C0 is bad.
146 * 129 ECC bit C1 is bad.
147 * 130 ECC bit C
331 bit_to_way(cmd_ptrsubtype_t pstype, uint32_t bit) argument
594 find_bit_stickiness(uint64_t *tag_data, int8_t way, int16_t bit) argument
964 int16_t tag_bit, bit, sticky_bit; local
1629 int16_t bit; local
[all...]
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dengine.c147 ** each state (ST_*) corresponds to bit in an int value (1 << state)
154 #define MI_MASK(x) (0x0001 << (x)) /* generate a bit "mask" for a state */
428 ** if the IGNO bit is set: "ignore" the error,
541 ** GET_NR_BIT -- get "no reply" bit matching state
547 ** 0: no matching bit
548 ** >0: the matching "no reply" bit
557 unsigned long bit; local
562 bit = SMFIP_NR_CONN;
565 bit = SMFIP_NR_HELO;
568 bit
616 unsigned long bit; local
[all...]

Completed in 131 milliseconds

123456