Home
last modified time | relevance | path

Searched refs:bitnr (Results 1 – 5 of 5) sorted by relevance

/linux-4.19.296/include/linux/
Dsbitmap.h224 #define SB_NR_TO_INDEX(sb, bitnr) ((bitnr) >> (sb)->shift) argument
225 #define SB_NR_TO_BIT(sb, bitnr) ((bitnr) & ((1U << (sb)->shift) - 1U)) argument
296 unsigned int bitnr) in __sbitmap_word() argument
298 return &sb->map[SB_NR_TO_INDEX(sb, bitnr)].word; in __sbitmap_word()
303 static inline void sbitmap_set_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_set_bit() argument
305 set_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_set_bit()
308 static inline void sbitmap_clear_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_clear_bit() argument
310 clear_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_clear_bit()
314 unsigned int bitnr) in sbitmap_clear_bit_unlock() argument
316 clear_bit_unlock(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_clear_bit_unlock()
[all …]
/linux-4.19.296/block/
Dblk-mq-tag.c221 static bool bt_iter(struct sbitmap *bitmap, unsigned int bitnr, void *data) in bt_iter() argument
230 bitnr += tags->nr_reserved_tags; in bt_iter()
231 rq = tags->rqs[bitnr]; in bt_iter()
262 static bool bt_tags_iter(struct sbitmap *bitmap, unsigned int bitnr, void *data) in bt_tags_iter() argument
270 bitnr += tags->nr_reserved_tags; in bt_tags_iter()
276 rq = tags->rqs[bitnr]; in bt_tags_iter()
Dkyber-iosched.c604 static bool flush_busy_kcq(struct sbitmap *sb, unsigned int bitnr, void *data) in flush_busy_kcq() argument
607 struct kyber_ctx_queue *kcq = &flush_data->khd->kcqs[bitnr]; in flush_busy_kcq()
612 sbitmap_clear_bit(sb, bitnr); in flush_busy_kcq()
Dblk-mq.c903 static bool flush_busy_ctx(struct sbitmap *sb, unsigned int bitnr, void *data) in flush_busy_ctx() argument
907 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr]; in flush_busy_ctx()
911 sbitmap_clear_bit(sb, bitnr); in flush_busy_ctx()
936 static bool dispatch_rq_from_ctx(struct sbitmap *sb, unsigned int bitnr, in dispatch_rq_from_ctx() argument
941 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr]; in dispatch_rq_from_ctx()
948 sbitmap_clear_bit(sb, bitnr); in dispatch_rq_from_ctx()
/linux-4.19.296/drivers/gpio/
Dgpio-msic.c241 int bitnr; in msic_gpio_irq_handler() local
250 for_each_set_bit(bitnr, &pending, BITS_PER_BYTE) in msic_gpio_irq_handler()
252 (i * BITS_PER_BYTE) + bitnr); in msic_gpio_irq_handler()