Lines Matching refs:IDR_BITS
38 #define MAX_IDR_LEVEL ((MAX_IDR_SHIFT + IDR_BITS - 1) / IDR_BITS)
51 int bits = min_t(int, layers * IDR_BITS, MAX_IDR_SHIFT); in idr_max()
187 id = id >> IDR_BITS; in idr_mark_full()
236 n = (id >> (IDR_BITS*l)) & IDR_MASK; in sub_alloc()
242 id = (id | ((1 << (IDR_BITS * l)) - 1)) + 1; in sub_alloc()
255 sh = IDR_BITS * (l + 1); in sub_alloc()
262 sh = IDR_BITS*l; in sub_alloc()
524 shift -= IDR_BITS; in sub_remove()
563 sub_remove(idp, (idp->layers - 1) * IDR_BITS, id); in idr_remove()
591 n = idp->layers * IDR_BITS; in __idr_remove_all()
599 while (n > IDR_BITS && p) { in __idr_remove_all()
600 n -= IDR_BITS; in __idr_remove_all()
611 n += IDR_BITS; in __idr_remove_all()
653 n = (p->layer+1) * IDR_BITS; in idr_find_slowpath()
660 n -= IDR_BITS; in idr_find_slowpath()
661 BUG_ON(n != p->layer*IDR_BITS); in idr_find_slowpath()
694 n = idp->layers * IDR_BITS; in idr_for_each()
702 n -= IDR_BITS; in idr_for_each()
715 n += IDR_BITS; in idr_for_each()
747 n = (p->layer + 1) * IDR_BITS; in idr_get_next()
753 n -= IDR_BITS; in idr_get_next()
772 n += IDR_BITS; in idr_get_next()
808 n = p->layer * IDR_BITS; in idr_replace()
811 n -= IDR_BITS; in idr_replace()
1013 int shift = (ida->idr.layers - 1) * IDR_BITS; in ida_remove()
1027 shift -= IDR_BITS; in ida_remove()