Lines Matching refs:sbitmap
52 struct sbitmap { struct
113 struct sbitmap sb;
170 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
174 static inline unsigned int __map_depth(const struct sbitmap *sb, int index) in __map_depth()
185 static inline void sbitmap_free(struct sbitmap *sb) in sbitmap_free()
200 void sbitmap_resize(struct sbitmap *sb, unsigned int depth);
210 int sbitmap_get(struct sbitmap *sb);
227 int sbitmap_get_shallow(struct sbitmap *sb, unsigned long shallow_depth);
235 bool sbitmap_any_bit_set(const struct sbitmap *sb);
240 typedef bool (*sb_for_each_fn)(struct sbitmap *, unsigned int, void *);
252 static inline void __sbitmap_for_each_set(struct sbitmap *sb, in __sbitmap_for_each_set()
304 static inline void sbitmap_for_each_set(struct sbitmap *sb, sb_for_each_fn fn, in sbitmap_for_each_set()
310 static inline unsigned long *__sbitmap_word(struct sbitmap *sb, in __sbitmap_word()
318 static inline void sbitmap_set_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_set_bit()
323 static inline void sbitmap_clear_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_clear_bit()
334 static inline void sbitmap_deferred_clear_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_deferred_clear_bit()
345 static inline void sbitmap_put(struct sbitmap *sb, unsigned int bitnr) in sbitmap_put()
353 static inline int sbitmap_test_bit(struct sbitmap *sb, unsigned int bitnr) in sbitmap_test_bit()
383 void sbitmap_show(struct sbitmap *sb, struct seq_file *m);
393 unsigned int sbitmap_weight(const struct sbitmap *sb);
404 void sbitmap_bitmap_show(struct sbitmap *sb, struct seq_file *m);