/Linux-v4.19/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_context.c | 115 static void vmw_context_cotables_unref(struct vmw_user_context *uctx) in vmw_context_cotables_unref() argument 121 spin_lock(&uctx->cotable_lock); in vmw_context_cotables_unref() 122 res = uctx->cotables[i]; in vmw_context_cotables_unref() 123 uctx->cotables[i] = NULL; in vmw_context_cotables_unref() 124 spin_unlock(&uctx->cotable_lock); in vmw_context_cotables_unref() 133 struct vmw_user_context *uctx = in vmw_hw_context_destroy() local 145 vmw_cmdbuf_res_man_destroy(uctx->man); in vmw_hw_context_destroy() 147 vmw_binding_state_kill(uctx->cbs); in vmw_hw_context_destroy() 154 vmw_context_cotables_unref(uctx); in vmw_hw_context_destroy() 180 struct vmw_user_context *uctx = in vmw_gb_context_init() local [all …]
|
/Linux-v4.19/drivers/infiniband/hw/cxgb4/ |
D | resource.c | 108 u32 c4iw_get_cqid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx) in c4iw_get_cqid() argument 114 mutex_lock(&uctx->lock); in c4iw_get_cqid() 115 if (!list_empty(&uctx->cqids)) { in c4iw_get_cqid() 116 entry = list_entry(uctx->cqids.next, struct c4iw_qid_list, in c4iw_get_cqid() 133 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_get_cqid() 144 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_get_cqid() 150 list_add_tail(&entry->entry, &uctx->qpids); 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() [all …]
|
D | cq.c | 36 struct c4iw_dev_ucontext *uctx, struct sk_buff *skb, in destroy_cq() argument 66 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() 180 c4iw_put_cqid(rdev, cq->cqid, uctx); in create_cq() 986 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx, in c4iw_destroy_cq() 1079 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_cq() 1149 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_cq()
|
D | iw_cxgb4.h | 175 struct c4iw_dev_ucontext uctx; member 588 struct c4iw_dev_ucontext uctx; member 1017 struct c4iw_dev_ucontext *uctx); 1036 struct c4iw_dev_ucontext *uctx); 1038 struct c4iw_dev_ucontext *uctx); 1101 u32 c4iw_get_cqid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx); 1103 struct c4iw_dev_ucontext *uctx); 1104 u32 c4iw_get_qpid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx); 1106 struct c4iw_dev_ucontext *uctx);
|
D | qp.c | 150 struct c4iw_dev_ucontext *uctx, int has_rq) in destroy_qp() argument 158 c4iw_put_qpid(rdev, wq->sq.qid, uctx); in destroy_qp() 166 c4iw_put_qpid(rdev, wq->rq.qid, uctx); in destroy_qp() 200 struct c4iw_dev_ucontext *uctx, in create_qp() argument 204 int user = (uctx != &rdev->uctx); in create_qp() 212 wq->sq.qid = c4iw_get_qpid(rdev, uctx); in create_qp() 217 wq->rq.qid = c4iw_get_qpid(rdev, uctx); in create_qp() 406 c4iw_put_qpid(rdev, wq->rq.qid, uctx); in create_qp() 408 c4iw_put_qpid(rdev, wq->sq.qid, uctx); in create_qp() 897 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !qhp->srq); in free_qp_work() [all …]
|
D | device.c | 747 struct c4iw_dev_ucontext *uctx) in c4iw_release_dev_ucontext() argument 752 mutex_lock(&uctx->lock); in c4iw_release_dev_ucontext() 753 list_for_each_safe(pos, nxt, &uctx->qpids) { in c4iw_release_dev_ucontext() 766 list_for_each_safe(pos, nxt, &uctx->cqids) { in c4iw_release_dev_ucontext() 771 mutex_unlock(&uctx->lock); in c4iw_release_dev_ucontext() 775 struct c4iw_dev_ucontext *uctx) in c4iw_init_dev_ucontext() argument 777 INIT_LIST_HEAD(&uctx->qpids); in c4iw_init_dev_ucontext() 778 INIT_LIST_HEAD(&uctx->cqids); in c4iw_init_dev_ucontext() 779 mutex_init(&uctx->lock); in c4iw_init_dev_ucontext() 787 c4iw_init_dev_ucontext(rdev, &rdev->uctx); in c4iw_rdev_open() [all …]
|
D | provider.c | 73 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in _c4iw_free_ucontext() 102 c4iw_init_dev_ucontext(&rhp->rdev, &context->uctx); in c4iw_alloc_ucontext()
|
/Linux-v4.19/security/selinux/ |
D | xfrm.c | 78 struct xfrm_user_sec_ctx *uctx, in selinux_xfrm_alloc_user() argument 86 if (ctxp == NULL || uctx == NULL || in selinux_xfrm_alloc_user() 87 uctx->ctx_doi != XFRM_SC_DOI_LSM || in selinux_xfrm_alloc_user() 88 uctx->ctx_alg != XFRM_SC_ALG_SELINUX) in selinux_xfrm_alloc_user() 91 str_len = uctx->ctx_len; in selinux_xfrm_alloc_user() 102 memcpy(ctx->ctx_str, &uctx[1], str_len); in selinux_xfrm_alloc_user() 288 struct xfrm_user_sec_ctx *uctx, in selinux_xfrm_policy_alloc() argument 291 return selinux_xfrm_alloc_user(ctxp, uctx, gfp); in selinux_xfrm_policy_alloc() 337 struct xfrm_user_sec_ctx *uctx) in selinux_xfrm_state_alloc() argument 339 return selinux_xfrm_alloc_user(&x->security, uctx, GFP_KERNEL); in selinux_xfrm_state_alloc()
|
/Linux-v4.19/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 228 static int ocrdma_add_mmap(struct ocrdma_ucontext *uctx, u64 phy_addr, in ocrdma_add_mmap() argument 240 mutex_lock(&uctx->mm_list_lock); in ocrdma_add_mmap() 241 list_add_tail(&mm->entry, &uctx->mm_head); in ocrdma_add_mmap() 242 mutex_unlock(&uctx->mm_list_lock); in ocrdma_add_mmap() 246 static void ocrdma_del_mmap(struct ocrdma_ucontext *uctx, u64 phy_addr, in ocrdma_del_mmap() argument 251 mutex_lock(&uctx->mm_list_lock); in ocrdma_del_mmap() 252 list_for_each_entry_safe(mm, tmp, &uctx->mm_head, entry) { in ocrdma_del_mmap() 260 mutex_unlock(&uctx->mm_list_lock); in ocrdma_del_mmap() 263 static bool ocrdma_search_mmap(struct ocrdma_ucontext *uctx, u64 phy_addr, in ocrdma_search_mmap() argument 269 mutex_lock(&uctx->mm_list_lock); in ocrdma_search_mmap() [all …]
|
D | ocrdma_ah.c | 199 if ((pd->uctx) && (pd->uctx->ah_tbl.va)) { in ocrdma_create_ah() 200 ahid_addr = pd->uctx->ah_tbl.va + rdma_ah_get_dlid(attr); in ocrdma_create_ah()
|
D | ocrdma.h | 348 struct ocrdma_ucontext *uctx; member
|
/Linux-v4.19/drivers/infiniband/hw/cxgb3/ |
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 | cxio_hal.c | 204 static u32 get_qpid(struct cxio_rdev *rdev_p, struct cxio_ucontext *uctx) in get_qpid() argument 210 mutex_lock(&uctx->lock); in get_qpid() 211 if (!list_empty(&uctx->qpids)) { in get_qpid() 212 entry = list_entry(uctx->qpids.next, struct cxio_qpid_list, in get_qpid() 226 list_add_tail(&entry->entry, &uctx->qpids); in get_qpid() 230 mutex_unlock(&uctx->lock); in get_qpid() 236 struct cxio_ucontext *uctx) in put_qpid() argument 245 mutex_lock(&uctx->lock); in put_qpid() 246 list_add_tail(&entry->entry, &uctx->qpids); in put_qpid() 247 mutex_unlock(&uctx->lock); in put_qpid() [all …]
|
D | iwch_provider.c | 73 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx); in iwch_dealloc_ucontext() 88 cxio_init_ucontext(&rhp->rdev, &context->uctx); in iwch_alloc_ucontext() 781 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in iwch_destroy_qp() 852 ucontext ? &ucontext->uctx : &rhp->rdev.uctx)) { in iwch_create_qp() 890 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in iwch_create_qp()
|
D | iwch_provider.h | 188 struct cxio_ucontext uctx; member
|
/Linux-v4.19/security/selinux/include/ |
D | xfrm.h | 14 struct xfrm_user_sec_ctx *uctx, 21 struct xfrm_user_sec_ctx *uctx);
|
/Linux-v4.19/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.c | 734 struct bnxt_re_ucontext *uctx; in bnxt_re_create_ah() local 738 uctx = container_of(ib_uctx, struct bnxt_re_ucontext, ib_uctx); in bnxt_re_create_ah() 739 spin_lock_irqsave(&uctx->sh_lock, flag); in bnxt_re_create_ah() 740 wrptr = (u32 *)(uctx->shpg + BNXT_RE_AVID_OFFT); in bnxt_re_create_ah() 743 spin_unlock_irqrestore(&uctx->sh_lock, flag); in bnxt_re_create_ah() 2614 struct bnxt_re_ucontext *uctx = container_of in bnxt_re_create_cq() local 2632 cq->qplib_cq.dpi = &uctx->dpi; in bnxt_re_create_cq() 3665 struct bnxt_re_ucontext *uctx; in bnxt_re_alloc_ucontext() local 3678 uctx = kzalloc(sizeof(*uctx), GFP_KERNEL); in bnxt_re_alloc_ucontext() 3679 if (!uctx) in bnxt_re_alloc_ucontext() [all …]
|
/Linux-v4.19/net/key/ |
D | af_key.c | 484 struct xfrm_user_sec_ctx *uctx = NULL; in pfkey_sadb2xfrm_user_sec_ctx() local 487 uctx = kmalloc((sizeof(*uctx)+ctx_size), gfp); in pfkey_sadb2xfrm_user_sec_ctx() 489 if (!uctx) in pfkey_sadb2xfrm_user_sec_ctx() 492 uctx->len = pfkey_sec_ctx_len(sec_ctx); in pfkey_sadb2xfrm_user_sec_ctx() 493 uctx->exttype = sec_ctx->sadb_x_sec_exttype; in pfkey_sadb2xfrm_user_sec_ctx() 494 uctx->ctx_doi = sec_ctx->sadb_x_ctx_doi; in pfkey_sadb2xfrm_user_sec_ctx() 495 uctx->ctx_alg = sec_ctx->sadb_x_ctx_alg; in pfkey_sadb2xfrm_user_sec_ctx() 496 uctx->ctx_len = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx() 497 memcpy(uctx + 1, sec_ctx + 1, in pfkey_sadb2xfrm_user_sec_ctx() 498 uctx->ctx_len); in pfkey_sadb2xfrm_user_sec_ctx() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/qedr/ |
D | verbs.c | 277 static int qedr_add_mmap(struct qedr_ucontext *uctx, u64 phy_addr, in qedr_add_mmap() argument 297 mutex_lock(&uctx->mm_list_lock); in qedr_add_mmap() 298 list_add(&mm->entry, &uctx->mm_head); in qedr_add_mmap() 299 mutex_unlock(&uctx->mm_list_lock); in qedr_add_mmap() 301 DP_DEBUG(uctx->dev, QEDR_MSG_MISC, in qedr_add_mmap() 304 (unsigned long)mm->key.len, uctx); in qedr_add_mmap() 309 static bool qedr_search_mmap(struct qedr_ucontext *uctx, u64 phy_addr, in qedr_search_mmap() argument 315 mutex_lock(&uctx->mm_list_lock); in qedr_search_mmap() 316 list_for_each_entry(mm, &uctx->mm_head, entry) { in qedr_search_mmap() 323 mutex_unlock(&uctx->mm_list_lock); in qedr_search_mmap() [all …]
|
D | qedr.h | 303 struct qedr_ucontext *uctx; member
|
/Linux-v4.19/net/xfrm/ |
D | xfrm_user.c | 106 struct xfrm_user_sec_ctx *uctx; in verify_sec_ctx_len() local 111 uctx = nla_data(rt); in verify_sec_ctx_len() 112 if (uctx->len != (sizeof(struct xfrm_user_sec_ctx) + uctx->ctx_len)) in verify_sec_ctx_len() 794 struct xfrm_user_sec_ctx *uctx; in copy_sec_ctx() local 796 int ctx_size = sizeof(*uctx) + s->ctx_len; in copy_sec_ctx() 802 uctx = nla_data(attr); in copy_sec_ctx() 803 uctx->exttype = XFRMA_SEC_CTX; in copy_sec_ctx() 804 uctx->len = ctx_size; in copy_sec_ctx() 805 uctx->ctx_doi = s->ctx_doi; in copy_sec_ctx() 806 uctx->ctx_alg = s->ctx_alg; in copy_sec_ctx() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/usnic/ |
D | usnic_ib_verbs.c | 710 struct usnic_ib_ucontext *uctx = to_ucontext(context); in usnic_ib_mmap() local 729 list_for_each_entry(qp_grp, &uctx->qp_grp_list, link) { in usnic_ib_mmap()
|
/Linux-v4.19/include/linux/mlx5/ |
D | mlx5_ifc.h | 9225 struct mlx5_ifc_uctx_bits uctx; member
|