Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_context.c129 res = uctx->cotables[i]; in vmw_context_cotables_unref()
130 uctx->cotables[i] = NULL; in vmw_context_cotables_unref()
198 if (IS_ERR(uctx->man)) { in vmw_gb_context_init()
199 ret = PTR_ERR(uctx->man); in vmw_gb_context_init()
200 uctx->man = NULL; in vmw_gb_context_init()
206 if (IS_ERR(uctx->cbs)) { in vmw_gb_context_init()
207 ret = PTR_ERR(uctx->cbs); in vmw_gb_context_init()
218 &uctx->res, i); in vmw_gb_context_init()
602 if (uctx->dx_query_mob && uctx->dx_query_mob->dx_query_ctx && in vmw_dx_context_unbind()
898 if (uctx->dx_query_mob && uctx->dx_query_mob != mob) in vmw_context_bind_dx_query()
[all …]
/linux/drivers/infiniband/hw/cxgb4/
A Dresource.c114 mutex_lock(&uctx->lock); in c4iw_get_cqid()
115 if (!list_empty(&uctx->cqids)) { 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()
175 mutex_unlock(&uctx->lock); in c4iw_put_cqid()
184 mutex_lock(&uctx->lock); in c4iw_get_qpid()
185 if (!list_empty(&uctx->qpids)) { in c4iw_get_qpid()
228 mutex_unlock(&uctx->lock); in c4iw_get_qpid()
247 mutex_lock(&uctx->lock); in c4iw_put_qpid()
[all …]
A Dcq.c38 struct c4iw_dev_ucontext *uctx, struct sk_buff *skb, in destroy_cq() argument
67 c4iw_put_cqid(rdev, cq->cqid, uctx); in destroy_cq()
71 struct c4iw_dev_ucontext *uctx, in create_cq() argument
77 int user = (uctx != &rdev->uctx); in create_cq()
83 ucontext = container_of(uctx, struct c4iw_ucontext, uctx); in create_cq()
85 cq->cqid = c4iw_get_cqid(rdev, uctx); in create_cq()
179 c4iw_put_cqid(rdev, cq->cqid, uctx); in create_cq()
991 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx, in c4iw_destroy_cq()
1079 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_cq()
1150 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_cq()
A Diw_cxgb4.h175 struct c4iw_dev_ucontext uctx; member
524 struct c4iw_dev_ucontext uctx; member
937 struct c4iw_dev_ucontext *uctx);
956 struct c4iw_dev_ucontext *uctx);
958 struct c4iw_dev_ucontext *uctx);
1014 u32 c4iw_get_cqid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx);
1016 struct c4iw_dev_ucontext *uctx);
1017 u32 c4iw_get_qpid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx);
1019 struct c4iw_dev_ucontext *uctx);
A Dqp.c159 c4iw_put_qpid(rdev, wq->sq.qid, uctx); in destroy_qp()
167 c4iw_put_qpid(rdev, wq->rq.qid, uctx); in destroy_qp()
201 struct c4iw_dev_ucontext *uctx, in create_qp() argument
205 int user = (uctx != &rdev->uctx); in create_qp()
2103 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !qhp->srq); in c4iw_destroy_qp()
2177 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_qp()
2350 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !attrs->srq); in c4iw_create_qp()
2513 int user = (uctx != &rdev->uctx); in alloc_srq_queue()
2727 &rhp->rdev.uctx, srq->wr_waitp); in c4iw_create_srq()
2784 free_srq_queue(srq, ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_srq()
[all …]
A Ddevice.c748 struct c4iw_dev_ucontext *uctx) in c4iw_release_dev_ucontext() argument
753 mutex_lock(&uctx->lock); in c4iw_release_dev_ucontext()
754 list_for_each_safe(pos, nxt, &uctx->qpids) { in c4iw_release_dev_ucontext()
767 list_for_each_safe(pos, nxt, &uctx->cqids) { in c4iw_release_dev_ucontext()
772 mutex_unlock(&uctx->lock); in c4iw_release_dev_ucontext()
776 struct c4iw_dev_ucontext *uctx) in c4iw_init_dev_ucontext() argument
778 INIT_LIST_HEAD(&uctx->qpids); in c4iw_init_dev_ucontext()
779 INIT_LIST_HEAD(&uctx->cqids); in c4iw_init_dev_ucontext()
780 mutex_init(&uctx->lock); in c4iw_init_dev_ucontext()
789 c4iw_init_dev_ucontext(rdev, &rdev->uctx); in c4iw_rdev_open()
[all …]
/linux/drivers/infiniband/hw/ocrdma/
A Docrdma_verbs.c416 status = _ocrdma_alloc_pd(dev, uctx->cntxt_pd, uctx, udata); in ocrdma_alloc_ucontext_pd()
422 uctx->cntxt_pd->uctx = uctx; in ocrdma_alloc_ucontext_pd()
449 pd = uctx->cntxt_pd; in ocrdma_get_ucontext_pd()
527 ocrdma_del_mmap(uctx, uctx->ah_tbl.pa, uctx->ah_tbl.len); in ocrdma_dealloc_ucontext()
528 dma_free_coherent(&pdev->dev, uctx->ah_tbl.len, uctx->ah_tbl.va, in ocrdma_dealloc_ucontext()
616 pd->uctx = uctx; in ocrdma_copy_pd_uresp()
674 uctx = pd->uctx; in ocrdma_dealloc_pd()
675 if (uctx) { in ocrdma_dealloc_pd()
1710 if (!pd->uctx) { in ocrdma_destroy_qp()
1716 if (pd->uctx) { in ocrdma_destroy_qp()
[all …]
A Docrdma_verbs.h65 int ocrdma_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata);
66 void ocrdma_dealloc_ucontext(struct ib_ucontext *uctx);
A Docrdma_ah.c196 if ((pd->uctx) && (pd->uctx->ah_tbl.va)) { in ocrdma_create_ah()
197 ahid_addr = pd->uctx->ah_tbl.va + rdma_ah_get_dlid(attr); in ocrdma_create_ah()
/linux/security/selinux/
A Dxfrm.c75 struct xfrm_user_sec_ctx *uctx, in selinux_xfrm_alloc_user() argument
83 if (ctxp == NULL || uctx == NULL || in selinux_xfrm_alloc_user()
84 uctx->ctx_doi != XFRM_SC_DOI_LSM || in selinux_xfrm_alloc_user()
85 uctx->ctx_alg != XFRM_SC_ALG_SELINUX) in selinux_xfrm_alloc_user()
88 str_len = uctx->ctx_len; in selinux_xfrm_alloc_user()
99 memcpy(ctx->ctx_str, &uctx[1], str_len); in selinux_xfrm_alloc_user()
286 struct xfrm_user_sec_ctx *uctx, in selinux_xfrm_policy_alloc() argument
289 return selinux_xfrm_alloc_user(ctxp, uctx, gfp); in selinux_xfrm_policy_alloc()
335 struct xfrm_user_sec_ctx *uctx) in selinux_xfrm_state_alloc() argument
337 return selinux_xfrm_alloc_user(&x->security, uctx, GFP_KERNEL); in selinux_xfrm_state_alloc()
/linux/drivers/infiniband/hw/hns/
A Dhns_roce_main.c332 static int hns_roce_alloc_uar_entry(struct ib_ucontext *uctx) in hns_roce_alloc_uar_entry() argument
334 struct hns_roce_ucontext *context = to_hr_ucontext(uctx); in hns_roce_alloc_uar_entry()
335 struct hns_roce_dev *hr_dev = to_hr_dev(uctx->device); in hns_roce_alloc_uar_entry()
341 uctx, address, PAGE_SIZE, HNS_ROCE_MMAP_TYPE_DB); in hns_roce_alloc_uar_entry()
353 hns_roce_user_mmap_entry_insert(uctx, hr_dev->tptr_dma_addr, in hns_roce_alloc_uar_entry()
368 static int hns_roce_alloc_ucontext(struct ib_ucontext *uctx, in hns_roce_alloc_ucontext() argument
372 struct hns_roce_ucontext *context = to_hr_ucontext(uctx); in hns_roce_alloc_ucontext()
374 struct hns_roce_dev *hr_dev = to_hr_dev(uctx->device); in hns_roce_alloc_ucontext()
386 ret = hns_roce_alloc_uar_entry(uctx); in hns_roce_alloc_ucontext()
433 rdma_entry = rdma_user_mmap_entry_get_pgoff(uctx, vma->vm_pgoff); in hns_roce_mmap()
[all …]
A Dhns_roce_cq.c229 struct hns_roce_ucontext *uctx; in alloc_cq_db() local
235 uctx = rdma_udata_to_drv_context(udata, in alloc_cq_db()
237 err = hns_roce_db_map_user(uctx, addr, &hr_cq->db); in alloc_cq_db()
262 struct hns_roce_ucontext *uctx; in free_cq_db() local
269 uctx = rdma_udata_to_drv_context(udata, in free_cq_db()
272 hns_roce_db_unmap_user(uctx, &hr_cq->db); in free_cq_db()
A Dhns_roce_qp.c832 struct hns_roce_ucontext *uctx = rdma_udata_to_drv_context(udata, in alloc_user_qp_db() local
838 ret = hns_roce_db_map_user(uctx, ucmd->sdb_addr, &hr_qp->sdb); in alloc_user_qp_db()
849 ret = hns_roce_db_map_user(uctx, ucmd->db_addr, &hr_qp->rdb); in alloc_user_qp_db()
863 hns_roce_db_unmap_user(uctx, &hr_qp->sdb); in alloc_user_qp_db()
928 struct hns_roce_ucontext *uctx = rdma_udata_to_drv_context( in free_qp_db() local
933 hns_roce_db_unmap_user(uctx, &hr_qp->rdb); in free_qp_db()
935 hns_roce_db_unmap_user(uctx, &hr_qp->sdb); in free_qp_db()
/linux/security/selinux/include/
A Dxfrm.h14 struct xfrm_user_sec_ctx *uctx,
21 struct xfrm_user_sec_ctx *uctx);
/linux/drivers/infiniband/sw/siw/
A Dsiw_verbs.c46 struct siw_ucontext *uctx = to_siw_ctx(ctx); in siw_mmap() local
117 struct siw_ucontext *uctx = to_siw_ctx(base_ctx); in siw_dealloc_ucontext() local
119 atomic_dec(&uctx->sdev->num_ctx); in siw_dealloc_ucontext()
257 siw_mmap_entry_insert(struct siw_ucontext *uctx, in siw_mmap_entry_insert() argument
270 rv = rdma_user_mmap_entry_insert(&uctx->base_ucontext, in siw_mmap_entry_insert()
300 struct siw_ucontext *uctx = in siw_create_qp() local
442 siw_mmap_entry_insert(uctx, qp->sendq, in siw_create_qp()
453 siw_mmap_entry_insert(uctx, qp->recvq, in siw_create_qp()
484 if (uctx) { in siw_create_qp()
588 struct siw_ucontext *uctx = in siw_destroy_qp() local
[all …]
/linux/drivers/infiniband/hw/qedr/
A Dverbs.h45 int qedr_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata);
46 void qedr_dealloc_ucontext(struct ib_ucontext *uctx);
A Dverbs.c262 struct ib_device *ibdev = uctx->device; in qedr_alloc_ucontext()
264 struct qedr_ucontext *ctx = get_qedr_ucontext(uctx); in qedr_alloc_ucontext()
369 uctx); in qedr_dealloc_ucontext()
371 rdma_user_mmap_entry_remove(uctx->db_mmap_entry); in qedr_dealloc_ucontext()
471 pd->uctx = context; in qedr_alloc_pd()
472 pd->uctx->pd = pd; in qedr_alloc_pd()
746 struct qedr_ucontext *uctx = in qedr_init_user_db_rec() local
753 if (requires_db_rec == 0 || !uctx->db_rec) in qedr_init_user_db_rec()
770 rc = rdma_user_mmap_entry_insert(&uctx->ibucontext, in qedr_init_user_db_rec()
1745 params->dpi = pd->uctx ? pd->uctx->dpi : dev->dpi; in qedr_init_common_qp_in_params()
[all …]
/linux/net/key/
A Daf_key.c469 uctx = kmalloc((sizeof(*uctx)+ctx_size), gfp); in pfkey_sadb2xfrm_user_sec_ctx()
471 if (!uctx) in pfkey_sadb2xfrm_user_sec_ctx()
480 uctx->ctx_len); in pfkey_sadb2xfrm_user_sec_ctx()
482 return uctx; in pfkey_sadb2xfrm_user_sec_ctx()
1156 if (!uctx) in pfkey_msg2xfrm_state()
1160 kfree(uctx); in pfkey_msg2xfrm_state()
2295 if (!uctx) { in pfkey_spdadd()
2301 kfree(uctx); in pfkey_spdadd()
2397 if (!uctx) in pfkey_spddelete()
2401 kfree(uctx); in pfkey_spddelete()
[all …]
/linux/drivers/infiniband/hw/usnic/
A Dusnic_ib_verbs.c635 int usnic_ib_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata) in usnic_ib_alloc_ucontext() argument
637 struct ib_device *ibdev = uctx->device; in usnic_ib_alloc_ucontext()
638 struct usnic_ib_ucontext *context = to_ucontext(uctx); in usnic_ib_alloc_ucontext()
665 struct usnic_ib_ucontext *uctx = to_ucontext(context); in usnic_ib_mmap() local
684 list_for_each_entry(qp_grp, &uctx->qp_grp_list, link) { in usnic_ib_mmap()
A Dusnic_ib_verbs.h65 int usnic_ib_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata);
/linux/net/xfrm/
A Dxfrm_user.c107 struct xfrm_user_sec_ctx *uctx; in verify_sec_ctx_len() local
112 uctx = nla_data(rt); in verify_sec_ctx_len()
113 if (uctx->len > nla_len(rt) || in verify_sec_ctx_len()
114 uctx->len != (sizeof(struct xfrm_user_sec_ctx) + uctx->ctx_len)) in verify_sec_ctx_len()
823 uctx = nla_data(attr); in copy_sec_ctx()
824 uctx->exttype = XFRMA_SEC_CTX; in copy_sec_ctx()
825 uctx->len = ctx_size; in copy_sec_ctx()
826 uctx->ctx_doi = s->ctx_doi; in copy_sec_ctx()
827 uctx->ctx_alg = s->ctx_alg; in copy_sec_ctx()
828 uctx->ctx_len = s->ctx_len; in copy_sec_ctx()
[all …]
A Dxfrm_state.c1484 struct xfrm_user_sec_ctx *uctx; in clone_security() local
1485 int size = sizeof(*uctx) + security->ctx_len; in clone_security()
1488 uctx = kmalloc(size, GFP_KERNEL); in clone_security()
1489 if (!uctx) in clone_security()
1492 uctx->exttype = XFRMA_SEC_CTX; in clone_security()
1493 uctx->len = size; in clone_security()
1494 uctx->ctx_doi = security->ctx_doi; in clone_security()
1495 uctx->ctx_alg = security->ctx_alg; in clone_security()
1496 uctx->ctx_len = security->ctx_len; in clone_security()
1498 err = security_xfrm_state_alloc(x, uctx); in clone_security()
[all …]
/linux/drivers/infiniband/hw/bnxt_re/
A Dib_verbs.c2857 cq->qplib_cq.dpi = &uctx->dpi; in bnxt_re_create_cq()
3847 struct bnxt_re_ucontext *uctx = in bnxt_re_alloc_ucontext() local
3863 uctx->rdev = rdev; in bnxt_re_alloc_ucontext()
3866 if (!uctx->shpg) { in bnxt_re_alloc_ucontext()
3870 spin_lock_init(&uctx->sh_lock); in bnxt_re_alloc_ucontext()
3898 free_page((unsigned long)uctx->shpg); in bnxt_re_alloc_ucontext()
3899 uctx->shpg = NULL; in bnxt_re_alloc_ucontext()
3910 struct bnxt_re_dev *rdev = uctx->rdev; in bnxt_re_dealloc_ucontext()
3912 if (uctx->shpg) in bnxt_re_dealloc_ucontext()
3915 if (uctx->dpi.dbr) { in bnxt_re_dealloc_ucontext()
[all …]
/linux/drivers/infiniband/hw/vmw_pvrdma/
A Dpvrdma_verbs.c313 int pvrdma_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata) in pvrdma_alloc_ucontext() argument
315 struct ib_device *ibdev = uctx->device; in pvrdma_alloc_ucontext()
317 struct pvrdma_ucontext *context = to_vucontext(uctx); in pvrdma_alloc_ucontext()
/linux/usr/include/
A DMakefile88 no-header-test += asm/uctx.h

Completed in 75 milliseconds

12