Home
last modified time | relevance | path

Searched refs:ucontext (Results 1 – 25 of 88) sorted by relevance

1234

/Linux-v5.10/drivers/infiniband/core/
Dib_core_uverbs.c67 int rdma_user_mmap_io(struct ib_ucontext *ucontext, struct vm_area_struct *vma, in rdma_user_mmap_io() argument
71 struct ib_uverbs_file *ufile = ucontext->ufile; in rdma_user_mmap_io()
117 rdma_user_mmap_entry_get_pgoff(struct ib_ucontext *ucontext, in rdma_user_mmap_entry_get_pgoff() argument
125 xa_lock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff()
127 entry = xa_load(&ucontext->mmap_xa, pgoff); in rdma_user_mmap_entry_get_pgoff()
138 xa_unlock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff()
140 ibdev_dbg(ucontext->device, "mmap: pgoff[%#lx] npages[%#zx] returned\n", in rdma_user_mmap_entry_get_pgoff()
146 xa_unlock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff()
161 rdma_user_mmap_entry_get(struct ib_ucontext *ucontext, in rdma_user_mmap_entry_get() argument
168 entry = rdma_user_mmap_entry_get_pgoff(ucontext, vma->vm_pgoff); in rdma_user_mmap_entry_get()
[all …]
Duverbs_std_types_device.c182 struct ib_ucontext *ucontext; in UVERBS_HANDLER() local
186 ucontext = ib_uverbs_get_ucontext(attrs); in UVERBS_HANDLER()
187 if (IS_ERR(ucontext)) in UVERBS_HANDLER()
188 return PTR_ERR(ucontext); in UVERBS_HANDLER()
189 ib_dev = ucontext->device; in UVERBS_HANDLER()
244 struct ib_ucontext *ucontext; in UVERBS_HANDLER() local
249 ucontext = ib_uverbs_get_ucontext(attrs); in UVERBS_HANDLER()
250 if (IS_ERR(ucontext)) in UVERBS_HANDLER()
251 return PTR_ERR(ucontext); in UVERBS_HANDLER()
252 ib_dev = ucontext->device; in UVERBS_HANDLER()
[all …]
Drdma_core.c272 struct ib_ucontext *ucontext = in alloc_uobj() local
275 if (IS_ERR(ucontext)) in alloc_uobj()
276 return ERR_CAST(ucontext); in alloc_uobj()
277 attrs->context = ucontext; in alloc_uobj()
817 struct ib_ucontext *ucontext = ufile->ucontext; in ufile_destroy_ucontext() local
818 struct ib_device *ib_dev = ucontext->device; in ufile_destroy_ucontext()
828 ib_dev->ops.disassociate_ucontext(ucontext); in ufile_destroy_ucontext()
831 ib_rdmacg_uncharge(&ucontext->cg_obj, ib_dev, in ufile_destroy_ucontext()
834 rdma_restrack_del(&ucontext->res); in ufile_destroy_ucontext()
836 ib_dev->ops.dealloc_ucontext(ucontext); in ufile_destroy_ucontext()
[all …]
Duverbs_cmd.c209 struct ib_ucontext *ucontext; in ib_alloc_ucontext() local
217 ucontext = rdma_zalloc_drv_obj(ib_dev, ib_ucontext); in ib_alloc_ucontext()
218 if (!ucontext) in ib_alloc_ucontext()
221 ucontext->device = ib_dev; in ib_alloc_ucontext()
222 ucontext->ufile = ufile; in ib_alloc_ucontext()
223 xa_init_flags(&ucontext->mmap_xa, XA_FLAGS_ALLOC); in ib_alloc_ucontext()
225 rdma_restrack_new(&ucontext->res, RDMA_RESTRACK_CTX); in ib_alloc_ucontext()
226 rdma_restrack_set_name(&ucontext->res, NULL); in ib_alloc_ucontext()
227 attrs->context = ucontext; in ib_alloc_ucontext()
233 struct ib_ucontext *ucontext = attrs->context; in ib_init_ucontext() local
[all …]
/Linux-v5.10/arch/s390/include/uapi/asm/
Ducontext.h22 struct ucontext *uc_link;
31 struct ucontext { struct
33 struct ucontext *uc_link; argument
/Linux-v5.10/drivers/infiniband/hw/cxgb4/
Dcq.c80 struct c4iw_ucontext *ucontext = NULL; in create_cq() local
83 ucontext = container_of(uctx, struct c4iw_ucontext, uctx); in create_cq()
106 if (user && ucontext->is_32b_cqe) { in create_cq()
148 ((user && ucontext->is_32b_cqe) ? in create_cq()
973 struct c4iw_ucontext *ucontext; in c4iw_destroy_cq() local
982 ucontext = rdma_udata_to_drv_context(udata, struct c4iw_ucontext, in c4iw_destroy_cq()
985 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx, in c4iw_destroy_cq()
1004 struct c4iw_ucontext *ucontext = rdma_udata_to_drv_context( in c4iw_create_cq() local
1016 ucontext->is_32b_cqe = 1; in c4iw_create_cq()
1056 memsize = hwentries * ((ucontext && ucontext->is_32b_cqe) ? in c4iw_create_cq()
[all …]
Dqp.c2074 struct c4iw_ucontext *ucontext; in c4iw_destroy_qp() local
2079 ucontext = qhp->ucontext; in c4iw_destroy_qp()
2100 pr_debug("qhp %p ucontext %p\n", qhp, ucontext); in c4iw_destroy_qp()
2103 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !qhp->srq); in c4iw_destroy_qp()
2121 struct c4iw_ucontext *ucontext = rdma_udata_to_drv_context( in c4iw_create_qp() local
2178 if (ucontext) { in c4iw_create_qp()
2186 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_qp()
2224 if (udata && ucontext) { in c4iw_create_qp()
2271 spin_lock(&ucontext->mmap_lock); in c4iw_create_qp()
2273 uresp.ma_sync_key = ucontext->key; in c4iw_create_qp()
[all …]
Dprovider.c63 struct c4iw_ucontext *ucontext = to_c4iw_ucontext(context); in c4iw_dealloc_ucontext() local
68 rhp = to_c4iw_dev(ucontext->ibucontext.device); in c4iw_dealloc_ucontext()
70 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in c4iw_dealloc_ucontext()
72 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in c4iw_dealloc_ucontext()
75 static int c4iw_alloc_ucontext(struct ib_ucontext *ucontext, in c4iw_alloc_ucontext() argument
78 struct ib_device *ibdev = ucontext->device; in c4iw_alloc_ucontext()
79 struct c4iw_ucontext *context = to_c4iw_ucontext(ucontext); in c4iw_alloc_ucontext()
131 struct c4iw_ucontext *ucontext; in c4iw_mmap() local
141 ucontext = to_c4iw_ucontext(context); in c4iw_mmap()
143 mm = remove_mmap(ucontext, key, len); in c4iw_mmap()
/Linux-v5.10/arch/sparc/include/uapi/asm/
Ductx.h64 struct ucontext { struct
65 struct ucontext *uc_link; argument
70 typedef struct ucontext ucontext_t; argument
/Linux-v5.10/arch/xtensa/include/asm/
Ducontext.h14 struct ucontext { struct
16 struct ucontext *uc_link; argument
/Linux-v5.10/arch/parisc/include/asm/
Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/Linux-v5.10/include/uapi/asm-generic/
Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/Linux-v5.10/arch/alpha/include/asm/
Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/Linux-v5.10/arch/arm64/include/uapi/asm/
Ducontext.h22 struct ucontext { struct
24 struct ucontext *uc_link; argument
/Linux-v5.10/arch/riscv/include/uapi/asm/
Ducontext.h13 struct ucontext { struct
15 struct ucontext *uc_link; argument
/Linux-v5.10/arch/mips/include/uapi/asm/
Ducontext.h54 struct ucontext { struct
57 struct ucontext *uc_link; argument
/Linux-v5.10/arch/powerpc/kernel/
Dsignal_32.c59 #define ucontext ucontext32 macro
68 (sizeof(struct ucontext) - sizeof(elf_vsrreghalf_t32))
222 struct ucontext uc;
224 struct ucontext uc_transact;
848 static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int sig) in do_setcontext()
878 static int do_setcontext_tm(struct ucontext __user *ucp, in do_setcontext_tm()
879 struct ucontext __user *tm_ucp, in do_setcontext_tm()
907 COMPAT_SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in COMPAT_SYSCALL_DEFINE3()
908 struct ucontext __user *, new_ctx, int, ctx_size) in COMPAT_SYSCALL_DEFINE3()
910 SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in COMPAT_SYSCALL_DEFINE3()
[all …]
Dsignal_64.c56 struct ucontext uc;
58 struct ucontext uc_transact;
630 (sizeof(struct ucontext) - 32*sizeof(long))
635 SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in SYSCALL_DEFINE3()
636 struct ucontext __user *, new_ctx, long, ctx_size) in SYSCALL_DEFINE3()
655 if ((ctx_size < sizeof(struct ucontext)) && in SYSCALL_DEFINE3()
659 if (ctx_size >= sizeof(struct ucontext)) in SYSCALL_DEFINE3()
707 struct ucontext __user *uc = (struct ucontext __user *)regs->gpr[1]; in SYSCALL_DEFINE0()
766 struct ucontext __user *uc_transact; in SYSCALL_DEFINE0()
/Linux-v5.10/arch/m68k/include/asm/
Ducontext.h22 struct ucontext { struct
24 struct ucontext *uc_link; argument
/Linux-v5.10/arch/powerpc/include/uapi/asm/
Ducontext.h21 struct ucontext { struct
23 struct ucontext __user *uc_link; argument
/Linux-v5.10/arch/arm/include/asm/
Ducontext.h18 struct ucontext { struct
20 struct ucontext *uc_link; argument
/Linux-v5.10/arch/x86/include/asm/
Dsigframe.h13 #define ucontext_ia32 ucontext
61 struct ucontext uc;
/Linux-v5.10/drivers/infiniband/hw/i40iw/
Di40iw_verbs.c125 struct i40iw_ucontext *ucontext = to_ucontext(uctx); in i40iw_alloc_ucontext() local
140 ucontext->iwdev = iwdev; in i40iw_alloc_ucontext()
141 ucontext->abi_ver = req.userspace_ver; in i40iw_alloc_ucontext()
146 INIT_LIST_HEAD(&ucontext->cq_reg_mem_list); in i40iw_alloc_ucontext()
147 spin_lock_init(&ucontext->cq_reg_mem_list_lock); in i40iw_alloc_ucontext()
148 INIT_LIST_HEAD(&ucontext->qp_reg_mem_list); in i40iw_alloc_ucontext()
149 spin_lock_init(&ucontext->qp_reg_mem_list_lock); in i40iw_alloc_ucontext()
170 struct i40iw_ucontext *ucontext = to_ucontext(context); in i40iw_mmap() local
176 dbaddr = I40IW_DB_ADDR_OFFSET + pci_resource_start(ucontext->iwdev->ldev->pcidev, 0); in i40iw_mmap()
282 struct i40iw_ucontext *ucontext = rdma_udata_to_drv_context( in i40iw_alloc_pd() local
[all …]
/Linux-v5.10/drivers/infiniband/hw/efa/
Defa_verbs.c448 efa_user_mmap_entry_insert(struct ib_ucontext *ucontext, in efa_user_mmap_entry_insert() argument
461 err = rdma_user_mmap_entry_insert(ucontext, &entry->rdma_entry, in efa_user_mmap_entry_insert()
474 struct efa_ucontext *ucontext, in qp_mmap_entries_setup() argument
483 efa_user_mmap_entry_insert(&ucontext->ibucontext, in qp_mmap_entries_setup()
497 efa_user_mmap_entry_insert(&ucontext->ibucontext, in qp_mmap_entries_setup()
510 efa_user_mmap_entry_insert(&ucontext->ibucontext, in qp_mmap_entries_setup()
521 efa_user_mmap_entry_insert(&ucontext->ibucontext, in qp_mmap_entries_setup()
611 struct efa_ucontext *ucontext; in efa_create_qp() local
615 ucontext = rdma_udata_to_drv_context(udata, struct efa_ucontext, in efa_create_qp()
663 create_qp_params.uarn = ucontext->uarn; in efa_create_qp()
[all …]
/Linux-v5.10/arch/powerpc/include/asm/
Dasm-prototypes.h89 long sys_swapcontext(struct ucontext __user *old_ctx,
90 struct ucontext __user *new_ctx,
93 long sys_debug_setcontext(struct ucontext __user *ctx,

1234