| /linux/drivers/gpu/drm/vmwgfx/ |
| A D | vmwgfx_context.c | 131 res = uctx->cotables[i]; in vmw_context_cotables_unref() 132 uctx->cotables[i] = NULL; in vmw_context_cotables_unref() 200 if (IS_ERR(uctx->man)) { in vmw_gb_context_init() 201 ret = PTR_ERR(uctx->man); in vmw_gb_context_init() 202 uctx->man = NULL; in vmw_gb_context_init() 208 if (IS_ERR(uctx->cbs)) { in vmw_gb_context_init() 209 ret = PTR_ERR(uctx->cbs); in vmw_gb_context_init() 220 &uctx->res, i); in vmw_gb_context_init() 604 if (uctx->dx_query_mob && uctx->dx_query_mob->dx_query_ctx && in vmw_dx_context_unbind() 876 if (uctx->dx_query_mob && uctx->dx_query_mob != mob) in vmw_context_bind_dx_query() [all …]
|
| /linux/drivers/scsi/qla2xxx/ |
| A D | qla_nvme.c | 249 if (!uctx) { in qla_nvme_release_lsrsp_cmd_kref() 255 uctx->sp = NULL; in qla_nvme_release_lsrsp_cmd_kref() 264 kfree(uctx); in qla_nvme_release_lsrsp_cmd_kref() 396 uctx->sp = sp; in qla_nvme_xmt_ls_rsp() 417 uctx->ox_id, uctx->nport_handle); in qla_nvme_xmt_ls_rsp() 445 kfree(uctx); in qla_nvme_xmt_ls_rsp() 1201 kfree(uctx); in qla2xxx_process_purls_pkt() 1290 uctx = kzalloc(sizeof(*uctx), GFP_ATOMIC); in qla2xxx_process_purls_iocb() 1291 if (!uctx) { in qla2xxx_process_purls_iocb() 1300 uctx->vha = vha; in qla2xxx_process_purls_iocb() [all …]
|
| /linux/drivers/infiniband/hw/cxgb4/ |
| A D | resource.c | 114 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 D | cq.c | 38 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() 1080 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_cq() 1157 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_cq()
|
| A D | iw_cxgb4.h | 175 struct c4iw_dev_ucontext uctx; member 523 struct c4iw_dev_ucontext uctx; member 970 struct c4iw_dev_ucontext *uctx); 987 struct c4iw_dev_ucontext *uctx); 989 struct c4iw_dev_ucontext *uctx); 1043 u32 c4iw_get_cqid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx); 1045 struct c4iw_dev_ucontext *uctx); 1046 u32 c4iw_get_qpid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx); 1048 struct c4iw_dev_ucontext *uctx);
|
| A D | qp.c | 159 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() 2369 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !attrs->srq); in c4iw_create_qp() 2533 int user = (uctx != &rdev->uctx); in alloc_srq_queue() 2747 &rhp->rdev.uctx, srq->wr_waitp); in c4iw_create_srq() 2811 free_srq_queue(srq, ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_srq() [all …]
|
| A D | device.c | 748 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 D | ocrdma_verbs.c | 418 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() 1711 if (!pd->uctx) { in ocrdma_destroy_qp() 1717 if (pd->uctx) { in ocrdma_destroy_qp() [all …]
|
| A D | ocrdma_verbs.h | 64 int ocrdma_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata); 65 void ocrdma_dealloc_ucontext(struct ib_ucontext *uctx);
|
| A D | ocrdma_ah.c | 196 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 D | xfrm.c | 75 struct xfrm_user_sec_ctx *uctx, in selinux_xfrm_alloc_user() argument 82 if (ctxp == NULL || uctx == NULL || in selinux_xfrm_alloc_user() 83 uctx->ctx_doi != XFRM_SC_DOI_LSM || in selinux_xfrm_alloc_user() 84 uctx->ctx_alg != XFRM_SC_ALG_SELINUX) in selinux_xfrm_alloc_user() 87 str_len = uctx->ctx_len; in selinux_xfrm_alloc_user() 98 memcpy(ctx->ctx_str, &uctx[1], str_len); in selinux_xfrm_alloc_user() 280 struct xfrm_user_sec_ctx *uctx, in selinux_xfrm_policy_alloc() argument 283 return selinux_xfrm_alloc_user(ctxp, uctx, gfp); in selinux_xfrm_policy_alloc() 329 struct xfrm_user_sec_ctx *uctx) in selinux_xfrm_state_alloc() argument 331 return selinux_xfrm_alloc_user(&x->security, uctx, GFP_KERNEL); in selinux_xfrm_state_alloc()
|
| /linux/drivers/infiniband/hw/bnxt_re/ |
| A D | ib_verbs.h | 161 struct bnxt_re_ucontext *uctx; member 181 static inline u32 bnxt_re_init_depth(u32 ent, struct bnxt_re_ucontext *uctx) in bnxt_re_init_depth() argument 183 return uctx ? (uctx->cmask & BNXT_RE_UCNTX_CAP_POW2_DISABLED) ? in bnxt_re_init_depth() 188 struct bnxt_re_ucontext *uctx) in bnxt_re_is_var_size_supported() argument 190 if (uctx) in bnxt_re_is_var_size_supported() 191 return uctx->cmask & BNXT_RE_UCNTX_CAP_VAR_WQE_ENABLED; in bnxt_re_is_var_size_supported()
|
| A D | ib_verbs.c | 582 entry->uctx = uctx; in bnxt_re_mmap_entry_insert() 4229 uctx->rdev = rdev; in bnxt_re_alloc_ucontext() 4232 if (!uctx->shpg) { in bnxt_re_alloc_ucontext() 4293 uctx->shpg = NULL; in bnxt_re_alloc_ucontext() 4308 if (uctx->shpg) in bnxt_re_dealloc_ucontext() 4311 if (uctx->dpi.dbr) { in bnxt_re_dealloc_ucontext() 4438 if (IS_ERR(uctx)) in UVERBS_HANDLER() 4445 rdev = uctx->rdev; in UVERBS_HANDLER() 4508 struct bnxt_re_ucontext *uctx = entry->uctx; in alloc_page_obj_cleanup() local 4512 if (uctx && uctx->wcdpi.dbr) { in alloc_page_obj_cleanup() [all …]
|
| /linux/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
| A D | mmcr2_fcs_fch_test.c | 21 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/drivers/infiniband/hw/erdma/ |
| A D | erdma_verbs.c | 111 if (uctx->ext_db.enable) { in create_qp_cmd() 116 uctx->ext_db.sdb_off) | in create_qp_cmd() 118 uctx->ext_db.rdb_off); in create_qp_cmd() 235 if (uctx->ext_db.enable) { in create_cq_cmd() 239 uctx->ext_db.cdb_off); in create_cq_cmd() 904 ret = erdma_map_user_dbrecords(uctx, dbrec_va, in init_user_qp() 971 if (uctx) { in erdma_create_qp() 1001 ret = create_qp_cmd(uctx, qp); in erdma_create_qp() 1010 if (uctx) in erdma_create_qp() 1011 free_user_qp(qp, uctx); in erdma_create_qp() [all …]
|
| /linux/security/selinux/include/ |
| A D | xfrm.h | 17 struct xfrm_user_sec_ctx *uctx, gfp_t gfp); 23 struct xfrm_user_sec_ctx *uctx);
|
| /linux/drivers/infiniband/hw/hns/ |
| A D | hns_roce_cq.c | 229 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 D | hns_roce_srq.c | 409 struct hns_roce_ucontext *uctx; in free_srq_db() local 416 uctx = rdma_udata_to_drv_context(udata, in free_srq_db() 419 hns_roce_db_unmap_user(uctx, &srq->rdb); in free_srq_db() 430 struct hns_roce_ucontext *uctx; in alloc_srq_db() local 440 uctx = rdma_udata_to_drv_context(udata, in alloc_srq_db() 442 ret = hns_roce_db_map_user(uctx, ucmd.db_addr, in alloc_srq_db()
|
| A D | hns_roce_main.c | 351 static int hns_roce_alloc_uar_entry(struct ib_ucontext *uctx) in hns_roce_alloc_uar_entry() argument 353 struct hns_roce_ucontext *context = to_hr_ucontext(uctx); in hns_roce_alloc_uar_entry() 358 uctx, address, PAGE_SIZE, HNS_ROCE_MMAP_TYPE_DB); in hns_roce_alloc_uar_entry() 365 static int hns_roce_alloc_ucontext(struct ib_ucontext *uctx, in hns_roce_alloc_ucontext() argument 368 struct hns_roce_ucontext *context = to_hr_ucontext(uctx); in hns_roce_alloc_ucontext() 369 struct hns_roce_dev *hr_dev = to_hr_dev(uctx->device); in hns_roce_alloc_ucontext() 412 ret = hns_roce_alloc_uar_entry(uctx); in hns_roce_alloc_ucontext() 460 static int hns_roce_mmap(struct ib_ucontext *uctx, struct vm_area_struct *vma) in hns_roce_mmap() argument 462 struct hns_roce_dev *hr_dev = to_hr_dev(uctx->device); in hns_roce_mmap() 469 rdma_entry = rdma_user_mmap_entry_get_pgoff(uctx, vma->vm_pgoff); in hns_roce_mmap() [all …]
|
| A D | hns_roce_qp.c | 817 struct hns_roce_ucontext *uctx = in qp_mmap_entry() local 826 hns_roce_user_mmap_entry_insert(&uctx->ibucontext, address, in qp_mmap_entry() 848 struct hns_roce_ucontext *uctx = rdma_udata_to_drv_context(udata, in alloc_user_qp_db() local 854 ret = hns_roce_db_map_user(uctx, ucmd->sdb_addr, &hr_qp->sdb); in alloc_user_qp_db() 865 ret = hns_roce_db_map_user(uctx, ucmd->db_addr, &hr_qp->rdb); in alloc_user_qp_db() 879 hns_roce_db_unmap_user(uctx, &hr_qp->sdb); in alloc_user_qp_db() 956 struct hns_roce_ucontext *uctx = rdma_udata_to_drv_context( in free_qp_db() local 961 hns_roce_db_unmap_user(uctx, &hr_qp->rdb); in free_qp_db() 963 hns_roce_db_unmap_user(uctx, &hr_qp->sdb); in free_qp_db() 1070 struct hns_roce_ucontext *uctx; in set_qp_param() local [all …]
|
| /linux/drivers/infiniband/hw/qedr/ |
| A D | verbs.h | 45 int qedr_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata); 46 void qedr_dealloc_ucontext(struct ib_ucontext *uctx);
|
| /linux/drivers/infiniband/sw/siw/ |
| A D | siw_verbs.c | 56 struct siw_ucontext *uctx = to_siw_ctx(ctx); in siw_mmap() local 124 struct siw_ucontext *uctx = to_siw_ctx(base_ctx); in siw_dealloc_ucontext() local 126 atomic_dec(&uctx->sdev->num_ctx); in siw_dealloc_ucontext() 265 siw_mmap_entry_insert(struct siw_ucontext *uctx, in siw_mmap_entry_insert() argument 278 rv = rdma_user_mmap_entry_insert(&uctx->base_ucontext, in siw_mmap_entry_insert() 308 struct siw_ucontext *uctx = in siw_create_qp() local 443 siw_mmap_entry_insert(uctx, qp->sendq, in siw_create_qp() 454 siw_mmap_entry_insert(uctx, qp->recvq, in siw_create_qp() 487 if (uctx) { in siw_create_qp() 592 struct siw_ucontext *uctx = in siw_destroy_qp() local [all …]
|
| /linux/net/key/ |
| A D | af_key.c | 469 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() 2301 if (!uctx) { in pfkey_spdadd() 2307 kfree(uctx); in pfkey_spdadd() 2403 if (!uctx) in pfkey_spddelete() 2407 kfree(uctx); in pfkey_spddelete() [all …]
|
| /linux/drivers/infiniband/hw/usnic/ |
| A D | usnic_ib_verbs.c | 633 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 D | usnic_ib_verbs.h | 65 int usnic_ib_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata);
|