Lines Matching full:depth

22 	 * @depth: Number of bits being used in @word/@cleared
24 unsigned long depth; member
45 * @depth: Number of bits used in the whole bitmap.
47 unsigned int depth; member
133 * @min_shallow_depth: The minimum shallow depth which may be passed to
142 * @depth: Number of bits to allocate.
155 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
172 * @depth: New number of bits to resize to.
175 * depth doesn't exceed the depth that the sb was initialized with.
177 void sbitmap_resize(struct sbitmap *sb, unsigned int depth);
191 * limiting the depth used from each word.
237 if (start >= sb->depth) in __sbitmap_for_each_set()
242 while (scanned < sb->depth) { in __sbitmap_for_each_set()
244 unsigned int depth = min_t(unsigned int, in __sbitmap_for_each_set() local
245 sb->map[index].depth - nr, in __sbitmap_for_each_set()
246 sb->depth - scanned); in __sbitmap_for_each_set()
248 scanned += depth; in __sbitmap_for_each_set()
258 depth += nr; in __sbitmap_for_each_set()
260 nr = find_next_bit(&word, depth, nr); in __sbitmap_for_each_set()
261 if (nr >= depth) in __sbitmap_for_each_set()
326 if (likely(sb->alloc_hint && !sb->round_robin && bitnr < sb->depth)) in sbitmap_put()
335 static inline int sbitmap_calculate_shift(unsigned int depth) in sbitmap_calculate_shift() argument
345 if (depth >= 4) { in sbitmap_calculate_shift()
346 while ((4U << shift) > depth) in sbitmap_calculate_shift()
387 * @depth: See sbitmap_init_node().
395 int sbitmap_queue_init_node(struct sbitmap_queue *sbq, unsigned int depth,
412 * @depth: New number of bits to resize to.
418 void sbitmap_queue_resize(struct sbitmap_queue *sbq, unsigned int depth);
431 * sbitmap_queue, limiting the depth used from each word, with preemption
467 * sbitmap_queue, limiting the depth used from each word.
493 * minimum shallow depth that will be used.
495 * @min_shallow_depth: The minimum shallow depth that will be passed to
499 * depends on the depth of the bitmap. Since the shallow allocation functions
500 * effectively operate with a different depth, the shallow depth must be taken
502 * with the minimum shallow depth that will be used. Failure to do so can result