Searched refs:IDR_BITS (Results 1 – 2 of 2) sorted by relevance
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()[all …]
26 #define IDR_BITS 8 macro27 #define IDR_SIZE (1 << IDR_BITS)28 #define IDR_MASK ((1 << IDR_BITS)-1)33 struct idr_layer __rcu *ary[1<<IDR_BITS];