/kernel/linux/linux-5.10/fs/nilfs2/ |
H A D | bmap.c | 3 * bmap.c - NILFS block mapping. 14 #include "bmap.h" 22 struct inode *nilfs_bmap_get_dat(const struct nilfs_bmap *bmap) in nilfs_bmap_get_dat() argument 24 struct the_nilfs *nilfs = bmap->b_inode->i_sb->s_fs_info; in nilfs_bmap_get_dat() 29 static int nilfs_bmap_convert_error(struct nilfs_bmap *bmap, in nilfs_bmap_convert_error() argument 32 struct inode *inode = bmap->b_inode; in nilfs_bmap_convert_error() 36 "broken bmap (inode number=%lu)", inode->i_ino); in nilfs_bmap_convert_error() 44 * @bmap: bmap 50 * matches @key in the block at @level of the bmap 62 nilfs_bmap_lookup_at_level(struct nilfs_bmap *bmap, __u64 key, int level, __u64 *ptrp) nilfs_bmap_lookup_at_level() argument 94 nilfs_bmap_lookup_contig(struct nilfs_bmap *bmap, __u64 key, __u64 *ptrp, unsigned int maxblocks) nilfs_bmap_lookup_contig() argument 106 nilfs_bmap_do_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) nilfs_bmap_do_insert() argument 150 nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec) nilfs_bmap_insert() argument 161 nilfs_bmap_do_delete(struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_do_delete() argument 205 nilfs_bmap_seek_key(struct nilfs_bmap *bmap, __u64 start, __u64 *keyp) nilfs_bmap_seek_key() argument 218 nilfs_bmap_last_key(struct nilfs_bmap *bmap, __u64 *keyp) nilfs_bmap_last_key() argument 248 nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_delete() argument 259 nilfs_bmap_do_truncate(struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_do_truncate() argument 300 nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_truncate() argument 317 nilfs_bmap_clear(struct nilfs_bmap *bmap) nilfs_bmap_clear() argument 340 nilfs_bmap_propagate(struct nilfs_bmap *bmap, struct buffer_head *bh) nilfs_bmap_propagate() argument 356 nilfs_bmap_lookup_dirty_buffers(struct nilfs_bmap *bmap, struct list_head *listp) nilfs_bmap_lookup_dirty_buffers() argument 382 nilfs_bmap_assign(struct nilfs_bmap *bmap, struct buffer_head **bh, unsigned long blocknr, union nilfs_binfo *binfo) nilfs_bmap_assign() argument 412 nilfs_bmap_mark(struct nilfs_bmap *bmap, __u64 key, int level) nilfs_bmap_mark() argument 435 nilfs_bmap_test_and_clear_dirty(struct nilfs_bmap *bmap) nilfs_bmap_test_and_clear_dirty() argument 450 nilfs_bmap_data_get_key(const struct nilfs_bmap *bmap, const struct buffer_head *bh) nilfs_bmap_data_get_key() argument 464 nilfs_bmap_find_target_seq(const struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_find_target_seq() argument 478 nilfs_bmap_find_target_in_group(const struct nilfs_bmap *bmap) nilfs_bmap_find_target_in_group() argument 504 nilfs_bmap_read(struct nilfs_bmap *bmap, struct nilfs_inode *raw_inode) nilfs_bmap_read() argument 549 nilfs_bmap_write(struct nilfs_bmap *bmap, struct nilfs_inode *raw_inode) nilfs_bmap_write() argument 560 nilfs_bmap_init_gc(struct nilfs_bmap *bmap) nilfs_bmap_init_gc() argument 572 nilfs_bmap_save(const struct nilfs_bmap *bmap, struct nilfs_bmap_store *store) nilfs_bmap_save() argument 581 nilfs_bmap_restore(struct nilfs_bmap *bmap, const struct nilfs_bmap_store *store) nilfs_bmap_restore() argument [all...] |
H A D | direct.c | 106 static int nilfs_direct_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) in nilfs_direct_insert() argument 115 if (nilfs_direct_get_ptr(bmap, key) != NILFS_BMAP_INVALID_PTR) in nilfs_direct_insert() 118 if (NILFS_BMAP_USE_VBN(bmap)) { in nilfs_direct_insert() 119 req.bpr_ptr = nilfs_direct_find_target_v(bmap, key); in nilfs_direct_insert() 120 dat = nilfs_bmap_get_dat(bmap); in nilfs_direct_insert() 122 ret = nilfs_bmap_prepare_alloc_ptr(bmap, &req, dat); in nilfs_direct_insert() 128 nilfs_bmap_commit_alloc_ptr(bmap, &req, dat); in nilfs_direct_insert() 129 nilfs_direct_set_ptr(bmap, key, req.bpr_ptr); in nilfs_direct_insert() 131 if (!nilfs_bmap_dirty(bmap)) in nilfs_direct_insert() 132 nilfs_bmap_set_dirty(bmap); in nilfs_direct_insert() 142 nilfs_direct_delete(struct nilfs_bmap *bmap, __u64 key) nilfs_direct_delete() argument 197 nilfs_direct_check_insert(const struct nilfs_bmap *bmap, __u64 key) nilfs_direct_check_insert() argument 223 nilfs_direct_delete_and_convert(struct nilfs_bmap *bmap, __u64 key, __u64 *keys, __u64 *ptrs, int n) nilfs_direct_delete_and_convert() argument 256 nilfs_direct_propagate(struct nilfs_bmap *bmap, struct buffer_head *bh) nilfs_direct_propagate() argument 321 nilfs_direct_assign(struct nilfs_bmap *bmap, struct buffer_head **bh, sector_t blocknr, union nilfs_binfo *binfo) nilfs_direct_assign() argument 374 nilfs_direct_init(struct nilfs_bmap *bmap) nilfs_direct_init() argument [all...] |
H A D | bmap.h | 3 * bmap.h - NILFS block mapping. 28 * 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) 167 nilfs_bmap_lookup(struct nilfs_bmap *bmap, __u64 key, __u64 *ptr) nilfs_bmap_lookup() argument 178 nilfs_bmap_prepare_alloc_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) nilfs_bmap_prepare_alloc_ptr() argument 189 nilfs_bmap_commit_alloc_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) nilfs_bmap_commit_alloc_ptr() argument 197 nilfs_bmap_abort_alloc_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) nilfs_bmap_abort_alloc_ptr() argument 207 nilfs_bmap_prepare_end_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) nilfs_bmap_prepare_end_ptr() argument 214 nilfs_bmap_commit_end_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) nilfs_bmap_commit_end_ptr() argument 223 nilfs_bmap_abort_end_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) nilfs_bmap_abort_end_ptr() argument 231 nilfs_bmap_set_target_v(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) nilfs_bmap_set_target_v() argument 246 nilfs_bmap_dirty(const struct nilfs_bmap *bmap) nilfs_bmap_dirty() argument 252 nilfs_bmap_set_dirty(struct nilfs_bmap *bmap) nilfs_bmap_set_dirty() argument 258 nilfs_bmap_clear_dirty(struct nilfs_bmap *bmap) nilfs_bmap_clear_dirty() argument [all...] |
/kernel/linux/linux-6.6/fs/nilfs2/ |
H A D | bmap.c | 14 #include "bmap.h" 22 struct inode *nilfs_bmap_get_dat(const struct nilfs_bmap *bmap) in nilfs_bmap_get_dat() argument 24 struct the_nilfs *nilfs = bmap->b_inode->i_sb->s_fs_info; in nilfs_bmap_get_dat() 29 static int nilfs_bmap_convert_error(struct nilfs_bmap *bmap, in nilfs_bmap_convert_error() argument 32 struct inode *inode = bmap->b_inode; in nilfs_bmap_convert_error() 36 "broken bmap (inode number=%lu)", inode->i_ino); in nilfs_bmap_convert_error() 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) nilfs_bmap_lookup_contig() argument 106 nilfs_bmap_do_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) nilfs_bmap_do_insert() argument 150 nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec) nilfs_bmap_insert() argument 161 nilfs_bmap_do_delete(struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_do_delete() argument 205 nilfs_bmap_seek_key(struct nilfs_bmap *bmap, __u64 start, __u64 *keyp) nilfs_bmap_seek_key() argument 218 nilfs_bmap_last_key(struct nilfs_bmap *bmap, __u64 *keyp) nilfs_bmap_last_key() argument 248 nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_delete() argument 259 nilfs_bmap_do_truncate(struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_do_truncate() argument 300 nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_truncate() argument 317 nilfs_bmap_clear(struct nilfs_bmap *bmap) nilfs_bmap_clear() argument 340 nilfs_bmap_propagate(struct nilfs_bmap *bmap, struct buffer_head *bh) nilfs_bmap_propagate() argument 356 nilfs_bmap_lookup_dirty_buffers(struct nilfs_bmap *bmap, struct list_head *listp) nilfs_bmap_lookup_dirty_buffers() argument 382 nilfs_bmap_assign(struct nilfs_bmap *bmap, struct buffer_head **bh, unsigned long blocknr, union nilfs_binfo *binfo) nilfs_bmap_assign() argument 412 nilfs_bmap_mark(struct nilfs_bmap *bmap, __u64 key, int level) nilfs_bmap_mark() argument 435 nilfs_bmap_test_and_clear_dirty(struct nilfs_bmap *bmap) nilfs_bmap_test_and_clear_dirty() argument 450 nilfs_bmap_data_get_key(const struct nilfs_bmap *bmap, const struct buffer_head *bh) nilfs_bmap_data_get_key() argument 464 nilfs_bmap_find_target_seq(const struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_find_target_seq() argument 478 nilfs_bmap_find_target_in_group(const struct nilfs_bmap *bmap) nilfs_bmap_find_target_in_group() argument 504 nilfs_bmap_read(struct nilfs_bmap *bmap, struct nilfs_inode *raw_inode) nilfs_bmap_read() argument 549 nilfs_bmap_write(struct nilfs_bmap *bmap, struct nilfs_inode *raw_inode) nilfs_bmap_write() argument 560 nilfs_bmap_init_gc(struct nilfs_bmap *bmap) nilfs_bmap_init_gc() argument 572 nilfs_bmap_save(const struct nilfs_bmap *bmap, struct nilfs_bmap_store *store) nilfs_bmap_save() argument 581 nilfs_bmap_restore(struct nilfs_bmap *bmap, const struct nilfs_bmap_store *store) nilfs_bmap_restore() argument [all...] |
H A D | direct.c | 106 static int nilfs_direct_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) in nilfs_direct_insert() argument 115 if (nilfs_direct_get_ptr(bmap, key) != NILFS_BMAP_INVALID_PTR) in nilfs_direct_insert() 118 if (NILFS_BMAP_USE_VBN(bmap)) { in nilfs_direct_insert() 119 req.bpr_ptr = nilfs_direct_find_target_v(bmap, key); in nilfs_direct_insert() 120 dat = nilfs_bmap_get_dat(bmap); in nilfs_direct_insert() 122 ret = nilfs_bmap_prepare_alloc_ptr(bmap, &req, dat); in nilfs_direct_insert() 128 nilfs_bmap_commit_alloc_ptr(bmap, &req, dat); in nilfs_direct_insert() 129 nilfs_direct_set_ptr(bmap, key, req.bpr_ptr); in nilfs_direct_insert() 131 if (!nilfs_bmap_dirty(bmap)) in nilfs_direct_insert() 132 nilfs_bmap_set_dirty(bmap); in nilfs_direct_insert() 142 nilfs_direct_delete(struct nilfs_bmap *bmap, __u64 key) nilfs_direct_delete() argument 197 nilfs_direct_check_insert(const struct nilfs_bmap *bmap, __u64 key) nilfs_direct_check_insert() argument 223 nilfs_direct_delete_and_convert(struct nilfs_bmap *bmap, __u64 key, __u64 *keys, __u64 *ptrs, int n) nilfs_direct_delete_and_convert() argument 256 nilfs_direct_propagate(struct nilfs_bmap *bmap, struct buffer_head *bh) nilfs_direct_propagate() argument 322 nilfs_direct_assign(struct nilfs_bmap *bmap, struct buffer_head **bh, sector_t blocknr, union nilfs_binfo *binfo) nilfs_direct_assign() argument 375 nilfs_direct_init(struct nilfs_bmap *bmap) nilfs_direct_init() argument [all...] |
H A D | bmap.h | 28 * 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) nilfs_bmap_lookup() argument 178 nilfs_bmap_prepare_alloc_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) nilfs_bmap_prepare_alloc_ptr() argument 189 nilfs_bmap_commit_alloc_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) nilfs_bmap_commit_alloc_ptr() argument 197 nilfs_bmap_abort_alloc_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) nilfs_bmap_abort_alloc_ptr() argument 207 nilfs_bmap_prepare_end_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) nilfs_bmap_prepare_end_ptr() argument 214 nilfs_bmap_commit_end_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) nilfs_bmap_commit_end_ptr() argument 223 nilfs_bmap_abort_end_ptr(struct nilfs_bmap *bmap, union nilfs_bmap_ptr_req *req, struct inode *dat) nilfs_bmap_abort_end_ptr() argument 231 nilfs_bmap_set_target_v(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) nilfs_bmap_set_target_v() argument 246 nilfs_bmap_dirty(const struct nilfs_bmap *bmap) nilfs_bmap_dirty() argument 252 nilfs_bmap_set_dirty(struct nilfs_bmap *bmap) nilfs_bmap_set_dirty() argument 258 nilfs_bmap_clear_dirty(struct nilfs_bmap *bmap) nilfs_bmap_clear_dirty() argument [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | test_bitmap.c | 73 const unsigned long *exp_bmap, const unsigned long *bmap, in __check_eq_bitmap() 76 if (!bitmap_equal(exp_bmap, bmap, nbits)) { in __check_eq_bitmap() 79 nbits, exp_bmap, nbits, bmap); in __check_eq_bitmap() 178 DECLARE_BITMAP(bmap, 1024); in test_zero_clear() 181 memset(bmap, 0xff, 128); in test_zero_clear() 183 expect_eq_pbl("0-22", bmap, 23); in test_zero_clear() 184 expect_eq_pbl("0-1023", bmap, 1024); in test_zero_clear() 187 bitmap_clear(bmap, 0, 9); in test_zero_clear() 188 expect_eq_pbl("9-1023", bmap, 1024); in test_zero_clear() 190 bitmap_zero(bmap, 3 in test_zero_clear() 72 __check_eq_bitmap(const char *srcfile, unsigned int line, const unsigned long *exp_bmap, const unsigned long *bmap, unsigned int nbits) __check_eq_bitmap() argument [all...] |
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_bmap_item.c | 230 * Finish an bmap update and log it to the BUD. Note that the 231 * transaction is marked dirty regardless of whether the bmap update 264 /* Sort bmap intents by inode. */ 282 struct xfs_map_extent *bmap, in xfs_trans_set_bmap_flags() 287 bmap->me_flags = 0; in xfs_trans_set_bmap_flags() 291 bmap->me_flags = type; in xfs_trans_set_bmap_flags() 297 bmap->me_flags |= XFS_BMAP_EXTENT_UNWRITTEN; in xfs_trans_set_bmap_flags() 299 bmap->me_flags |= XFS_BMAP_EXTENT_ATTR_FORK; in xfs_trans_set_bmap_flags() 302 /* Log bmap updates in the intent item. */ 307 struct xfs_bmap_intent *bmap) in xfs_bmap_update_log_item() 281 xfs_trans_set_bmap_flags( struct xfs_map_extent *bmap, enum xfs_bmap_intent_type type, int whichfork, xfs_exntst_t state) xfs_trans_set_bmap_flags() argument 304 xfs_bmap_update_log_item( struct xfs_trans *tp, struct xfs_bui_log_item *buip, struct xfs_bmap_intent *bmap) xfs_bmap_update_log_item() argument 340 struct xfs_bmap_intent *bmap; xfs_bmap_update_create_intent() local 370 struct xfs_bmap_intent *bmap; xfs_bmap_update_finish_item() local 405 struct xfs_bmap_intent *bmap; xfs_bmap_update_cancel_item() local 434 struct xfs_map_extent *bmap; xfs_bui_item_recover() local [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | test_bitmap.c | 77 const unsigned long *exp_bmap, const unsigned long *bmap, in __check_eq_bitmap() 80 if (!bitmap_equal(exp_bmap, bmap, nbits)) { in __check_eq_bitmap() 83 nbits, exp_bmap, nbits, bmap); in __check_eq_bitmap() 197 DECLARE_BITMAP(bmap, 1024); in test_zero_clear() 200 memset(bmap, 0xff, 128); in test_zero_clear() 202 expect_eq_pbl("0-22", bmap, 23); in test_zero_clear() 203 expect_eq_pbl("0-1023", bmap, 1024); in test_zero_clear() 206 bitmap_clear(bmap, 0, 9); in test_zero_clear() 207 expect_eq_pbl("9-1023", bmap, 1024); in test_zero_clear() 209 bitmap_zero(bmap, 3 in test_zero_clear() 76 __check_eq_bitmap(const char *srcfile, unsigned int line, const unsigned long *exp_bmap, const unsigned long *bmap, unsigned int nbits) __check_eq_bitmap() argument 496 unsigned long *bmap = kmalloc(PAGE_SIZE, GFP_KERNEL); test_bitmap_printlist() local [all...] |
/kernel/linux/linux-5.10/fs/affs/ |
H A D | bitmap.c | 44 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() 122 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local 145 bmap = blk / sbi->s_bmap_bits; in affs_alloc_block() 146 bm = &sbi->s_bitmap[bmap]; in affs_alloc_block() 154 /* search for the next bmap buffer with free bits */ in affs_alloc_block() 159 bmap in affs_alloc_block() [all...] |
/kernel/linux/linux-6.6/fs/affs/ |
H A D | bitmap.c | 44 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() 122 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local 145 bmap = blk / sbi->s_bmap_bits; in affs_alloc_block() 146 bm = &sbi->s_bitmap[bmap]; in affs_alloc_block() 154 /* search for the next bmap buffer with free bits */ in affs_alloc_block() 159 bmap in affs_alloc_block() [all...] |
/kernel/linux/linux-5.10/include/uapi/linux/netfilter/ |
H A D | xt_TCPOPTSTRIP.h | 7 #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)
|
/kernel/linux/linux-6.6/include/uapi/linux/netfilter/ |
H A D | xt_TCPOPTSTRIP.h | 7 #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)
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/netfilter/ |
H A D | xt_TCPOPTSTRIP.h | 22 #define tcpoptstrip_set_bit(bmap,idx) (bmap[(idx) >> 5] |= 1U << (idx & 31)) 23 #define tcpoptstrip_test_bit(bmap,idx) (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/netfilter/ |
H A D | xt_TCPOPTSTRIP.h | 22 #define tcpoptstrip_set_bit(bmap,idx) (bmap[(idx) >> 5] |= 1U << (idx & 31)) 23 #define tcpoptstrip_test_bit(bmap,idx) (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/netfilter/ |
H A D | xt_TCPOPTSTRIP.h | 9 #define tcpoptstrip_set_bit(bmap, idx) \ 10 (bmap[(idx) >> 5] |= 1U << (idx & 31)) 11 #define tcpoptstrip_test_bit(bmap, idx) \ 12 (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/x86_64/ |
H A D | vmx_dirty_log_test.c | 73 unsigned long *bmap; in main() local 115 bmap = bitmap_alloc(TEST_MEM_PAGES); in main() 136 kvm_vm_get_dirty_log(vm, TEST_MEM_SLOT_INDEX, bmap); in main() 138 TEST_ASSERT(test_bit(0, bmap), "Page 0 incorrectly reported clean\n"); in main() 141 TEST_ASSERT(!test_bit(0, bmap), "Page 0 incorrectly reported dirty\n"); in main() 145 TEST_ASSERT(!test_bit(1, bmap), "Page 1 incorrectly reported dirty\n"); in main() 147 TEST_ASSERT(!test_bit(2, bmap), "Page 2 incorrectly reported dirty\n"); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/ |
H A D | vmx_dirty_log_test.c | 71 unsigned long *bmap; in main() local 112 bmap = bitmap_zalloc(TEST_MEM_PAGES); in main() 129 kvm_vm_get_dirty_log(vm, TEST_MEM_SLOT_INDEX, bmap); in main() 131 TEST_ASSERT(test_bit(0, bmap), "Page 0 incorrectly reported clean\n"); in main() 134 TEST_ASSERT(!test_bit(0, bmap), "Page 0 incorrectly reported dirty\n"); in main() 138 TEST_ASSERT(!test_bit(1, bmap), "Page 1 incorrectly reported dirty\n"); in main() 140 TEST_ASSERT(!test_bit(2, bmap), "Page 2 incorrectly reported dirty\n"); in main()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_rdma.c | 38 struct qed_bmap *bmap, u32 max_count, char *name) in qed_rdma_bmap_alloc() 42 bmap->max_count = max_count; in qed_rdma_bmap_alloc() 44 bmap->bitmap = kcalloc(BITS_TO_LONGS(max_count), sizeof(long), 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() 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 in qed_rdma_bmap_alloc_id() 37 qed_rdma_bmap_alloc(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 max_count, char *name) qed_rdma_bmap_alloc() argument 55 qed_rdma_bmap_alloc_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 *id_num) qed_rdma_bmap_alloc_id() argument 70 qed_bmap_set_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num) qed_bmap_set_id() argument 79 qed_bmap_release_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num) qed_bmap_release_id() argument 98 qed_bmap_test_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num) qed_bmap_test_id() argument 107 qed_bmap_is_empty(struct qed_bmap *bmap) qed_bmap_is_empty() argument 318 qed_rdma_bmap_free(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, bool check) qed_rdma_bmap_free() argument 1752 struct qed_bmap *bmap; qed_rdma_destroy_srq() local 1801 struct qed_bmap *bmap; qed_rdma_create_srq() local [all...] |
H A D | qed_rdma.h | 186 struct qed_bmap *bmap, u32 max_count, char *name); 189 qed_rdma_bmap_free(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, bool check); 193 struct qed_bmap *bmap, u32 *id_num); 196 qed_bmap_set_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num); 199 qed_bmap_release_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num); 202 qed_bmap_test_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num);
|
/kernel/linux/linux-6.6/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);
|
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptpf_ucode.c | 60 struct otx_cpt_bitmap bmap = { {0} }; in get_cores_bmap() local 67 return bmap; in get_cores_bmap() 72 bitmap_or(bmap.bits, bmap.bits, in get_cores_bmap() 73 eng_grp->engs[i].bmap, in get_cores_bmap() 75 bmap.size = eng_grp->g->engs_num; in get_cores_bmap() 83 return bmap; in get_cores_bmap() 179 struct otx_cpt_bitmap bmap; in cpt_set_ucode_base() local 182 bmap = get_cores_bmap(&cpt->pdev->dev, eng_grp); in cpt_set_ucode_base() 183 if (!bmap in cpt_set_ucode_base() 207 struct otx_cpt_bitmap bmap = { {0} }; cpt_detach_and_disable_cores() local 255 struct otx_cpt_bitmap bmap; cpt_attach_and_enable_cores() local 586 struct otx_cpt_bitmap bmap; cpt_print_engines_mask() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptpf_ucode.c | 60 struct otx_cpt_bitmap bmap = { {0} }; in get_cores_bmap() local 67 return bmap; in get_cores_bmap() 72 bitmap_or(bmap.bits, bmap.bits, in get_cores_bmap() 73 eng_grp->engs[i].bmap, in get_cores_bmap() 75 bmap.size = eng_grp->g->engs_num; in get_cores_bmap() 83 return bmap; in get_cores_bmap() 179 struct otx_cpt_bitmap bmap; in cpt_set_ucode_base() local 182 bmap = get_cores_bmap(&cpt->pdev->dev, eng_grp); in cpt_set_ucode_base() 183 if (!bmap in cpt_set_ucode_base() 207 struct otx_cpt_bitmap bmap = { {0} }; cpt_detach_and_disable_cores() local 255 struct otx_cpt_bitmap bmap; cpt_attach_and_enable_cores() local 585 struct otx_cpt_bitmap bmap; cpt_print_engines_mask() local [all...] |
/kernel/linux/linux-5.10/include/media/ |
H A D | media-entity.h | 68 * @bmap: Bit map in which each bit represents one entity at struct 70 * @idx_max: Number of bits in bmap 73 unsigned long *bmap; member 455 bitmap_zero(ent_enum->bmap, ent_enum->idx_max); in media_entity_enum_zero() 470 __set_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_set() 485 __clear_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_clear() 502 return test_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_test() 521 return __test_and_set_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_test_and_set() 533 return bitmap_empty(ent_enum->bmap, ent_enum->idx_max); in media_entity_enum_empty() 551 return bitmap_intersects(ent_enum1->bmap, ent_enum in media_entity_enum_intersects() [all...] |
/kernel/linux/linux-6.6/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 >> in bnad_get_strings() 665 u32 bmap; bnad_get_stats_count_locked() local 800 u32 bmap; bnad_get_ethtool_stats() local [all...] |