Lines Matching refs:layer_id
223 int64_t layer_id = __id & IDR_MASK; in __idr_mark_full() local
225 stk[0]->full |= (1ull << layer_id); in __idr_mark_full()
227 stk[0]->bitmap |= (1ull << layer_id); in __idr_mark_full()
232 layer_id = __id & IDR_MASK; in __idr_mark_full()
234 stk[i]->bitmap |= (1ull << layer_id); in __idr_mark_full()
236 stk[i]->full |= (1ull << layer_id); in __idr_mark_full()
271 int64_t layer_id = (__id >> (layer * IDR_BITS)) & IDR_MASK; in __idr_get_path() local
273 if (unlikely(((cur_layer->bitmap >> layer_id) & 1) == 0)) in __idr_get_path()
279 cur_layer = cur_layer->ary[layer_id]; in __idr_get_path()
304 int64_t layer_id = __id & IDR_MASK; in __idr_erase_full() local
307 stk[0]->ary[layer_id] = NULL; in __idr_erase_full()
308 stk[0]->bitmap ^= (1ull << layer_id); in __idr_erase_full()
310 if (mark != 2 && ((stk[0]->full >> layer_id) & 1)) in __idr_erase_full()
311 stk[0]->full ^= (1ull << layer_id); in __idr_erase_full()
317 layer_id = __id & IDR_MASK; in __idr_erase_full()
321 stk[layer]->ary[layer_id] = NULL; in __idr_erase_full()
322 stk[layer]->bitmap ^= (1ull << layer_id); in __idr_erase_full()
324 if ((stk[layer]->full >> layer_id) & 1) in __idr_erase_full()
325 stk[layer]->full ^= (1ull << layer_id); in __idr_erase_full()
332 if ((stk[layer]->full >> layer_id) & 1) in __idr_erase_full()
333 stk[layer]->full ^= (1ull << layer_id); in __idr_erase_full()
536 int64_t layer_id = 0; in idr_find() local
540 layer_id = (__id >> (IDR_BITS * layer)) & IDR_MASK; in idr_find()
542 cur_layer = cur_layer->ary[layer_id]; in idr_find()
613 int64_t layer_id = __lowbit_id(t_bitmap) + pos_i[layer]; in idr_find_next_getid() local
616 if ((cur_state == false) && (layer_id > pos_i[layer] > 0)) in idr_find_next_getid()
619 pos_i[layer] = layer_id; in idr_find_next_getid()
621 *nextid = (((uint64_t)*nextid) << IDR_BITS) | layer_id; // 更新答案 in idr_find_next_getid()
625 return cur_layer->ary[layer_id]; in idr_find_next_getid()
628 cur_layer = cur_layer->ary[layer_id]; in idr_find_next_getid()
692 int64_t layer_id = (__id >> (layer * IDR_BITS)) & IDR_MASK; in idr_replace_get_old() local
694 if (unlikely(NULL == cur_layer->ary[layer_id])) in idr_replace_get_old()
697 cur_layer = cur_layer->ary[layer_id]; in idr_replace_get_old()
743 static bool __idr_cnt_pd(struct idr_layer *cur_layer, int layer_id) in __idr_cnt_pd() argument
746 unsigned long flags = ((cur_layer->bitmap) >> layer_id); in __idr_cnt_pd()
762 int64_t layer_id = (__id >> (layer * IDR_BITS)) & IDR_MASK; in __idr_cnt() local
766 if (__idr_cnt_pd(cur_layer, layer_id) == false) in __idr_cnt()
772 cur_layer = cur_layer->ary[layer_id]; in __idr_cnt()
938 int64_t layer_id = idr_id & IDR_MASK; in ida_alloc() local
940 if (NULL == stk[0]->ary[layer_id]) in ida_alloc()
941 stk[0]->ary[layer_id] = __get_ida_bitmap(ida_p, 0); in ida_alloc()
943 if (unlikely(NULL == stk[0]->ary[layer_id])) in ida_alloc()
946 struct ida_bitmap *bmp = (struct ida_bitmap *)stk[0]->ary[layer_id]; in ida_alloc()