Home
last modified time | relevance | path

Searched defs:bitmap (Results 1 – 25 of 531) sorted by relevance

12345678910>>...22

/kernel/linux/linux-5.10/drivers/md/
Dmd-bitmap.h180 struct bitmap { struct
182 struct bitmap_counts { argument
195 struct mddev *mddev; /* the md device that the bitmap is for */ argument
200 struct bitmap_storage { argument
202 struct page *sb_page; /* cached copy of the bitmap argument
220 * the bitmap daemon - periodically wakes up and sweeps the bitmap argument
225 * update bitmap with resync progress */ argument
227 atomic_t pending_writes; /* pending writes to the bitmap file */ argument
236 /* the bitmap API */ argument
Dmd-bitmap.c35 static inline char *bmname(struct bitmap *bitmap) in bmname()
50 static int md_bitmap_checkpage(struct bitmap_counts *bitmap, in md_bitmap_checkpage()
112 static void md_bitmap_checkfree(struct bitmap_counts *bitmap, unsigned long page) in md_bitmap_checkfree()
205 static int write_sb_page(struct bitmap *bitmap, struct page *page, int wait) in write_sb_page()
281 static void write_page(struct bitmap *bitmap, struct page *page, int wait) in write_page()
312 struct bitmap *bitmap = bh->b_private; in end_bitmap_write() local
345 struct bitmap *bitmap, in read_page()
419 static void md_bitmap_wait_writes(struct bitmap *bitmap) in md_bitmap_wait_writes()
437 void md_bitmap_update_sb(struct bitmap *bitmap) in md_bitmap_update_sb()
473 void md_bitmap_print_sb(struct bitmap *bitmap) in md_bitmap_print_sb()
[all …]
/kernel/linux/linux-6.6/drivers/md/
Dmd-bitmap.h180 struct bitmap { struct
182 struct bitmap_counts { argument
195 struct mddev *mddev; /* the md device that the bitmap is for */ argument
200 struct bitmap_storage { argument
202 struct page *sb_page; /* cached copy of the bitmap argument
221 * the bitmap daemon - periodically wakes up and sweeps the bitmap argument
226 * update bitmap with resync progress */ argument
228 atomic_t pending_writes; /* pending writes to the bitmap file */ argument
244 /* the bitmap API */ argument
288 static inline bool md_bitmap_enabled(struct bitmap *bitmap) in md_bitmap_enabled()
Dmd-bitmap.c35 static inline char *bmname(struct bitmap *bitmap) in bmname()
50 static int md_bitmap_checkpage(struct bitmap_counts *bitmap, in md_bitmap_checkpage()
112 static void md_bitmap_checkfree(struct bitmap_counts *bitmap, unsigned long page) in md_bitmap_checkfree()
224 static int __write_sb_page(struct md_rdev *rdev, struct bitmap *bitmap, in __write_sb_page()
280 static void write_sb_page(struct bitmap *bitmap, unsigned long pg_index, in write_sb_page()
300 static void write_file_page(struct bitmap *bitmap, struct page *page, int wait) in write_file_page()
319 struct bitmap *bitmap = bh->b_private; in end_bitmap_write() local
352 struct bitmap *bitmap, unsigned long count, struct page *page) in read_file_page()
414 static void write_file_page(struct bitmap *bitmap, struct page *page, int wait) in write_file_page()
418 struct bitmap *bitmap, unsigned long count, struct page *page) in read_file_page()
[all …]
/kernel/linux/linux-6.6/fs/xfs/scrub/
Dbitmap.h41 static inline void xagb_bitmap_init(struct xagb_bitmap *bitmap) in xagb_bitmap_init()
46 static inline void xagb_bitmap_destroy(struct xagb_bitmap *bitmap) in xagb_bitmap_destroy()
51 static inline int xagb_bitmap_clear(struct xagb_bitmap *bitmap, in xagb_bitmap_clear()
56 static inline int xagb_bitmap_set(struct xagb_bitmap *bitmap, in xagb_bitmap_set()
64 struct xagb_bitmap *bitmap, in xagb_bitmap_test()
82 static inline int xagb_bitmap_disunion(struct xagb_bitmap *bitmap, in xagb_bitmap_disunion()
88 static inline uint32_t xagb_bitmap_hweight(struct xagb_bitmap *bitmap) in xagb_bitmap_hweight()
92 static inline bool xagb_bitmap_empty(struct xagb_bitmap *bitmap) in xagb_bitmap_empty()
97 static inline int xagb_bitmap_walk(struct xagb_bitmap *bitmap, in xagb_bitmap_walk()
Dbitmap.c59 #define for_each_xbitmap_extent(bn, bitmap) \ in INTERVAL_TREE_DEFINE() argument
118 struct xbitmap *bitmap, in xbitmap_set()
178 struct xbitmap *bitmap) in xbitmap_destroy()
191 struct xbitmap *bitmap) in xbitmap_init()
212 struct xbitmap *bitmap, in xbitmap_disunion()
273 struct xagb_bitmap *bitmap = priv; in xagb_bitmap_visit_btblock() local
291 struct xagb_bitmap *bitmap, in xagb_bitmap_set_btblocks()
305 struct xagb_bitmap *bitmap, in xagb_bitmap_set_btcur_path()
323 struct xbitmap *bitmap) in xbitmap_hweight()
337 struct xbitmap *bitmap, in xbitmap_walk()
[all …]
/kernel/linux/common_modules/newip/src/common/
Dnip_hdr_decap.c16 unsigned char bitmap[], in _get_nip_hdr_bitmap()
43 unsigned char bitmap, in _get_nip_hdr_ttl()
64 unsigned char bitmap, in _get_nip_hdr_len()
88 unsigned char bitmap, in _get_nip_hdr_nexthdr()
107 unsigned char bitmap, in _get_nip_hdr_daddr()
129 unsigned char bitmap, in _get_nip_hdr_saddr()
151 unsigned char bitmap, in _get_nip_total_len()
171 unsigned char bitmap, in _nip_hdr_bitmap0_parse()
201 unsigned char bitmap, in _nip_hdr_bitmap1_parse()
219 unsigned char bitmap, in _nip_hdr_unknown_bit_check()
[all …]
/kernel/linux/linux-6.6/drivers/vfio/
Diova_bitmap.c103 u8 __user *bitmap; member
127 static unsigned long iova_bitmap_offset_to_index(struct iova_bitmap *bitmap, in iova_bitmap_offset_to_index()
138 static unsigned long iova_bitmap_index_to_offset(struct iova_bitmap *bitmap, in iova_bitmap_index_to_offset()
149 static unsigned long iova_bitmap_mapped_iova(struct iova_bitmap *bitmap) in iova_bitmap_mapped_iova()
161 static int iova_bitmap_get(struct iova_bitmap *bitmap) in iova_bitmap_get()
214 static void iova_bitmap_put(struct iova_bitmap *bitmap) in iova_bitmap_put()
242 struct iova_bitmap *bitmap; in iova_bitmap_alloc() local
280 void iova_bitmap_free(struct iova_bitmap *bitmap) in iova_bitmap_free()
298 static unsigned long iova_bitmap_mapped_remaining(struct iova_bitmap *bitmap) in iova_bitmap_mapped_remaining()
314 static unsigned long iova_bitmap_mapped_length(struct iova_bitmap *bitmap) in iova_bitmap_mapped_length()
[all …]
/kernel/liteos_a/kernel/base/core/
Dlos_bitmap.c46 VOID LOS_BitmapSet(UINT32 *bitmap, UINT16 pos) in LOS_BitmapSet()
55 VOID LOS_BitmapClr(UINT32 *bitmap, UINT16 pos) in LOS_BitmapClr()
64 UINT16 LOS_HighBitGet(UINT32 bitmap) in LOS_HighBitGet()
73 UINT16 LOS_LowBitGet(UINT32 bitmap) in LOS_LowBitGet()
82 VOID LOS_BitmapSetNBits(UINTPTR *bitmap, UINT32 start, UINT32 numsSet) in LOS_BitmapSetNBits()
102 VOID LOS_BitmapClrNBits(UINTPTR *bitmap, UINT32 start, UINT32 numsClear) in LOS_BitmapClrNBits()
122 INT32 LOS_BitmapFfz(UINTPTR *bitmap, UINT32 numBits) in LOS_BitmapFfz()
/kernel/linux/linux-5.10/fs/xfs/scrub/
Dbitmap.c22 struct xbitmap *bitmap, in xbitmap_set()
43 struct xbitmap *bitmap) in xbitmap_destroy()
57 struct xbitmap *bitmap) in xbitmap_init()
100 struct xbitmap *bitmap, in xbitmap_disunion()
251 struct xbitmap *bitmap, in xbitmap_set_btcur_path()
279 struct xbitmap *bitmap = priv; in xbitmap_collect_btblock() local
294 struct xbitmap *bitmap, in xbitmap_set_btblocks()
304 struct xbitmap *bitmap) in xbitmap_hweight()
Dbitmap.h22 #define for_each_xbitmap_extent(bex, n, bitmap) \ argument
25 #define for_each_xbitmap_block(b, bex, n, bitmap) \ argument
/kernel/linux/linux-6.6/lib/
Dfind_bit_benchmark.c36 static int __init test_find_first_bit(void *bitmap, unsigned long len) in test_find_first_bit()
52 static int __init test_find_first_and_bit(void *bitmap, const void *bitmap2, unsigned long len) in test_find_first_and_bit()
71 static int __init test_find_next_bit(const void *bitmap, unsigned long len) in test_find_next_bit()
85 static int __init test_find_next_zero_bit(const void *bitmap, unsigned long len) in test_find_next_zero_bit()
99 static int __init test_find_last_bit(const void *bitmap, unsigned long len) in test_find_last_bit()
118 static int __init test_find_nth_bit(const unsigned long *bitmap, unsigned long len) in test_find_nth_bit()
134 static int __init test_find_next_and_bit(const void *bitmap, in test_find_next_and_bit()
Dbitmap.c349 unsigned int __bitmap_weight(const unsigned long *bitmap, unsigned int bits) in __bitmap_weight()
653 static void bitmap_set_region(const struct region *r, unsigned long *bitmap) in bitmap_set_region()
911 u32 *bitmap = (u32 *)maskp; in bitmap_parse() local
1247 static int __reg_op(unsigned long *bitmap, unsigned int pos, int order, int reg_op) in __reg_op()
1313 int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order) in bitmap_find_free_region()
1338 void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order) in bitmap_release_region()
1355 int bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order) in bitmap_allocate_region()
1412 void bitmap_free(const unsigned long *bitmap) in bitmap_free()
1420 unsigned long *bitmap = data; in devm_bitmap_free() local
1428 unsigned long *bitmap; in devm_bitmap_alloc() local
[all …]
/kernel/linux/linux-5.10/lib/
Dfind_bit_benchmark.c36 static int __init test_find_first_bit(void *bitmap, unsigned long len) in test_find_first_bit()
52 static int __init test_find_next_bit(const void *bitmap, unsigned long len) in test_find_next_bit()
66 static int __init test_find_next_zero_bit(const void *bitmap, unsigned long len) in test_find_next_zero_bit()
80 static int __init test_find_last_bit(const void *bitmap, unsigned long len) in test_find_last_bit()
99 static int __init test_find_next_and_bit(const void *bitmap, in test_find_next_and_bit()
Dbitmap.c336 int __bitmap_weight(const unsigned long *bitmap, unsigned int bits) in __bitmap_weight()
505 unsigned long *bitmap, int nbits) in bitmap_set_region()
744 u32 *bitmap = (u32 *)maskp; in bitmap_parse() local
1109 static int __reg_op(unsigned long *bitmap, unsigned int pos, int order, int reg_op) in __reg_op()
1175 int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order) in bitmap_find_free_region()
1200 void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order) in bitmap_release_region()
1217 int bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order) in bitmap_allocate_region()
1261 void bitmap_free(const unsigned long *bitmap) in bitmap_free()
1269 unsigned long *bitmap = data; in devm_bitmap_free() local
1277 unsigned long *bitmap; in devm_bitmap_alloc() local
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_alloc.c39 int hns_roce_bitmap_alloc(struct hns_roce_bitmap *bitmap, unsigned long *obj) in hns_roce_bitmap_alloc()
66 void hns_roce_bitmap_free(struct hns_roce_bitmap *bitmap, unsigned long obj, in hns_roce_bitmap_free()
72 int hns_roce_bitmap_alloc_range(struct hns_roce_bitmap *bitmap, int cnt, in hns_roce_bitmap_alloc_range()
111 void hns_roce_bitmap_free_range(struct hns_roce_bitmap *bitmap, in hns_roce_bitmap_free_range()
130 int hns_roce_bitmap_init(struct hns_roce_bitmap *bitmap, u32 num, u32 mask, in hns_roce_bitmap_init()
155 void hns_roce_bitmap_cleanup(struct hns_roce_bitmap *bitmap) in hns_roce_bitmap_cleanup()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c44 u32 mlx4_bitmap_alloc(struct mlx4_bitmap *bitmap) in mlx4_bitmap_alloc()
74 void mlx4_bitmap_free(struct mlx4_bitmap *bitmap, u32 obj, int use_rr) in mlx4_bitmap_free()
79 static unsigned long find_aligned_range(unsigned long *bitmap, in find_aligned_range()
109 u32 mlx4_bitmap_alloc_range(struct mlx4_bitmap *bitmap, int cnt, in mlx4_bitmap_alloc_range()
147 u32 mlx4_bitmap_avail(struct mlx4_bitmap *bitmap) in mlx4_bitmap_avail()
152 static u32 mlx4_bitmap_masked_value(struct mlx4_bitmap *bitmap, u32 obj) in mlx4_bitmap_masked_value()
157 void mlx4_bitmap_free_range(struct mlx4_bitmap *bitmap, u32 obj, int cnt, in mlx4_bitmap_free_range()
173 int mlx4_bitmap_init(struct mlx4_bitmap *bitmap, u32 num, u32 mask, in mlx4_bitmap_init()
197 void mlx4_bitmap_cleanup(struct mlx4_bitmap *bitmap) in mlx4_bitmap_cleanup()
217 struct mlx4_bitmap *bitmap; member
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c44 u32 mlx4_bitmap_alloc(struct mlx4_bitmap *bitmap) in mlx4_bitmap_alloc()
74 void mlx4_bitmap_free(struct mlx4_bitmap *bitmap, u32 obj, int use_rr) in mlx4_bitmap_free()
79 static unsigned long find_aligned_range(unsigned long *bitmap, in find_aligned_range()
109 u32 mlx4_bitmap_alloc_range(struct mlx4_bitmap *bitmap, int cnt, in mlx4_bitmap_alloc_range()
147 u32 mlx4_bitmap_avail(struct mlx4_bitmap *bitmap) in mlx4_bitmap_avail()
152 static u32 mlx4_bitmap_masked_value(struct mlx4_bitmap *bitmap, u32 obj) in mlx4_bitmap_masked_value()
157 void mlx4_bitmap_free_range(struct mlx4_bitmap *bitmap, u32 obj, int cnt, in mlx4_bitmap_free_range()
173 int mlx4_bitmap_init(struct mlx4_bitmap *bitmap, u32 num, u32 mask, in mlx4_bitmap_init()
197 void mlx4_bitmap_cleanup(struct mlx4_bitmap *bitmap) in mlx4_bitmap_cleanup()
217 struct mlx4_bitmap *bitmap; member
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/ath/wcn36xx/
Dfirmware.c81 void wcn36xx_firmware_set_feat_caps(u32 *bitmap, in wcn36xx_firmware_set_feat_caps()
96 int wcn36xx_firmware_get_feat_caps(u32 *bitmap, in wcn36xx_firmware_get_feat_caps()
112 void wcn36xx_firmware_clear_feat_caps(u32 *bitmap, in wcn36xx_firmware_clear_feat_caps()
/kernel/linux/linux-5.10/include/linux/
Dbitmap.h283 #define bitmap_from_arr32(bitmap, buf, nbits) \ argument
286 #define bitmap_to_arr32(buf, bitmap, nbits) \ argument
471 static inline void bitmap_next_clear_region(unsigned long *bitmap, in bitmap_next_clear_region()
479 static inline void bitmap_next_set_region(unsigned long *bitmap, in bitmap_next_set_region()
492 #define bitmap_for_each_clear_region(bitmap, rs, re, start, end) \ argument
499 #define bitmap_for_each_set_region(bitmap, rs, re, start, end) \ argument
/kernel/linux/linux-5.10/fs/udf/
Dballoc.c35 struct udf_bitmap *bitmap, unsigned int block, in read_block_bitmap()
77 struct udf_bitmap *bitmap, in __load_block_bitmap()
99 struct udf_bitmap *bitmap, in load_block_bitmap()
129 struct udf_bitmap *bitmap, in udf_bitmap_free_blocks()
195 struct udf_bitmap *bitmap, in udf_bitmap_prealloc_blocks()
243 struct udf_bitmap *bitmap, uint16_t partition, in udf_bitmap_new_block()
/kernel/linux/linux-6.6/fs/udf/
Dballoc.c32 struct udf_bitmap *bitmap, unsigned int block, in read_block_bitmap()
78 struct udf_bitmap *bitmap, in __load_block_bitmap()
107 struct udf_bitmap *bitmap, in load_block_bitmap()
137 struct udf_bitmap *bitmap, in udf_bitmap_free_blocks()
192 struct udf_bitmap *bitmap, in udf_bitmap_prealloc_blocks()
240 struct udf_bitmap *bitmap, uint16_t partition, in udf_bitmap_new_block()
/kernel/linux/linux-6.6/fs/btrfs/tests/
Dextent-io-tests.c342 static int check_eb_bitmap(unsigned long *bitmap, struct extent_buffer *eb) in check_eb_bitmap()
383 static int test_bitmap_set(const char *name, unsigned long *bitmap, in test_bitmap_set()
398 static int test_bitmap_clear(const char *name, unsigned long *bitmap, in test_bitmap_clear()
412 static int __test_eb_bitmaps(unsigned long *bitmap, struct extent_buffer *eb) in __test_eb_bitmaps()
509 unsigned long *bitmap = NULL; in test_eb_bitmaps() local
/kernel/linux/linux-6.6/fs/nfs/
Dnfs4xdr.c992 const __u32 *bitmap, size_t len) in xdr_encode_bitmap4()
1005 static size_t mask_bitmap4(const __u32 *bitmap, const __u32 *mask, in mask_bitmap4()
1255 const __u32 *bitmap, const __u32 *mask, size_t len, in encode_getattr()
1704 __u32 bitmap[2]; in encode_setacl() local
3262 decode_bitmap4(struct xdr_stream *xdr, uint32_t *bitmap, size_t sz) in decode_bitmap4()
3274 static int decode_attr_bitmap(struct xdr_stream *xdr, uint32_t *bitmap) in decode_attr_bitmap()
3293 static int decode_attr_supported(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *bitmask) in decode_attr_supported()
3308 static int decode_attr_type(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *type) in decode_attr_type()
3333 uint32_t *bitmap, uint32_t *type) in decode_attr_fh_expire_type()
3351 static int decode_attr_change(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *change) in decode_attr_change()
[all …]
/kernel/linux/linux-5.10/fs/btrfs/tests/
Dextent-io-tests.c271 static int check_eb_bitmap(unsigned long *bitmap, struct extent_buffer *eb, in check_eb_bitmap()
296 static int __test_eb_bitmaps(unsigned long *bitmap, struct extent_buffer *eb, in __test_eb_bitmaps()
383 unsigned long *bitmap = NULL; in test_eb_bitmaps() local

12345678910>>...22