/linux-4.4.14/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_context.c | 114 static void vmw_context_cotables_unref(struct vmw_user_context *uctx) in vmw_context_cotables_unref() argument 120 spin_lock(&uctx->cotable_lock); in vmw_context_cotables_unref() 121 res = uctx->cotables[i]; in vmw_context_cotables_unref() 122 uctx->cotables[i] = NULL; in vmw_context_cotables_unref() 123 spin_unlock(&uctx->cotable_lock); in vmw_context_cotables_unref() 132 struct vmw_user_context *uctx = in vmw_hw_context_destroy() local 144 vmw_cmdbuf_res_man_destroy(uctx->man); in vmw_hw_context_destroy() 146 vmw_binding_state_kill(uctx->cbs); in vmw_hw_context_destroy() 153 vmw_context_cotables_unref(uctx); in vmw_hw_context_destroy() 179 struct vmw_user_context *uctx = in vmw_gb_context_init() local [all …]
|
/linux-4.4.14/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() 178 c4iw_put_cqid(rdev, cq->cqid, uctx); in create_cq() 862 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx); in c4iw_destroy_cq() 933 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_cq() 993 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_cq()
|
D | iw_cxgb4.h | 170 struct c4iw_dev_ucontext uctx; member 488 struct c4iw_dev_ucontext uctx; member 924 struct c4iw_dev_ucontext *uctx); 942 struct c4iw_dev_ucontext *uctx); 944 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);
|
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() 197 struct c4iw_dev_ucontext *uctx) in create_qp() argument 199 int user = (uctx != &rdev->uctx); in create_qp() 208 wq->sq.qid = c4iw_get_qpid(rdev, uctx); in create_qp() 212 wq->rq.qid = c4iw_get_qpid(rdev, uctx); in create_qp() 382 c4iw_put_qpid(rdev, wq->rq.qid, uctx); in create_qp() 384 c4iw_put_qpid(rdev, wq->sq.qid, uctx); in create_qp() 1614 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_destroy_qp() [all …]
|
D | device.c | 733 struct c4iw_dev_ucontext *uctx) in c4iw_release_dev_ucontext() argument 738 mutex_lock(&uctx->lock); in c4iw_release_dev_ucontext() 739 list_for_each_safe(pos, nxt, &uctx->qpids) { in c4iw_release_dev_ucontext() 752 list_for_each_safe(pos, nxt, &uctx->qpids) { in c4iw_release_dev_ucontext() 757 mutex_unlock(&uctx->lock); in c4iw_release_dev_ucontext() 761 struct c4iw_dev_ucontext *uctx) in c4iw_init_dev_ucontext() argument 763 INIT_LIST_HEAD(&uctx->qpids); in c4iw_init_dev_ucontext() 764 INIT_LIST_HEAD(&uctx->cqids); in c4iw_init_dev_ucontext() 765 mutex_init(&uctx->lock); in c4iw_init_dev_ucontext() 773 c4iw_init_dev_ucontext(rdev, &rdev->uctx); in c4iw_rdev_open()
|
D | provider.c | 103 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in c4iw_dealloc_ucontext() 125 c4iw_init_dev_ucontext(&rhp->rdev, &context->uctx); in c4iw_alloc_ucontext()
|
/linux-4.4.14/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() 283 struct xfrm_user_sec_ctx *uctx, in selinux_xfrm_policy_alloc() argument 286 return selinux_xfrm_alloc_user(ctxp, uctx, gfp); in selinux_xfrm_policy_alloc() 332 struct xfrm_user_sec_ctx *uctx) in selinux_xfrm_state_alloc() argument 334 return selinux_xfrm_alloc_user(&x->security, uctx, GFP_KERNEL); in selinux_xfrm_state_alloc()
|
/linux-4.4.14/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 263 static int ocrdma_add_mmap(struct ocrdma_ucontext *uctx, u64 phy_addr, in ocrdma_add_mmap() argument 275 mutex_lock(&uctx->mm_list_lock); in ocrdma_add_mmap() 276 list_add_tail(&mm->entry, &uctx->mm_head); in ocrdma_add_mmap() 277 mutex_unlock(&uctx->mm_list_lock); in ocrdma_add_mmap() 281 static void ocrdma_del_mmap(struct ocrdma_ucontext *uctx, u64 phy_addr, in ocrdma_del_mmap() argument 286 mutex_lock(&uctx->mm_list_lock); in ocrdma_del_mmap() 287 list_for_each_entry_safe(mm, tmp, &uctx->mm_head, entry) { in ocrdma_del_mmap() 295 mutex_unlock(&uctx->mm_list_lock); in ocrdma_del_mmap() 298 static bool ocrdma_search_mmap(struct ocrdma_ucontext *uctx, u64 phy_addr, in ocrdma_search_mmap() argument 304 mutex_lock(&uctx->mm_list_lock); in ocrdma_search_mmap() [all …]
|
D | ocrdma_ah.c | 152 if ((pd->uctx) && in ocrdma_create_ah() 170 if ((pd->uctx) && (pd->uctx->ah_tbl.va)) { in ocrdma_create_ah() 171 ahid_addr = pd->uctx->ah_tbl.va + attr->dlid; in ocrdma_create_ah()
|
D | ocrdma.h | 350 struct ocrdma_ucontext *uctx; member
|
/linux-4.4.14/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 | 108 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx); in iwch_dealloc_ucontext() 123 cxio_init_ucontext(&rhp->rdev, &context->uctx); in iwch_alloc_ucontext() 909 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in iwch_destroy_qp() 980 ucontext ? &ucontext->uctx : &rhp->rdev.uctx)) { in iwch_create_qp() 1018 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in iwch_create_qp()
|
D | iwch_provider.h | 189 struct cxio_ucontext uctx; member
|
/linux-4.4.14/security/selinux/include/ |
D | xfrm.h | 13 struct xfrm_user_sec_ctx *uctx, 20 struct xfrm_user_sec_ctx *uctx);
|
/linux-4.4.14/net/key/ |
D | af_key.c | 439 struct xfrm_user_sec_ctx *uctx = NULL; in pfkey_sadb2xfrm_user_sec_ctx() local 442 uctx = kmalloc((sizeof(*uctx)+ctx_size), gfp); in pfkey_sadb2xfrm_user_sec_ctx() 444 if (!uctx) in pfkey_sadb2xfrm_user_sec_ctx() 447 uctx->len = pfkey_sec_ctx_len(sec_ctx); in pfkey_sadb2xfrm_user_sec_ctx() 448 uctx->exttype = sec_ctx->sadb_x_sec_exttype; in pfkey_sadb2xfrm_user_sec_ctx() 449 uctx->ctx_doi = sec_ctx->sadb_x_ctx_doi; in pfkey_sadb2xfrm_user_sec_ctx() 450 uctx->ctx_alg = sec_ctx->sadb_x_ctx_alg; in pfkey_sadb2xfrm_user_sec_ctx() 451 uctx->ctx_len = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx() 452 memcpy(uctx + 1, sec_ctx + 1, in pfkey_sadb2xfrm_user_sec_ctx() 453 uctx->ctx_len); in pfkey_sadb2xfrm_user_sec_ctx() [all …]
|
/linux-4.4.14/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() 753 struct xfrm_user_sec_ctx *uctx; in copy_sec_ctx() local 755 int ctx_size = sizeof(*uctx) + s->ctx_len; in copy_sec_ctx() 761 uctx = nla_data(attr); in copy_sec_ctx() 762 uctx->exttype = XFRMA_SEC_CTX; in copy_sec_ctx() 763 uctx->len = ctx_size; in copy_sec_ctx() 764 uctx->ctx_doi = s->ctx_doi; in copy_sec_ctx() 765 uctx->ctx_alg = s->ctx_alg; in copy_sec_ctx() [all …]
|
/linux-4.4.14/arch/sparc/include/uapi/asm/ |
D | Kbuild | 47 header-y += uctx.h
|
/linux-4.4.14/drivers/infiniband/hw/usnic/ |
D | usnic_ib_verbs.c | 693 struct usnic_ib_ucontext *uctx = to_ucontext(context); in usnic_ib_mmap() local 712 list_for_each_entry(qp_grp, &uctx->qp_grp_list, link) { in usnic_ib_mmap()
|