Home
last modified time | relevance | path

Searched refs:bmap (Results 1 – 25 of 127) sorted by relevance

123456

/linux-6.15/fs/nilfs2/
H A Dbmap.c66 ret = bmap->b_ops->bop_lookup(bmap, key, level, ptrp); in nilfs_bmap_lookup_at_level()
110 ret = bmap->b_ops->bop_check_insert(bmap, key); in nilfs_bmap_do_insert()
126 return bmap->b_ops->bop_insert(bmap, key, ptr); in nilfs_bmap_do_insert()
162 ret = bmap->b_ops->bop_check_delete(bmap, key); in nilfs_bmap_do_delete()
178 return bmap->b_ops->bop_delete(bmap, key); in nilfs_bmap_do_delete()
214 ret = bmap->b_ops->bop_last_key(bmap, keyp); in nilfs_bmap_last_key()
252 ret = bmap->b_ops->bop_last_key(bmap, &lastkey); in nilfs_bmap_do_truncate()
307 bmap->b_ops->bop_clear(bmap); in nilfs_bmap_clear()
329 ret = bmap->b_ops->bop_propagate(bmap, bh); in nilfs_bmap_propagate()
402 ret = bmap->b_ops->bop_mark(bmap, key, level); in nilfs_bmap_mark()
[all …]
H A Ddirect.c123 if (NILFS_BMAP_USE_VBN(bmap)) { in nilfs_direct_insert()
125 dat = nilfs_bmap_get_dat(bmap); in nilfs_direct_insert()
136 if (!nilfs_bmap_dirty(bmap)) in nilfs_direct_insert()
137 nilfs_bmap_set_dirty(bmap); in nilfs_direct_insert()
139 if (NILFS_BMAP_USE_VBN(bmap)) in nilfs_direct_insert()
157 dat = NILFS_BMAP_USE_VBN(bmap) ? nilfs_bmap_get_dat(bmap) : NULL; in nilfs_direct_delete()
237 ret = bmap->b_ops->bop_delete(bmap, key); in nilfs_direct_delete_and_convert()
243 bmap->b_ops->bop_clear(bmap); in nilfs_direct_delete_and_convert()
257 nilfs_direct_init(bmap); in nilfs_direct_delete_and_convert()
270 if (!NILFS_BMAP_USE_VBN(bmap)) in nilfs_direct_propagate()
[all …]
H A Dbmap.h138 #define NILFS_BMAP_USE_VBN(bmap) ((bmap)->b_ptr_type > 0) argument
162 int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key);
182 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); in nilfs_bmap_lookup()
197 req->bpr_ptr = bmap->b_last_allocated_ptr++; in nilfs_bmap_prepare_alloc_ptr()
216 bmap->b_last_allocated_ptr--; in nilfs_bmap_abort_alloc_ptr()
232 bmap->b_ptr_type == NILFS_BMAP_PTR_VS); in nilfs_bmap_commit_end_ptr()
246 bmap->b_last_allocated_key = key; in nilfs_bmap_set_target_v()
247 bmap->b_last_allocated_ptr = ptr; in nilfs_bmap_set_target_v()
260 return !!(bmap->b_state & NILFS_BMAP_DIRTY); in nilfs_bmap_dirty()
266 bmap->b_state |= NILFS_BMAP_DIRTY; in nilfs_bmap_set_dirty()
[all …]
/linux-6.15/lib/
H A Dtest_bitmap.c181 bitmap_zero(bmap, 35); in test_zero_clear()
202 __set_bit(10, bmap); in test_find_nth_bit()
203 __set_bit(20, bmap); in test_find_nth_bit()
204 __set_bit(30, bmap); in test_find_nth_bit()
205 __set_bit(40, bmap); in test_find_nth_bit()
206 __set_bit(50, bmap); in test_find_nth_bit()
207 __set_bit(60, bmap); in test_find_nth_bit()
208 __set_bit(80, bmap); in test_find_nth_bit()
209 __set_bit(123, bmap); in test_find_nth_bit()
538 if (!buf || !bmap) in test_bitmap_printlist()
[all …]
/linux-6.15/fs/xfs/scrub/
H A Ddqiterate.c32 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 …]
/linux-6.15/arch/riscv/kernel/
H A Dvendor_extensions.c38 struct riscv_isavendorinfo *bmap; in __riscv_isa_vendor_extension_available() local
44 bmap = &riscv_isa_vendor_ext_list_andes.all_harts_isa_bitmap; in __riscv_isa_vendor_extension_available()
50 bmap = &riscv_isa_vendor_ext_list_thead.all_harts_isa_bitmap; in __riscv_isa_vendor_extension_available()
59 bmap = &cpu_bmap[cpu]; in __riscv_isa_vendor_extension_available()
64 return test_bit(bit, bmap->isa); in __riscv_isa_vendor_extension_available()
/linux-6.15/tools/testing/selftests/kvm/x86/
H A Dvmx_dirty_log_test.c84 unsigned long *bmap; in test_vmx_dirty_log() local
129 bmap = bitmap_zalloc(TEST_MEM_PAGES); in test_vmx_dirty_log()
146 kvm_vm_get_dirty_log(vm, TEST_MEM_SLOT_INDEX, bmap); in test_vmx_dirty_log()
148 TEST_ASSERT(test_bit(0, bmap), "Page 0 incorrectly reported clean"); in test_vmx_dirty_log()
151 TEST_ASSERT(!test_bit(0, bmap), "Page 0 incorrectly reported dirty"); in test_vmx_dirty_log()
155 TEST_ASSERT(!test_bit(1, bmap), "Page 1 incorrectly reported dirty"); in test_vmx_dirty_log()
157 TEST_ASSERT(!test_bit(2, bmap), "Page 2 incorrectly reported dirty"); in test_vmx_dirty_log()
/linux-6.15/fs/affs/
H A Dbitmap.c44 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local
53 bmap = blk / sbi->s_bmap_bits; in affs_free_block()
55 bm = &sbi->s_bitmap[bmap]; in affs_free_block()
60 if (sbi->s_last_bmap != bmap) { in affs_free_block()
66 sbi->s_last_bmap = bmap; in affs_free_block()
145 bmap = blk / sbi->s_bmap_bits; in affs_alloc_block()
146 bm = &sbi->s_bitmap[bmap]; in affs_alloc_block()
159 bmap++; in affs_alloc_block()
161 if (bmap < sbi->s_bmap_count) in affs_alloc_block()
164 bmap = 0; in affs_alloc_block()
[all …]
/linux-6.15/include/uapi/linux/netfilter/
H A Dxt_TCPOPTSTRIP.h7 #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-6.15/drivers/crypto/marvell/octeontx/
H A Dotx_cptpf_ucode.c68 return bmap; in get_cores_bmap()
73 bitmap_or(bmap.bits, bmap.bits, in get_cores_bmap()
84 return bmap; in get_cores_bmap()
197 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_set_ucode_base()
219 for_each_set_bit(i, bmap.bits, bmap.size) { in cpt_detach_and_disable_cores()
235 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_detach_and_disable_cores()
244 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_detach_and_disable_cores()
266 for_each_set_bit(i, bmap.bits, bmap.size) { in cpt_attach_and_enable_cores()
276 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_attach_and_enable_cores()
583 bitmap_to_arr32(mask, bmap.bits, bmap.size); in cpt_print_engines_mask()
[all …]
/linux-6.15/drivers/net/ethernet/brocade/bna/
H A Dbnad_ethtool.c602 u32 bmap; in bnad_get_strings() local
616 if (bmap & 1) in bnad_get_strings()
618 bmap >>= 1; in bnad_get_strings()
622 for (i = 0; bmap; i++, bmap >>= 1) { in bnad_get_strings()
625 bmap >>= 1; in bnad_get_strings()
665 u32 bmap; in bnad_get_stats_count_locked() local
671 bmap >>= 1; in bnad_get_stats_count_locked()
677 bmap >>= 1; in bnad_get_stats_count_locked()
800 u32 bmap; in bnad_get_ethtool_stats() local
859 bmap >>= 1; in bnad_get_ethtool_stats()
[all …]
/linux-6.15/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptpf_ucode.c41 return bmap; in get_cores_bmap()
46 bitmap_or(bmap.bits, bmap.bits, in get_cores_bmap()
57 return bmap; in get_cores_bmap()
228 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_detach_and_disable_cores()
254 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_detach_and_disable_cores()
270 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_detach_and_disable_cores()
292 if (!bmap.size) in cpt_detach_and_disable_cores()
314 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_attach_and_enable_cores()
334 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_attach_and_enable_cores()
352 if (!bmap.size) in cpt_attach_and_enable_cores()
[all …]
/linux-6.15/fs/jfs/
H A Djfs_dmap.c155 struct bmap *bmp; in dbMount()
252 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbUnmount()
275 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbSync()
347 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in dbFree()
439 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbUpdatePMap()
620 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbNextAG()
997 bmp = sbi->bmap; in dbExtend()
1564 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in dbDiscardAG()
3186 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in dbAllocBottomUp()
3366 struct bmap *bmp = sbi->bmap; in dbExtendFS()
[all …]
H A Dfile.c66 atomic_inc(&jfs_sb->bmap->db_active[ji->active_ag]); in jfs_open()
79 struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap; in jfs_release() local
80 atomic_dec(&bmap->db_active[ji->active_ag]); in jfs_release()
H A Dinode.c173 struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap; in jfs_evict_inode() local
174 atomic_dec(&bmap->db_active[ji->active_ag]); in jfs_evict_inode()
356 .bmap = jfs_bmap,
H A Djfs_discard.c68 struct bmap *bmp; in jfs_ioc_trim()
87 bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim()
H A Djfs_dmap.h121 #define BLKTOAG(b,sbi) ((b) >> ((sbi)->bmap->db_agl2size))
127 ((s64)(a) << (JFS_SBI((ip)->i_sb)->bmap->db_agl2size))
230 struct bmap { struct
/linux-6.15/drivers/net/ethernet/qlogic/qed/
H A Dqed_rdma.h189 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 Dqed_rdma.c43 bmap->max_count = max_count; in qed_rdma_bmap_alloc()
46 if (!bmap->bitmap) in qed_rdma_bmap_alloc()
58 *id_num = find_first_zero_bit(bmap->bitmap, bmap->max_count); in qed_rdma_bmap_alloc_id()
65 bmap->name, *id_num); in qed_rdma_bmap_alloc_id()
90 bmap->name, id_num); in qed_bmap_release_id()
95 bmap->name, id_num); in qed_bmap_release_id()
109 return bitmap_empty(bmap->bitmap, bmap->max_count); in qed_bmap_is_empty()
327 weight = bitmap_weight(bmap->bitmap, bmap->max_count); in qed_rdma_bmap_free()
333 bmap->name, bmap->max_count, weight); in qed_rdma_bmap_free()
346 bmap->bitmap = NULL; in qed_rdma_bmap_free()
[all …]
/linux-6.15/drivers/net/ethernet/chelsio/libcxgb/
H A Dlibcxgb_ppm.c84 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-6.15/include/media/
H A Dmedia-entity.h75 unsigned long *bmap; member
523 bitmap_zero(ent_enum->bmap, ent_enum->idx_max); in media_entity_enum_zero()
538 __set_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_set()
553 __clear_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_clear()
570 return test_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_test()
589 return __test_and_set_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_test_and_set()
601 return bitmap_empty(ent_enum->bmap, ent_enum->idx_max); in media_entity_enum_empty()
619 return bitmap_intersects(ent_enum1->bmap, ent_enum2->bmap, in media_entity_enum_intersects()
/linux-6.15/tools/testing/selftests/kvm/
H A Ddirty_log_test.c495 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()
602 unsigned long *bmap[2]; in run_test() local
658 bmap[0] = bitmap_zalloc(host_num_pages); in run_test()
659 bmap[1] = bitmap_zalloc(host_num_pages); in run_test()
754 bmap[0], host_num_pages, in run_test()
791 bmap[1], host_num_pages, in run_test()
793 vm_dirty_log_verify(mode, bmap); in run_test()
804 free(bmap[0]); in run_test()
[all …]
/linux-6.15/arch/sparc/mm/
H A Dio-unit.c118 nexti: scan = find_next_zero_bit(iounit->bmap, limit, scan); in iounit_get_area()
131 if (test_bit(scan++, iounit->bmap)) in iounit_get_area()
138 set_bit(scan, iounit->bmap); in iounit_get_area()
192 clear_bit(vaddr, iounit->bmap); in iounit_unmap_page()
210 clear_bit(vaddr, iounit->bmap); in iounit_unmap_sg()
/linux-6.15/Documentation/devicetree/bindings/soc/fsl/
H A Dfsl,bman-portal.yaml26 - fsl,ls1043a-bmap-portal
27 - fsl,ls1046a-bmap-portal
/linux-6.15/include/linux/
H A Dhid.h1054 unsigned long *bmap = NULL; in hid_map_usage() local
1059 bmap = input->absbit; in hid_map_usage()
1063 bmap = input->relbit; in hid_map_usage()
1067 bmap = input->keybit; in hid_map_usage()
1071 bmap = input->ledbit; in hid_map_usage()
1075 bmap = input->mscbit; in hid_map_usage()
1080 if (unlikely(c > limit || !bmap)) { in hid_map_usage()
1090 *bit = bmap; in hid_map_usage()

123456