Lines Matching defs:limit
127 unsigned int limit = xas->xa_offset + xas->xa_sibs + 1;
134 if (find_next_bit(marks, limit, xas->xa_offset + 1) == limit)
1795 * @limit: Range for allocated ID.
1799 * Finds an empty entry in @xa between @limit.min and @limit.max,
1806 * -EBUSY if there are no free entries in @limit.
1809 struct xa_limit limit, gfp_t gfp)
1822 xas.xa_index = limit.min;
1823 xas_find_marked(&xas, limit.max, XA_FREE_MARK);
1841 * @limit: Range of allocated ID.
1845 * Finds an empty entry in @xa between @limit.min and @limit.max,
1855 * allocated or -EBUSY if there are no free entries in @limit.
1858 struct xa_limit limit, u32 *next, gfp_t gfp)
1860 u32 min = limit.min;
1863 limit.min = max(min, *next);
1864 ret = __xa_alloc(xa, id, entry, limit, gfp);
1870 if (ret < 0 && limit.min > min) {
1871 limit.min = min;
1872 ret = __xa_alloc(xa, id, entry, limit, gfp);