Home
last modified time | relevance | path

Searched refs:SB_NR_TO_BIT (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
Dsbitmap.h220 #define SB_NR_TO_BIT(sb, bitnr) ((bitnr) & ((1U << (sb)->shift) - 1U)) macro
245 nr = SB_NR_TO_BIT(sb, start); in __sbitmap_for_each_set()
302 set_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_set_bit()
307 clear_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_clear_bit()
320 set_bit(SB_NR_TO_BIT(sb, bitnr), addr); in sbitmap_deferred_clear_bit()
326 clear_bit_unlock(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_clear_bit_unlock()
331 return test_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_test_bit()
/kernel/linux/linux-5.10/lib/
Dsbitmap.c170 alloc_hint = SB_NR_TO_BIT(sb, alloc_hint); in sbitmap_get()
204 SB_NR_TO_BIT(sb, alloc_hint), true); in sbitmap_get_shallow()