Home
last modified time | relevance | path

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

1234

/linux/drivers/infiniband/core/
A Dib_core_uverbs.c125 xa_lock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff()
138 xa_unlock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff()
146 xa_unlock(&ucontext->mmap_xa); in rdma_user_mmap_entry_get_pgoff()
183 struct ib_ucontext *ucontext = entry->ucontext; in rdma_user_mmap_entry_free() local
190 xa_lock(&ucontext->mmap_xa); in rdma_user_mmap_entry_free()
193 xa_unlock(&ucontext->mmap_xa); in rdma_user_mmap_entry_free()
235 xa_lock(&entry->ucontext->mmap_xa); in rdma_user_mmap_entry_remove()
277 entry->ucontext = ucontext; in rdma_user_mmap_entry_insert_range()
287 xa_lock(&ucontext->mmap_xa); in rdma_user_mmap_entry_insert_range()
324 xa_unlock(&ucontext->mmap_xa); in rdma_user_mmap_entry_insert_range()
[all …]
A Duverbs_std_types_device.c187 if (IS_ERR(ucontext)) in UVERBS_HANDLER()
188 return PTR_ERR(ucontext); in UVERBS_HANDLER()
189 ib_dev = ucontext->device; 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()
268 return ucontext->device->ops.query_ucontext(ucontext, attrs); in UVERBS_HANDLER()
344 if (IS_ERR(ucontext)) in UVERBS_HANDLER()
345 return PTR_ERR(ucontext); in UVERBS_HANDLER()
346 ib_dev = ucontext->device; in UVERBS_HANDLER()
[all …]
A Drdma_core.c266 struct ib_ucontext *ucontext = in alloc_uobj() local
269 if (IS_ERR(ucontext)) in alloc_uobj()
270 return ERR_CAST(ucontext); in alloc_uobj()
271 attrs->context = ucontext; in alloc_uobj()
854 struct ib_ucontext *ucontext = ufile->ucontext; in ufile_destroy_ucontext() local
871 rdma_restrack_del(&ucontext->res); in ufile_destroy_ucontext()
873 ib_dev->ops.dealloc_ucontext(ucontext); in ufile_destroy_ucontext()
874 WARN_ON(!xa_empty(&ucontext->mmap_xa)); in ufile_destroy_ucontext()
875 kfree(ucontext); in ufile_destroy_ucontext()
877 ufile->ucontext = NULL; in ufile_destroy_ucontext()
[all …]
/linux/drivers/infiniband/hw/cxgb4/
A Dcq.c991 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx, in c4iw_destroy_cq()
1025 ucontext->is_32b_cqe = 1; in c4iw_create_cq()
1065 memsize = hwentries * ((ucontext && ucontext->is_32b_cqe) ? in c4iw_create_cq()
1079 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_cq()
1095 if (ucontext) { in c4iw_create_cq()
1110 uresp.key = ucontext->key; in c4iw_create_cq()
1111 ucontext->key += PAGE_SIZE; in c4iw_create_cq()
1113 ucontext->key += PAGE_SIZE; in c4iw_create_cq()
1130 insert_mmap(ucontext, mm); in c4iw_create_cq()
1135 insert_mmap(ucontext, mm2); in c4iw_create_cq()
[all …]
A Dqp.c2079 ucontext = qhp->ucontext; in c4iw_destroy_qp()
2103 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !qhp->srq); in c4iw_destroy_qp()
2169 if (ucontext) { in c4iw_create_qp()
2177 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_qp()
2215 if (udata && ucontext) { in c4iw_create_qp()
2313 qhp->ucontext = ucontext; in c4iw_create_qp()
2350 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !attrs->srq); in c4iw_create_qp()
2723 if (ucontext) in c4iw_create_srq()
2726 ret = alloc_srq_queue(srq, ucontext ? &ucontext->uctx : in c4iw_create_srq()
2784 free_srq_queue(srq, ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_srq()
[all …]
A 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()
A Diw_cxgb4.h491 struct c4iw_ucontext *ucontext; member
543 static inline struct c4iw_mm_entry *remove_mmap(struct c4iw_ucontext *ucontext, in remove_mmap() argument
549 spin_lock(&ucontext->mmap_lock); in remove_mmap()
550 list_for_each_safe(pos, nxt, &ucontext->mmaps) { in remove_mmap()
555 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
561 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
565 static inline void insert_mmap(struct c4iw_ucontext *ucontext, in insert_mmap() argument
568 spin_lock(&ucontext->mmap_lock); in insert_mmap()
571 list_add_tail(&mm->entry, &ucontext->mmaps); in insert_mmap()
572 spin_unlock(&ucontext->mmap_lock); in insert_mmap()
/linux/arch/s390/include/uapi/asm/
A Ducontext.h22 struct ucontext *uc_link;
31 struct ucontext { struct
33 struct ucontext *uc_link; argument
/linux/drivers/infiniband/hw/irdma/
A Dverbs.c150 vma->vm_private_data = ucontext; in irdma_mmap_legacy()
198 struct irdma_ucontext *ucontext; in irdma_mmap() local
202 ucontext = to_ucontext(context); in irdma_mmap()
205 if (ucontext->legacy_mode) in irdma_mmap()
217 ibdev_dbg(&ucontext->iwdev->ibdev, in irdma_mmap()
309 ucontext->iwdev = iwdev; in irdma_alloc_ucontext()
318 ucontext->legacy_mode = true; in irdma_alloc_ucontext()
329 ucontext->db_mmap_entry = in irdma_alloc_ucontext()
333 if (!ucontext->db_mmap_entry) in irdma_alloc_ucontext()
1822 if (ucontext->legacy_mode) in irdma_resize_cq()
[all …]
/linux/arch/sparc/include/uapi/asm/
A Ductx.h64 struct ucontext { struct
65 struct ucontext *uc_link; argument
70 typedef struct ucontext ucontext_t; argument
/linux/arch/powerpc/kernel/
A Dsignal_32.c59 #define ucontext ucontext32 macro
66 (sizeof(struct ucontext) - sizeof(elf_vsrreghalf_t32))
225 struct ucontext uc;
227 struct ucontext uc_transact;
940 static int do_setcontext_tm(struct ucontext __user *ucp, in do_setcontext_tm()
941 struct ucontext __user *tm_ucp, in do_setcontext_tm()
1015 if ((ctx_size < sizeof(struct ucontext)) && in COMPAT_SYSCALL_DEFINE3()
1019 if (ctx_size >= sizeof(struct ucontext)) in COMPAT_SYSCALL_DEFINE3()
1025 if (ctx_size < sizeof(struct ucontext)) in COMPAT_SYSCALL_DEFINE3()
1088 struct ucontext __user *uc_transact; in COMPAT_SYSCALL_DEFINE0()
[all …]
A Dsignal_64.c56 struct ucontext uc;
58 struct ucontext uc_transact;
644 (sizeof(struct ucontext) - 32*sizeof(long))
649 SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in SYSCALL_DEFINE3()
650 struct ucontext __user *, new_ctx, long, ctx_size) in SYSCALL_DEFINE3()
669 if ((ctx_size < sizeof(struct ucontext)) && in SYSCALL_DEFINE3()
673 if (ctx_size >= sizeof(struct ucontext)) in SYSCALL_DEFINE3()
739 struct ucontext __user *uc = (struct ucontext __user *)regs->gpr[1]; in SYSCALL_DEFINE0()
798 struct ucontext __user *uc_transact; in SYSCALL_DEFINE0()
/linux/arch/xtensa/include/asm/
A Ducontext.h14 struct ucontext { struct
16 struct ucontext *uc_link; argument
/linux/arch/parisc/include/asm/
A Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/linux/include/uapi/asm-generic/
A Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/linux/arch/alpha/include/asm/
A Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/linux/arch/riscv/include/uapi/asm/
A Ducontext.h13 struct ucontext { struct
15 struct ucontext *uc_link; argument
/linux/arch/arm64/include/uapi/asm/
A Ducontext.h22 struct ucontext { struct
24 struct ucontext *uc_link; argument
/linux/drivers/infiniband/hw/efa/
A Defa_verbs.c489 struct efa_ucontext *ucontext, in qp_mmap_entries_setup() argument
498 efa_user_mmap_entry_insert(&ucontext->ibucontext, in qp_mmap_entries_setup()
512 efa_user_mmap_entry_insert(&ucontext->ibucontext, in qp_mmap_entries_setup()
525 efa_user_mmap_entry_insert(&ucontext->ibucontext, in qp_mmap_entries_setup()
626 struct efa_ucontext *ucontext; in efa_create_qp() local
671 create_qp_params.uarn = ucontext->uarn; in efa_create_qp()
1127 cq->ucontext = ucontext; in efa_create_cq()
1136 params.uarn = cq->ucontext->uarn; in efa_create_cq()
1824 ucontext->uarn = result.uarn; in efa_alloc_ucontext()
1853 efa_dealloc_uar(dev, ucontext->uarn); in efa_dealloc_ucontext()
[all …]
/linux/arch/mips/include/uapi/asm/
A Ducontext.h54 struct ucontext { struct
57 struct ucontext *uc_link; argument
/linux/arch/m68k/include/asm/
A Ducontext.h22 struct ucontext { struct
24 struct ucontext *uc_link; argument
/linux/arch/powerpc/include/uapi/asm/
A Ducontext.h21 struct ucontext { struct
23 struct ucontext __user *uc_link; argument
/linux/arch/arm/include/asm/
A Ducontext.h18 struct ucontext { struct
20 struct ucontext *uc_link; argument
/linux/arch/x86/include/asm/
A Dsigframe.h13 #define ucontext_ia32 ucontext
61 struct ucontext uc;
/linux/arch/powerpc/include/asm/
A Dasm-prototypes.h60 long sys_swapcontext(struct ucontext __user *old_ctx,
61 struct ucontext __user *new_ctx,
64 long sys_debug_setcontext(struct ucontext __user *ctx,

Completed in 45 milliseconds

1234