Lines Matching refs:ary
39 p->ary[0] = idp->free_list; in __move_to_free_list()
77 idp->free_list = idp->free_list->ary[0]; in __get_from_free_list()
79 item->ary[0] = NULL; // 记得清空原来的数据 in __get_from_free_list()
135 idp->top->ary[0] = new_node; in __idr_grow()
184 cur_layer = cur_layer->ary[pos]; in __idr_get_empty_slot()
196 stk[layer]->ary[pos] = cur_layer; // 最后别忘了记录儿子节点 in __idr_get_empty_slot()
279 cur_layer = cur_layer->ary[layer_id]; in __idr_get_path()
307 stk[0]->ary[layer_id] = NULL; in __idr_erase_full()
321 stk[layer]->ary[layer_id] = NULL; in __idr_erase_full()
343 struct idr_layer *t = idp->top->layer ? idp->top->ary[0] : NULL; in __idr_erase_full()
368 stk[0]->ary[IDR_MASK & id] = ptr; in __idr_get_new_above_int()
411 void *ret = stk[0]->ary[__id & IDR_MASK]; in idr_remove()
447 cur_layer = cur_layer->ary[id]; in __idr_remove_all_with_free()
448 stk[layer]->ary[id] = NULL; in __idr_remove_all_with_free()
457 kfree(cur_layer->ary[i]); in __idr_remove_all_with_free()
458 cur_layer->ary[i] = NULL; in __idr_remove_all_with_free()
542 cur_layer = cur_layer->ary[layer_id]; in idr_find()
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()
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()
702 *old_ptr = cur_layer->ary[__id]; in idr_replace_get_old()
703 cur_layer->ary[__id] = ptr; in idr_replace_get_old()
772 cur_layer = cur_layer->ary[layer_id]; in __idr_cnt()
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()
1005 struct ida_bitmap *b_p = (struct ida_bitmap *)(stk[0]->ary[idr_id & IDR_MASK]); in ida_remove()
1019 stk[0]->ary[idr_id & IDR_MASK] = NULL; // 记得设置为空 in ida_remove()