Lines Matching refs:idp

50 __qdf_idr_alloc(qdf_idr *idp, void *ptr, int32_t start, int32_t end)  in __qdf_idr_alloc()  argument
54 idr_get_new(&idp->idr, ptr, &id); in __qdf_idr_alloc()
60 __qdf_idr_alloc(qdf_idr *idp, void *ptr, int32_t start, int32_t end) in __qdf_idr_alloc() argument
62 return idr_alloc(&idp->idr, ptr, start, end, qdf_idr_gpf_flag()); in __qdf_idr_alloc()
66 QDF_STATUS qdf_idr_create(qdf_idr *idp) in qdf_idr_create() argument
68 if (!idp) in qdf_idr_create()
71 qdf_spinlock_create(&idp->lock); in qdf_idr_create()
73 idr_init(&idp->idr); in qdf_idr_create()
80 QDF_STATUS qdf_idr_destroy(qdf_idr *idp) in qdf_idr_destroy() argument
82 if (!idp) in qdf_idr_destroy()
85 qdf_spinlock_destroy(&idp->lock); in qdf_idr_destroy()
86 idr_destroy(&idp->idr); in qdf_idr_destroy()
93 QDF_STATUS qdf_idr_alloc(qdf_idr *idp, void *ptr, int32_t *id) in qdf_idr_alloc() argument
97 if (!idp || !ptr) in qdf_idr_alloc()
100 qdf_spinlock_acquire(&idp->lock); in qdf_idr_alloc()
101 local_id = __qdf_idr_alloc(idp, ptr, QDF_IDR_START, QDF_IDR_END); in qdf_idr_alloc()
102 qdf_spinlock_release(&idp->lock); in qdf_idr_alloc()
113 QDF_STATUS qdf_idr_remove(qdf_idr *idp, int32_t id) in qdf_idr_remove() argument
115 if (!idp || id < QDF_IDR_START) in qdf_idr_remove()
118 qdf_spinlock_acquire(&idp->lock); in qdf_idr_remove()
119 if (idr_find(&idp->idr, id)) in qdf_idr_remove()
120 idr_remove(&idp->idr, id); in qdf_idr_remove()
121 qdf_spinlock_release(&idp->lock); in qdf_idr_remove()
128 QDF_STATUS qdf_idr_find(qdf_idr *idp, int32_t id, void **ptr) in qdf_idr_find() argument
133 qdf_spinlock_acquire(&idp->lock); in qdf_idr_find()
134 *ptr = idr_find(&idp->idr, id); in qdf_idr_find()
135 qdf_spinlock_release(&idp->lock); in qdf_idr_find()