Lines Matching defs:idr
38 #include <linux/idr.h>
220 struct idr cqidr;
221 struct idr qpidr;
222 struct idr mmidr;
254 static inline int _insert_handle(struct c4iw_dev *rhp, struct idr *idr,
261 if (!idr_pre_get(idr, lock ? GFP_KERNEL : GFP_ATOMIC))
265 ret = idr_get_new_above(idr, handle, id, &newid);
274 static inline int insert_handle(struct c4iw_dev *rhp, struct idr *idr,
277 return _insert_handle(rhp, idr, handle, id, 1);
280 static inline int insert_handle_nolock(struct c4iw_dev *rhp, struct idr *idr,
283 return _insert_handle(rhp, idr, handle, id, 0);
286 static inline void _remove_handle(struct c4iw_dev *rhp, struct idr *idr,
291 idr_remove(idr, id);
296 static inline void remove_handle(struct c4iw_dev *rhp, struct idr *idr, u32 id)
298 _remove_handle(rhp, idr, id, 1);
302 struct idr *idr, u32 id)
304 _remove_handle(rhp, idr, id, 0);
1002 int idr_for_each(struct idr *idp,