Lines Matching defs:idr
40 #include <linux/idr.h>
267 struct idr cqidr;
268 struct idr qpidr;
269 struct idr mmidr;
300 static inline int _insert_handle(struct c4iw_dev *rhp, struct idr *idr,
307 if (!idr_pre_get(idr, lock ? GFP_KERNEL : GFP_ATOMIC))
311 ret = idr_get_new_above(idr, handle, id, &newid);
320 static inline int insert_handle(struct c4iw_dev *rhp, struct idr *idr,
323 return _insert_handle(rhp, idr, handle, id, 1);
326 static inline int insert_handle_nolock(struct c4iw_dev *rhp, struct idr *idr,
329 return _insert_handle(rhp, idr, handle, id, 0);
332 static inline void _remove_handle(struct c4iw_dev *rhp, struct idr *idr,
337 idr_remove(idr, id);
342 static inline void remove_handle(struct c4iw_dev *rhp, struct idr *idr, u32 id)
344 _remove_handle(rhp, idr, id, 1);
348 struct idr *idr, u32 id)
350 _remove_handle(rhp, idr, id, 0);