| /linux/fs/nilfs2/ |
| H A D | bmap.h | 138 #define NILFS_BMAP_USE_VBN(bmap) ((bmap)->b_ptr_type > 0) argument 161 int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec); 162 int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key); 163 int nilfs_bmap_seek_key(struct nilfs_bmap *bmap, __u64 start, __u64 *keyp); 164 int nilfs_bmap_last_key(struct nilfs_bmap *bmap, __u64 *keyp); 165 int nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key); 179 static inline int nilfs_bmap_lookup(struct nilfs_bmap *bmap, __u64 key, in nilfs_bmap_lookup() argument 182 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); in nilfs_bmap_lookup() 190 static inline int nilfs_bmap_prepare_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_prepare_alloc_ptr() argument 197 req->bpr_ptr = bmap->b_last_allocated_ptr++; in nilfs_bmap_prepare_alloc_ptr() [all …]
|
| H A D | Makefile | 4 btnode.o bmap.o btree.o direct.o dat.o recovery.o \
|
| /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 | 144 unsigned long *bmap) in test_handle_ucall_sync() argument 170 kvm_vm_get_dirty_log(vm, TEST_MEM_SLOT_INDEX, bmap); in test_handle_ucall_sync() 190 TEST_ASSERT(test_bit(i, bmap), in test_handle_ucall_sync() 194 TEST_ASSERT(!test_bit(i, bmap), in test_handle_ucall_sync() 202 unsigned long *bmap; in test_dirty_log() local 259 bmap = bitmap_zalloc(TEST_MEM_PAGES); in test_dirty_log() 272 test_handle_ucall_sync(vm, uc.args[1], bmap); in test_dirty_log()
|
| /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/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/crypto/marvell/octeontx2/ |
| H A D | otx2_cptpf_ucode.c | 34 struct otx2_cpt_bitmap bmap = { {0} }; in get_cores_bmap() local 42 return bmap; in get_cores_bmap() 47 bitmap_or(bmap.bits, bmap.bits, in get_cores_bmap() 48 eng_grp->engs[i].bmap, in get_cores_bmap() 50 bmap.size = eng_grp->g->engs_num; in get_cores_bmap() 58 return bmap; in get_cores_bmap() 197 for_each_set_bit(bit, engs->bmap, eng_grp->g->engs_num) in cptx_set_ucode_base() 223 struct otx2_cpt_bitmap bmap, in cptx_detach_and_disable_cores() argument 231 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_detach_and_disable_cores() 257 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_detach_and_disable_cores() [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() 752 bmap[0], host_num_pages, in run_test() 789 bmap[1], host_num_pages, in run_test() 791 vm_dirty_log_verify(mode, bmap); in run_test() 802 free(bmap[0]); in run_test() [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 | 1134 unsigned long *bmap = NULL; in hid_map_usage() local 1139 bmap = input->absbit; in hid_map_usage() 1143 bmap = input->relbit; in hid_map_usage() 1147 bmap = input->keybit; in hid_map_usage() 1151 bmap = input->ledbit; in hid_map_usage() 1155 bmap = input->mscbit; in hid_map_usage() 1160 if (unlikely(c > limit || !bmap)) { in hid_map_usage() 1170 *bit = bmap; in hid_map_usage()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/cn20k/ |
| H A D | npc.c | 1839 unsigned long *bmap, in __npc_subbank_contig_alloc() argument 1854 offset = bitmap_find_next_zero_area(bmap, sbd, sidx - b, in __npc_subbank_contig_alloc() 1881 if (test_bit(k, bmap)) { in __npc_subbank_contig_alloc() 1906 unsigned long *bmap, in __npc_subbank_non_contig_alloc() argument 1921 index = find_next_zero_bit(bmap, sbd, sidx - b); in __npc_subbank_non_contig_alloc() 1926 bitmap_weight(bmap, sbd), in __npc_subbank_non_contig_alloc() 1933 if (test_bit(k, bmap)) in __npc_subbank_non_contig_alloc() 1944 if (test_bit(k, bmap)) in __npc_subbank_non_contig_alloc() 1971 int sb_off, unsigned long **bmap, in __npc_subbank_sboff_2_off() argument 1979 *bmap = (sb_off >= sbd) ? sb->b1map : sb->b0map; in __npc_subbank_sboff_2_off() [all …]
|
| /linux/fs/xfs/scrub/ |
| H A D | quota.h | 20 struct xfs_bmbt_irec bmap; member
|
| /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/ntfs/ |
| H A D | aops.c | 285 .bmap = ntfs_bmap, 299 .bmap = ntfs_bmap,
|
| /linux/fs/gfs2/ |
| H A D | Makefile | 4 gfs2-y := acl.o bmap.o dir.o xattr.o glock.o \
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_npc.c | 2067 bitmap_free(mcam->bmap); in npc_mcam_rsrcs_deinit() 2074 kfree(mcam->counters.bmap); in npc_mcam_rsrcs_deinit() 2138 mcam->bmap = bitmap_zalloc(mcam->bmap_entries, GFP_KERNEL); in npc_mcam_rsrcs_init() 2139 if (!mcam->bmap) in npc_mcam_rsrcs_init() 2219 kfree(mcam->counters.bmap); in npc_mcam_rsrcs_init() 2225 bitmap_free(mcam->bmap); in npc_mcam_rsrcs_init() 2476 kfree(pkind->rsrc.bmap); in rvu_npc_freemem() 2609 __set_bit(entry, mcam->bmap); in npc_mcam_set_bit() 2625 __clear_bit(entry, mcam->bmap); in npc_mcam_clear_bit() 2793 fcnt = npc_mcam_get_free_count(mcam->bmap, in npc_get_mcam_search_range_priority() [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/drivers/gpio/ |
| H A D | gpio-usbio.c | 204 for (bank = 0; bank < USBIO_MAX_GPIOBANKS && bank_desc[bank].bmap; bank++) in usbio_gpio_probe() 205 gpio->banks[bank].bitmap = le32_to_cpu(bank_desc[bank].bmap); in usbio_gpio_probe()
|