Home
last modified time | relevance | path

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

/linux/include/linux/
A Dsbitmap.h224 #define SB_NR_TO_BIT(sb, bitnr) ((bitnr) & ((1U << (sb)->shift) - 1U)) macro
249 nr = SB_NR_TO_BIT(sb, start); in __sbitmap_for_each_set()
306 set_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_set_bit()
311 clear_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_clear_bit()
324 set_bit(SB_NR_TO_BIT(sb, bitnr), addr); in sbitmap_deferred_clear_bit()
341 return test_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); in sbitmap_test_bit()
/linux/lib/
A 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()
659 mask |= (1UL << SB_NR_TO_BIT(sb, tag)); in sbitmap_queue_clear_batch()

Completed in 7 milliseconds