Lines Matching refs:idr_layer
44 static DEFINE_PER_CPU(struct idr_layer *, idr_preload_head);
66 static struct idr_layer *get_from_free_list(struct idr *idp) in get_from_free_list()
68 struct idr_layer *p; in get_from_free_list()
94 static struct idr_layer *idr_layer_alloc(gfp_t gfp_mask, struct idr *layer_idr) in idr_layer_alloc()
96 struct idr_layer *new; in idr_layer_alloc()
139 struct idr_layer *layer; in idr_layer_rcu_free()
141 layer = container_of(head, struct idr_layer, rcu_head); in idr_layer_rcu_free()
145 static inline void free_layer(struct idr *idr, struct idr_layer *p) in free_layer()
153 static void __move_to_free_list(struct idr *idp, struct idr_layer *p) in __move_to_free_list()
160 static void move_to_free_list(struct idr *idp, struct idr_layer *p) in move_to_free_list()
172 static void idr_mark_full(struct idr_layer **pa, int id) in idr_mark_full()
174 struct idr_layer *p = pa[0]; in idr_mark_full()
195 struct idr_layer *new; in __idr_pre_get()
220 static int sub_alloc(struct idr *idp, int *starting_id, struct idr_layer **pa, in sub_alloc()
224 struct idr_layer *p, *new; in sub_alloc()
290 struct idr_layer **pa, gfp_t gfp_mask, in idr_get_empty_slot()
293 struct idr_layer *p, *new; in idr_get_empty_slot()
359 struct idr_layer **pa) in idr_fill_slot()
364 rcu_assign_pointer(pa[0]->ary[id & IDR_MASK], (struct idr_layer *)ptr); in idr_fill_slot()
414 struct idr_layer *new; in idr_preload()
453 struct idr_layer *pa[MAX_IDR_LEVEL + 1]; in idr_alloc()
510 struct idr_layer *p = idp->top; in sub_remove()
511 struct idr_layer **pa[MAX_IDR_LEVEL + 1]; in sub_remove()
512 struct idr_layer ***paa = &pa[0]; in sub_remove()
513 struct idr_layer *to_free; in sub_remove()
552 struct idr_layer *p; in idr_remove()
553 struct idr_layer *to_free; in idr_remove()
587 struct idr_layer *p; in __idr_remove_all()
588 struct idr_layer *pa[MAX_IDR_LEVEL + 1]; in __idr_remove_all()
589 struct idr_layer **paa = &pa[0]; in __idr_remove_all()
636 struct idr_layer *p = get_from_free_list(idp); in idr_destroy()
645 struct idr_layer *p; in idr_find_slowpath()
690 struct idr_layer *p; in idr_for_each()
691 struct idr_layer *pa[MAX_IDR_LEVEL + 1]; in idr_for_each()
692 struct idr_layer **paa = &pa[0]; in idr_for_each()
738 struct idr_layer *p, *pa[MAX_IDR_LEVEL + 1]; in idr_get_next()
739 struct idr_layer **paa = &pa[0]; in idr_get_next()
796 struct idr_layer *p, *old_p; in idr_replace()
828 sizeof(struct idr_layer), 0, SLAB_PANIC, NULL); in idr_init_cache()
934 struct idr_layer *pa[MAX_IDR_LEVEL + 1]; in ida_get_new_above()
996 struct idr_layer *p = get_from_free_list(&ida->idr); in ida_get_new_above()
1012 struct idr_layer *p = ida->idr.top; in ida_remove()