Searched refs:SB_NR_TO_BIT (Results 1 - 2 of 2) sorted by relevance
/linux-master/include/linux/ |
H A D | sbitmap.h | 233 #define SB_NR_TO_BIT(sb, bitnr) ((bitnr) & ((1U << (sb)->shift) - 1U)) macro 258 nr = SB_NR_TO_BIT(sb, start); 315 set_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); 320 clear_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr)); 333 set_bit(SB_NR_TO_BIT(sb, bitnr), addr); 350 return test_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr));
|
/linux-master/lib/ |
H A D | sbitmap.c | 231 alloc_hint = SB_NR_TO_BIT(sb, alloc_hint); 263 alloc_hint = SB_NR_TO_BIT(sb, alloc_hint); 626 mask |= (1UL << SB_NR_TO_BIT(sb, tag));
|
Completed in 92 milliseconds