Lines Matching refs:sbitmap
49 struct sbitmap { struct
102 struct sbitmap sb;
151 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
158 static inline void sbitmap_free(struct sbitmap *sb) in sbitmap_free()
172 void sbitmap_resize(struct sbitmap *sb, unsigned int depth);
186 int sbitmap_get(struct sbitmap *sb, unsigned int alloc_hint, bool round_robin);
204 int sbitmap_get_shallow(struct sbitmap *sb, unsigned int alloc_hint,
213 bool sbitmap_any_bit_set(const struct sbitmap *sb);
222 bool sbitmap_any_bit_clear(const struct sbitmap *sb);
227 typedef bool (*sb_for_each_fn)(struct sbitmap *, unsigned int, void *);
239 static inline void __sbitmap_for_each_set(struct sbitmap *sb, in __sbitmap_for_each_set()
289 static inline void sbitmap_for_each_set(struct sbitmap *sb, sb_for_each_fn fn, in sbitmap_for_each_set()
295 static inline unsigned long *__sbitmap_word(struct sbitmap *sb, in __sbitmap_word()
303 static inline void sbitmap_set_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_set_bit()
308 static inline void sbitmap_clear_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_clear_bit()
313 static inline void sbitmap_clear_bit_unlock(struct sbitmap *sb, in sbitmap_clear_bit_unlock()
319 static inline int sbitmap_test_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_test_bit()
324 unsigned int sbitmap_weight(const struct sbitmap *sb);
333 void sbitmap_show(struct sbitmap *sb, struct seq_file *m);
344 void sbitmap_bitmap_show(struct sbitmap *sb, struct seq_file *m);