Lines Matching defs:sb
12 static int init_alloc_hint(struct sbitmap *sb, gfp_t flags) in init_alloc_hint()
29 static inline unsigned update_alloc_hint_before_get(struct sbitmap *sb, in update_alloc_hint_before_get()
43 static inline void update_alloc_hint_after_get(struct sbitmap *sb, in update_alloc_hint_after_get()
83 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift, in sbitmap_init_node()
123 void sbitmap_resize(struct sbitmap *sb, unsigned int depth) in sbitmap_resize()
189 static int sbitmap_find_bit(struct sbitmap *sb, in sbitmap_find_bit()
219 static int __sbitmap_get(struct sbitmap *sb, unsigned int alloc_hint) in __sbitmap_get()
239 int sbitmap_get(struct sbitmap *sb) in sbitmap_get()
256 static int __sbitmap_get_shallow(struct sbitmap *sb, in __sbitmap_get_shallow()
268 int sbitmap_get_shallow(struct sbitmap *sb, unsigned long shallow_depth) in sbitmap_get_shallow()
285 bool sbitmap_any_bit_set(const struct sbitmap *sb) in sbitmap_any_bit_set()
297 static unsigned int __sbitmap_weight(const struct sbitmap *sb, bool set) in __sbitmap_weight()
313 static unsigned int sbitmap_cleared(const struct sbitmap *sb) in sbitmap_cleared()
318 unsigned int sbitmap_weight(const struct sbitmap *sb) in sbitmap_weight()
324 void sbitmap_show(struct sbitmap *sb, struct seq_file *m) in sbitmap_show()
346 void sbitmap_bitmap_show(struct sbitmap *sb, struct seq_file *m) in sbitmap_bitmap_show()
485 struct sbitmap *sb = &sbq->sb; in __sbitmap_queue_get_batch() local
603 static inline void sbitmap_update_cpu_hint(struct sbitmap *sb, int cpu, int tag) in sbitmap_update_cpu_hint()
612 struct sbitmap *sb = &sbq->sb; in sbitmap_queue_clear_batch() local