Lines Matching refs:idr
42 struct idr { struct
56 #define DEFINE_IDR(name) struct idr name = IDR_INIT(name) argument
79 void *idr_find_slowpath(struct idr *idp, int id);
81 int idr_alloc(struct idr *idp, void *ptr, int start, int end, gfp_t gfp_mask);
82 int idr_alloc_cyclic(struct idr *idr, void *ptr, int start, int end, gfp_t gfp_mask);
83 int idr_for_each(struct idr *idp,
85 void *idr_get_next(struct idr *idp, int *nextid);
86 void *idr_replace(struct idr *idp, void *ptr, int id);
87 void idr_remove(struct idr *idp, int id);
88 void idr_destroy(struct idr *idp);
89 void idr_init(struct idr *idp);
90 bool idr_is_empty(struct idr *idp);
115 static inline void *idr_find(struct idr *idr, int id) in idr_find() argument
117 struct idr_layer *hint = rcu_dereference_raw(idr->hint); in idr_find()
122 return idr_find_slowpath(idr, id); in idr_find()
155 struct idr idr; member
159 #define IDA_INIT(name) { .idr = IDR_INIT((name).idr), .free_bitmap = NULL, }