Lines Matching refs:sbitmap
48 struct sbitmap { struct
101 struct sbitmap sb;
155 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
162 static inline void sbitmap_free(struct sbitmap *sb) in sbitmap_free()
176 void sbitmap_resize(struct sbitmap *sb, unsigned int depth);
190 int sbitmap_get(struct sbitmap *sb, unsigned int alloc_hint, bool round_robin);
208 int sbitmap_get_shallow(struct sbitmap *sb, unsigned int alloc_hint,
217 bool sbitmap_any_bit_set(const struct sbitmap *sb);
222 typedef bool (*sb_for_each_fn)(struct sbitmap *, unsigned int, void *);
234 static inline void __sbitmap_for_each_set(struct sbitmap *sb, in __sbitmap_for_each_set()
286 static inline void sbitmap_for_each_set(struct sbitmap *sb, sb_for_each_fn fn, in sbitmap_for_each_set()
292 static inline unsigned long *__sbitmap_word(struct sbitmap *sb, in __sbitmap_word()
300 static inline void sbitmap_set_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_set_bit()
305 static inline void sbitmap_clear_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_clear_bit()
316 static inline void sbitmap_deferred_clear_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_deferred_clear_bit()
323 static inline void sbitmap_clear_bit_unlock(struct sbitmap *sb, in sbitmap_clear_bit_unlock()
329 static inline int sbitmap_test_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_test_bit()
341 void sbitmap_show(struct sbitmap *sb, struct seq_file *m);
352 void sbitmap_bitmap_show(struct sbitmap *sb, struct seq_file *m);