Lines Matching full:bitmap
13 void xbitmap_init(struct xbitmap *bitmap);
14 void xbitmap_destroy(struct xbitmap *bitmap);
16 int xbitmap_clear(struct xbitmap *bitmap, uint64_t start, uint64_t len);
17 int xbitmap_set(struct xbitmap *bitmap, uint64_t start, uint64_t len);
18 int xbitmap_disunion(struct xbitmap *bitmap, struct xbitmap *sub);
19 uint64_t xbitmap_hweight(struct xbitmap *bitmap);
22 * Return codes for the bitmap iterator functions are 0 to continue iterating,
25 * iteration, because neither bitmap iterator ever generates that error code on
26 * its own. Callers must not modify the bitmap while walking it.
29 int xbitmap_walk(struct xbitmap *bitmap, xbitmap_walk_fn fn,
32 bool xbitmap_empty(struct xbitmap *bitmap);
33 bool xbitmap_test(struct xbitmap *bitmap, uint64_t start, uint64_t *len);
41 static inline void xagb_bitmap_init(struct xagb_bitmap *bitmap) in xagb_bitmap_init() argument
43 xbitmap_init(&bitmap->agbitmap); in xagb_bitmap_init()
46 static inline void xagb_bitmap_destroy(struct xagb_bitmap *bitmap) in xagb_bitmap_destroy() argument
48 xbitmap_destroy(&bitmap->agbitmap); in xagb_bitmap_destroy()
51 static inline int xagb_bitmap_clear(struct xagb_bitmap *bitmap, in xagb_bitmap_clear() argument
54 return xbitmap_clear(&bitmap->agbitmap, start, len); in xagb_bitmap_clear()
56 static inline int xagb_bitmap_set(struct xagb_bitmap *bitmap, in xagb_bitmap_set() argument
59 return xbitmap_set(&bitmap->agbitmap, start, len); in xagb_bitmap_set()
64 struct xagb_bitmap *bitmap, in xagb_bitmap_test() argument
71 ret = xbitmap_test(&bitmap->agbitmap, start, &biglen); in xagb_bitmap_test()
82 static inline int xagb_bitmap_disunion(struct xagb_bitmap *bitmap, in xagb_bitmap_disunion() argument
85 return xbitmap_disunion(&bitmap->agbitmap, &sub->agbitmap); in xagb_bitmap_disunion()
88 static inline uint32_t xagb_bitmap_hweight(struct xagb_bitmap *bitmap) in xagb_bitmap_hweight() argument
90 return xbitmap_hweight(&bitmap->agbitmap); in xagb_bitmap_hweight()
92 static inline bool xagb_bitmap_empty(struct xagb_bitmap *bitmap) in xagb_bitmap_empty() argument
94 return xbitmap_empty(&bitmap->agbitmap); in xagb_bitmap_empty()
97 static inline int xagb_bitmap_walk(struct xagb_bitmap *bitmap, in xagb_bitmap_walk() argument
100 return xbitmap_walk(&bitmap->agbitmap, fn, priv); in xagb_bitmap_walk()
103 int xagb_bitmap_set_btblocks(struct xagb_bitmap *bitmap,
105 int xagb_bitmap_set_btcur_path(struct xagb_bitmap *bitmap,