Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/infiniband/hw/cxgb3/
Diwch_provider.h207 static inline struct iwch_mm_entry *remove_mmap(struct iwch_ucontext *ucontext, in remove_mmap() argument
213 spin_lock(&ucontext->mmap_lock); in remove_mmap()
214 list_for_each_safe(pos, nxt, &ucontext->mmaps) { in remove_mmap()
219 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.c102 struct iwch_ucontext *ucontext = to_iwch_ucontext(context); in iwch_dealloc_ucontext() local
106 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in iwch_dealloc_ucontext()
108 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx); in iwch_dealloc_ucontext()
109 kfree(ucontext); in iwch_dealloc_ucontext()
155 struct iwch_ucontext *ucontext = NULL; in iwch_create_cq() local
169 ucontext = to_iwch_ucontext(ib_context); in iwch_create_cq()
195 if (cxio_create_cq(&rhp->rdev, &chp->cq, !ucontext)) { in iwch_create_cq()
211 if (ucontext) { in iwch_create_cq()
221 spin_lock(&ucontext->mmap_lock); in iwch_create_cq()
222 uresp.key = ucontext->key; in iwch_create_cq()
[all …]
/linux-4.4.14/arch/s390/include/uapi/asm/
Ducontext.h21 struct ucontext *uc_link;
30 struct ucontext { struct
32 struct ucontext *uc_link; argument
DKbuild48 header-y += ucontext.h
/linux-4.4.14/drivers/infiniband/core/
Duverbs_cmd.c297 struct ib_ucontext *ucontext; in ib_uverbs_get_context() local
309 if (file->ucontext) { in ib_uverbs_get_context()
318 ucontext = ib_dev->alloc_ucontext(ib_dev, &udata); in ib_uverbs_get_context()
319 if (IS_ERR(ucontext)) { in ib_uverbs_get_context()
320 ret = PTR_ERR(ucontext); in ib_uverbs_get_context()
324 ucontext->device = ib_dev; in ib_uverbs_get_context()
325 INIT_LIST_HEAD(&ucontext->pd_list); in ib_uverbs_get_context()
326 INIT_LIST_HEAD(&ucontext->mr_list); in ib_uverbs_get_context()
327 INIT_LIST_HEAD(&ucontext->mw_list); in ib_uverbs_get_context()
328 INIT_LIST_HEAD(&ucontext->cq_list); in ib_uverbs_get_context()
[all …]
Duverbs_main.c724 if (!file->ucontext && in ib_uverbs_write()
767 if (!file->ucontext) { in ib_uverbs_write()
858 if (!file->ucontext) in ib_uverbs_mmap()
861 ret = ib_dev->mmap(file->ucontext, vma); in ib_uverbs_mmap()
921 file->ucontext = NULL; in ib_uverbs_open()
950 struct ib_ucontext *ucontext = NULL; in ib_uverbs_close() local
953 ucontext = file->ucontext; in ib_uverbs_close()
954 file->ucontext = NULL; in ib_uverbs_close()
960 if (ucontext) in ib_uverbs_close()
961 ib_uverbs_cleanup_ucontext(file, ucontext); in ib_uverbs_close()
[all …]
Duverbs.h120 struct ib_ucontext *ucontext; member
/linux-4.4.14/arch/sparc/include/uapi/asm/
Ductx.h63 struct ucontext { struct
64 struct ucontext *uc_link; argument
69 typedef struct ucontext ucontext_t; argument
/linux-4.4.14/drivers/infiniband/hw/cxgb4/
Dcq.c850 struct c4iw_ucontext *ucontext; in c4iw_destroy_cq() local
859 ucontext = ib_cq->uobject ? to_c4iw_ucontext(ib_cq->uobject->context) in c4iw_destroy_cq()
862 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx); in c4iw_destroy_cq()
877 struct c4iw_ucontext *ucontext = NULL; in c4iw_create_cq() local
896 ucontext = to_c4iw_ucontext(ib_context); in c4iw_create_cq()
926 if (ucontext) in c4iw_create_cq()
933 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_cq()
948 if (ucontext) { in c4iw_create_cq()
960 spin_lock(&ucontext->mmap_lock); in c4iw_create_cq()
961 uresp.key = ucontext->key; in c4iw_create_cq()
[all …]
Dqp.c1589 struct c4iw_ucontext *ucontext; in c4iw_destroy_qp() local
1611 ucontext = ib_qp->uobject ? in c4iw_destroy_qp()
1614 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_destroy_qp()
1631 struct c4iw_ucontext *ucontext; in c4iw_create_qp() local
1662 ucontext = pd->uobject ? to_c4iw_ucontext(pd->uobject->context) : NULL; in c4iw_create_qp()
1677 if (ucontext) { in c4iw_create_qp()
1683 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_qp()
1754 spin_lock(&ucontext->mmap_lock); in c4iw_create_qp()
1756 uresp.ma_sync_key = ucontext->key; in c4iw_create_qp()
1757 ucontext->key += PAGE_SIZE; in c4iw_create_qp()
[all …]
Diw_cxgb4.h506 static inline struct c4iw_mm_entry *remove_mmap(struct c4iw_ucontext *ucontext, in remove_mmap() argument
512 spin_lock(&ucontext->mmap_lock); in remove_mmap()
513 list_for_each_safe(pos, nxt, &ucontext->mmaps) { in remove_mmap()
518 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
524 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
528 static inline void insert_mmap(struct c4iw_ucontext *ucontext, in insert_mmap() argument
531 spin_lock(&ucontext->mmap_lock); in insert_mmap()
534 list_add_tail(&mm->entry, &ucontext->mmaps); in insert_mmap()
535 spin_unlock(&ucontext->mmap_lock); in insert_mmap()
Dprovider.c97 struct c4iw_ucontext *ucontext = to_c4iw_ucontext(context); in c4iw_dealloc_ucontext() local
101 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in c4iw_dealloc_ucontext()
103 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in c4iw_dealloc_ucontext()
104 kfree(ucontext); in c4iw_dealloc_ucontext()
173 struct c4iw_ucontext *ucontext; in c4iw_mmap() local
183 ucontext = to_c4iw_ucontext(context); in c4iw_mmap()
185 mm = remove_mmap(ucontext, key, len); in c4iw_mmap()
/linux-4.4.14/arch/avr32/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext * uc_link; argument
/linux-4.4.14/arch/parisc/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
Drt_sigframe.h15 struct ucontext uc;
/linux-4.4.14/include/uapi/asm-generic/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
DKbuild35 header-y += ucontext.h
/linux-4.4.14/arch/m32r/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-4.4.14/arch/frv/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-4.4.14/arch/mn10300/include/asm/
Ducontext.h14 struct ucontext { struct
16 struct ucontext *uc_link; argument
/linux-4.4.14/arch/cris/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-4.4.14/arch/xtensa/include/asm/
Ducontext.h14 struct ucontext { struct
16 struct ucontext *uc_link; argument
/linux-4.4.14/arch/alpha/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-4.4.14/arch/arm64/include/uapi/asm/
Ducontext.h21 struct ucontext { struct
23 struct ucontext *uc_link; argument
DKbuild21 header-y += ucontext.h
/linux-4.4.14/arch/mips/include/uapi/asm/
Ducontext.h53 struct ucontext { struct
56 struct ucontext *uc_link; argument
/linux-4.4.14/arch/m68k/include/asm/
Ducontext.h21 struct ucontext { struct
23 struct ucontext *uc_link; argument
/linux-4.4.14/arch/powerpc/include/uapi/asm/
Ducontext.h20 struct ucontext { struct
22 struct ucontext __user *uc_link; argument
DKbuild46 header-y += ucontext.h
/linux-4.4.14/arch/arm/include/asm/
Ducontext.h16 struct ucontext { struct
18 struct ucontext *uc_link; argument
/linux-4.4.14/arch/x86/include/asm/
Dsigframe.h12 #define ucontext_ia32 ucontext
64 struct ucontext uc;
/linux-4.4.14/arch/tile/include/uapi/asm/
DKbuild18 header-y += ucontext.h
21 generic-y += ucontext.h
/linux-4.4.14/arch/powerpc/kernel/
Dsignal_64.c58 struct ucontext uc;
60 struct ucontext uc_transact;
596 (sizeof(struct ucontext) - 32*sizeof(long))
601 int sys_swapcontext(struct ucontext __user *old_ctx, in sys_swapcontext()
602 struct ucontext __user *new_ctx, in sys_swapcontext()
623 if ((ctx_size < sizeof(struct ucontext)) && in sys_swapcontext()
627 if (ctx_size >= sizeof(struct ucontext)) in sys_swapcontext()
677 struct ucontext __user *uc = (struct ucontext __user *)regs->gpr[1]; in sys_rt_sigreturn()
697 struct ucontext __user *uc_transact; in sys_rt_sigreturn()
Dsignal_32.c66 #define ucontext ucontext32 macro
75 (sizeof(struct ucontext) - sizeof(elf_vsrreghalf_t32))
252 struct ucontext uc;
254 struct ucontext uc_transact;
1081 static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int sig) in do_setcontext()
1111 static int do_setcontext_tm(struct ucontext __user *ucp, in do_setcontext_tm()
1112 struct ucontext __user *tm_ucp, in do_setcontext_tm()
1139 long sys_swapcontext(struct ucontext __user *old_ctx, in sys_swapcontext()
1140 struct ucontext __user *new_ctx, in sys_swapcontext()
1174 if ((ctx_size < sizeof(struct ucontext)) && in sys_swapcontext()
[all …]
/linux-4.4.14/Documentation/powerpc/
Dtransactional_memory.txt100 thread state (ucontext/mcontext) to represent the second transactional register
106 If the sighandler ucontext has uc_link set, a second ucontext has been
108 determine the transactional state -- if so, the second ucontext in uc->uc_link
115 bits are stored in the MSR of the second ucontext, i.e. in
123 from the second ucontext. This will be necessary for crash handlers to
135 /* May have transactional ucontext! */
/linux-4.4.14/arch/tile/include/asm/
Dsigframe.h28 struct ucontext uc;
/linux-4.4.14/arch/ia64/include/uapi/asm/
Ducontext.h4 struct ucontext { struct
DKbuild47 header-y += ucontext.h
/linux-4.4.14/arch/nios2/include/uapi/asm/
DKbuild5 generic-y += ucontext.h
/linux-4.4.14/arch/x86/um/
Dstub_segv.c13 struct ucontext *uc = p; in stub_segv_handler()
Dsignal.c339 static int copy_ucontext_to_user(struct ucontext __user *uc, in copy_ucontext_to_user()
368 struct ucontext uc;
496 struct ucontext uc;
577 struct ucontext __user *uc = &frame->uc; in sys_rt_sigreturn()
/linux-4.4.14/arch/hexagon/include/asm/
DKbuild2 header-y += ucontext.h
58 generic-y += ucontext.h
/linux-4.4.14/arch/mn10300/kernel/
Dsigframe.h30 struct ucontext uc;
/linux-4.4.14/arch/m68k/kernel/
Dsignal.c261 struct ucontext uc;
349 static inline int rt_restore_fpu_state(struct ucontext __user *uc) in rt_restore_fpu_state()
500 static inline int rt_save_fpu_state(struct ucontext __user *uc, struct pt_regs *regs) in rt_save_fpu_state()
578 static inline int rt_restore_fpu_state(struct ucontext __user *uc) in rt_restore_fpu_state()
587 static inline int rt_save_fpu_state(struct ucontext __user *uc, struct pt_regs *regs) in rt_save_fpu_state()
688 struct ucontext __user *uc) in rt_restore_ucontext()
807 static inline int rt_setup_ucontext(struct ucontext __user *uc, struct pt_regs *regs) in rt_setup_ucontext()
/linux-4.4.14/arch/openrisc/include/asm/
DKbuild2 header-y += ucontext.h
69 generic-y += ucontext.h
/linux-4.4.14/arch/nios2/kernel/
Dsignal.c34 struct ucontext uc;
39 struct ucontext *uc, int *pr2) in rt_restore_ucontext()
127 static inline int rt_setup_ucontext(struct ucontext *uc, struct pt_regs *regs) in rt_setup_ucontext()
/linux-4.4.14/arch/sparc/kernel/
Dsignal_64.c46 struct ucontext __user *ucp = (struct ucontext __user *) in sparc64_set_context()
145 struct ucontext __user *ucp = (struct ucontext __user *) in sparc64_get_context()
/linux-4.4.14/arch/cris/arch-v10/kernel/
Dsignal.c58 struct ucontext uc;
296 err |= __clear_user(&frame->uc, offsetof(struct ucontext, uc_mcontext)); in setup_rt_frame()
/linux-4.4.14/tools/perf/tests/
Dtask-exit.c23 void *ucontext __maybe_unused) in workload_exec_failed_signal()
/linux-4.4.14/arch/sh/include/asm/
DKbuild38 generic-y += ucontext.h
/linux-4.4.14/arch/c6x/kernel/
Dsignal.c33 struct ucontext uc;
160 err |= __clear_user(&frame->uc, offsetof(struct ucontext, uc_mcontext)); in setup_rt_frame()
/linux-4.4.14/drivers/infiniband/hw/usnic/
Dusnic_ib_verbs.c477 struct usnic_ib_ucontext *ucontext; in usnic_ib_create_qp() local
485 ucontext = to_uucontext(pd->uobject->context); in usnic_ib_create_qp()
530 qp_grp->ctx = ucontext; in usnic_ib_create_qp()
531 list_add_tail(&qp_grp->link, &ucontext->qp_grp_list); in usnic_ib_create_qp()
/linux-4.4.14/arch/arc/include/asm/
DKbuild48 generic-y += ucontext.h
/linux-4.4.14/arch/blackfin/include/asm/
DKbuild46 generic-y += ucontext.h
/linux-4.4.14/arch/cris/arch-v32/kernel/
Dsignal.c46 struct ucontext uc;
300 err |= __clear_user(&frame->uc, offsetof(struct ucontext, uc_mcontext)); in setup_rt_frame()
/linux-4.4.14/arch/powerpc/perf/
Dcallchain.c199 struct ucontext uc;
342 #define ucontext32 ucontext
/linux-4.4.14/arch/metag/include/asm/
DKbuild53 generic-y += ucontext.h
/linux-4.4.14/arch/c6x/include/asm/
DKbuild59 generic-y += ucontext.h
/linux-4.4.14/arch/x86/include/uapi/asm/
DKbuild61 header-y += ucontext.h
/linux-4.4.14/arch/unicore32/include/asm/
DKbuild61 generic-y += ucontext.h
/linux-4.4.14/arch/mips/kernel/
Dsignal.c62 struct ucontext rs_uc;
134 struct ucontext __user *uc; in sc_to_extcontext()
141 uc = container_of(sc, struct ucontext, uc_mcontext); in sc_to_extcontext()
/linux-4.4.14/arch/h8300/include/asm/
DKbuild73 generic-y += ucontext.h
/linux-4.4.14/arch/um/os-Linux/
Dsignal.c143 struct ucontext *uc = p; in hard_handler()
/linux-4.4.14/arch/openrisc/kernel/
Dsignal.c39 struct ucontext uc;
/linux-4.4.14/arch/avr32/kernel/
Dsignal.c27 struct ucontext uc;
/linux-4.4.14/arch/h8300/kernel/
Dsignal.c68 struct ucontext uc;
/linux-4.4.14/arch/metag/kernel/
Dsignal.c41 struct ucontext uc;
/linux-4.4.14/arch/hexagon/kernel/
Dsignal.c36 struct ucontext uc;
/linux-4.4.14/arch/m32r/kernel/
Dsignal.c40 struct ucontext uc;
/linux-4.4.14/tools/perf/util/
Devlist.h131 void *ucontext));
Devlist.c1503 void (*exec_error)(int signo, siginfo_t *info, void *ucontext)) in perf_evlist__prepare_workload() argument
/linux-4.4.14/arch/score/kernel/
Dsignal.c41 struct ucontext rs_uc;
/linux-4.4.14/arch/microblaze/kernel/
Dsignal.c55 struct ucontext uc;
/linux-4.4.14/arch/blackfin/kernel/
Dsignal.c37 struct ucontext uc;
/linux-4.4.14/arch/arc/kernel/
Dsignal.c60 struct ucontext uc;
/linux-4.4.14/scripts/
D.docproc.cmd77 /usr/include/i386-linux-gnu/sys/ucontext.h \
/linux-4.4.14/arch/frv/kernel/
Dsignal.c55 struct ucontext uc;
/linux-4.4.14/arch/xtensa/kernel/
Dsignal.c37 struct ucontext uc;
/linux-4.4.14/arch/arm64/kernel/
Dsignal.c43 struct ucontext uc;
/linux-4.4.14/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c621 struct ocrdma_ucontext *ucontext = get_ocrdma_ucontext(context); in ocrdma_mmap() local
631 found = ocrdma_search_mmap(ucontext, vma->vm_pgoff << PAGE_SHIFT, len); in ocrdma_mmap()
1063 cq->ucontext = uctx; in ocrdma_copy_cq_uresp()
1183 if (cq->ucontext) { in ocrdma_destroy_cq()
1184 pdid = cq->ucontext->cntxt_pd->id; in ocrdma_destroy_cq()
1185 ocrdma_del_mmap(cq->ucontext, (u64) cq->pa, in ocrdma_destroy_cq()
1187 ocrdma_del_mmap(cq->ucontext, in ocrdma_destroy_cq()
Docrdma.h337 struct ocrdma_ucontext *ucontext; member
/linux-4.4.14/arch/sh/kernel/
Dsignal_32.c71 struct ucontext uc;
Dsignal_64.c139 struct ucontext uc;
/linux-4.4.14/arch/arm/kernel/
Dsignal.c133 struct ucontext uc;
/linux-4.4.14/arch/unicore32/kernel/
Dsignal.c46 struct ucontext uc;
/linux-4.4.14/arch/alpha/kernel/
Dsignal.c132 struct ucontext uc;
/linux-4.4.14/tools/perf/
Dbuiltin-record.c466 void *ucontext __maybe_unused) in workload_exec_failed_signal()
Dbuiltin-stat.c269 void *ucontext __maybe_unused) in workload_exec_failed_signal()
/linux-4.4.14/include/rdma/
Dib_verbs.h1791 struct ib_ucontext *ucontext,
/linux-4.4.14/Documentation/virtual/uml/
DUserModeLinux-HOWTO.txt113 13.11 UML build conflict between ptrace.h and ucontext.h
3990 13.11. UML build conflict between ptrace.h and ucontext.h
3993 /usr/include/sys/ucontext.h define the same names. So, when they're
3996 /usr/include/sys/ucontext.h:47: parse error before