Lines Matching defs:limit
129 unsigned int limit = xas->xa_offset + xas->xa_sibs + 1;
136 if (find_next_bit(marks, limit, xas->xa_offset + 1) == limit)
1797 * @limit: Range for allocated ID.
1801 * Finds an empty entry in @xa between @limit.min and @limit.max,
1811 * -EBUSY if there are no free entries in @limit.
1814 struct xa_limit limit, gfp_t gfp)
1827 xas.xa_index = limit.min;
1828 xas_find_marked(&xas, limit.max, XA_FREE_MARK);
1846 * @limit: Range of allocated ID.
1850 * Finds an empty entry in @xa between @limit.min and @limit.max,
1863 * allocated or -EBUSY if there are no free entries in @limit.
1866 struct xa_limit limit, u32 *next, gfp_t gfp)
1868 u32 min = limit.min;
1871 limit.min = max(min, *next);
1872 ret = __xa_alloc(xa, id, entry, limit, gfp);
1878 if (ret < 0 && limit.min > min) {
1879 limit.min = min;
1880 ret = __xa_alloc(xa, id, entry, limit, gfp);