| /netbsd-src/sys/arch/xen/include/ |
| H A D | xen.h | 192 xen_atomic_test_and_clear_bit(volatile void *ptr, unsigned long bitno) in xen_atomic_test_and_clear_bit() argument 205 :"Ir" (bitno) : "memory"); in xen_atomic_test_and_clear_bit() 210 xen_atomic_test_and_set_bit(volatile void *ptr, unsigned long bitno) in xen_atomic_test_and_set_bit() argument 223 :"Ir" (bitno) : "memory"); in xen_atomic_test_and_set_bit() 228 xen_constant_test_bit(const volatile void *ptr, unsigned long bitno) in xen_constant_test_bit() argument 230 return ((1UL << (bitno & LONG_MASK)) & in xen_constant_test_bit() 231 (((const volatile XATOMIC_T *) ptr)[bitno >> LONG_SHIFT])) != 0; in xen_constant_test_bit() 235 xen_variable_test_bit(const volatile void *ptr, unsigned long bitno) in xen_variable_test_bit() argument 248 :"m" (*(const volatile XATOMIC_T *)(ptr)), "Ir" (bitno)); in xen_variable_test_bit() 252 #define xen_atomic_test_bit(ptr, bitno) \ argument [all …]
|
| /netbsd-src/external/bsd/pcc/dist/pcc/cc/cxxcom/ |
| H A D | symtabs.c | 45 int bitno; member 80 int cix, bit, fbit, svbit, ix, bitno, len; in symtab_add() local 101 bitno = len * CHECKBITS; in symtab_add() 103 bit = BITNO(w->bitno); in symtab_add() 104 fbit = bit > bitno ? 0 : P_BIT(key, bit); in symtab_add() 105 svbit = fbit ? IS_RIGHT_LEAF(w->bitno) : in symtab_add() 106 IS_LEFT_LEAF(w->bitno); in symtab_add() 131 new->bitno = cix | (bit ? RIGHT_IS_LEAF : LEFT_IS_LEAF); in symtab_add() 137 new->bitno |= (bit ? LEFT_IS_LEAF : RIGHT_IS_LEAF); in symtab_add() 146 fbit = w->bitno; in symtab_add() [all …]
|
| /netbsd-src/external/bsd/pcc/dist/pcc/cc/ccom/ |
| H A D | symtabs.c | 50 int bitno; member 87 int cix, bit, fbit, svbit, ix, bitno, len; in symtab_add() local 108 bitno = len * CHECKBITS; in symtab_add() 110 bit = BITNO(w->bitno); in symtab_add() 111 fbit = bit > bitno ? 0 : P_BIT(key, bit); in symtab_add() 112 svbit = fbit ? IS_RIGHT_LEAF(w->bitno) : in symtab_add() 113 IS_LEFT_LEAF(w->bitno); in symtab_add() 138 new->bitno = cix | (bit ? RIGHT_IS_LEAF : LEFT_IS_LEAF); in symtab_add() 144 new->bitno |= (bit ? LEFT_IS_LEAF : RIGHT_IS_LEAF); in symtab_add() 153 fbit = w->bitno; in symtab_add() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
| H A D | sbitmap.h | 118 bitmap_bit_p (const_sbitmap map, int bitno) in bitmap_bit_p() argument 120 bitmap_check_index (map, bitno); in bitmap_bit_p() 122 size_t i = bitno / SBITMAP_ELT_BITS; in bitmap_bit_p() 123 unsigned int s = bitno % SBITMAP_ELT_BITS; in bitmap_bit_p() 130 bitmap_set_bit (sbitmap map, int bitno) in bitmap_set_bit() argument 132 bitmap_check_index (map, bitno); in bitmap_set_bit() 134 map->elms[bitno / SBITMAP_ELT_BITS] in bitmap_set_bit() 135 |= (SBITMAP_ELT_TYPE) 1 << (bitno) % SBITMAP_ELT_BITS; in bitmap_set_bit() 141 bitmap_clear_bit (sbitmap map, int bitno) in bitmap_clear_bit() argument 143 bitmap_check_index (map, bitno); in bitmap_clear_bit() [all …]
|
| H A D | genautomata.c | 3419 #define bitmap_set_bit(bitstring, bitno) \ argument 3420 ((bitstring)[(bitno) / (sizeof (*(bitstring)) * CHAR_BIT)] |= \ 3421 (HOST_WIDE_INT)1 << (bitno) % (sizeof (*(bitstring)) * CHAR_BIT)) 3423 #define CLEAR_BIT(bitstring, bitno) \ argument 3424 ((bitstring)[(bitno) / (sizeof (*(bitstring)) * CHAR_BIT)] &= \ 3425 ~((HOST_WIDE_INT)1 << (bitno) % (sizeof (*(bitstring)) * CHAR_BIT))) 3429 #define bitmap_bit_p(bitstring, bitno) \ argument 3430 ((bitstring)[(bitno) / (sizeof (*(bitstring)) * CHAR_BIT)] >> \ 3431 (bitno) % (sizeof (*(bitstring)) * CHAR_BIT) & 1)
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/ |
| H A D | sbitmap.h | 118 bitmap_bit_p (const_sbitmap map, int bitno) in bitmap_bit_p() argument 120 bitmap_check_index (map, bitno); in bitmap_bit_p() 122 size_t i = bitno / SBITMAP_ELT_BITS; in bitmap_bit_p() 123 unsigned int s = bitno % SBITMAP_ELT_BITS; in bitmap_bit_p() 131 bitmap_set_bit (sbitmap map, int bitno) in bitmap_set_bit() argument 133 bitmap_check_index (map, bitno); in bitmap_set_bit() 135 size_t i = bitno / SBITMAP_ELT_BITS; in bitmap_set_bit() 136 unsigned int s = bitno % SBITMAP_ELT_BITS; in bitmap_set_bit() 147 bitmap_clear_bit (sbitmap map, int bitno) in bitmap_clear_bit() argument 149 bitmap_check_index (map, bitno); in bitmap_clear_bit() [all …]
|
| H A D | genautomata.cc | 3419 #define bitmap_set_bit(bitstring, bitno) \ argument 3420 ((bitstring)[(bitno) / (sizeof (*(bitstring)) * CHAR_BIT)] |= \ 3421 (HOST_WIDE_INT)1 << (bitno) % (sizeof (*(bitstring)) * CHAR_BIT)) 3423 #define CLEAR_BIT(bitstring, bitno) \ argument 3424 ((bitstring)[(bitno) / (sizeof (*(bitstring)) * CHAR_BIT)] &= \ 3425 ~((HOST_WIDE_INT)1 << (bitno) % (sizeof (*(bitstring)) * CHAR_BIT))) 3429 #define bitmap_bit_p(bitstring, bitno) \ argument 3430 ((bitstring)[(bitno) / (sizeof (*(bitstring)) * CHAR_BIT)] >> \ 3431 (bitno) % (sizeof (*(bitstring)) * CHAR_BIT) & 1)
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/M68k/ |
| H A D | M68kInstrBits.td | 53 : MxInst<(outs), (ins TYPE.ROp:$dst, TYPE.ROp:$bitno), "btst\t$bitno, $dst", 54 [(set CCR, (MxBt TYPE.VT:$dst, TYPE.VT:$bitno))], 58 : MxInst<(outs), (ins TYPE.ROp:$dst, TYPE.IOp:$bitno), "btst\t$bitno, $dst", 59 [(set CCR, (MxBt TYPE.VT:$dst, TYPE.IPat:$bitno))], 64 : MxInst<(outs), (ins MEMOpd:$dst, TYPE.ROp:$bitno), "btst\t$bitno, $dst", 65 [(set CCR, (MxBt (TYPE.Load MEMPat:$dst), TYPE.VT:$bitno))], 70 : MxInst<(outs), (ins MEMOpd:$dst, TYPE.IOp:$bitno), "btst\t$bitno, $dst", 71 [(set CCR, (MxBt (TYPE.Load MEMPat:$dst), TYPE.IPat:$bitno))],
|
| /netbsd-src/sys/arch/mips/rmi/ |
| H A D | rmixl_pcix.c | 784 u_int bitno, irq; in rmixl_pcix_intr_string() local 786 rmixl_pcix_decompose_pih(pih, &bitno, &irq); in rmixl_pcix_intr_string() 803 rmixl_pcix_make_pih(u_int bitno, u_int irq) in rmixl_pcix_make_pih() argument 807 KASSERT(bitno < 64); in rmixl_pcix_make_pih() 811 pih |= bitno; in rmixl_pcix_make_pih() 817 rmixl_pcix_decompose_pih(pci_intr_handle_t pih, u_int *bitno, u_int *irq) in rmixl_pcix_decompose_pih() argument 819 *bitno = (u_int)(pih & 0x3f); in rmixl_pcix_decompose_pih() 822 KASSERT(*bitno < 64); in rmixl_pcix_decompose_pih() 835 __func__, dip->bitno + 1, dip->irq)); in rmixl_pcix_intr_disestablish() 836 KASSERT(dip->bitno < RMIXL_PCIX_NINTR); in rmixl_pcix_intr_disestablish() [all …]
|
| H A D | rmixl_pcie.c | 160 #define RMIXL_PCIE_EVCNT(sc, link, bitno, cpu) \ argument 161 &(sc)->sc_evcnts[link][(bitno) * (ncpu) + (cpu)] 1096 u_int link, bitno, irq; in rmixl_pcie_intr_string() local 1098 rmixl_pcie_decompose_pih(pih, &link, &bitno, &irq); in rmixl_pcie_intr_string() 1153 rmixl_pcie_make_pih(u_int link, u_int bitno, u_int irq) in rmixl_pcie_make_pih() argument 1158 KASSERT(bitno < 64); in rmixl_pcie_make_pih() 1162 pih |= (bitno << 4); in rmixl_pcie_make_pih() 1169 rmixl_pcie_decompose_pih(pci_intr_handle_t pih, u_int *link, u_int *bitno, u_int *irq) in rmixl_pcie_decompose_pih() argument 1172 *bitno = (u_int)((pih >> 4) & 0x3f); in rmixl_pcie_decompose_pih() 1176 KASSERT(*bitno < 64); in rmixl_pcie_decompose_pih() [all …]
|
| H A D | rmixl_pcixvar.h | 44 u_int bitno; member
|
| H A D | rmixl_pcievar.h | 62 u_int bitno; member
|
| /netbsd-src/sys/arch/vax/vax/ |
| H A D | multicpu.c | 156 int bitno; in cpu_handle_ipi() local 161 while ((bitno = ffs(ci->ci_ipimsgs))) { in cpu_handle_ipi() 162 bitno -= 1; /* ffs() starts from 1 */ in cpu_handle_ipi() 163 bbcci(bitno, &ci->ci_ipimsgs); in cpu_handle_ipi() 164 switch (bitno) { in cpu_handle_ipi() 194 panic("cpu_handle_ipi: bad bit %x", bitno); in cpu_handle_ipi()
|
| /netbsd-src/sys/arch/evbmips/loongson/ |
| H A D | yeeloong_machdep.c | 431 int bitno; in lemote_isa_intr() local 443 for (bitno = BONITO_NISA - 1, mask = 1UL << bitno; in lemote_isa_intr() 445 bitno--, mask >>= 1) { in lemote_isa_intr() 449 loongson_isa_specific_eoi(bitno); in lemote_isa_intr() 453 &bonito_intrhead[BONITO_ISA_IRQ(bitno)].intrhand_head, in lemote_isa_intr() 457 bonito_intrhead[BONITO_ISA_IRQ(bitno)].intr_count.ev_count++; in lemote_isa_intr() 461 if (stray_intr[bitno]++ & 0x10000) { in lemote_isa_intr() 462 printf("spurious isa interrupt %d\n", bitno); in lemote_isa_intr() 463 stray_intr[bitno] = 0; in lemote_isa_intr()
|
| /netbsd-src/sys/net/ |
| H A D | bsd-comp.c | 462 u_int bitno = 32; in bsd_compress() local 493 bitno -= n_bits; \ in bsd_compress() 494 accm |= ((ent) << bitno); \ in bsd_compress() 498 bitno += 8; \ in bsd_compress() 499 } while (bitno <= 24); \ in bsd_compress() 617 if (bitno < 32) in bsd_compress() 627 if (bitno != 32) in bsd_compress() 628 PUTBYTE((accm | (0xff << (bitno-8))) >> 24); in bsd_compress() 677 u_int bitno = 7; in bsd_incomp() local 734 bitno += n_bits; in bsd_incomp() [all …]
|
| /netbsd-src/sys/arch/mips/ralink/ |
| H A D | ralink_intr.c | 330 const u_int bitno = 31 - __builtin_clz(pending); in ra_pic_intr() local 331 pending ^= (1 << bitno); in ra_pic_intr() 332 const int irq = bit2irq[bitno]; in ra_pic_intr() 353 const u_int bitno = 31 - __builtin_clz(ipending); in evbmips_iointr() local 354 ipending ^= (1 << bitno); in evbmips_iointr() 355 const int irq = bitno - (31 - __builtin_clz(MIPS_INT_MASK_0)); in evbmips_iointr()
|
| /netbsd-src/external/gpl3/binutils.old/dist/opcodes/ |
| H A D | aarch64-gen.c | 58 unsigned int bitno; member 190 node->bitno = -1; in new_bittree_node() 229 unsigned int bitno; in divide_table_1() local 287 bitno = 0; in divide_table_1() 288 while (!(mask_and & (1 << bitno))) in divide_table_1() 289 ++bitno; in divide_table_1() 290 bitmask = (1 << bitno); in divide_table_1() 293 printf ("use bit %d\n", bitno); in divide_table_1() 296 bittree->bitno = bitno; in divide_table_1() 416 indented_print (indent, "if (((word >> %d) & 0x1) == 0)\n", bittree->bitno); in print_decision_tree_1() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/opcodes/ |
| H A D | aarch64-gen.c | 58 unsigned int bitno; member 190 node->bitno = -1; in new_bittree_node() 229 unsigned int bitno; in divide_table_1() local 287 bitno = 0; in divide_table_1() 288 while (!(mask_and & (1 << bitno))) in divide_table_1() 289 ++bitno; in divide_table_1() 290 bitmask = (1 << bitno); in divide_table_1() 293 printf ("use bit %d\n", bitno); in divide_table_1() 296 bittree->bitno = bitno; in divide_table_1() 416 indented_print (indent, "if (((word >> %d) & 0x1) == 0)\n", bittree->bitno); in print_decision_tree_1() [all …]
|
| /netbsd-src/sbin/ifconfig/ |
| H A D | media.c | 370 int bitno, found = 0; in print_media_status() local 373 for (bitno = 0; ifm_status_valid_list[bitno] != 0; bitno++) { in print_media_status() 377 ifms->ifms_valid != ifm_status_valid_list[bitno]) in print_media_status()
|
| /netbsd-src/external/bsd/pcc/dist/pcc/cc/cpp/ |
| H A D | cpp.c | 2363 int bitno; member 2423 int len, cix, bit, fbit, svbit, ix, bitno; in lookup() local 2445 bitno = len * CHECKBITS; in lookup() 2447 bit = BITNO(w->bitno); in lookup() 2448 fbit = bit >= bitno ? 0 : P_BIT(key, bit); in lookup() 2449 svbit = fbit ? IS_RIGHT_LEAF(w->bitno) : in lookup() 2450 IS_LEFT_LEAF(w->bitno); in lookup() 2481 new->bitno = cix | (bit ? RIGHT_IS_LEAF : LEFT_IS_LEAF); in lookup() 2486 new->bitno |= (bit ? LEFT_IS_LEAF : RIGHT_IS_LEAF); in lookup() 2494 fbit = w->bitno; in lookup() [all …]
|
| /netbsd-src/external/bsd/bzip2/dist/ |
| H A D | unzcrash.c | 69 int bitno = bit % 8; in flip_bit() local 70 uchar mask = 1 << bitno; in flip_bit()
|
| /netbsd-src/external/gpl3/binutils/dist/cpu/ |
| H A D | ip2k.cpu | 122 (dnf f-bitno "bit number" () 11 3) 286 (define-operand (name bitno) (comment "bit number") (attrs) 287 (type h-uint) (index f-bitno) (handlers (parse "bit3")(print "decimal"))) 363 "sb $fr,$bitno" 364 (+ OP4_SB bitno fr) 365 (if (and fr (sll 1 bitno)) 372 "snb $fr,$bitno" 373 (+ OP4_SNB bitno fr) 374 (if (not (and fr (sll 1 bitno))) 381 "setb $fr,$bitno" [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/cpu/ |
| H A D | ip2k.cpu | 122 (dnf f-bitno "bit number" () 11 3) 286 (define-operand (name bitno) (comment "bit number") (attrs) 287 (type h-uint) (index f-bitno) (handlers (parse "bit3")(print "decimal"))) 363 "sb $fr,$bitno" 364 (+ OP4_SB bitno fr) 365 (if (and fr (sll 1 bitno)) 372 "snb $fr,$bitno" 373 (+ OP4_SNB bitno fr) 374 (if (not (and fr (sll 1 bitno))) 381 "setb $fr,$bitno" [all …]
|
| /netbsd-src/external/gpl3/gdb.old/dist/cpu/ |
| H A D | ip2k.cpu | 122 (dnf f-bitno "bit number" () 11 3) 286 (define-operand (name bitno) (comment "bit number") (attrs) 287 (type h-uint) (index f-bitno) (handlers (parse "bit3")(print "decimal"))) 363 "sb $fr,$bitno" 364 (+ OP4_SB bitno fr) 365 (if (and fr (sll 1 bitno)) 372 "snb $fr,$bitno" 373 (+ OP4_SNB bitno fr) 374 (if (not (and fr (sll 1 bitno))) 381 "setb $fr,$bitno" [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/cpu/ |
| H A D | ip2k.cpu | 122 (dnf f-bitno "bit number" () 11 3) 286 (define-operand (name bitno) (comment "bit number") (attrs) 287 (type h-uint) (index f-bitno) (handlers (parse "bit3")(print "decimal"))) 363 "sb $fr,$bitno" 364 (+ OP4_SB bitno fr) 365 (if (and fr (sll 1 bitno)) 372 "snb $fr,$bitno" 373 (+ OP4_SNB bitno fr) 374 (if (not (and fr (sll 1 bitno))) 381 "setb $fr,$bitno" [all …]
|