| /linux/lib/ |
| H A D | test_bitmap.c | 76 const unsigned long *exp_bmap, const unsigned long *bmap, in __check_eq_bitmap() argument 79 if (!bitmap_equal(exp_bmap, bmap, nbits)) { in __check_eq_bitmap() 82 nbits, exp_bmap, nbits, bmap); in __check_eq_bitmap() 169 DECLARE_BITMAP(bmap, 1024); in test_zero_clear() 172 memset(bmap, 0xff, 128); in test_zero_clear() 174 expect_eq_pbl("0-22", bmap, 23); in test_zero_clear() 175 expect_eq_pbl("0-1023", bmap, 1024); in test_zero_clear() 178 bitmap_clear(bmap, 0, 9); in test_zero_clear() 179 expect_eq_pbl("9-1023", bmap, 1024); in test_zero_clear() 181 bitmap_zero(bmap, 35); in test_zero_clear() [all …]
|
| /linux/fs/xfs/scrub/ |
| H A D | dqiterate.c | 32 cursor->bmap.br_startoff = NULLFILEOFF; in xchk_dqiter_init() 60 if (cursor->bmap.br_startoff != NULLFILEOFF && in xchk_dquot_iter_revalidate_bmap() 62 cursor->bmap.br_startoff + cursor->bmap.br_blockcount > fileoff) in xchk_dquot_iter_revalidate_bmap() 67 XFS_MAX_FILEOFF - fileoff, &cursor->bmap, &nmaps, 0); in xchk_dquot_iter_revalidate_bmap() 74 if (cursor->bmap.br_startoff > fileoff) { in xchk_dquot_iter_revalidate_bmap() 75 ASSERT(cursor->bmap.br_startoff == fileoff); in xchk_dquot_iter_revalidate_bmap() 100 fileoff = cursor->bmap.br_startoff + cursor->bmap.br_blockcount; in xchk_dquot_iter_advance_bmap() 108 XFS_MAX_FILEOFF - fileoff, &cursor->bmap, in xchk_dquot_iter_advance_bmap() 117 if (cursor->bmap.br_startoff > fileoff) { in xchk_dquot_iter_advance_bmap() 118 ASSERT(cursor->bmap.br_startoff == fileoff); in xchk_dquot_iter_advance_bmap() [all …]
|
| H A D | quota.h | 20 struct xfs_bmbt_irec bmap; member
|
| /linux/arch/riscv/kernel/ |
| H A D | vendor_extensions.c | 46 struct riscv_isavendorinfo *bmap; in __riscv_isa_vendor_extension_available() local 52 bmap = &riscv_isa_vendor_ext_list_andes.all_harts_isa_bitmap; in __riscv_isa_vendor_extension_available() 58 bmap = &riscv_isa_vendor_ext_list_mips.all_harts_isa_bitmap; in __riscv_isa_vendor_extension_available() 64 bmap = &riscv_isa_vendor_ext_list_sifive.all_harts_isa_bitmap; in __riscv_isa_vendor_extension_available() 70 bmap = &riscv_isa_vendor_ext_list_thead.all_harts_isa_bitmap; in __riscv_isa_vendor_extension_available() 79 bmap = &cpu_bmap[cpu]; in __riscv_isa_vendor_extension_available() 84 return test_bit(bit, bmap->isa); in __riscv_isa_vendor_extension_available()
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | vmx_dirty_log_test.c | |
| H A D | nested_dirty_log_test.c | 140 unsigned long *bmap) in l1_guest_code() 166 kvm_vm_get_dirty_log(vm, TEST_MEM_SLOT_INDEX, bmap); in test_handle_ucall_sync() 186 TEST_ASSERT(test_bit(i, bmap), in test_handle_ucall_sync() 190 TEST_ASSERT(!test_bit(i, bmap), in test_handle_ucall_sync() 198 unsigned long *bmap; 255 bmap = bitmap_zalloc(TEST_MEM_PAGES); in test_dirty_log() 268 test_handle_ucall_sync(vm, uc.args[1], bmap); in test_dirty_log() 144 test_handle_ucall_sync(struct kvm_vm * vm,u64 arg,unsigned long * bmap) test_handle_ucall_sync() argument 202 unsigned long *bmap; test_dirty_log() local
|
| /linux/include/uapi/linux/netfilter/ |
| H A D | xt_TCPOPTSTRIP.h | 7 #define tcpoptstrip_set_bit(bmap, idx) \ argument 8 (bmap[(idx) >> 5] |= 1U << (idx & 31)) 9 #define tcpoptstrip_test_bit(bmap, idx) \ argument 10 (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
|
| /linux/drivers/hid/ |
| H A D | hid-oxp.c | 571 static void oxp_set_defaults_bmap_1(struct oxp_bmap_page_1 *bmap) in oxp_set_defaults_bmap_1() argument 573 bmap->btn_a.button_idx = BUTTON_A; in oxp_set_defaults_bmap_1() 574 bmap->btn_a.mapping_idx = 0; in oxp_set_defaults_bmap_1() 575 bmap->btn_b.button_idx = BUTTON_B; in oxp_set_defaults_bmap_1() 576 bmap->btn_b.mapping_idx = 1; in oxp_set_defaults_bmap_1() 577 bmap->btn_x.button_idx = BUTTON_X; in oxp_set_defaults_bmap_1() 578 bmap->btn_x.mapping_idx = 2; in oxp_set_defaults_bmap_1() 579 bmap->btn_y.button_idx = BUTTON_Y; in oxp_set_defaults_bmap_1() 580 bmap->btn_y.mapping_idx = 3; in oxp_set_defaults_bmap_1() 581 bmap->btn_lb.button_idx = BUTTON_LB; in oxp_set_defaults_bmap_1() [all …]
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| H A D | bnad_ethtool.c | 602 u32 bmap; in bnad_get_strings() local 614 bmap = bna_tx_rid_mask(&bnad->bna); in bnad_get_strings() 615 for (i = 0; bmap; i++) { in bnad_get_strings() 616 if (bmap & 1) in bnad_get_strings() 618 bmap >>= 1; in bnad_get_strings() 621 bmap = bna_rx_rid_mask(&bnad->bna); in bnad_get_strings() 622 for (i = 0; bmap; i++, bmap >>= 1) { in bnad_get_strings() 623 if (bmap & 1) in bnad_get_strings() 625 bmap >>= 1; in bnad_get_strings() 665 u32 bmap; in bnad_get_stats_count_locked() local [all …]
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_rdma.h | 189 struct qed_bmap *bmap, u32 max_count, char *name); 192 qed_rdma_bmap_free(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, bool check); 196 struct qed_bmap *bmap, u32 *id_num); 199 qed_bmap_set_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num); 202 qed_bmap_release_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num); 205 qed_bmap_test_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num);
|
| H A D | qed_rdma.c | 39 struct qed_bmap *bmap, u32 max_count, char *name) in qed_rdma_bmap_alloc() argument 43 bmap->max_count = max_count; in qed_rdma_bmap_alloc() 45 bmap->bitmap = bitmap_zalloc(max_count, GFP_KERNEL); in qed_rdma_bmap_alloc() 46 if (!bmap->bitmap) in qed_rdma_bmap_alloc() 49 snprintf(bmap->name, QED_RDMA_MAX_BMAP_NAME, "%s", name); in qed_rdma_bmap_alloc() 56 struct qed_bmap *bmap, u32 *id_num) in qed_rdma_bmap_alloc_id() argument 58 *id_num = find_first_zero_bit(bmap->bitmap, bmap->max_count); in qed_rdma_bmap_alloc_id() 59 if (*id_num >= bmap->max_count) in qed_rdma_bmap_alloc_id() 62 __set_bit(*id_num, bmap->bitmap); in qed_rdma_bmap_alloc_id() 65 bmap->name, *id_num); in qed_rdma_bmap_alloc_id() [all …]
|
| /linux/drivers/net/ethernet/chelsio/libcxgb/ |
| H A D | libcxgb_ppm.c | 84 static int ppm_find_unused_entries(unsigned long *bmap, in ppm_find_unused_entries() argument 92 i = bitmap_find_next_zero_area(bmap, max_ppods, start, nr, align_mask); in ppm_find_unused_entries() 95 i = bitmap_find_next_zero_area(bmap, max_ppods, 0, start - 1, in ppm_find_unused_entries() 100 bitmap_set(bmap, i, nr); in ppm_find_unused_entries() 133 i = ppm_find_unused_entries(pool->bmap, ppm->pool_index_max, in ppm_get_cpu_entries() 204 bitmap_clear(pool->bmap, i, count); in ppm_unmark_entries() 351 unsigned int bmap; in ppm_alloc_cpu_pool() local 361 bmap = ppmax / BITS_PER_TYPE(unsigned long); in ppm_alloc_cpu_pool() 362 if (!bmap) in ppm_alloc_cpu_pool() 365 ppmax = (bmap * sizeof(unsigned long)) << 3; in ppm_alloc_cpu_pool() [all …]
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | dirty_log_test.c | 495 static void vm_dirty_log_verify(enum vm_guest_mode mode, unsigned long **bmap) in vm_dirty_log_verify() argument 502 bool bmap0_dirty = __test_and_clear_bit_le(page, bmap[0]); in vm_dirty_log_verify() 510 if (__test_and_clear_bit_le(page, bmap[1]) || bmap0_dirty) { in vm_dirty_log_verify() 603 unsigned long *bmap[2]; in run_test() local 656 bmap[0] = bitmap_zalloc(host_num_pages); in run_test() 657 bmap[1] = bitmap_zalloc(host_num_pages); in run_test() 765 bmap[0], host_num_pages, in run_test() 800 bmap[1], host_num_pages, in run_test() 802 vm_dirty_log_verify(mode, bmap); in run_test() 813 free(bmap[ in help() [all...] |
| /linux/arch/sparc/mm/ |
| H A D | io-unit.c | 119 nexti: scan = find_next_zero_bit(iounit->bmap, limit, scan); in iounit_get_area() 133 if (test_bit(scan++, iounit->bmap)) in iounit_get_area() 140 set_bit(scan, iounit->bmap); in iounit_get_area() 194 clear_bit(vaddr, iounit->bmap); in iounit_unmap_phys() 212 clear_bit(vaddr, iounit->bmap); in iounit_unmap_sg()
|
| /linux/fs/jfs/ |
| H A D | jfs_dmap.h | 121 #define BLKTOAG(b,sbi) ((b) >> ((sbi)->bmap->db_agl2size)) 127 ((s64)(a) << (JFS_SBI((ip)->i_sb)->bmap->db_agl2size)) 230 struct bmap { struct
|
| H A D | jfs_incore.h | 190 struct bmap *bmap; /* incore bmap descriptor */ member
|
| H A D | jfs_extent.c | 315 struct bmap *bmp = sbi->bmap; in extBalloc()
|
| /linux/include/linux/ |
| H A D | hid.h | 1136 unsigned long *bmap = NULL; in hid_map_usage() local 1141 bmap = input->absbit; in hid_map_usage() 1145 bmap = input->relbit; in hid_map_usage() 1149 bmap = input->keybit; in hid_map_usage() 1153 bmap = input->ledbit; in hid_map_usage() 1157 bmap = input->mscbit; in hid_map_usage() 1162 if (unlikely(c > limit || !bmap)) { in hid_map_usage() 1172 *bit = bmap; in hid_map_usage()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/cn20k/ |
| H A D | npc.c | 1862 unsigned long *bmap, in __npc_subbank_contig_alloc() argument 1877 offset = bitmap_find_next_zero_area(bmap, sbd, sidx - b, in __npc_subbank_contig_alloc() 1904 if (test_bit(k, bmap)) { in __npc_subbank_contig_alloc() 1929 unsigned long *bmap, in __npc_subbank_non_contig_alloc() argument 1944 index = find_next_zero_bit(bmap, sbd, sidx - b); in __npc_subbank_non_contig_alloc() 1949 bitmap_weight(bmap, sbd), in __npc_subbank_non_contig_alloc() 1956 if (test_bit(k, bmap)) in __npc_subbank_non_contig_alloc() 1967 if (test_bit(k, bmap)) in __npc_subbank_non_contig_alloc() 1994 int sb_off, unsigned long **bmap, in __npc_subbank_sboff_2_off() argument 2002 *bmap = (sb_off >= sbd) ? sb->b1map : sb->b0map; in __npc_subbank_sboff_2_off() [all …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu.c | 133 if (!rsrc->bmap) in rvu_alloc_rsrc() 136 id = find_first_zero_bit(rsrc->bmap, rsrc->max); in rvu_alloc_rsrc() 140 __set_bit(id, rsrc->bmap); in rvu_alloc_rsrc() 149 if (!rsrc->bmap) in rvu_alloc_rsrc_contig() 152 start = bitmap_find_next_zero_area(rsrc->bmap, rsrc->max, 0, nrsrc, 0); in rvu_alloc_rsrc_contig() 156 bitmap_set(rsrc->bmap, start, nrsrc); in rvu_alloc_rsrc_contig() 162 if (!rsrc->bmap) in rvu_free_rsrc_contig() 167 bitmap_clear(rsrc->bmap, start, nrsrc); in rvu_free_rsrc_contig() 174 if (!rsrc->bmap) in rvu_rsrc_check_contig() 177 start = bitmap_find_next_zero_area(rsrc->bmap, rsrc->max, 0, nrsrc, 0); in rvu_rsrc_check_contig() [all …]
|
| H A D | mcs_cnf10kb.c | 171 for_each_set_bit(sc, sc_bmap->bmap, mcs->hw->sc_entries) { in cnf10kb_mcs_tx_pn_thresh_reached_handler() 204 for_each_set_bit(sc, sc_bmap->bmap, mcs->hw->sc_entries) { in cnf10kb_mcs_tx_pn_wrapped_handler()
|
| /linux/arch/sparc/include/asm/ |
| H A D | io-unit.h | 45 unsigned long bmap[(IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 3)) / sizeof(unsigned long)]; member
|
| /linux/fs/nilfs2/ |
| H A D | Makefile | 4 btnode.o bmap.o btree.o direct.o dat.o recovery.o \
|
| /linux/fs/gfs2/ |
| H A D | Makefile | 4 gfs2-y := acl.o bmap.o dir.o xattr.o glock.o \
|
| /linux/fs/ntfs/ |
| H A D | aops.c | 311 .bmap = ntfs_bmap, 325 .bmap = ntfs_bmap,
|