Lines Matching refs:__id
215 int64_t __id = (int64_t)id; in __idr_mark_full() local
223 int64_t layer_id = __id & IDR_MASK; in __idr_mark_full()
231 __id >>= IDR_BITS; in __idr_mark_full()
232 layer_id = __id & IDR_MASK; in __idr_mark_full()
250 int64_t __id = (int64_t)id; in __idr_get_path() local
251 if (unlikely(idp->top == NULL || __id < 0)) in __idr_get_path()
261 if (unlikely((__id >> ((layer + 1ull) * IDR_BITS)) > 0)) in __idr_get_path()
271 int64_t layer_id = (__id >> (layer * IDR_BITS)) & IDR_MASK; in __idr_get_path()
296 int64_t __id = (int64_t)id; in __idr_erase_full() local
304 int64_t layer_id = __id & IDR_MASK; in __idr_erase_full()
316 __id >>= IDR_BITS; in __idr_erase_full()
317 layer_id = __id & IDR_MASK; in __idr_erase_full()
402 int64_t __id = (int64_t)id; in idr_remove() local
403 if (unlikely(idp->top == NULL || __id < 0)) in idr_remove()
408 if (0 == __idr_get_path(idp, __id, stk)) in idr_remove()
411 void *ret = stk[0]->ary[__id & IDR_MASK]; in idr_remove()
412 __idr_erase_full(idp, __id, stk, 0); in idr_remove()
521 int64_t __id = (int64_t)id; in idr_find() local
522 if (unlikely(idp->top == NULL || __id < 0)) in idr_find()
532 if ((__id >> ((layer + 1) * IDR_BITS)) > 0) in idr_find()
540 layer_id = (__id >> (IDR_BITS * layer)) & IDR_MASK; in idr_find()
673 int64_t __id = (int64_t)id; in idr_replace_get_old() local
681 if (unlikely(idp->top == NULL || __id < 0)) in idr_replace_get_old()
687 if ((__id >> ((layer + 1) * IDR_BITS)) > 0) in idr_replace_get_old()
692 int64_t layer_id = (__id >> (layer * IDR_BITS)) & IDR_MASK; in idr_replace_get_old()
701 __id &= IDR_MASK; in idr_replace_get_old()
702 *old_ptr = cur_layer->ary[__id]; in idr_replace_get_old()
703 cur_layer->ary[__id] = ptr; in idr_replace_get_old()
718 int64_t __id = (int64_t)id; in idr_replace() local
719 if (__id < 0) in idr_replace()
723 int flags = idr_replace_get_old(idp, ptr, __id, &old_ptr); in idr_replace()
757 int64_t __id = (int64_t)id; in __idr_cnt() local
762 int64_t layer_id = (__id >> (layer * IDR_BITS)) & IDR_MASK; in __idr_cnt()
790 int64_t __id = (int64_t)id; in idr_count() local
792 if (unlikely(idp == NULL || idp->top == NULL || __id < 0)) in idr_count()
801 if (unlikely((__id >> ((layer + 1ull) * IDR_BITS)) > 0)) in idr_count()
968 int64_t __id = (int64_t)id; in ida_count() local
972 int idr_id = __id / IDA_BITMAP_BITS; in ida_count()
973 int ary_id = (__id % IDA_BITMAP_BITS) / IDA_BMP_SIZE; in ida_count()
974 int bmp_id = (__id % IDA_BITMAP_BITS) % IDA_BMP_SIZE; in ida_count()
991 int64_t __id = (int64_t)id; in ida_remove() local
995 int64_t idr_id = __id / IDA_BITMAP_BITS; in ida_remove()
996 int64_t ary_id = (__id % IDA_BITMAP_BITS) / IDA_BMP_SIZE; in ida_remove()
997 int64_t bmp_id = (__id % IDA_BITMAP_BITS) % IDA_BMP_SIZE; in ida_remove()