Lines Matching refs:idr_layer

10 static void __swap(struct idr_layer **a, struct idr_layer **b)  in __swap()
12 struct idr_layer *t = *a; in __swap()
33 static void __move_to_free_list(struct idr *idp, struct idr_layer *p) in __move_to_free_list()
69 struct idr_layer *item = idp->free_list; in __get_from_free_list()
100 struct idr_layer *new_one; in idr_preload()
101 new_one = kzalloc(sizeof(struct idr_layer), gfp_mask); // 默认清空? in idr_preload()
116 static void __idr_layer_free(struct idr_layer *p) in __idr_layer_free()
129 struct idr_layer *new_node = __get_from_free_list(idp); in __idr_grow()
159 static int __idr_get_empty_slot(struct idr *idp, struct idr_layer **stk) in __idr_get_empty_slot()
171 struct idr_layer *cur_layer = idp->top; in __idr_get_empty_slot()
213 static __always_inline void __idr_mark_full(struct idr *idp, int id, struct idr_layer **stk, int ma… in __idr_mark_full()
248 static __always_inline int __idr_get_path(struct idr *idp, int id, struct idr_layer **stk) in __idr_get_path()
257 struct idr_layer *cur_layer = idp->top; in __idr_get_path()
294 static __always_inline void __idr_erase_full(struct idr *idp, int id, struct idr_layer **stk, int m… in __idr_erase_full()
343 struct idr_layer *t = idp->top->layer ? idp->top->ary[0] : NULL; in __idr_erase_full()
359 struct idr_layer *stk[MAX_LEVEL + 1] = {0}; in __idr_get_new_above_int()
406 struct idr_layer *stk[MAX_LEVEL + 1] = {0}; in idr_remove()
431 int sz = sizeof(struct idr_layer); in __idr_remove_all_with_free()
432 struct idr_layer *stk[MAX_LEVEL + 1] = {0}; in __idr_remove_all_with_free()
434 struct idr_layer *cur_layer = idp->top; in __idr_remove_all_with_free()
528 struct idr_layer *cur_layer = idp->top; in idr_find()
571 struct idr_layer *stk[MAX_LEVEL + 1] = {0}; in idr_find_next_getid()
580 struct idr_layer *cur_layer = idp->top; in idr_find_next_getid()
684 struct idr_layer *cur_layer = idp->top; in idr_replace_get_old()
743 static bool __idr_cnt_pd(struct idr_layer *cur_layer, int layer_id) in __idr_cnt_pd()
755 static bool __idr_cnt(int layer, int id, struct idr_layer *cur_layer) in __idr_cnt()
796 struct idr_layer *cur_layer = idp->top; in idr_count()
924 struct idr_layer *stk[MAX_LEVEL + 1] = {0}; // 你可以选择memset(0) in ida_alloc()
999 struct idr_layer *stk[MAX_LEVEL + 1] = {0}; in ida_remove()