Searched refs:sbitmap (Results 1 – 11 of 11) sorted by relevance
| /Linux-v6.1/include/linux/ |
| D | sbitmap.h | 47 struct sbitmap { struct 113 struct sbitmap sb; 159 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift, 163 static inline unsigned int __map_depth(const struct sbitmap *sb, int index) in __map_depth() 174 static inline void sbitmap_free(struct sbitmap *sb) in sbitmap_free() 189 void sbitmap_resize(struct sbitmap *sb, unsigned int depth); 199 int sbitmap_get(struct sbitmap *sb); 216 int sbitmap_get_shallow(struct sbitmap *sb, unsigned long shallow_depth); 224 bool sbitmap_any_bit_set(const struct sbitmap *sb); 229 typedef bool (*sb_for_each_fn)(struct sbitmap *, unsigned int, void *); [all …]
|
| D | blk-mq.h | 356 struct sbitmap ctx_map;
|
| /Linux-v6.1/lib/ |
| D | sbitmap.c | 12 static int init_alloc_hint(struct sbitmap *sb, gfp_t flags) in init_alloc_hint() 29 static inline unsigned update_alloc_hint_before_get(struct sbitmap *sb, in update_alloc_hint_before_get() 43 static inline void update_alloc_hint_after_get(struct sbitmap *sb, in update_alloc_hint_after_get() 83 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift, in sbitmap_init_node() 123 void sbitmap_resize(struct sbitmap *sb, unsigned int depth) in sbitmap_resize() 170 static int sbitmap_find_bit_in_index(struct sbitmap *sb, int index, in sbitmap_find_bit_in_index() 188 static int __sbitmap_get(struct sbitmap *sb, unsigned int alloc_hint) in __sbitmap_get() 221 int sbitmap_get(struct sbitmap *sb) in sbitmap_get() 238 static int __sbitmap_get_shallow(struct sbitmap *sb, in __sbitmap_get_shallow() 275 int sbitmap_get_shallow(struct sbitmap *sb, unsigned long shallow_depth) in sbitmap_get_shallow() [all …]
|
| D | Makefile | 354 obj-$(CONFIG_SBITMAP) += sbitmap.o
|
| /Linux-v6.1/block/ |
| D | blk-mq-tag.c | 259 static bool bt_iter(struct sbitmap *bitmap, unsigned int bitnr, void *data) in bt_iter() 331 static bool bt_tags_iter(struct sbitmap *bitmap, unsigned int bitnr, void *data) in bt_tags_iter()
|
| D | kyber-iosched.c | 189 struct sbitmap kcq_map[KYBER_NUM_DOMAINS]; 668 static bool flush_busy_kcq(struct sbitmap *sb, unsigned int bitnr, void *data) in flush_busy_kcq()
|
| D | blk-mq.c | 1627 static bool flush_busy_ctx(struct sbitmap *sb, unsigned int bitnr, void *data) in flush_busy_ctx() 1661 static bool dispatch_rq_from_ctx(struct sbitmap *sb, unsigned int bitnr, in dispatch_rq_from_ctx()
|
| /Linux-v6.1/include/scsi/ |
| D | scsi_device.h | 115 struct sbitmap budget_map;
|
| /Linux-v6.1/drivers/scsi/ |
| D | scsi_scan.c | 224 struct sbitmap sb_backup; in scsi_realloc_sdev_budget_map()
|
| /Linux-v6.1/drivers/vhost/ |
| D | scsi.c | 183 struct sbitmap scsi_tags;
|
| /Linux-v6.1/ |
| D | MAINTAINERS | 3670 F: lib/sbitmap.c
|