Lines Matching refs:word
82 static int __sbitmap_get_word(unsigned long *word, unsigned long depth, in __sbitmap_get_word() argument
89 nr = find_next_zero_bit(word, depth, hint); in __sbitmap_get_word()
103 if (!test_and_set_bit_lock(nr, word)) in __sbitmap_get_word()
122 nr = __sbitmap_get_word(&sb->map[index].word, in sbitmap_get()
154 nr = __sbitmap_get_word(&sb->map[index].word, in sbitmap_get_shallow()
181 if (sb->map[i].word) in sbitmap_any_bit_set()
193 const struct sbitmap_word *word = &sb->map[i]; in sbitmap_any_bit_clear() local
196 ret = find_first_zero_bit(&word->word, word->depth); in sbitmap_any_bit_clear()
197 if (ret < word->depth) in sbitmap_any_bit_clear()
209 const struct sbitmap_word *word = &sb->map[i]; in sbitmap_weight() local
211 weight += bitmap_weight(&word->word, word->depth); in sbitmap_weight()
246 unsigned long word = READ_ONCE(sb->map[i].word); in sbitmap_bitmap_show() local
252 byte |= (word & (BIT(bits) - 1)) << byte_bits; in sbitmap_bitmap_show()
260 word >>= bits; in sbitmap_bitmap_show()