Lines Matching defs:min
368 * @min: Lowest ID to allocate.
372 * Allocate an ID between @min and @max, inclusive. The allocated ID will
380 int ida_alloc_range(struct ida *ida, unsigned int min, unsigned int max,
383 XA_STATE(xas, &ida->xa, min / IDA_BITMAP_BITS);
384 unsigned bit = min % IDA_BITMAP_BITS;
388 if ((int)min < 0)
398 if (xas.xa_index > min / IDA_BITMAP_BITS)
455 xas.xa_index = min / IDA_BITMAP_BITS;
456 bit = min % IDA_BITMAP_BITS;
469 xas_set(&xas, min / IDA_BITMAP_BITS);
470 bit = min % IDA_BITMAP_BITS;