Home
last modified time | relevance | path

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

/linux-6.1.9/include/linux/
Dsbitmap.h227 #define SB_NR_TO_BIT(sb, bitnr) ((bitnr) & ((1U << (sb)->shift) - 1U)) macro
252 nr = SB_NR_TO_BIT(sb, start); in __sbitmap_for_each_set()
309 set_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_set_bit()
314 clear_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_clear_bit()
327 set_bit(SB_NR_TO_BIT(sb, bitnr), addr); in sbitmap_deferred_clear_bit()
344 return test_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_test_bit()
/linux-6.1.9/lib/
Dsbitmap.c201 alloc_hint = SB_NR_TO_BIT(sb, alloc_hint); in __sbitmap_get()
253 SB_NR_TO_BIT(sb, alloc_hint), true); in __sbitmap_get_shallow()
710 mask |= (1UL << SB_NR_TO_BIT(sb, tag)); in sbitmap_queue_clear_batch()