Searched refs:sbitmap (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.4/include/linux/ |
D | sbitmap.h | 48 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 …]
|
D | blk-mq.h | 35 struct sbitmap ctx_map;
|
/Linux-v5.4/lib/ |
D | sbitmap.c | 15 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 …]
|
D | Makefile | 281 obj-$(CONFIG_SBITMAP) += sbitmap.o
|
/Linux-v5.4/block/ |
D | blk-mq-tag.c | 215 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()
|
D | kyber-iosched.c | 186 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()
|
D | blk-mq.c | 979 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/ |
D | MAINTAINERS | 3011 F: lib/sbitmap.c
|