Lines Matching defs:start
63 * @start: The minimum ID (inclusive).
67 * Allocates an unused ID in the range specified by @start and @end. If
69 * callers to use @start + N as @end as long as N is within integer range.
79 int idr_alloc(struct idr *idr, void *ptr, int start, int end, gfp_t gfp)
81 u32 id = start;
84 if (WARN_ON_ONCE(start < 0))
99 * @start: The minimum ID (inclusive).
103 * Allocates an unused ID in the range specified by @start and @end. If
105 * callers to use @start + N as @end as long as N is within integer range.
106 * The search for an unused ID will start at the last ID allocated and will
107 * wrap around to @start if no free IDs are found before reaching @end.
117 int idr_alloc_cyclic(struct idr *idr, void *ptr, int start, int end, gfp_t gfp)
122 if ((int)id < start)
123 id = start;
126 if ((err == -ENOSPC) && (id > start)) {
127 id = start;
350 * the 128-byte bitmap in the first entry and then start allocating extra