Searched refs:bmap (Results 1 - 25 of 122) sorted by relevance

12345

/linux-master/fs/nilfs2/
H A Dbmap.c14 #include "bmap.h"
22 struct inode *nilfs_bmap_get_dat(const struct nilfs_bmap *bmap) argument
24 struct the_nilfs *nilfs = bmap->b_inode->i_sb->s_fs_info;
29 static int nilfs_bmap_convert_error(struct nilfs_bmap *bmap, argument
32 struct inode *inode = bmap->b_inode;
36 "broken bmap (inode number=%lu)", inode->i_ino);
44 * @bmap: bmap
50 * matches @key in the block at @level of the bmap.
62 int nilfs_bmap_lookup_at_level(struct nilfs_bmap *bmap, __u6 argument
94 nilfs_bmap_lookup_contig(struct nilfs_bmap *bmap, __u64 key, __u64 *ptrp, unsigned int maxblocks) argument
106 nilfs_bmap_do_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) argument
150 nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec) argument
161 nilfs_bmap_do_delete(struct nilfs_bmap *bmap, __u64 key) argument
205 nilfs_bmap_seek_key(struct nilfs_bmap *bmap, __u64 start, __u64 *keyp) argument
218 nilfs_bmap_last_key(struct nilfs_bmap *bmap, __u64 *keyp) argument
248 nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key) argument
259 nilfs_bmap_do_truncate(struct nilfs_bmap *bmap, __u64 key) argument
300 nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key) argument
317 nilfs_bmap_clear(struct nilfs_bmap *bmap) argument
340 nilfs_bmap_propagate(struct nilfs_bmap *bmap, struct buffer_head *bh) argument
356 nilfs_bmap_lookup_dirty_buffers(struct nilfs_bmap *bmap, struct list_head *listp) argument
382 nilfs_bmap_assign(struct nilfs_bmap *bmap, struct buffer_head **bh, unsigned long blocknr, union nilfs_binfo *binfo) argument
412 nilfs_bmap_mark(struct nilfs_bmap *bmap, __u64 key, int level) argument
435 nilfs_bmap_test_and_clear_dirty(struct nilfs_bmap *bmap) argument
450 nilfs_bmap_data_get_key(const struct nilfs_bmap *bmap, const struct buffer_head *bh) argument
464 nilfs_bmap_find_target_seq(const struct nilfs_bmap *bmap, __u64 key) argument
478 nilfs_bmap_find_target_in_group(const struct nilfs_bmap *bmap) argument
504 nilfs_bmap_read(struct nilfs_bmap *bmap, struct nilfs_inode *raw_inode) argument
549 nilfs_bmap_write(struct nilfs_bmap *bmap, struct nilfs_inode *raw_inode) argument
557 nilfs_bmap_init_gc(struct nilfs_bmap *bmap) argument
569 nilfs_bmap_save(const struct nilfs_bmap *bmap, struct nilfs_bmap_store *store) argument
578 nilfs_bmap_restore(struct nilfs_bmap *bmap, const struct nilfs_bmap_store *store) argument
[all...]
H A Ddirect.c93 ret = -EINVAL; /* Notify bmap layer of metadata corruption */
111 static int nilfs_direct_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) argument
120 if (nilfs_direct_get_ptr(bmap, key) != NILFS_BMAP_INVALID_PTR)
123 if (NILFS_BMAP_USE_VBN(bmap)) {
124 req.bpr_ptr = nilfs_direct_find_target_v(bmap, key);
125 dat = nilfs_bmap_get_dat(bmap);
127 ret = nilfs_bmap_prepare_alloc_ptr(bmap, &req, dat);
133 nilfs_bmap_commit_alloc_ptr(bmap, &req, dat);
134 nilfs_direct_set_ptr(bmap, key, req.bpr_ptr);
136 if (!nilfs_bmap_dirty(bmap))
147 nilfs_direct_delete(struct nilfs_bmap *bmap, __u64 key) argument
202 nilfs_direct_check_insert(const struct nilfs_bmap *bmap, __u64 key) argument
228 nilfs_direct_delete_and_convert(struct nilfs_bmap *bmap, __u64 key, __u64 *keys, __u64 *ptrs, int n) argument
261 nilfs_direct_propagate(struct nilfs_bmap *bmap, struct buffer_head *bh) argument
327 nilfs_direct_assign(struct nilfs_bmap *bmap, struct buffer_head **bh, sector_t blocknr, union nilfs_binfo *binfo) argument
380 nilfs_direct_init(struct nilfs_bmap *bmap) argument
[all...]
H A Dbmap.h28 * union nilfs_bmap_ptr_req - request for bmap ptr
29 * @bpr_ptr: bmap pointer
38 * struct nilfs_bmap_stats - bmap statistics
46 * struct nilfs_bmap_operations - bmap operation table
88 * struct nilfs_bmap - bmap structure
91 * @b_inode: owner of bmap
92 * @b_ops: bmap operation table
126 #define NILFS_BMAP_USE_VBN(bmap) ((bmap)->b_ptr_type > 0)
132 * struct nilfs_bmap_store - shadow copy of bmap stat
167 nilfs_bmap_lookup(struct nilfs_bmap *bmap, __u64 key, __u64 *ptr) argument
178 nilfs_bmap_prepare_alloc_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) argument
189 nilfs_bmap_commit_alloc_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) argument
197 nilfs_bmap_abort_alloc_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) argument
207 nilfs_bmap_prepare_end_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) argument
214 nilfs_bmap_commit_end_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) argument
223 nilfs_bmap_abort_end_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) argument
231 nilfs_bmap_set_target_v(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) argument
246 nilfs_bmap_dirty(const struct nilfs_bmap *bmap) argument
252 nilfs_bmap_set_dirty(struct nilfs_bmap *bmap) argument
258 nilfs_bmap_clear_dirty(struct nilfs_bmap *bmap) argument
[all...]
H A DMakefile4 btnode.o bmap.o btree.o direct.o dat.o recovery.o \
/linux-master/include/uapi/linux/netfilter/
H A Dxt_TCPOPTSTRIP.h7 #define tcpoptstrip_set_bit(bmap, idx) \
8 (bmap[(idx) >> 5] |= 1U << (idx & 31))
9 #define tcpoptstrip_test_bit(bmap, idx) \
10 (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
/linux-master/fs/xfs/scrub/
H A Ddqiterate.c32 cursor->bmap.br_startoff = NULLFILEOFF;
60 if (cursor->bmap.br_startoff != NULLFILEOFF &&
62 cursor->bmap.br_startoff + cursor->bmap.br_blockcount > fileoff)
67 XFS_MAX_FILEOFF - fileoff, &cursor->bmap, &nmaps, 0);
74 if (cursor->bmap.br_startoff > fileoff) {
75 ASSERT(cursor->bmap.br_startoff == fileoff);
100 fileoff = cursor->bmap.br_startoff + cursor->bmap.br_blockcount;
108 XFS_MAX_FILEOFF - fileoff, &cursor->bmap,
[all...]
H A Dquota.h20 struct xfs_bmbt_irec bmap; member in struct:xchk_dqiter
/linux-master/lib/
H A Dtest_bitmap.c77 const unsigned long *exp_bmap, const unsigned long *bmap,
80 if (!bitmap_equal(exp_bmap, bmap, nbits)) {
83 nbits, exp_bmap, nbits, bmap);
197 DECLARE_BITMAP(bmap, 1024);
200 memset(bmap, 0xff, 128);
202 expect_eq_pbl("0-22", bmap, 23);
203 expect_eq_pbl("0-1023", bmap, 1024);
206 bitmap_clear(bmap, 0, 9);
207 expect_eq_pbl("9-1023", bmap, 1024);
209 bitmap_zero(bmap, 3
76 __check_eq_bitmap(const char *srcfile, unsigned int line, const unsigned long *exp_bmap, const unsigned long *bmap, unsigned int nbits) argument
560 unsigned long *bmap = kmalloc(PAGE_SIZE, GFP_KERNEL); local
[all...]
/linux-master/tools/testing/selftests/kvm/x86_64/
H A Dvmx_dirty_log_test.c87 unsigned long *bmap; local
132 bmap = bitmap_zalloc(TEST_MEM_PAGES);
149 kvm_vm_get_dirty_log(vm, TEST_MEM_SLOT_INDEX, bmap);
151 TEST_ASSERT(test_bit(0, bmap), "Page 0 incorrectly reported clean");
154 TEST_ASSERT(!test_bit(0, bmap), "Page 0 incorrectly reported dirty");
158 TEST_ASSERT(!test_bit(1, bmap), "Page 1 incorrectly reported dirty");
160 TEST_ASSERT(!test_bit(2, bmap), "Page 2 incorrectly reported dirty");
/linux-master/fs/affs/
H A Dbitmap.c44 u32 blk, bmap, bit, mask, tmp; local
53 bmap = blk / sbi->s_bmap_bits;
55 bm = &sbi->s_bitmap[bmap];
60 if (sbi->s_last_bmap != bmap) {
66 sbi->s_last_bmap = bmap;
122 u32 blk, bmap, bit, mask, mask2, tmp; local
145 bmap = blk / sbi->s_bmap_bits;
146 bm = &sbi->s_bitmap[bmap];
154 /* search for the next bmap buffer with free bits */
159 bmap
[all...]
/linux-master/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.c39 struct qed_bmap *bmap, u32 max_count, char *name)
43 bmap->max_count = max_count;
45 bmap->bitmap = bitmap_zalloc(max_count, GFP_KERNEL);
46 if (!bmap->bitmap)
49 snprintf(bmap->name, QED_RDMA_MAX_BMAP_NAME, "%s", name);
56 struct qed_bmap *bmap, u32 *id_num)
58 *id_num = find_first_zero_bit(bmap->bitmap, bmap->max_count);
59 if (*id_num >= bmap->max_count)
62 __set_bit(*id_num, bmap
38 qed_rdma_bmap_alloc(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 max_count, char *name) argument
55 qed_rdma_bmap_alloc_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 *id_num) argument
70 qed_bmap_set_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num) argument
79 qed_bmap_release_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num) argument
98 qed_bmap_test_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num) argument
107 qed_bmap_is_empty(struct qed_bmap *bmap) argument
318 qed_rdma_bmap_free(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, bool check) argument
1725 struct qed_bmap *bmap; local
1774 struct qed_bmap *bmap; local
[all...]
/linux-master/fs/jfs/
H A Djfs_discard.c68 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap;
H A Dfile.c66 atomic_inc(&jfs_sb->bmap->db_active[ji->active_ag]);
79 struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap; local
80 atomic_dec(&bmap->db_active[ji->active_ag]);
H A Djfs_dmap.c39 * write inode lock of the bmap inode. requests starting at the top
47 * write information maintained in the bmap descriptor (i.e. total
64 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
70 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc,
72 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results);
73 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
75 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
78 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
80 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
83 static int dbAllocAG(struct bmap * bm
[all...]
H A Dinode.c173 struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap; local
174 atomic_dec(&bmap->db_active[ji->active_ag]);
356 .bmap = jfs_bmap,
/linux-master/drivers/net/ethernet/brocade/bna/
H A Dbnad_ethtool.c602 u32 bmap; local
614 bmap = bna_tx_rid_mask(&bnad->bna);
615 for (i = 0; bmap; i++) {
616 if (bmap & 1)
618 bmap >>= 1;
621 bmap = bna_rx_rid_mask(&bnad->bna);
622 for (i = 0; bmap; i++, bmap >>= 1) {
623 if (bmap & 1)
625 bmap >>
665 u32 bmap; local
800 u32 bmap; local
[all...]
/linux-master/fs/gfs2/
H A DMakefile4 gfs2-y := acl.o bmap.o dir.o xattr.o glock.o \
/linux-master/arch/sparc/include/asm/
H A Dio-unit.h45 unsigned long bmap[(IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 3)) / sizeof(unsigned long)]; member in struct:iounit_struct
/linux-master/drivers/net/ethernet/chelsio/libcxgb/
H A Dlibcxgb_ppm.c84 static int ppm_find_unused_entries(unsigned long *bmap, argument
92 i = bitmap_find_next_zero_area(bmap, max_ppods, start, nr, align_mask);
95 i = bitmap_find_next_zero_area(bmap, max_ppods, 0, start - 1,
100 bitmap_set(bmap, i, nr);
133 i = ppm_find_unused_entries(pool->bmap, ppm->pool_index_max,
204 bitmap_clear(pool->bmap, i, count);
351 unsigned int bmap; local
361 bmap = ppmax / BITS_PER_TYPE(unsigned long);
362 if (!bmap)
365 ppmax = (bmap * sizeo
[all...]
/linux-master/drivers/crypto/marvell/octeontx/
H A Dotx_cptpf_ucode.c60 struct otx_cpt_bitmap bmap = { {0} }; local
67 return bmap;
72 bitmap_or(bmap.bits, bmap.bits,
73 eng_grp->engs[i].bmap,
75 bmap.size = eng_grp->g->engs_num;
83 return bmap;
179 struct otx_cpt_bitmap bmap; local
182 bmap = get_cores_bmap(&cpt->pdev->dev, eng_grp);
183 if (!bmap
207 struct otx_cpt_bitmap bmap = { {0} }; local
255 struct otx_cpt_bitmap bmap; local
585 struct otx_cpt_bitmap bmap; local
[all...]
/linux-master/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptpf_ucode.c32 struct otx2_cpt_bitmap bmap = { {0} }; local
40 return bmap;
45 bitmap_or(bmap.bits, bmap.bits,
46 eng_grp->engs[i].bmap,
48 bmap.size = eng_grp->g->engs_num;
56 return bmap;
193 for_each_set_bit(bit, engs->bmap, eng_grp->g->engs_num)
219 struct otx2_cpt_bitmap bmap,
227 for_each_set_bit(i, bmap
217 cptx_detach_and_disable_cores(struct otx2_cpt_eng_grp_info *eng_grp, struct otx2_cptpf_dev *cptpf, struct otx2_cpt_bitmap bmap, int blkaddr) argument
287 struct otx2_cpt_bitmap bmap; local
304 cptx_attach_and_enable_cores(struct otx2_cpt_eng_grp_info *eng_grp, struct otx2_cptpf_dev *cptpf, struct otx2_cpt_bitmap bmap, int blkaddr) argument
347 struct otx2_cpt_bitmap bmap; local
[all...]
/linux-master/include/media/
H A Dmedia-entity.h70 * @bmap: Bit map in which each bit represents one entity at struct
72 * @idx_max: Number of bits in bmap
75 unsigned long *bmap; member in struct:media_entity_enum
523 bitmap_zero(ent_enum->bmap, ent_enum->idx_max);
538 __set_bit(entity->internal_idx, ent_enum->bmap);
553 __clear_bit(entity->internal_idx, ent_enum->bmap);
570 return test_bit(entity->internal_idx, ent_enum->bmap);
589 return __test_and_set_bit(entity->internal_idx, ent_enum->bmap);
601 return bitmap_empty(ent_enum->bmap, ent_enum->idx_max);
619 return bitmap_intersects(ent_enum1->bmap, ent_enum
[all...]
/linux-master/fs/freevxfs/
H A Dvxfs_subr.c22 .bmap = vxfs_bmap,
/linux-master/arch/sparc/mm/
H A Dio-unit.c118 nexti: scan = find_next_zero_bit(iounit->bmap, limit, scan);
131 if (test_bit(scan++, iounit->bmap))
138 set_bit(scan, iounit->bmap);
192 clear_bit(vaddr, iounit->bmap);
210 clear_bit(vaddr, iounit->bmap);

Completed in 333 milliseconds

12345