Searched refs:bit (Results 101 - 125 of 481) sorted by relevance

1234567891011>>

/freebsd-current/bin/cpuset/
H A Dcpuset.c224 int bit; local
226 for (once = 0, bit = 0; bit < size; bit++) {
227 if (BIT_ISSET(size, bit, mask)) {
229 printf("%d", bit);
232 printf(", %d", bit);
/freebsd-current/sys/compat/linuxkpi/common/src/
H A Dlinux_schedule.c348 #define bit_to_wchan(word, bit) ((void *)(((uintptr_t)(word) << 6) | (bit)))
351 linux_wake_up_bit(void *word, int bit) argument
354 wake_up_sleepers(bit_to_wchan(word, bit));
358 linux_wait_on_bit_timeout(unsigned long *word, int bit, unsigned int state, argument
372 wchan = bit_to_wchan(word, bit);
375 if ((*word & (1 << bit)) == 0) {
/freebsd-current/contrib/pnpinfo/
H A Dpnpinfo.c134 int i, bit, valid = 0, sum = 0x6a; local
139 bit = inb((rd_port << 2) | 0x3) == 0x55;
143 bit = (inb((rd_port << 2) | 0x3) == 0xaa) && bit;
146 valid = valid || bit;
150 (((sum ^ (sum >> 1) ^ bit) << 7) & 0xff);
152 data[i / 8] = (data[i / 8] >> 1) | (bit ? 0x80 : 0);
195 s1="8-bit";
198 s1="8/16-bit";
201 s1="16-bit";
[all...]
/freebsd-current/sys/dev/clk/rockchip/
H A Drk_cru.c114 int bit; local
123 bit = id % 16;
128 val = (1 << bit);
129 CCU_WRITE4(sc, reg, val | ((1 << bit) << 16));
140 int bit; local
148 bit = id % 16;
155 if (val & (1 << bit))
/freebsd-current/sbin/hastd/
H A Dactivemap.c686 int bit; local
689 for (bit = 0; bit < amp->am_nextents; bit++)
690 printf("%d", bit_test(amp->am_memmap, bit) ? 1 : 0);
693 for (bit = 0; bit < amp->am_nextents; bit++)
694 printf("%d", bit_test(amp->am_diskmap, bit) ? 1 : 0);
697 for (bit
[all...]
/freebsd-current/contrib/jemalloc/include/jemalloc/internal/
H A Dbit_util.h38 * Clears first unset bit in bitmap, and returns
39 * place of bit. bitmap *must not* be 0.
44 size_t bit = ffs_lu(*bitmap) - 1; local
45 *bitmap ^= ZU(1) << bit;
46 return bit;
69 #error No implementation for 64-bit ffs()
78 #error No implementation for 32-bit ffs()
/freebsd-current/contrib/libcxxrt/
H A Ddwarf_eh.h64 /// Unsigned 16-bit integer.
66 /// Unsigned 32-bit integer.
68 /// Unsigned 64-bit integer.
72 /// Signed 16-bit integer.
74 /// Signed 32-bit integer.
76 /// Signed 32-bit integer.
150 * pointed to by b, allowing you to determine the value of the highest bit, and
159 unsigned int bit = 0; local
162 // with the high bit unset
165 // This check is a bit to
[all...]
/freebsd-current/sys/dev/cxgbe/cudbg/
H A Dcudbg.h224 struct el {char *name; char *file_name; int bit; u32 flag; }; member in struct:el
396 int bit = type % 8; local
398 bitmap[index] |= (1 << bit);
404 int bit = type % 8; local
406 bitmap[index] &= ~(1 << bit);
/freebsd-current/sys/dev/wtap/plugins/
H A Dvisibility.c174 int bit = l->id2 % ARRAY_SIZE; local
175 uint32_t value = 1 << bit;
179 printf("l->id1=%d, l->id2=%d, map->map[%d] = %u, bit=%d\n",
180 l->id1, l->id2, index, map->map[index], bit);
191 int bit = l->id2 % ARRAY_SIZE; local
192 uint32_t value = 1 << bit;
/freebsd-current/lib/libc/db/hash/
H A Dhash_page.c656 int bit, first_page, free_bit, free_page, i, in_use_bits, j; local
678 bit = hashp->LAST_FREED &
680 j = bit / BITS_PER_MAP;
681 bit = rounddown2(bit, BITS_PER_MAP);
683 bit = 0;
686 for (; bit <= in_use_bits; j++, bit += BITS_PER_MAP)
720 * allocated with 1 clear bit. Actually, you are going to
724 * the first bit o
[all...]
/freebsd-current/tools/test/stress2/misc/
H A Dsendmsg.sh108 int bit, i;
112 bit = arc4random() % 8;
113 mask = ~(1 << bit);
H A Dsigreturn4.sh84 unsigned char bit, buf, mask, old __unused;
88 bit = random_long(0,7);
89 mask = ~(1 << bit);
/freebsd-current/crypto/openssl/crypto/ts/
H A Dts_rsp_print.c19 int bit; member in struct:status_map_st
107 for (; a->bit >= 0; ++a) {
108 if (ASN1_BIT_STRING_get_bit(v, a->bit)) {
/freebsd-current/stand/i386/pxeldr/
H A Dpxeldr.S51 .set MEM_BIOS_KEYBOARD,0x496 # BDA byte with keyboard bit
108 movw $(MEM_ARG_SIZE/4), %cx # Size of arguments in 32-bit
117 * set the RBX_SERIAL bit in the howto byte.
176 ljmp $SEL_SCODE16,$pm_16 # Jump to 16-bit PM
283 .word 0xffff,0x0,0x9a00,0xcf # SEL_SCODE (32-bit)
284 .word 0xffff,0x0,0x9a00,0x8f # SEL_SCODE16 (16-bit)
/freebsd-current/sys/compat/linux/
H A Dlinux_vdso_gtod.inc50 int bit;
54 for (bit = 1; mask != 1; bit++)
56 return (bit);
62 int bit;
66 for (bit = 1; mask != 1; bit++)
68 return (bit);
/freebsd-current/sys/geom/eli/
H A Dg_eli_key.c113 int bit, error; local
124 bit = (1 << nkey);
125 if (!(md->md_keys & bit))
/freebsd-current/sys/dev/altera/pio/
H A Dpio.c118 pio_set(device_t dev, int bit, int enable) argument
125 WRITE4(sc, PIO_OUTSET, bit);
127 WRITE4(sc, PIO_OUTCLR, bit);
/freebsd-current/contrib/llvm-project/lldb/source/Utility/
H A DRegisterValue.cpp765 bool RegisterValue::ClearBit(uint32_t bit) { argument
775 if (bit < (GetByteSize() * 8)) {
776 return m_scalar.ClearBit(bit);
790 byte_idx = buffer.bytes.size() - (bit / 8) - 1;
792 byte_idx = bit / 8;
794 const uint32_t byte_bit = bit % 8;
805 bool RegisterValue::SetBit(uint32_t bit) { argument
815 if (bit < (GetByteSize() * 8)) {
816 return m_scalar.SetBit(bit);
830 byte_idx = buffer.bytes.size() - (bit /
[all...]
/freebsd-current/sys/dev/qcom_gcc/
H A Dqcom_gcc_ipq4018_reset.c146 reg |= (1U << gcc_ipq4019_reset_list[id].bit);
148 reg &= ~(1U << gcc_ipq4019_reset_list[id].bit);
168 if (reg & ((1U << gcc_ipq4019_reset_list[id].bit)))
/freebsd-current/sys/riscv/riscv/
H A Dsbi_ipi.c102 int bit; local
118 while ((bit = ffs(ipi_bitmap))) {
119 ipi = (bit - 1);
/freebsd-current/sys/cam/ctl/
H A Dctl.h158 int ctl_set_mask(uint32_t *mask, uint32_t bit);
159 int ctl_clear_mask(uint32_t *mask, uint32_t bit);
160 int ctl_is_set(uint32_t *mask, uint32_t bit);
/freebsd-current/sys/contrib/openzfs/lib/libspl/
H A Datomic.c359 ulong_t bit = 1UL << value; local
360 ulong_t old = __atomic_fetch_or(target, bit, __ATOMIC_SEQ_CST);
361 return ((old & bit) ? -1 : 0);
367 ulong_t bit = 1UL << value; local
368 ulong_t old = __atomic_fetch_and(target, ~bit, __ATOMIC_SEQ_CST);
369 return ((old & bit) ? 0 : -1);
/freebsd-current/sys/amd64/vmm/intel/
H A Dvmx_msr.c84 /* We cannot ask the same bit to be set to both '1' and '0' */
101 ("invalid zero/one setting for bit %d of ctl 0x%0x, "
125 "correct value of ctl bit %d for msr "
145 int byte, bit; local
154 bit = msr & 0x7;
157 bitmap[byte] &= ~(1 << bit);
159 bitmap[byte] |= 1 << bit;
163 bitmap[byte] &= ~(1 << bit);
165 bitmap[byte] |= 1 << bit;
/freebsd-current/sys/dev/ena/
H A Dena.h179 #define ENA_FLAG_ISSET(bit, adapter) \
180 BIT_ISSET(ENA_FLAGS_NUMBER, (bit), &(adapter)->flags)
181 #define ENA_FLAG_SET_ATOMIC(bit, adapter) \
182 BIT_SET_ATOMIC(ENA_FLAGS_NUMBER, (bit), &(adapter)->flags)
183 #define ENA_FLAG_CLEAR_ATOMIC(bit, adapter) \
184 BIT_CLR_ATOMIC(ENA_FLAGS_NUMBER, (bit), &(adapter)->flags)
/freebsd-current/contrib/ntp/kernel/sys/
H A Dpcl720.h23 #define pcl720_data(base,bit) (base+(bit>>3))

Completed in 193 milliseconds

1234567891011>>