Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/infiniband/core/
Duverbs_cmd.c295 struct ib_ucontext *ucontext; in ib_uverbs_get_context() local
307 if (file->ucontext) { in ib_uverbs_get_context()
316 ucontext = ibdev->alloc_ucontext(ibdev, &udata); in ib_uverbs_get_context()
317 if (IS_ERR(ucontext)) { in ib_uverbs_get_context()
318 ret = PTR_ERR(ucontext); in ib_uverbs_get_context()
322 ucontext->device = ibdev; in ib_uverbs_get_context()
323 INIT_LIST_HEAD(&ucontext->pd_list); in ib_uverbs_get_context()
324 INIT_LIST_HEAD(&ucontext->mr_list); in ib_uverbs_get_context()
325 INIT_LIST_HEAD(&ucontext->mw_list); in ib_uverbs_get_context()
326 INIT_LIST_HEAD(&ucontext->cq_list); in ib_uverbs_get_context()
[all …]
Duverbs_main.c643 if (!file->ucontext && in ib_uverbs_write()
677 if (!file->ucontext) in ib_uverbs_write()
737 if (!file->ucontext) in ib_uverbs_mmap()
740 return file->device->ib_dev->mmap(file->ucontext, vma); in ib_uverbs_mmap()
775 file->ucontext = NULL; in ib_uverbs_open()
800 ib_uverbs_cleanup_ucontext(file, file->ucontext); in ib_uverbs_close()
Duverbs.h115 struct ib_ucontext *ucontext; member
/linux-4.1.27/drivers/infiniband/hw/cxgb3/
Diwch_provider.h205 static inline struct iwch_mm_entry *remove_mmap(struct iwch_ucontext *ucontext, in remove_mmap() argument
211 spin_lock(&ucontext->mmap_lock); in remove_mmap()
212 list_for_each_safe(pos, nxt, &ucontext->mmaps) { in remove_mmap()
217 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
223 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
227 static inline void insert_mmap(struct iwch_ucontext *ucontext, in insert_mmap() argument
230 spin_lock(&ucontext->mmap_lock); in insert_mmap()
233 list_add_tail(&mm->entry, &ucontext->mmaps); in insert_mmap()
234 spin_unlock(&ucontext->mmap_lock); in insert_mmap()
Diwch_provider.c98 struct iwch_ucontext *ucontext = to_iwch_ucontext(context); in iwch_dealloc_ucontext() local
102 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in iwch_dealloc_ucontext()
104 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx); in iwch_dealloc_ucontext()
105 kfree(ucontext); in iwch_dealloc_ucontext()
149 struct iwch_ucontext *ucontext = NULL; in iwch_create_cq() local
160 ucontext = to_iwch_ucontext(ib_context); in iwch_create_cq()
186 if (cxio_create_cq(&rhp->rdev, &chp->cq, !ucontext)) { in iwch_create_cq()
202 if (ucontext) { in iwch_create_cq()
212 spin_lock(&ucontext->mmap_lock); in iwch_create_cq()
213 uresp.key = ucontext->key; in iwch_create_cq()
[all …]
/linux-4.1.27/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.1.27/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.1.27/drivers/infiniband/hw/cxgb4/
Dcq.c852 struct c4iw_ucontext *ucontext; in c4iw_destroy_cq() local
861 ucontext = ib_cq->uobject ? to_c4iw_ucontext(ib_cq->uobject->context) in c4iw_destroy_cq()
864 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx); in c4iw_destroy_cq()
876 struct c4iw_ucontext *ucontext = NULL; in c4iw_create_cq() local
893 ucontext = to_c4iw_ucontext(ib_context); in c4iw_create_cq()
923 if (ucontext) in c4iw_create_cq()
930 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_cq()
945 if (ucontext) { in c4iw_create_cq()
957 spin_lock(&ucontext->mmap_lock); in c4iw_create_cq()
958 uresp.key = ucontext->key; in c4iw_create_cq()
[all …]
Dqp.c1576 struct c4iw_ucontext *ucontext; in c4iw_destroy_qp() local
1598 ucontext = ib_qp->uobject ? in c4iw_destroy_qp()
1601 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_destroy_qp()
1618 struct c4iw_ucontext *ucontext; in c4iw_create_qp() local
1649 ucontext = pd->uobject ? to_c4iw_ucontext(pd->uobject->context) : NULL; in c4iw_create_qp()
1664 if (ucontext) { in c4iw_create_qp()
1670 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_qp()
1741 spin_lock(&ucontext->mmap_lock); in c4iw_create_qp()
1743 uresp.ma_sync_key = ucontext->key; in c4iw_create_qp()
1744 ucontext->key += PAGE_SIZE; in c4iw_create_qp()
[all …]
Diw_cxgb4.h518 static inline struct c4iw_mm_entry *remove_mmap(struct c4iw_ucontext *ucontext, in remove_mmap() argument
524 spin_lock(&ucontext->mmap_lock); in remove_mmap()
525 list_for_each_safe(pos, nxt, &ucontext->mmaps) { in remove_mmap()
530 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
536 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
540 static inline void insert_mmap(struct c4iw_ucontext *ucontext, in insert_mmap() argument
543 spin_lock(&ucontext->mmap_lock); in insert_mmap()
546 list_add_tail(&mm->entry, &ucontext->mmaps); in insert_mmap()
547 spin_unlock(&ucontext->mmap_lock); in insert_mmap()
Dprovider.c93 struct c4iw_ucontext *ucontext = to_c4iw_ucontext(context); in c4iw_dealloc_ucontext() local
97 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in c4iw_dealloc_ucontext()
99 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in c4iw_dealloc_ucontext()
100 kfree(ucontext); in c4iw_dealloc_ucontext()
169 struct c4iw_ucontext *ucontext; in c4iw_mmap() local
179 ucontext = to_c4iw_ucontext(context); in c4iw_mmap()
181 mm = remove_mmap(ucontext, key, len); in c4iw_mmap()
/linux-4.1.27/arch/m32r/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-4.1.27/arch/avr32/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext * uc_link; argument
/linux-4.1.27/arch/xtensa/include/asm/
Ducontext.h14 struct ucontext { struct
16 struct ucontext *uc_link; argument
/linux-4.1.27/arch/parisc/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
Drt_sigframe.h15 struct ucontext uc;
/linux-4.1.27/arch/frv/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-4.1.27/arch/mn10300/include/asm/
Ducontext.h14 struct ucontext { struct
16 struct ucontext *uc_link; argument
/linux-4.1.27/include/uapi/asm-generic/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
DKbuild35 header-y += ucontext.h
/linux-4.1.27/arch/cris/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-4.1.27/arch/alpha/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-4.1.27/arch/arm64/include/uapi/asm/
Ducontext.h21 struct ucontext { struct
23 struct ucontext *uc_link; argument
DKbuild21 header-y += ucontext.h
/linux-4.1.27/arch/m68k/include/asm/
Ducontext.h21 struct ucontext { struct
23 struct ucontext *uc_link; argument
/linux-4.1.27/arch/powerpc/include/uapi/asm/
Ducontext.h20 struct ucontext { struct
22 struct ucontext __user *uc_link; argument
DKbuild44 header-y += ucontext.h
/linux-4.1.27/arch/x86/include/asm/
Dsigframe.h13 #define ucontext_ia32 ucontext
65 struct ucontext uc;
/linux-4.1.27/arch/arm/include/asm/
Ducontext.h16 struct ucontext { struct
18 struct ucontext *uc_link; argument
/linux-4.1.27/arch/tile/include/uapi/asm/
DKbuild18 header-y += ucontext.h
21 generic-y += ucontext.h
/linux-4.1.27/arch/powerpc/kernel/
Dsignal_64.c58 struct ucontext uc;
60 struct ucontext uc_transact;
585 (sizeof(struct ucontext) - 32*sizeof(long))
590 int sys_swapcontext(struct ucontext __user *old_ctx, in sys_swapcontext()
591 struct ucontext __user *new_ctx, in sys_swapcontext()
612 if ((ctx_size < sizeof(struct ucontext)) && in sys_swapcontext()
616 if (ctx_size >= sizeof(struct ucontext)) in sys_swapcontext()
666 struct ucontext __user *uc = (struct ucontext __user *)regs->gpr[1]; in sys_rt_sigreturn()
686 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;
1076 static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int sig) in do_setcontext()
1106 static int do_setcontext_tm(struct ucontext __user *ucp, in do_setcontext_tm()
1107 struct ucontext __user *tm_ucp, in do_setcontext_tm()
1134 long sys_swapcontext(struct ucontext __user *old_ctx, in sys_swapcontext()
1135 struct ucontext __user *new_ctx, in sys_swapcontext()
1169 if ((ctx_size < sizeof(struct ucontext)) && in sys_swapcontext()
[all …]
/linux-4.1.27/Documentation/powerpc/
Dtransactional_memory.txt99 thread state (ucontext/mcontext) to represent the second transactional register
105 If the sighandler ucontext has uc_link set, a second ucontext has been
107 determine the transactional state -- if so, the second ucontext in uc->uc_link
114 bits are stored in the MSR of the second ucontext, i.e. in
122 from the second ucontext. This will be necessary for crash handlers to
134 /* May have transactional ucontext! */
/linux-4.1.27/arch/tile/include/asm/
Dsigframe.h28 struct ucontext uc;
/linux-4.1.27/arch/ia64/include/uapi/asm/
Ducontext.h4 struct ucontext { struct
DKbuild47 header-y += ucontext.h
/linux-4.1.27/arch/nios2/include/uapi/asm/
DKbuild5 generic-y += ucontext.h
/linux-4.1.27/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;
498 struct ucontext uc;
574 struct ucontext __user *uc = &frame->uc; in sys_rt_sigreturn()
/linux-4.1.27/arch/hexagon/include/asm/
DKbuild2 header-y += ucontext.h
58 generic-y += ucontext.h
/linux-4.1.27/arch/mn10300/kernel/
Dsigframe.h30 struct ucontext uc;
/linux-4.1.27/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.1.27/arch/openrisc/include/asm/
DKbuild2 header-y += ucontext.h
69 generic-y += ucontext.h
/linux-4.1.27/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.1.27/arch/mips/include/asm/
DKbuild19 generic-y += ucontext.h
/linux-4.1.27/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.1.27/tools/perf/tests/
Dtask-exit.c23 void *ucontext __maybe_unused) in workload_exec_failed_signal()
/linux-4.1.27/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.1.27/arch/sh/include/asm/
DKbuild38 generic-y += ucontext.h
/linux-4.1.27/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.1.27/drivers/infiniband/hw/usnic/
Dusnic_ib_verbs.c458 struct usnic_ib_ucontext *ucontext; in usnic_ib_create_qp() local
466 ucontext = to_uucontext(pd->uobject->context); in usnic_ib_create_qp()
511 qp_grp->ctx = ucontext; in usnic_ib_create_qp()
512 list_add_tail(&qp_grp->link, &ucontext->qp_grp_list); in usnic_ib_create_qp()
/linux-4.1.27/arch/blackfin/include/asm/
DKbuild46 generic-y += ucontext.h
/linux-4.1.27/arch/arc/include/asm/
DKbuild49 generic-y += ucontext.h
/linux-4.1.27/arch/powerpc/perf/
Dcallchain.c199 struct ucontext uc;
342 #define ucontext32 ucontext
/linux-4.1.27/arch/cris/arch-v32/kernel/
Dsignal.c47 struct ucontext uc;
301 err |= __clear_user(&frame->uc, offsetof(struct ucontext, uc_mcontext)); in setup_rt_frame()
/linux-4.1.27/arch/metag/include/asm/
DKbuild53 generic-y += ucontext.h
/linux-4.1.27/arch/c6x/include/asm/
DKbuild59 generic-y += ucontext.h
/linux-4.1.27/arch/x86/include/uapi/asm/
DKbuild61 header-y += ucontext.h
/linux-4.1.27/arch/unicore32/include/asm/
DKbuild61 generic-y += ucontext.h
/linux-4.1.27/arch/um/os-Linux/
Dsignal.c138 struct ucontext *uc = p; in hard_handler()
/linux-4.1.27/arch/arc/kernel/
Dsignal.c60 struct ucontext uc;
/linux-4.1.27/arch/openrisc/kernel/
Dsignal.c39 struct ucontext uc;
/linux-4.1.27/arch/metag/kernel/
Dsignal.c41 struct ucontext uc;
/linux-4.1.27/arch/avr32/kernel/
Dsignal.c27 struct ucontext uc;
/linux-4.1.27/tools/perf/util/
Devlist.h120 void *ucontext));
Devlist.c1318 void (*exec_error)(int signo, siginfo_t *info, void *ucontext)) in perf_evlist__prepare_workload() argument
/linux-4.1.27/arch/m32r/kernel/
Dsignal.c40 struct ucontext uc;
/linux-4.1.27/arch/hexagon/kernel/
Dsignal.c36 struct ucontext uc;
/linux-4.1.27/arch/microblaze/kernel/
Dsignal.c55 struct ucontext uc;
/linux-4.1.27/arch/score/kernel/
Dsignal.c41 struct ucontext rs_uc;
/linux-4.1.27/arch/blackfin/kernel/
Dsignal.c37 struct ucontext uc;
/linux-4.1.27/scripts/
D.docproc.cmd77 /usr/include/i386-linux-gnu/sys/ucontext.h \
/linux-4.1.27/arch/frv/kernel/
Dsignal.c55 struct ucontext uc;
/linux-4.1.27/arch/xtensa/kernel/
Dsignal.c37 struct ucontext uc;
/linux-4.1.27/arch/arm64/kernel/
Dsignal.c43 struct ucontext uc;
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c556 struct ocrdma_ucontext *ucontext = get_ocrdma_ucontext(context); in ocrdma_mmap() local
566 found = ocrdma_search_mmap(ucontext, vma->vm_pgoff << PAGE_SHIFT, len); in ocrdma_mmap()
997 cq->ucontext = uctx; in ocrdma_copy_cq_uresp()
1112 if (cq->ucontext) { in ocrdma_destroy_cq()
1113 pdid = cq->ucontext->cntxt_pd->id; in ocrdma_destroy_cq()
1114 ocrdma_del_mmap(cq->ucontext, (u64) cq->pa, in ocrdma_destroy_cq()
1116 ocrdma_del_mmap(cq->ucontext, in ocrdma_destroy_cq()
Docrdma.h317 struct ocrdma_ucontext *ucontext; member
/linux-4.1.27/arch/sh/kernel/
Dsignal_32.c71 struct ucontext uc;
Dsignal_64.c139 struct ucontext uc;
/linux-4.1.27/arch/mips/kernel/
Dsignal.c61 struct ucontext rs_uc;
/linux-4.1.27/arch/alpha/kernel/
Dsignal.c132 struct ucontext uc;
/linux-4.1.27/arch/unicore32/kernel/
Dsignal.c46 struct ucontext uc;
/linux-4.1.27/arch/arm/kernel/
Dsignal.c133 struct ucontext uc;
/linux-4.1.27/tools/perf/
Dbuiltin-record.c319 void *ucontext __maybe_unused) in workload_exec_failed_signal()
Dbuiltin-stat.c620 void *ucontext __maybe_unused) in workload_exec_failed_signal()
/linux-4.1.27/include/rdma/
Dib_verbs.h1645 struct ib_ucontext *ucontext,
/linux-4.1.27/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