Lines Matching refs:sbitmap
47 struct sbitmap { struct
113 struct sbitmap sb;
159 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
163 static inline unsigned int __map_depth(const struct sbitmap *sb, int index) in __map_depth()
174 static inline void sbitmap_free(struct sbitmap *sb) in sbitmap_free()
189 void sbitmap_resize(struct sbitmap *sb, unsigned int depth);
199 int sbitmap_get(struct sbitmap *sb);
216 int sbitmap_get_shallow(struct sbitmap *sb, unsigned long shallow_depth);
224 bool sbitmap_any_bit_set(const struct sbitmap *sb);
229 typedef bool (*sb_for_each_fn)(struct sbitmap *, unsigned int, void *);
241 static inline void __sbitmap_for_each_set(struct sbitmap *sb, in __sbitmap_for_each_set()
293 static inline void sbitmap_for_each_set(struct sbitmap *sb, sb_for_each_fn fn, in sbitmap_for_each_set()
299 static inline unsigned long *__sbitmap_word(struct sbitmap *sb, in __sbitmap_word()
307 static inline void sbitmap_set_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_set_bit()
312 static inline void sbitmap_clear_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_clear_bit()
323 static inline void sbitmap_deferred_clear_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_deferred_clear_bit()
334 static inline void sbitmap_put(struct sbitmap *sb, unsigned int bitnr) in sbitmap_put()
342 static inline int sbitmap_test_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_test_bit()
372 void sbitmap_show(struct sbitmap *sb, struct seq_file *m);
382 unsigned int sbitmap_weight(const struct sbitmap *sb);
393 void sbitmap_bitmap_show(struct sbitmap *sb, struct seq_file *m);