Lines Matching refs:idr
124 static int idr_add_uobj(struct idr *idr, struct ib_uobject *uobj) in idr_add_uobj() argument
131 ret = idr_alloc(idr, uobj, 0, 0, GFP_NOWAIT); in idr_add_uobj()
141 void idr_remove_uobj(struct idr *idr, struct ib_uobject *uobj) in idr_remove_uobj() argument
144 idr_remove(idr, uobj->id); in idr_remove_uobj()
148 static struct ib_uobject *__idr_get_uobj(struct idr *idr, int id, in __idr_get_uobj() argument
154 uobj = idr_find(idr, id); in __idr_get_uobj()
166 static struct ib_uobject *idr_read_uobj(struct idr *idr, int id, in idr_read_uobj() argument
171 uobj = __idr_get_uobj(idr, id, context); in idr_read_uobj()
187 static struct ib_uobject *idr_write_uobj(struct idr *idr, int id, in idr_write_uobj() argument
192 uobj = __idr_get_uobj(idr, id, context); in idr_write_uobj()
205 static void *idr_read_obj(struct idr *idr, int id, struct ib_ucontext *context, in idr_read_obj() argument
210 uobj = idr_read_uobj(idr, id, context, nested); in idr_read_obj()