Home
last modified time | relevance | path

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

/Linux-v5.15/include/linux/
Dsbitmap.h215 #define SB_NR_TO_BIT(sb, bitnr) ((bitnr) & ((1U << (sb)->shift) - 1U)) macro
240 nr = SB_NR_TO_BIT(sb, start); in __sbitmap_for_each_set()
297 set_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_set_bit()
302 clear_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_clear_bit()
315 set_bit(SB_NR_TO_BIT(sb, bitnr), addr); in sbitmap_deferred_clear_bit()
332 return test_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_test_bit()
/Linux-v5.15/lib/
Dsbitmap.c211 alloc_hint = SB_NR_TO_BIT(sb, alloc_hint); in __sbitmap_get()
261 SB_NR_TO_BIT(sb, alloc_hint), true); in __sbitmap_get_shallow()