Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_context.c127 res = uctx->cotables[i]; in vmw_context_cotables_unref()
128 uctx->cotables[i] = NULL; in vmw_context_cotables_unref()
196 if (IS_ERR(uctx->man)) { in vmw_gb_context_init()
197 ret = PTR_ERR(uctx->man); in vmw_gb_context_init()
198 uctx->man = NULL; in vmw_gb_context_init()
204 if (IS_ERR(uctx->cbs)) { in vmw_gb_context_init()
205 ret = PTR_ERR(uctx->cbs); in vmw_gb_context_init()
216 &uctx->res, i); in vmw_gb_context_init()
600 if (uctx->dx_query_mob && uctx->dx_query_mob->dx_query_ctx && in vmw_dx_context_unbind()
872 if (uctx->dx_query_mob && uctx->dx_query_mob != mob) in vmw_context_bind_dx_query()
[all …]
/linux-6.3-rc2/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
523 struct c4iw_dev_ucontext uctx; member
936 struct c4iw_dev_ucontext *uctx);
955 struct c4iw_dev_ucontext *uctx);
957 struct c4iw_dev_ucontext *uctx);
1013 u32 c4iw_get_cqid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx);
1015 struct c4iw_dev_ucontext *uctx);
1016 u32 c4iw_get_qpid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx);
1018 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()
2514 int user = (uctx != &rdev->uctx); in alloc_srq_queue()
2728 &rhp->rdev.uctx, srq->wr_waitp); in c4iw_create_srq()
2785 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-6.3-rc2/drivers/infiniband/hw/ocrdma/
A Docrdma_verbs.c418 status = _ocrdma_alloc_pd(dev, uctx->cntxt_pd, uctx, udata); in ocrdma_alloc_ucontext_pd()
424 uctx->cntxt_pd->uctx = uctx; in ocrdma_alloc_ucontext_pd()
451 pd = uctx->cntxt_pd; in ocrdma_get_ucontext_pd()
529 ocrdma_del_mmap(uctx, uctx->ah_tbl.pa, uctx->ah_tbl.len); in ocrdma_dealloc_ucontext()
530 dma_free_coherent(&pdev->dev, uctx->ah_tbl.len, uctx->ah_tbl.va, in ocrdma_dealloc_ucontext()
618 pd->uctx = uctx; in ocrdma_copy_pd_uresp()
676 uctx = pd->uctx; in ocrdma_dealloc_pd()
677 if (uctx) { in ocrdma_dealloc_pd()
1712 if (!pd->uctx) { in ocrdma_destroy_qp()
1718 if (pd->uctx) { in ocrdma_destroy_qp()
[all …]
A Docrdma_verbs.h64 int ocrdma_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata);
65 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-6.3-rc2/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-6.3-rc2/tools/testing/selftests/powerpc/pmu/sampling_tests/
A Dmmcr2_fcs_fch_test.c21 ucontext_t *uctx = data; in sig_usr2_handler() local
23 is_hv = !!(uctx->uc_mcontext.gp_regs[PT_MSR] & MSR_HV); in sig_usr2_handler()
/linux-6.3-rc2/security/selinux/include/
A Dxfrm.h16 struct xfrm_user_sec_ctx *uctx,
23 struct xfrm_user_sec_ctx *uctx);
/linux-6.3-rc2/drivers/infiniband/hw/hns/
A Dhns_roce_cq.c230 struct hns_roce_ucontext *uctx; in alloc_cq_db() local
236 uctx = rdma_udata_to_drv_context(udata, in alloc_cq_db()
238 err = hns_roce_db_map_user(uctx, addr, &hr_cq->db); in alloc_cq_db()
263 struct hns_roce_ucontext *uctx; in free_cq_db() local
270 uctx = rdma_udata_to_drv_context(udata, in free_cq_db()
273 hns_roce_db_unmap_user(uctx, &hr_cq->db); in free_cq_db()
A Dhns_roce_main.c340 static int hns_roce_alloc_uar_entry(struct ib_ucontext *uctx) in hns_roce_alloc_uar_entry() argument
342 struct hns_roce_ucontext *context = to_hr_ucontext(uctx); in hns_roce_alloc_uar_entry()
347 uctx, address, PAGE_SIZE, HNS_ROCE_MMAP_TYPE_DB); in hns_roce_alloc_uar_entry()
354 static int hns_roce_alloc_ucontext(struct ib_ucontext *uctx, in hns_roce_alloc_ucontext() argument
357 struct hns_roce_ucontext *context = to_hr_ucontext(uctx); in hns_roce_alloc_ucontext()
358 struct hns_roce_dev *hr_dev = to_hr_dev(uctx->device); in hns_roce_alloc_ucontext()
398 ret = hns_roce_alloc_uar_entry(uctx); in hns_roce_alloc_ucontext()
437 static int hns_roce_mmap(struct ib_ucontext *uctx, struct vm_area_struct *vma) in hns_roce_mmap() argument
445 rdma_entry = rdma_user_mmap_entry_get_pgoff(uctx, vma->vm_pgoff); in hns_roce_mmap()
462 ret = rdma_user_mmap_io(uctx, vma, pfn, rdma_entry->npages * PAGE_SIZE, in hns_roce_mmap()
A Dhns_roce_qp.c798 struct hns_roce_ucontext *uctx = in qp_mmap_entry() local
807 hns_roce_user_mmap_entry_insert(&uctx->ibucontext, address, in qp_mmap_entry()
829 struct hns_roce_ucontext *uctx = rdma_udata_to_drv_context(udata, in alloc_user_qp_db() local
835 ret = hns_roce_db_map_user(uctx, ucmd->sdb_addr, &hr_qp->sdb); in alloc_user_qp_db()
846 ret = hns_roce_db_map_user(uctx, ucmd->db_addr, &hr_qp->rdb); in alloc_user_qp_db()
860 hns_roce_db_unmap_user(uctx, &hr_qp->sdb); in alloc_user_qp_db()
937 struct hns_roce_ucontext *uctx = rdma_udata_to_drv_context( in free_qp_db() local
942 hns_roce_db_unmap_user(uctx, &hr_qp->rdb); in free_qp_db()
944 hns_roce_db_unmap_user(uctx, &hr_qp->sdb); in free_qp_db()
997 struct hns_roce_ucontext *uctx; in set_qp_param() local
[all …]
/linux-6.3-rc2/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);
/linux-6.3-rc2/drivers/infiniband/hw/erdma/
A Derdma_verbs.c235 erdma_user_mmap_entry_insert(struct erdma_ucontext *uctx, void *address, in erdma_user_mmap_entry_insert() argument
658 ret = erdma_map_user_dbrecords(uctx, db_info_va, in init_user_qp()
682 erdma_unmap_user_dbrecords(uctx, &qp->user_qp.user_dbr_page); in free_user_qp()
690 struct erdma_ucontext *uctx = rdma_udata_to_drv_context( in erdma_create_qp() local
725 if (uctx) { in erdma_create_qp()
731 ret = init_user_qp(qp, uctx, ureq.qbuf_va, ureq.qbuf_len, in erdma_create_qp()
764 if (uctx) in erdma_create_qp()
765 free_user_qp(qp, uctx); in erdma_create_qp()
1192 rdma_user_mmap_entry_remove(uctx->sq_db_mmap_entry); in erdma_uctx_user_mmap_entries_remove()
1193 rdma_user_mmap_entry_remove(uctx->rq_db_mmap_entry); in erdma_uctx_user_mmap_entries_remove()
[all …]
/linux-6.3-rc2/drivers/infiniband/sw/siw/
A Dsiw_verbs.c47 struct siw_ucontext *uctx = to_siw_ctx(ctx); in siw_mmap() local
118 struct siw_ucontext *uctx = to_siw_ctx(base_ctx); in siw_dealloc_ucontext() local
120 atomic_dec(&uctx->sdev->num_ctx); in siw_dealloc_ucontext()
259 siw_mmap_entry_insert(struct siw_ucontext *uctx, in siw_mmap_entry_insert() argument
272 rv = rdma_user_mmap_entry_insert(&uctx->base_ucontext, in siw_mmap_entry_insert()
302 struct siw_ucontext *uctx = in siw_create_qp() local
445 siw_mmap_entry_insert(uctx, qp->sendq, in siw_create_qp()
456 siw_mmap_entry_insert(uctx, qp->recvq, in siw_create_qp()
489 if (uctx) { in siw_create_qp()
593 struct siw_ucontext *uctx = in siw_destroy_qp() local
[all …]
/linux-6.3-rc2/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()
2298 if (!uctx) { in pfkey_spdadd()
2304 kfree(uctx); in pfkey_spdadd()
2400 if (!uctx) in pfkey_spddelete()
2404 kfree(uctx); in pfkey_spddelete()
[all …]
/linux-6.3-rc2/drivers/infiniband/hw/usnic/
A Dusnic_ib_verbs.c633 int usnic_ib_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata) in usnic_ib_alloc_ucontext() argument
635 struct ib_device *ibdev = uctx->device; in usnic_ib_alloc_ucontext()
636 struct usnic_ib_ucontext *context = to_ucontext(uctx); in usnic_ib_alloc_ucontext()
663 struct usnic_ib_ucontext *uctx = to_ucontext(context); in usnic_ib_mmap() local
682 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-6.3-rc2/drivers/infiniband/hw/bnxt_re/
A Dib_verbs.c2856 cq->qplib_cq.dpi = &uctx->dpi; in bnxt_re_create_cq()
3846 struct bnxt_re_ucontext *uctx = in bnxt_re_alloc_ucontext() local
3862 uctx->rdev = rdev; in bnxt_re_alloc_ucontext()
3865 if (!uctx->shpg) { in bnxt_re_alloc_ucontext()
3869 spin_lock_init(&uctx->sh_lock); in bnxt_re_alloc_ucontext()
3897 free_page((unsigned long)uctx->shpg); in bnxt_re_alloc_ucontext()
3898 uctx->shpg = NULL; in bnxt_re_alloc_ucontext()
3909 struct bnxt_re_dev *rdev = uctx->rdev; in bnxt_re_dealloc_ucontext()
3911 if (uctx->shpg) in bnxt_re_dealloc_ucontext()
3914 if (uctx->dpi.dbr) { in bnxt_re_dealloc_ucontext()
[all …]
/linux-6.3-rc2/net/xfrm/
A Dxfrm_user.c117 struct xfrm_user_sec_ctx *uctx; in verify_sec_ctx_len() local
122 uctx = nla_data(rt); in verify_sec_ctx_len()
123 if (uctx->len > nla_len(rt) || in verify_sec_ctx_len()
124 uctx->len != (sizeof(struct xfrm_user_sec_ctx) + uctx->ctx_len)) { in verify_sec_ctx_len()
934 uctx = nla_data(attr); in copy_sec_ctx()
935 uctx->exttype = XFRMA_SEC_CTX; in copy_sec_ctx()
936 uctx->len = ctx_size; in copy_sec_ctx()
937 uctx->ctx_doi = s->ctx_doi; in copy_sec_ctx()
938 uctx->ctx_alg = s->ctx_alg; in copy_sec_ctx()
939 uctx->ctx_len = s->ctx_len; in copy_sec_ctx()
[all …]
/linux-6.3-rc2/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-6.3-rc2/usr/include/
A DMakefile73 no-header-test += asm/uctx.h

Completed in 61 milliseconds

12