Lines Matching refs:word
85 return (READ_ONCE(map->word) & word_mask) != word_mask; in sbitmap_deferred_clear()
96 atomic_long_andnot(mask, (atomic_long_t *)&map->word); in sbitmap_deferred_clear()
97 BUILD_BUG_ON(sizeof(atomic_long_t) != sizeof(map->word)); in sbitmap_deferred_clear()
158 static int __sbitmap_get_word(unsigned long *word, unsigned long depth, in __sbitmap_get_word() argument
167 nr = find_next_zero_bit(word, depth, hint); in __sbitmap_get_word()
181 if (!test_and_set_bit_lock(nr, word)) in __sbitmap_get_word()
200 nr = __sbitmap_get_word(&map->word, depth, in sbitmap_find_bit_in_word()
312 if (sb->map[i].word & ~sb->map[i].cleared) in sbitmap_any_bit_set()
324 const struct sbitmap_word *word = &sb->map[i]; in __sbitmap_weight() local
328 weight += bitmap_weight(&word->word, word_depth); in __sbitmap_weight()
330 weight += bitmap_weight(&word->cleared, word_depth); in __sbitmap_weight()
376 unsigned long word = READ_ONCE(sb->map[i].word); in sbitmap_bitmap_show() local
380 word &= ~cleared; in sbitmap_bitmap_show()
385 byte |= (word & (BIT(bits) - 1)) << byte_bits; in sbitmap_bitmap_show()
393 word >>= bits; in sbitmap_bitmap_show()
527 val = READ_ONCE(map->word); in __sbitmap_queue_get_batch()
533 atomic_long_t *ptr = (atomic_long_t *) &map->word; in __sbitmap_queue_get_batch()
645 this_addr = &sb->map[SB_NR_TO_INDEX(sb, tag)].word; in sbitmap_queue_clear_batch()