Lines Matching refs:sbitmap
47 struct sbitmap { struct
108 struct sbitmap sb;
165 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
169 static inline unsigned int __map_depth(const struct sbitmap *sb, int index) in __map_depth()
180 static inline void sbitmap_free(struct sbitmap *sb) in sbitmap_free()
195 void sbitmap_resize(struct sbitmap *sb, unsigned int depth);
205 int sbitmap_get(struct sbitmap *sb);
222 int sbitmap_get_shallow(struct sbitmap *sb, unsigned long shallow_depth);
230 bool sbitmap_any_bit_set(const struct sbitmap *sb);
235 typedef bool (*sb_for_each_fn)(struct sbitmap *, unsigned int, void *);
247 static inline void __sbitmap_for_each_set(struct sbitmap *sb, in __sbitmap_for_each_set()
299 static inline void sbitmap_for_each_set(struct sbitmap *sb, sb_for_each_fn fn, in sbitmap_for_each_set()
305 static inline unsigned long *__sbitmap_word(struct sbitmap *sb, in __sbitmap_word()
313 static inline void sbitmap_set_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_set_bit()
318 static inline void sbitmap_clear_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_clear_bit()
329 static inline void sbitmap_deferred_clear_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_deferred_clear_bit()
340 static inline void sbitmap_put(struct sbitmap *sb, unsigned int bitnr) in sbitmap_put()
348 static inline int sbitmap_test_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_test_bit()
378 void sbitmap_show(struct sbitmap *sb, struct seq_file *m);
388 unsigned int sbitmap_weight(const struct sbitmap *sb);
399 void sbitmap_bitmap_show(struct sbitmap *sb, struct seq_file *m);