Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dsbitmap.h238 #define SB_NR_TO_BIT(sb, bitnr) ((bitnr) & ((1U << (sb)->shift) - 1U)) macro
263 nr = SB_NR_TO_BIT(sb, start); in __sbitmap_for_each_set()
320 set_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_set_bit()
325 clear_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_clear_bit()
338 set_bit(SB_NR_TO_BIT(sb, bitnr), addr); in sbitmap_deferred_clear_bit()
355 return test_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_test_bit()
/linux/lib/
H A Dsbitmap.c253 alloc_hint = SB_NR_TO_BIT(sb, alloc_hint); in __sbitmap_get()
285 alloc_hint = SB_NR_TO_BIT(sb, alloc_hint); in __sbitmap_get_shallow()
648 mask |= (1UL << SB_NR_TO_BIT(sb, tag)); in sbitmap_queue_clear_batch()