Lines Matching full:depth
54 * @depth: Number of bits used in the whole bitmap.
56 unsigned int depth; member
137 * @min_shallow_depth: The minimum shallow depth which may be passed to
157 * @depth: Number of bits to allocate.
170 int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
177 return sb->depth - (index << sb->shift); in __map_depth()
195 * @depth: New number of bits to resize to.
198 * depth doesn't exceed the depth that the sb was initialized with.
200 void sbitmap_resize(struct sbitmap *sb, unsigned int depth);
214 * limiting the depth used from each word.
260 if (start >= sb->depth) in __sbitmap_for_each_set()
265 while (scanned < sb->depth) { in __sbitmap_for_each_set()
267 unsigned int depth = min_t(unsigned int, in __sbitmap_for_each_set() local
269 sb->depth - scanned); in __sbitmap_for_each_set()
271 scanned += depth; in __sbitmap_for_each_set()
281 depth += nr; in __sbitmap_for_each_set()
283 nr = find_next_bit(&word, depth, nr); in __sbitmap_for_each_set()
284 if (nr >= depth) in __sbitmap_for_each_set()
349 if (likely(sb->alloc_hint && !sb->round_robin && bitnr < sb->depth)) in sbitmap_put()
358 static inline int sbitmap_calculate_shift(unsigned int depth) in sbitmap_calculate_shift() argument
368 if (depth >= 4) { in sbitmap_calculate_shift()
369 while ((4U << shift) > depth) in sbitmap_calculate_shift()
410 * @depth: See sbitmap_init_node().
418 int sbitmap_queue_init_node(struct sbitmap_queue *sbq, unsigned int depth,
438 * by depth. This interface is for HCTX shared tags or queue shared tags.
446 * @depth: New number of bits to resize to.
452 void sbitmap_queue_resize(struct sbitmap_queue *sbq, unsigned int depth);
478 * sbitmap_queue, limiting the depth used from each word, with preemption
514 * minimum shallow depth that will be used.
516 * @min_shallow_depth: The minimum shallow depth that will be passed to
520 * depends on the depth of the bitmap. Since the shallow allocation functions
521 * effectively operate with a different depth, the shallow depth must be taken
523 * with the minimum shallow depth that will be used. Failure to do so can result