Searched refs:SB_NR_TO_BIT (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/include/linux/ |
D | sbitmap.h | 225 #define SB_NR_TO_BIT(sb, bitnr) ((bitnr) & ((1U << (sb)->shift) - 1U)) macro 250 nr = SB_NR_TO_BIT(sb, start); in __sbitmap_for_each_set() 305 set_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_set_bit() 310 clear_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_clear_bit() 316 clear_bit_unlock(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_clear_bit_unlock() 321 return test_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_test_bit()
|
/Linux-v4.19/lib/ |
D | sbitmap.c | 124 SB_NR_TO_BIT(sb, alloc_hint), in sbitmap_get() 156 SB_NR_TO_BIT(sb, alloc_hint), true); in sbitmap_get_shallow()
|