| /linux/drivers/infiniband/hw/bnxt_re/ |
| H A D | uapi.c | 28 struct bnxt_re_ucontext *uctx; in UVERBS_HANDLER() local 35 uctx = container_of(ib_uctx, struct bnxt_re_ucontext, ib_uctx); in UVERBS_HANDLER() 36 if (IS_ERR(uctx)) in UVERBS_HANDLER() 37 return PTR_ERR(uctx); in UVERBS_HANDLER() 39 bnxt_re_pacing_alert(uctx->rdev); in UVERBS_HANDLER() 50 struct bnxt_re_ucontext *uctx; in UVERBS_HANDLER() local 63 uctx = container_of(ib_uctx, struct bnxt_re_ucontext, ib_uctx); in UVERBS_HANDLER() 64 if (IS_ERR(uctx)) in UVERBS_HANDLER() 65 return PTR_ERR(uctx); in UVERBS_HANDLER() 71 rdev = uctx->rdev; in UVERBS_HANDLER() [all …]
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_context.c | 122 struct vmw_user_context *uctx) in vmw_context_cotables_unref() argument 130 spin_lock(&uctx->cotable_lock); in vmw_context_cotables_unref() 131 res = uctx->cotables[i]; in vmw_context_cotables_unref() 132 uctx->cotables[i] = NULL; in vmw_context_cotables_unref() 133 spin_unlock(&uctx->cotable_lock); in vmw_context_cotables_unref() 142 struct vmw_user_context *uctx = in vmw_hw_context_destroy() local 154 vmw_cmdbuf_res_man_destroy(uctx->man); in vmw_hw_context_destroy() 156 vmw_binding_state_kill(uctx->cbs); in vmw_hw_context_destroy() 163 vmw_context_cotables_unref(dev_priv, uctx); in vmw_hw_context_destroy() 186 struct vmw_user_context *uctx = in vmw_gb_context_init() local [all …]
|
| /linux/drivers/fwctl/mlx5/ |
| H A D | main.c | 19 struct fwctl_uctx uctx; member 97 void *uctx; in mlx5ctl_alloc_uid() local 101 uctx = MLX5_ADDR_OF(create_uctx_in, in, uctx); in mlx5ctl_alloc_uid() 105 MLX5_SET(uctx, uctx, cap, cap); in mlx5ctl_alloc_uid() 129 static int mlx5ctl_open_uctx(struct fwctl_uctx *uctx) in mlx5ctl_open_uctx() argument 132 container_of(uctx, struct mlx5ctl_uctx, uctx); in mlx5ctl_open_uctx() 134 container_of(uctx->fwctl, struct mlx5ctl_dev, fwctl); in mlx5ctl_open_uctx() 154 static void mlx5ctl_close_uctx(struct fwctl_uctx *uctx) in mlx5ctl_close_uctx() argument 157 container_of(uctx->fwctl, struct mlx5ctl_dev, fwctl); in mlx5ctl_close_uctx() 159 container_of(uctx, struct mlx5ctl_uctx, uctx); in mlx5ctl_close_uctx() [all …]
|
| /linux/drivers/infiniband/hw/cxgb4/ |
| H A 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 …]
|
| /linux/security/selinux/ |
| H 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() 99 memcpy(ctx->ctx_str, &uctx[1], str_len); in selinux_xfrm_alloc_user() 278 * LSM hook implementation that allocs and transfers uctx spec to xfrm_policy. 281 struct xfrm_user_sec_ctx *uctx, in selinux_xfrm_policy_alloc() 284 return selinux_xfrm_alloc_user(ctxp, uctx, gfp); in selinux_xfrm_policy_alloc() 330 struct xfrm_user_sec_ctx *uctx) in selinux_xfrm_state_alloc() 280 selinux_xfrm_policy_alloc(struct xfrm_sec_ctx ** ctxp,struct xfrm_user_sec_ctx * uctx,gfp_t gfp) selinux_xfrm_policy_alloc() argument 329 selinux_xfrm_state_alloc(struct xfrm_state * x,struct xfrm_user_sec_ctx * uctx) selinux_xfrm_state_alloc() argument [all...] |
| /linux/drivers/fwctl/pds/ |
| H A D | main.c | 21 struct fwctl_uctx uctx; member 42 static int pdsfc_open_uctx(struct fwctl_uctx *uctx) in pdsfc_open_uctx() argument 44 struct pdsfc_dev *pdsfc = container_of(uctx->fwctl, struct pdsfc_dev, fwctl); in pdsfc_open_uctx() 45 struct pdsfc_uctx *pdsfc_uctx = container_of(uctx, struct pdsfc_uctx, uctx); in pdsfc_open_uctx() 52 static void pdsfc_close_uctx(struct fwctl_uctx *uctx) in pdsfc_close_uctx() argument 56 static void *pdsfc_info(struct fwctl_uctx *uctx, size_t *length) in pdsfc_info() argument 58 struct pdsfc_uctx *pdsfc_uctx = container_of(uctx, struct pdsfc_uctx, uctx); in pdsfc_info() 350 static void *pdsfc_fw_rpc(struct fwctl_uctx *uctx, enum fwctl_rpc_scope scope, in pdsfc_fw_rpc() argument 353 struct pdsfc_dev *pdsfc = container_of(uctx->fwctl, struct pdsfc_dev, fwctl); in pdsfc_fw_rpc() 354 struct device *dev = &uctx->fwctl->dev; in pdsfc_fw_rpc()
|
| /linux/tools/testing/selftests/kvm/arm64/ |
| H A D | host_sve.c | 28 ucontext_t *uctx = ctx; in handle_sigill() local 35 uctx->uc_mcontext.pc += 4; in handle_sigill()
|
| /linux/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
| H 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/security/selinux/include/ |
| H 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/erdma/ |
| H A D | erdma_verbs.c | 39 static int create_qp_cmd(struct erdma_ucontext *uctx, struct erdma_qp *qp) in create_qp_cmd() argument 99 if (uctx && uctx->ext_db.enable) { in create_qp_cmd() 103 uctx->ext_db.sdb_off) | in create_qp_cmd() 105 uctx->ext_db.rdb_off); in create_qp_cmd() 171 static int create_cq_cmd(struct erdma_ucontext *uctx, struct erdma_cq *cq) in regmr_cmd() 209 if (uctx && uctx->ext_db.enable) { in create_cq_cmd() 212 uctx->ext_db.cdb_off); in create_cq_cmd() 255 erdma_user_mmap_entry_insert(struct erdma_ucontext *uctx, voi 192 create_cq_cmd(struct erdma_ucontext * uctx,struct erdma_cq * cq) create_cq_cmd() argument 291 erdma_user_mmap_entry_insert(struct erdma_ucontext * uctx,void * address,u32 size,u8 mmap_flag,u64 * mmap_offset) erdma_user_mmap_entry_insert() argument 941 init_user_qp(struct erdma_qp * qp,struct erdma_ucontext * uctx,u64 va,u32 len,u64 dbrec_va) init_user_qp() argument 987 free_user_qp(struct erdma_qp * qp,struct erdma_ucontext * uctx) free_user_qp() argument 999 struct erdma_ucontext *uctx = rdma_udata_to_drv_context( erdma_create_qp() local 1540 erdma_uctx_user_mmap_entries_remove(struct erdma_ucontext * uctx) erdma_uctx_user_mmap_entries_remove() argument [all...] |
| /linux/drivers/infiniband/hw/ocrdma/ |
| H 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/net/key/ |
| H A D | af_key.c | 466 struct xfrm_user_sec_ctx *uctx = NULL; in pfkey_sadb2xfrm_user_sec_ctx() local 469 uctx = kmalloc((sizeof(*uctx)+ctx_size), gfp); in pfkey_sadb2xfrm_user_sec_ctx() 471 if (!uctx) in pfkey_sadb2xfrm_user_sec_ctx() 474 uctx->len = pfkey_sec_ctx_len(sec_ctx); in pfkey_sadb2xfrm_user_sec_ctx() 475 uctx->exttype = sec_ctx->sadb_x_sec_exttype; in pfkey_sadb2xfrm_user_sec_ctx() 476 uctx->ctx_doi = sec_ctx->sadb_x_ctx_doi; in pfkey_sadb2xfrm_user_sec_ctx() 477 uctx->ctx_alg = sec_ctx->sadb_x_ctx_alg; in pfkey_sadb2xfrm_user_sec_ctx() 478 uctx->ctx_len = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx() 479 memcpy(uctx in pfkey_sadb2xfrm_user_sec_ctx() 1170 struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL); pfkey_msg2xfrm_state() local 2317 struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL); pfkey_spdadd() local 2419 struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL); pfkey_spddelete() local 3343 struct xfrm_user_sec_ctx *uctx; pfkey_compile_policy() local [all...] |
| /linux/drivers/cxl/core/ |
| H A D | features.c | 372 static int cxlctl_open_uctx(struct fwctl_uctx *uctx) in cxl_feature_info() 377 static void cxlctl_close_uctx(struct fwctl_uctx *uctx) in cxl_feature_info() 672 static void *cxlctl_fw_rpc(struct fwctl_uctx *uctx, enum fwctl_rpc_scope scope, in cxlctl_fw_rpc() 675 struct fwctl_device *fwctl_dev = uctx->fwctl; 361 cxlctl_open_uctx(struct fwctl_uctx * uctx) cxlctl_open_uctx() argument 366 cxlctl_close_uctx(struct fwctl_uctx * uctx) cxlctl_close_uctx() argument 654 cxlctl_fw_rpc(struct fwctl_uctx * uctx,enum fwctl_rpc_scope scope,void * in,size_t in_len,size_t * out_len) cxlctl_fw_rpc() argument
|
| /linux/security/ |
| H A D | security.c | 400 * @uctx: a userspace LSM context to be filled in lsm_fill_user_ctx() argument 401 * @uctx_len: available uctx size (input), used uctx size (output) in lsm_fill_user_ctx() 407 * Fill all of the fields in a userspace lsm_ctx structure. If @uctx is NULL in lsm_fill_user_ctx() 414 int lsm_fill_user_ctx(struct lsm_ctx __user *uctx, u32 *uctx_len, in lsm_fill_user_ctx() 429 if (!uctx) in lsm_fill_user_ctx() 443 if (copy_to_user(uctx, nctx, nctx_len)) 3802 * @uctx: the user-space destination for the information, or NULL 3808 * A NULL value for @uctx can be used to get both the number of attributes 3815 int security_getselfattr(unsigned int attr, struct lsm_ctx __user *uctx, 3727 security_getselfattr(unsigned int attr,struct lsm_ctx __user * uctx,u32 __user * size,u32 flags) security_getselfattr() argument 3818 security_setselfattr(unsigned int attr,struct lsm_ctx __user * uctx,u32 size,u32 flags) security_setselfattr() argument [all...] |
| /linux/net/xfrm/ |
| H A D | xfrm_user.c | 126 struct xfrm_user_sec_ctx *uctx; in verify_sec_ctx_len() local 131 uctx = nla_data(rt); in verify_sec_ctx_len() 132 if (uctx->len > nla_len(rt) || in verify_sec_ctx_len() 133 uctx->len != (sizeof(struct xfrm_user_sec_ctx) + uctx->ctx_len)) { in verify_sec_ctx_len() 1206 struct xfrm_user_sec_ctx *uctx; in xso_to_xuo_ifindex() 1208 int ctx_size = sizeof(*uctx) + s->ctx_len; in xso_to_xuo_ifindex() 1214 uctx = nla_data(attr); 1215 uctx->exttype = XFRMA_SEC_CTX; in xso_to_xuo() 1216 uctx in xso_to_xuo() 1185 struct xfrm_user_sec_ctx *uctx; copy_sec_ctx() local 2054 struct xfrm_user_sec_ctx *uctx; copy_from_user_sec_ctx() local 2634 struct xfrm_user_sec_ctx *uctx = nla_data(rt); xfrm_get_policy() local 2964 struct xfrm_user_sec_ctx *uctx = nla_data(rt); xfrm_add_pol_expire() local [all...] |
| H A D | xfrm_state.c | 1996 struct xfrm_user_sec_ctx *uctx; in xfrm_state_clone_and_setup() 1997 int size = sizeof(*uctx) + security->ctx_len; in xfrm_state_clone_and_setup() 2000 uctx = kmalloc(size, GFP_KERNEL); in xfrm_state_clone_and_setup() 2001 if (!uctx) in xfrm_state_clone_and_setup() 2004 uctx->exttype = XFRMA_SEC_CTX; in xfrm_state_clone_and_setup() 2005 uctx->len = size; in xfrm_state_clone_and_setup() 2006 uctx->ctx_doi = security->ctx_doi; in xfrm_state_clone_and_setup() 2007 uctx->ctx_alg = security->ctx_alg; in xfrm_state_clone_and_setup() 2008 uctx->ctx_len = security->ctx_len; in xfrm_state_clone_and_setup() 2009 memcpy(uctx in xfrm_state_clone_and_setup() 1959 struct xfrm_user_sec_ctx *uctx; clone_security() local [all...] |
| /linux/usr/include/ |
| H A D | Makefile | 58 no-header-test += asm/uctx.h
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | main.c | 2115 static int set_ucontext_resp(struct ib_ucontext *uctx, in set_ucontext_resp() argument 2118 struct ib_device *ibdev = uctx->device; in set_ucontext_resp() 2120 struct mlx5_ib_ucontext *context = to_mucontext(uctx); in set_ucontext_resp() 2199 static int mlx5_ib_alloc_ucontext(struct ib_ucontext *uctx, in mlx5_ib_alloc_ucontext() argument 2202 struct ib_device *ibdev = uctx->device; in mlx5_ib_alloc_ucontext() 2206 struct mlx5_ib_ucontext *context = to_mucontext(uctx); in mlx5_ib_alloc_ucontext() 2241 err = mlx5_ib_devx_create(dev, true, uctx->enabled_caps); in mlx5_ib_alloc_ucontext() 2246 if (uctx_rdma_ctrl_is_enabled(uctx->enabled_caps)) { in mlx5_ib_alloc_ucontext() 2300 err = set_ucontext_resp(uctx, &resp); in mlx5_ib_alloc_ucontext() 2338 uctx_rdma_ctrl_is_enabled(uctx in mlx5_ib_alloc_ucontext() [all...] |
| /linux/drivers/vdpa/mlx5/core/ |
| H A D | resources.c | 77 MLX5_SET(create_uctx_in, in, uctx.cap, MLX5_UCTX_CAP_RAW_TX); in create_uctx()
|
| /linux/include/linux/ |
| H A D | security.h | 594 int lsm_fill_user_ctx(struct lsm_ctx __user *uctx, u32 *uctx_len, 1646 static inline int lsm_fill_user_ctx(struct lsm_ctx __user *uctx, in security_post_notification() 1616 lsm_fill_user_ctx(struct lsm_ctx __user * uctx,u32 * uctx_len,void * val,size_t val_len,u64 id,u64 flags) lsm_fill_user_ctx() argument
|
| /linux/drivers/infiniband/hw/irdma/ |
| H A D | verbs.c | 295 * @uctx: uverbs context pointer in irdma_alloc_ucontext() 301 static int irdma_alloc_ucontext(struct ib_ucontext *uctx, in irdma_alloc_ucontext() 305 struct ib_device *ibdev = uctx->device; in irdma_alloc_ucontext() 309 struct irdma_ucontext *ucontext = to_ucontext(uctx); in irdma_alloc_ucontext() 285 irdma_alloc_ucontext(struct ib_ucontext * uctx,struct ib_udata * udata) irdma_alloc_ucontext() argument
|