Home
last modified time | relevance | path

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

1234

/Linux-v5.4/drivers/infiniband/core/
Drdma_core.c270 struct ib_ucontext *ucontext; in alloc_uobj() local
272 ucontext = ib_uverbs_get_ucontext_file(ufile); in alloc_uobj()
273 if (IS_ERR(ucontext)) in alloc_uobj()
274 return ERR_CAST(ucontext); in alloc_uobj()
284 uobj->context = ucontext; in alloc_uobj()
800 struct ib_ucontext *ucontext = ufile->ucontext; in ufile_destroy_ucontext() local
801 struct ib_device *ib_dev = ucontext->device; in ufile_destroy_ucontext()
811 ib_dev->ops.disassociate_ucontext(ucontext); in ufile_destroy_ucontext()
814 ib_rdmacg_uncharge(&ucontext->cg_obj, ib_dev, in ufile_destroy_ucontext()
817 rdma_restrack_del(&ucontext->res); in ufile_destroy_ucontext()
[all …]
Duverbs_std_types_device.c174 struct ib_ucontext *ucontext; in UVERBS_HANDLER() local
178 ucontext = ib_uverbs_get_ucontext(attrs); in UVERBS_HANDLER()
179 if (IS_ERR(ucontext)) in UVERBS_HANDLER()
180 return PTR_ERR(ucontext); in UVERBS_HANDLER()
181 ib_dev = ucontext->device; in UVERBS_HANDLER()
/Linux-v5.4/drivers/infiniband/hw/cxgb3/
Diwch_provider.h206 static inline struct iwch_mm_entry *remove_mmap(struct iwch_ucontext *ucontext, in remove_mmap() argument
212 spin_lock(&ucontext->mmap_lock); in remove_mmap()
213 list_for_each_safe(pos, nxt, &ucontext->mmaps) { in remove_mmap()
218 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
225 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
229 static inline void insert_mmap(struct iwch_ucontext *ucontext, in insert_mmap() argument
232 spin_lock(&ucontext->mmap_lock); in insert_mmap()
235 list_add_tail(&mm->entry, &ucontext->mmaps); in insert_mmap()
236 spin_unlock(&ucontext->mmap_lock); in insert_mmap()
Diwch_provider.c68 struct iwch_ucontext *ucontext = to_iwch_ucontext(context); in iwch_dealloc_ucontext() local
72 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in iwch_dealloc_ucontext()
74 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx); in iwch_dealloc_ucontext()
77 static int iwch_alloc_ucontext(struct ib_ucontext *ucontext, in iwch_alloc_ucontext() argument
80 struct ib_device *ibdev = ucontext->device; in iwch_alloc_ucontext()
81 struct iwch_ucontext *context = to_iwch_ucontext(ucontext); in iwch_alloc_ucontext()
163 struct iwch_ucontext *ucontext = rdma_udata_to_drv_context( in iwch_create_cq() local
173 spin_lock(&ucontext->mmap_lock); in iwch_create_cq()
174 uresp.key = ucontext->key; in iwch_create_cq()
175 ucontext->key += PAGE_SIZE; in iwch_create_cq()
[all …]
/Linux-v5.4/arch/s390/include/uapi/asm/
Ducontext.h22 struct ucontext *uc_link;
31 struct ucontext { struct
33 struct ucontext *uc_link; argument
/Linux-v5.4/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()
1003 struct c4iw_ucontext *ucontext = rdma_udata_to_drv_context( in c4iw_create_cq() local
1015 ucontext->is_32b_cqe = 1; in c4iw_create_cq()
1055 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.4/drivers/infiniband/hw/efa/
Defa_verbs.c183 struct efa_ucontext *ucontext) in mmap_entries_remove_free() argument
188 xa_for_each(&ucontext->mmap_xa, mmap_page, entry) { in mmap_entries_remove_free()
189 xa_erase(&ucontext->mmap_xa, mmap_page); in mmap_entries_remove_free()
205 struct efa_ucontext *ucontext, in mmap_entry_get() argument
215 entry = xa_load(&ucontext->mmap_xa, mmap_page); in mmap_entry_get()
230 static u64 mmap_entry_insert(struct efa_dev *dev, struct efa_ucontext *ucontext, in mmap_entry_insert() argument
246 xa_lock(&ucontext->mmap_xa); in mmap_entry_insert()
247 if (check_add_overflow(ucontext->mmap_xa_page, in mmap_entry_insert()
252 entry->mmap_page = ucontext->mmap_xa_page; in mmap_entry_insert()
253 ucontext->mmap_xa_page = next_mmap_page; in mmap_entry_insert()
[all …]
/Linux-v5.4/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.4/arch/xtensa/include/asm/
Ducontext.h14 struct ucontext { struct
16 struct ucontext *uc_link; argument
/Linux-v5.4/include/uapi/asm-generic/
Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/Linux-v5.4/arch/parisc/include/asm/
Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/Linux-v5.4/arch/alpha/include/asm/
Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/Linux-v5.4/arch/riscv/include/uapi/asm/
Ducontext.h13 struct ucontext { struct
15 struct ucontext *uc_link; argument
/Linux-v5.4/arch/arm64/include/uapi/asm/
Ducontext.h22 struct ucontext { struct
24 struct ucontext *uc_link; argument
/Linux-v5.4/arch/mips/include/uapi/asm/
Ducontext.h54 struct ucontext { struct
57 struct ucontext *uc_link; argument
/Linux-v5.4/arch/m68k/include/asm/
Ducontext.h22 struct ucontext { struct
24 struct ucontext *uc_link; argument
/Linux-v5.4/arch/powerpc/include/uapi/asm/
Ducontext.h21 struct ucontext { struct
23 struct ucontext __user *uc_link; argument
/Linux-v5.4/arch/powerpc/kernel/
Dsignal_32.c60 #define ucontext ucontext32 macro
69 (sizeof(struct ucontext) - sizeof(elf_vsrreghalf_t32))
227 struct ucontext uc;
229 struct ucontext uc_transact;
997 static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int sig) in do_setcontext()
1027 static int do_setcontext_tm(struct ucontext __user *ucp, in do_setcontext_tm()
1028 struct ucontext __user *tm_ucp, in do_setcontext_tm()
1056 COMPAT_SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in COMPAT_SYSCALL_DEFINE3()
1057 struct ucontext __user *, new_ctx, int, ctx_size) in COMPAT_SYSCALL_DEFINE3()
1059 SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in COMPAT_SYSCALL_DEFINE3()
[all …]
Dsignal_64.c56 struct ucontext uc;
58 struct ucontext uc_transact;
635 (sizeof(struct ucontext) - 32*sizeof(long))
640 SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in SYSCALL_DEFINE3()
641 struct ucontext __user *, new_ctx, long, ctx_size) in SYSCALL_DEFINE3()
661 if ((ctx_size < sizeof(struct ucontext)) && in SYSCALL_DEFINE3()
665 if (ctx_size >= sizeof(struct ucontext)) in SYSCALL_DEFINE3()
714 struct ucontext __user *uc = (struct ucontext __user *)regs->gpr[1]; in SYSCALL_DEFINE0()
773 struct ucontext __user *uc_transact; in SYSCALL_DEFINE0()
/Linux-v5.4/drivers/infiniband/hw/i40iw/
Di40iw_verbs.c126 struct i40iw_ucontext *ucontext = to_ucontext(uctx); in i40iw_alloc_ucontext() local
141 ucontext->iwdev = iwdev; in i40iw_alloc_ucontext()
142 ucontext->abi_ver = req.userspace_ver; in i40iw_alloc_ucontext()
147 INIT_LIST_HEAD(&ucontext->cq_reg_mem_list); in i40iw_alloc_ucontext()
148 spin_lock_init(&ucontext->cq_reg_mem_list_lock); in i40iw_alloc_ucontext()
149 INIT_LIST_HEAD(&ucontext->qp_reg_mem_list); in i40iw_alloc_ucontext()
150 spin_lock_init(&ucontext->qp_reg_mem_list_lock); in i40iw_alloc_ucontext()
171 struct i40iw_ucontext *ucontext; in i40iw_mmap() local
175 ucontext = to_ucontext(context); in i40iw_mmap()
176 if (ucontext->iwdev->sc_dev.is_pf) { in i40iw_mmap()
[all …]
/Linux-v5.4/arch/arm/include/asm/
Ducontext.h18 struct ucontext { struct
20 struct ucontext *uc_link; argument
/Linux-v5.4/arch/x86/include/asm/
Dsigframe.h13 #define ucontext_ia32 ucontext
65 struct ucontext uc;
/Linux-v5.4/arch/powerpc/include/asm/
Dasm-prototypes.h88 long sys_swapcontext(struct ucontext __user *old_ctx,
89 struct ucontext __user *new_ctx,
92 long sys_debug_setcontext(struct ucontext __user *ctx,

1234