Home
last modified time | relevance | path

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

12345

/openbmc/linux/drivers/infiniband/core/
H A 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 …]
H A 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()
245 struct ib_ucontext *ucontext; in UVERBS_HANDLER() local
250 ucontext = ib_uverbs_get_ucontext(attrs); in UVERBS_HANDLER()
251 if (IS_ERR(ucontext)) in UVERBS_HANDLER()
252 return PTR_ERR(ucontext); in UVERBS_HANDLER()
253 ib_dev = ucontext->device; in UVERBS_HANDLER()
[all …]
H 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
855 struct ib_device *ib_dev = ucontext->device; in ufile_destroy_ucontext()
865 ib_dev->ops.disassociate_ucontext(ucontext); in ufile_destroy_ucontext()
868 ib_rdmacg_uncharge(&ucontext->cg_obj, ib_dev, in ufile_destroy_ucontext()
871 rdma_restrack_del(&ucontext->res); in ufile_destroy_ucontext()
873 ib_dev->ops.dealloc_ucontext(ucontext); in ufile_destroy_ucontext()
[all …]
/openbmc/linux/drivers/infiniband/hw/cxgb4/
H A 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()
979 struct c4iw_ucontext *ucontext; in c4iw_destroy_cq() local
988 ucontext = rdma_udata_to_drv_context(udata, struct c4iw_ucontext, in c4iw_destroy_cq()
991 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx, in c4iw_destroy_cq()
1010 struct c4iw_ucontext *ucontext = rdma_udata_to_drv_context( in c4iw_create_cq() local
1025 ucontext->is_32b_cqe = 1; in c4iw_create_cq()
1065 memsize = hwentries * ((ucontext && ucontext->is_32b_cqe) ? in c4iw_create_cq()
[all …]
H A 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()
2120 struct c4iw_ucontext *ucontext = rdma_udata_to_drv_context( in c4iw_create_qp() local
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()
2262 spin_lock(&ucontext->mmap_lock); in c4iw_create_qp()
2264 uresp.ma_sync_key = ucontext->key; in c4iw_create_qp()
[all …]
H A Dprovider.c64 struct c4iw_ucontext *ucontext = to_c4iw_ucontext(context); in c4iw_dealloc_ucontext() local
69 rhp = to_c4iw_dev(ucontext->ibucontext.device); in c4iw_dealloc_ucontext()
71 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in c4iw_dealloc_ucontext()
73 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in c4iw_dealloc_ucontext()
76 static int c4iw_alloc_ucontext(struct ib_ucontext *ucontext, in c4iw_alloc_ucontext() argument
79 struct ib_device *ibdev = ucontext->device; in c4iw_alloc_ucontext()
80 struct c4iw_ucontext *context = to_c4iw_ucontext(ucontext); in c4iw_alloc_ucontext()
132 struct c4iw_ucontext *ucontext; in c4iw_mmap() local
142 ucontext = to_c4iw_ucontext(context); in c4iw_mmap()
144 mm = remove_mmap(ucontext, key, len); in c4iw_mmap()
/openbmc/linux/arch/s390/include/uapi/asm/
H A Ducontext.h22 struct ucontext *uc_link;
31 struct ucontext { struct
33 struct ucontext *uc_link; argument
/openbmc/linux/arch/sparc/include/uapi/asm/
H A Ductx.h64 struct ucontext { struct
65 struct ucontext *uc_link; argument
70 typedef struct ucontext ucontext_t; argument
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-multimedia/jack/a2jmidid/
H A Dppc_musl_ucontext.patch13 ucontext->uc_mcontext.uc_regs[i]
15 + ucontext->uc_regs->gregs[i]
18 ucontext->uc_mcontext.gp_regs[i]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/hddtemp/hddtemp/
H A D0001-backtrace-Replace-struct-ucontext-with-ucontext_t.patch4 Subject: [PATCH] backtrace: Replace struct ucontext with ucontext_t
21 - static struct ucontext *puc;
30 - puc = (struct ucontext *)extra;
/openbmc/linux/drivers/infiniband/hw/irdma/
H A Dverbs.c119 static int irdma_mmap_legacy(struct irdma_ucontext *ucontext, in irdma_mmap_legacy() argument
127 vma->vm_private_data = ucontext; in irdma_mmap_legacy()
128 pfn = ((uintptr_t)ucontext->iwdev->rf->sc_dev.hw_regs[IRDMA_DB_ADDR_OFFSET] + in irdma_mmap_legacy()
129 pci_resource_start(ucontext->iwdev->rf->pcidev, 0)) >> PAGE_SHIFT; in irdma_mmap_legacy()
131 return rdma_user_mmap_io(&ucontext->ibucontext, vma, pfn, PAGE_SIZE, in irdma_mmap_legacy()
143 irdma_user_mmap_entry_insert(struct irdma_ucontext *ucontext, u64 bar_offset, in irdma_user_mmap_entry_insert() argument
155 ret = rdma_user_mmap_entry_insert(&ucontext->ibucontext, in irdma_user_mmap_entry_insert()
175 struct irdma_ucontext *ucontext; in irdma_mmap() local
179 ucontext = to_ucontext(context); in irdma_mmap()
182 if (ucontext->legacy_mode) in irdma_mmap()
[all …]
/openbmc/linux/arch/powerpc/kernel/
H 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;
920 static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int sig) in do_setcontext()
953 static int do_setcontext_tm(struct ucontext __user *ucp, in do_setcontext_tm()
954 struct ucontext __user *tm_ucp, in do_setcontext_tm()
990 COMPAT_SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in COMPAT_SYSCALL_DEFINE3()
991 struct ucontext __user *, new_ctx, int, ctx_size) in COMPAT_SYSCALL_DEFINE3()
993 SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in COMPAT_SYSCALL_DEFINE3()
[all …]
/openbmc/linux/arch/xtensa/include/asm/
H A Ducontext.h14 struct ucontext { struct
16 struct ucontext *uc_link; argument
/openbmc/linux/include/uapi/asm-generic/
H A Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/openbmc/linux/arch/parisc/include/asm/
H A Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/openbmc/linux/arch/alpha/include/asm/
H A Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/openbmc/linux/arch/loongarch/include/uapi/asm/
H A Ducontext.h14 struct ucontext { struct
16 struct ucontext *uc_link; argument
/openbmc/linux/arch/arm64/include/uapi/asm/
H A Ducontext.h22 struct ucontext { struct
24 struct ucontext *uc_link; argument
/openbmc/linux/arch/riscv/include/uapi/asm/
H A Ducontext.h13 struct ucontext { struct
15 struct ucontext *uc_link; argument
/openbmc/linux/arch/mips/include/uapi/asm/
H A Ducontext.h54 struct ucontext { struct
57 struct ucontext *uc_link; argument
/openbmc/linux/arch/m68k/include/asm/
H A Ducontext.h22 struct ucontext { struct
24 struct ucontext *uc_link; argument
/openbmc/linux/arch/powerpc/include/uapi/asm/
H A Ducontext.h21 struct ucontext { struct
23 struct ucontext __user *uc_link; argument
/openbmc/linux/arch/arm/include/asm/
H A Ducontext.h18 struct ucontext { struct
20 struct ucontext *uc_link; argument
/openbmc/qemu/tests/tcg/ppc64/
H A Dsignal_save_restore_xer.c14 void sigtrap_handler(int sig, siginfo_t *si, void *ucontext) in sigtrap_handler() argument
16 ucontext_t *uc = ucontext; in sigtrap_handler()
/openbmc/qemu/tests/tcg/s390x/
H A Dclc.c12 static void handle_sigsegv(int sig, siginfo_t *info, void *ucontext) in handle_sigsegv() argument
14 mcontext_t *mcontext = &((ucontext_t *)ucontext)->uc_mcontext; in handle_sigsegv()

12345