Home
last modified time | relevance | path

Searched refs:sbitmap (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/include/linux/
Dsbitmap.h48 struct sbitmap { struct
101 struct sbitmap sb;
155 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
162 static inline void sbitmap_free(struct sbitmap *sb) in sbitmap_free()
176 void sbitmap_resize(struct sbitmap *sb, unsigned int depth);
190 int sbitmap_get(struct sbitmap *sb, unsigned int alloc_hint, bool round_robin);
208 int sbitmap_get_shallow(struct sbitmap *sb, unsigned int alloc_hint,
217 bool sbitmap_any_bit_set(const struct sbitmap *sb);
226 bool sbitmap_any_bit_clear(const struct sbitmap *sb);
231 typedef bool (*sb_for_each_fn)(struct sbitmap *, unsigned int, void *);
[all …]
Dblk-mq.h35 struct sbitmap ctx_map;
/Linux-v5.4/lib/
Dsbitmap.c15 static inline bool sbitmap_deferred_clear(struct sbitmap *sb, int index) in sbitmap_deferred_clear()
44 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift, in sbitmap_init_node()
89 void sbitmap_resize(struct sbitmap *sb, unsigned int depth) in sbitmap_resize()
139 static int sbitmap_find_bit_in_index(struct sbitmap *sb, int index, in sbitmap_find_bit_in_index()
157 int sbitmap_get(struct sbitmap *sb, unsigned int alloc_hint, bool round_robin) in sbitmap_get()
192 int sbitmap_get_shallow(struct sbitmap *sb, unsigned int alloc_hint, in sbitmap_get_shallow()
227 bool sbitmap_any_bit_set(const struct sbitmap *sb) in sbitmap_any_bit_set()
239 bool sbitmap_any_bit_clear(const struct sbitmap *sb) in sbitmap_any_bit_clear()
256 static unsigned int __sbitmap_weight(const struct sbitmap *sb, bool set) in __sbitmap_weight()
271 static unsigned int sbitmap_weight(const struct sbitmap *sb) in sbitmap_weight()
[all …]
DMakefile281 obj-$(CONFIG_SBITMAP) += sbitmap.o
/Linux-v5.4/block/
Dblk-mq-tag.c215 static bool bt_iter(struct sbitmap *bitmap, unsigned int bitnr, void *data) in bt_iter()
270 static bool bt_tags_iter(struct sbitmap *bitmap, unsigned int bitnr, void *data) in bt_tags_iter()
Dkyber-iosched.c186 struct sbitmap kcq_map[KYBER_NUM_DOMAINS];
663 static bool flush_busy_kcq(struct sbitmap *sb, unsigned int bitnr, void *data) in flush_busy_kcq()
Dblk-mq.c979 static bool flush_busy_ctx(struct sbitmap *sb, unsigned int bitnr, void *data) in flush_busy_ctx()
1013 static bool dispatch_rq_from_ctx(struct sbitmap *sb, unsigned int bitnr, in dispatch_rq_from_ctx()
/Linux-v5.4/
DMAINTAINERS3011 F: lib/sbitmap.c