/drivers/infiniband/hw/cxgb4/ |
D | resource.c | 97 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 …]
|
D | cq.c | 36 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() 173 c4iw_put_cqid(rdev, cq->cqid, uctx); in create_cq() 857 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx); in c4iw_destroy_cq() 923 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_cq() 984 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_cq()
|
D | iw_cxgb4.h | 171 struct c4iw_dev_ucontext uctx; member 500 struct c4iw_dev_ucontext uctx; member 930 struct c4iw_dev_ucontext *uctx); 948 struct c4iw_dev_ucontext *uctx); 950 struct c4iw_dev_ucontext *uctx); 1019 u32 c4iw_get_cqid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx); 1021 struct c4iw_dev_ucontext *uctx); 1022 u32 c4iw_get_qpid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx); 1024 struct c4iw_dev_ucontext *uctx);
|
D | qp.c | 150 struct c4iw_dev_ucontext *uctx) in destroy_qp() argument 163 c4iw_put_qpid(rdev, wq->rq.qid, uctx); in destroy_qp() 164 c4iw_put_qpid(rdev, wq->sq.qid, uctx); in destroy_qp() 170 struct c4iw_dev_ucontext *uctx) in create_qp() argument 172 int user = (uctx != &rdev->uctx); in create_qp() 181 wq->sq.qid = c4iw_get_qpid(rdev, uctx); in create_qp() 185 wq->rq.qid = c4iw_get_qpid(rdev, uctx); in create_qp() 358 c4iw_put_qpid(rdev, wq->rq.qid, uctx); in create_qp() 360 c4iw_put_qpid(rdev, wq->sq.qid, uctx); in create_qp() 1601 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_destroy_qp() [all …]
|
D | device.c | 738 struct c4iw_dev_ucontext *uctx) in c4iw_release_dev_ucontext() argument 743 mutex_lock(&uctx->lock); in c4iw_release_dev_ucontext() 744 list_for_each_safe(pos, nxt, &uctx->qpids) { in c4iw_release_dev_ucontext() 757 list_for_each_safe(pos, nxt, &uctx->qpids) { in c4iw_release_dev_ucontext() 762 mutex_unlock(&uctx->lock); in c4iw_release_dev_ucontext() 766 struct c4iw_dev_ucontext *uctx) in c4iw_init_dev_ucontext() argument 768 INIT_LIST_HEAD(&uctx->qpids); in c4iw_init_dev_ucontext() 769 INIT_LIST_HEAD(&uctx->cqids); in c4iw_init_dev_ucontext() 770 mutex_init(&uctx->lock); in c4iw_init_dev_ucontext() 778 c4iw_init_dev_ucontext(rdev, &rdev->uctx); in c4iw_rdev_open()
|
D | provider.c | 99 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in c4iw_dealloc_ucontext() 121 c4iw_init_dev_ucontext(&rhp->rdev, &context->uctx); in c4iw_alloc_ucontext()
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 203 static int ocrdma_add_mmap(struct ocrdma_ucontext *uctx, u64 phy_addr, in ocrdma_add_mmap() argument 215 mutex_lock(&uctx->mm_list_lock); in ocrdma_add_mmap() 216 list_add_tail(&mm->entry, &uctx->mm_head); in ocrdma_add_mmap() 217 mutex_unlock(&uctx->mm_list_lock); in ocrdma_add_mmap() 221 static void ocrdma_del_mmap(struct ocrdma_ucontext *uctx, u64 phy_addr, in ocrdma_del_mmap() argument 226 mutex_lock(&uctx->mm_list_lock); in ocrdma_del_mmap() 227 list_for_each_entry_safe(mm, tmp, &uctx->mm_head, entry) { in ocrdma_del_mmap() 235 mutex_unlock(&uctx->mm_list_lock); in ocrdma_del_mmap() 238 static bool ocrdma_search_mmap(struct ocrdma_ucontext *uctx, u64 phy_addr, in ocrdma_search_mmap() argument 244 mutex_lock(&uctx->mm_list_lock); in ocrdma_search_mmap() [all …]
|
D | ocrdma_ah.c | 122 if (pd->uctx && in ocrdma_create_ah() 138 if ((pd->uctx) && (pd->uctx->ah_tbl.va)) { in ocrdma_create_ah() 139 ahid_addr = pd->uctx->ah_tbl.va + attr->dlid; in ocrdma_create_ah()
|
D | ocrdma.h | 295 struct ocrdma_ucontext *uctx; member
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_context.c | 107 struct vmw_user_context *uctx = in vmw_hw_context_destroy() local 118 vmw_cmdbuf_res_man_destroy(uctx->man); in vmw_hw_context_destroy() 120 (void) vmw_context_binding_state_kill(&uctx->cbs); in vmw_hw_context_destroy() 151 struct vmw_user_context *uctx = in vmw_gb_context_init() local 161 uctx->man = vmw_cmdbuf_res_man_create(dev_priv); in vmw_gb_context_init() 162 if (unlikely(IS_ERR(uctx->man))) { in vmw_gb_context_init() 163 ret = PTR_ERR(uctx->man); in vmw_gb_context_init() 164 uctx->man = NULL; in vmw_gb_context_init() 169 memset(&uctx->cbs, 0, sizeof(uctx->cbs)); in vmw_gb_context_init() 170 INIT_LIST_HEAD(&uctx->cbs.list); in vmw_gb_context_init() [all …]
|
/drivers/infiniband/hw/cxgb3/ |
D | cxio_hal.c | 206 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 …]
|
D | cxio_hal.h | 110 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);
|
D | iwch_provider.c | 104 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx); in iwch_dealloc_ucontext() 119 cxio_init_ucontext(&rhp->rdev, &context->uctx); in iwch_alloc_ucontext() 880 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in iwch_destroy_qp() 951 ucontext ? &ucontext->uctx : &rhp->rdev.uctx)) { in iwch_create_qp() 989 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in iwch_create_qp()
|
D | iwch_provider.h | 187 struct cxio_ucontext uctx; member
|
/drivers/infiniband/hw/usnic/ |
D | usnic_ib_verbs.c | 670 struct usnic_ib_ucontext *uctx = to_ucontext(context); in usnic_ib_mmap() local 689 list_for_each_entry(qp_grp, &uctx->qp_grp_list, link) { in usnic_ib_mmap()
|