Home
last modified time | relevance | path

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

123456

/linux/fs/nilfs2/
A Dbmap.c69 ret = bmap->b_ops->bop_lookup(bmap, key, level, ptrp); in nilfs_bmap_lookup_at_level()
113 ret = bmap->b_ops->bop_check_insert(bmap, key); in nilfs_bmap_do_insert()
129 return bmap->b_ops->bop_insert(bmap, key, ptr); in nilfs_bmap_do_insert()
168 ret = bmap->b_ops->bop_check_delete(bmap, key); in nilfs_bmap_do_delete()
184 return bmap->b_ops->bop_delete(bmap, key); in nilfs_bmap_do_delete()
223 ret = bmap->b_ops->bop_last_key(bmap, keyp); in nilfs_bmap_last_key()
264 ret = bmap->b_ops->bop_last_key(bmap, &lastkey); in nilfs_bmap_do_truncate()
321 bmap->b_ops->bop_clear(bmap); in nilfs_bmap_clear()
345 ret = bmap->b_ops->bop_propagate(bmap, bh); in nilfs_bmap_propagate()
420 ret = bmap->b_ops->bop_mark(bmap, key, level); in nilfs_bmap_mark()
[all …]
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 …]
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/lib/
A Dtest_bitmap.c209 bitmap_zero(bmap, 35); in test_zero_clear()
230 __set_bit(10, bmap); in test_find_nth_bit()
231 __set_bit(20, bmap); in test_find_nth_bit()
232 __set_bit(30, bmap); in test_find_nth_bit()
233 __set_bit(40, bmap); in test_find_nth_bit()
234 __set_bit(50, bmap); in test_find_nth_bit()
235 __set_bit(60, bmap); in test_find_nth_bit()
236 __set_bit(80, bmap); in test_find_nth_bit()
237 __set_bit(123, bmap); in test_find_nth_bit()
566 if (!buf || !bmap) in test_bitmap_printlist()
[all …]
/linux/fs/xfs/scrub/
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/tools/testing/selftests/kvm/x86_64/
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/fs/affs/
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/include/uapi/linux/netfilter/
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/arch/riscv/kernel/
A Dvendor_extensions.c34 struct riscv_isavendorinfo *bmap; in __riscv_isa_vendor_extension_available() local
40 bmap = &riscv_isa_vendor_ext_list_andes.all_harts_isa_bitmap; in __riscv_isa_vendor_extension_available()
49 bmap = &cpu_bmap[cpu]; in __riscv_isa_vendor_extension_available()
54 return test_bit(bit, bmap->isa) ? true : false; in __riscv_isa_vendor_extension_available()
/linux/drivers/crypto/marvell/octeontx/
A Dotx_cptpf_ucode.c67 return bmap; in get_cores_bmap()
72 bitmap_or(bmap.bits, bmap.bits, in get_cores_bmap()
83 return bmap; in get_cores_bmap()
196 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_set_ucode_base()
218 for_each_set_bit(i, bmap.bits, bmap.size) { in cpt_detach_and_disable_cores()
234 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_detach_and_disable_cores()
243 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_detach_and_disable_cores()
265 for_each_set_bit(i, bmap.bits, bmap.size) { in cpt_attach_and_enable_cores()
275 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_attach_and_enable_cores()
593 bitmap_to_arr32(mask, bmap.bits, bmap.size); in cpt_print_engines_mask()
[all …]
/linux/drivers/net/ethernet/brocade/bna/
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/drivers/crypto/marvell/octeontx2/
A Dotx2_cptpf_ucode.c40 return bmap; in get_cores_bmap()
45 bitmap_or(bmap.bits, bmap.bits, in get_cores_bmap()
56 return bmap; in get_cores_bmap()
227 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_detach_and_disable_cores()
253 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_detach_and_disable_cores()
269 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_detach_and_disable_cores()
291 if (!bmap.size) in cpt_detach_and_disable_cores()
313 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_attach_and_enable_cores()
333 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_attach_and_enable_cores()
351 if (!bmap.size) in cpt_attach_and_enable_cores()
[all …]
/linux/fs/jfs/
A Djfs_dmap.c155 struct bmap *bmp; in dbMount()
267 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbUnmount()
290 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbSync()
362 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in dbFree()
454 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbUpdatePMap()
635 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbNextAG()
1012 bmp = sbi->bmap; in dbExtend()
1579 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in dbDiscardAG()
3195 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in dbAllocBottomUp()
3375 struct bmap *bmp = sbi->bmap; in dbExtendFS()
[all …]
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()
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,
A Djfs_discard.c68 struct bmap *bmp; in jfs_ioc_trim()
87 bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim()
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/drivers/net/ethernet/qlogic/qed/
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);
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/drivers/net/ethernet/chelsio/libcxgb/
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/include/media/
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/tools/testing/selftests/kvm/
A Ddirty_log_test.c548 static void vm_dirty_log_verify(enum vm_guest_mode mode, unsigned long *bmap) in vm_dirty_log_verify() argument
561 TEST_ASSERT(test_bit_le(page, bmap), in vm_dirty_log_verify()
567 if (__test_and_clear_bit_le(page, bmap)) { in vm_dirty_log_verify()
691 unsigned long *bmap; in run_test() local
738 bmap = bitmap_zalloc(host_num_pages); in run_test()
785 bmap, host_num_pages, in run_test()
803 vm_dirty_log_verify(mode, bmap); in run_test()
825 free(bmap); in run_test()
/linux/arch/sparc/mm/
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/Documentation/devicetree/bindings/soc/fsl/
A Dfsl,bman-portal.yaml26 - fsl,ls1043a-bmap-portal
27 - fsl,ls1046a-bmap-portal
/linux/include/linux/
A Dhid.h1048 unsigned long *bmap = NULL; in hid_map_usage() local
1053 bmap = input->absbit; in hid_map_usage()
1057 bmap = input->relbit; in hid_map_usage()
1061 bmap = input->keybit; in hid_map_usage()
1065 bmap = input->ledbit; in hid_map_usage()
1069 bmap = input->mscbit; in hid_map_usage()
1074 if (unlikely(c > limit || !bmap)) { in hid_map_usage()
1084 *bit = bmap; in hid_map_usage()

Completed in 60 milliseconds

123456