Home
last modified time | relevance | path

Searched refs:uctx (Results 1 – 13 of 13) sorted by relevance

/drivers/infiniband/hw/cxgb4/
Dresource.c97 u32 c4iw_get_cqid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx) in c4iw_get_cqid() argument
103 mutex_lock(&uctx->lock); in c4iw_get_cqid()
104 if (!list_empty(&uctx->cqids)) { in c4iw_get_cqid()
105 entry = list_entry(uctx->cqids.next, struct c4iw_qid_list, in c4iw_get_cqid()
122 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_get_cqid()
133 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_get_cqid()
139 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_get_cqid()
143 mutex_unlock(&uctx->lock); in c4iw_get_cqid()
153 struct c4iw_dev_ucontext *uctx) in c4iw_put_cqid() argument
162 mutex_lock(&uctx->lock); in c4iw_put_cqid()
[all …]
Dcq.c36 struct c4iw_dev_ucontext *uctx) in destroy_cq() argument
74 c4iw_put_cqid(rdev, cq->cqid, uctx); in destroy_cq()
79 struct c4iw_dev_ucontext *uctx) in create_cq() argument
84 int user = (uctx != &rdev->uctx); in create_cq()
89 cq->cqid = c4iw_get_cqid(rdev, uctx); in create_cq()
172 c4iw_put_cqid(rdev, cq->cqid, uctx); in create_cq()
745 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx); in c4iw_destroy_cq()
813 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_cq()
873 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_cq()
Diw_cxgb4.h144 struct c4iw_dev_ucontext uctx; member
453 struct c4iw_dev_ucontext uctx; member
839 struct c4iw_dev_ucontext *uctx);
857 struct c4iw_dev_ucontext *uctx);
859 struct c4iw_dev_ucontext *uctx);
929 u32 c4iw_get_cqid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx);
931 struct c4iw_dev_ucontext *uctx);
932 u32 c4iw_get_qpid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx);
934 struct c4iw_dev_ucontext *uctx);
Ddevice.c481 struct c4iw_dev_ucontext *uctx) in c4iw_release_dev_ucontext() argument
486 mutex_lock(&uctx->lock); in c4iw_release_dev_ucontext()
487 list_for_each_safe(pos, nxt, &uctx->qpids) { in c4iw_release_dev_ucontext()
500 list_for_each_safe(pos, nxt, &uctx->qpids) { in c4iw_release_dev_ucontext()
505 mutex_unlock(&uctx->lock); in c4iw_release_dev_ucontext()
509 struct c4iw_dev_ucontext *uctx) in c4iw_init_dev_ucontext() argument
511 INIT_LIST_HEAD(&uctx->qpids); in c4iw_init_dev_ucontext()
512 INIT_LIST_HEAD(&uctx->cqids); in c4iw_init_dev_ucontext()
513 mutex_init(&uctx->lock); in c4iw_init_dev_ucontext()
521 c4iw_init_dev_ucontext(rdev, &rdev->uctx); in c4iw_rdev_open()
Dqp.c125 struct c4iw_dev_ucontext *uctx) in destroy_qp() argument
138 c4iw_put_qpid(rdev, wq->rq.qid, uctx); in destroy_qp()
139 c4iw_put_qpid(rdev, wq->sq.qid, uctx); in destroy_qp()
145 struct c4iw_dev_ucontext *uctx) in create_qp() argument
147 int user = (uctx != &rdev->uctx); in create_qp()
156 wq->sq.qid = c4iw_get_qpid(rdev, uctx); in create_qp()
160 wq->rq.qid = c4iw_get_qpid(rdev, uctx); in create_qp()
320 c4iw_put_qpid(rdev, wq->rq.qid, uctx); in create_qp()
322 c4iw_put_qpid(rdev, wq->sq.qid, uctx); in create_qp()
1501 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_destroy_qp()
[all …]
Dprovider.c99 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in c4iw_dealloc_ucontext()
114 c4iw_init_dev_ucontext(&rhp->rdev, &context->uctx); in c4iw_alloc_ucontext()
/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c165 static int ocrdma_add_mmap(struct ocrdma_ucontext *uctx, u64 phy_addr, in ocrdma_add_mmap() argument
177 mutex_lock(&uctx->mm_list_lock); in ocrdma_add_mmap()
178 list_add_tail(&mm->entry, &uctx->mm_head); in ocrdma_add_mmap()
179 mutex_unlock(&uctx->mm_list_lock); in ocrdma_add_mmap()
183 static void ocrdma_del_mmap(struct ocrdma_ucontext *uctx, u64 phy_addr, in ocrdma_del_mmap() argument
188 mutex_lock(&uctx->mm_list_lock); in ocrdma_del_mmap()
189 list_for_each_entry_safe(mm, tmp, &uctx->mm_head, entry) { in ocrdma_del_mmap()
197 mutex_unlock(&uctx->mm_list_lock); in ocrdma_del_mmap()
200 static bool ocrdma_search_mmap(struct ocrdma_ucontext *uctx, u64 phy_addr, in ocrdma_search_mmap() argument
206 mutex_lock(&uctx->mm_list_lock); in ocrdma_search_mmap()
[all …]
Docrdma_ah.c114 if ((pd->uctx) && (pd->uctx->ah_tbl.va)) { in ocrdma_create_ah()
115 ahid_addr = pd->uctx->ah_tbl.va + attr->dlid; in ocrdma_create_ah()
Docrdma.h212 struct ocrdma_ucontext *uctx; member
/drivers/infiniband/hw/cxgb3/
Dcxio_hal.c206 static u32 get_qpid(struct cxio_rdev *rdev_p, struct cxio_ucontext *uctx) in get_qpid() argument
212 mutex_lock(&uctx->lock); in get_qpid()
213 if (!list_empty(&uctx->qpids)) { in get_qpid()
214 entry = list_entry(uctx->qpids.next, struct cxio_qpid_list, in get_qpid()
228 list_add_tail(&entry->entry, &uctx->qpids); in get_qpid()
232 mutex_unlock(&uctx->lock); in get_qpid()
238 struct cxio_ucontext *uctx) in put_qpid() argument
247 mutex_lock(&uctx->lock); in put_qpid()
248 list_add_tail(&entry->entry, &uctx->qpids); in put_qpid()
249 mutex_unlock(&uctx->lock); in put_qpid()
[all …]
Dcxio_hal.h110 struct cxio_ucontext uctx; member
163 void cxio_release_ucontext(struct cxio_rdev *rdev, struct cxio_ucontext *uctx);
164 void cxio_init_ucontext(struct cxio_rdev *rdev, struct cxio_ucontext *uctx);
166 struct cxio_ucontext *uctx);
168 struct cxio_ucontext *uctx);
Diwch_provider.c104 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx); in iwch_dealloc_ucontext()
119 cxio_init_ucontext(&rhp->rdev, &context->uctx); in iwch_alloc_ucontext()
884 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in iwch_destroy_qp()
955 ucontext ? &ucontext->uctx : &rhp->rdev.uctx)) { in iwch_create_qp()
993 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in iwch_create_qp()
Diwch_provider.h187 struct cxio_ucontext uctx; member