Lines Matching defs:max
15 * @max: The maximum ID to allocate (inclusive).
18 * Allocates an unused ID in the range specified by @nextid and @max.
19 * Note that @max is inclusive whereas the @end parameter to idr_alloc()
34 unsigned long max, gfp_t gfp)
46 slot = idr_get_free(&idr->idr_rt, &iter, gfp, max - base);
120 int err, max = end > 0 ? end - 1 : INT_MAX;
125 err = idr_alloc_u32(idr, ptr, &id, max, gfp);
128 err = idr_alloc_u32(idr, ptr, &id, max, gfp);
369 * @max: Highest ID to allocate.
372 * Allocate an ID between @min and @max, inclusive. The allocated ID will
373 * not exceed %INT_MAX, even if @max is larger.
380 int ida_alloc_range(struct ida *ida, unsigned int min, unsigned int max,
391 if ((int)max < 0)
392 max = INT_MAX;
397 bitmap = xas_find_marked(&xas, max / IDA_BITMAP_BITS, XA_FREE_MARK);
400 if (xas.xa_index * IDA_BITMAP_BITS + bit > max)
408 if (xas.xa_index * IDA_BITMAP_BITS + bit > max)
431 if (xas.xa_index * IDA_BITMAP_BITS + bit > max)