Lines Matching refs:uctx
108 u32 c4iw_get_cqid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx) in c4iw_get_cqid() argument
114 mutex_lock(&uctx->lock); in c4iw_get_cqid()
115 if (!list_empty(&uctx->cqids)) { in c4iw_get_cqid()
116 entry = list_entry(uctx->cqids.next, struct c4iw_qid_list, in c4iw_get_cqid()
133 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_get_cqid()
144 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_get_cqid()
150 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_get_cqid()
154 mutex_unlock(&uctx->lock); in c4iw_get_cqid()
164 struct c4iw_dev_ucontext *uctx) in c4iw_put_cqid() argument
173 mutex_lock(&uctx->lock); in c4iw_put_cqid()
174 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_put_cqid()
175 mutex_unlock(&uctx->lock); in c4iw_put_cqid()
178 u32 c4iw_get_qpid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx) in c4iw_get_qpid() argument
184 mutex_lock(&uctx->lock); in c4iw_get_qpid()
185 if (!list_empty(&uctx->qpids)) { in c4iw_get_qpid()
186 entry = list_entry(uctx->qpids.next, struct c4iw_qid_list, in c4iw_get_qpid()
207 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_get_qpid()
218 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_get_qpid()
224 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_get_qpid()
228 mutex_unlock(&uctx->lock); in c4iw_get_qpid()
238 struct c4iw_dev_ucontext *uctx) in c4iw_put_qpid() argument
247 mutex_lock(&uctx->lock); in c4iw_put_qpid()
248 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_put_qpid()
249 mutex_unlock(&uctx->lock); in c4iw_put_qpid()