Home
last modified time | relevance | path

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

1234

/Linux-v4.19/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.c67 struct iwch_ucontext *ucontext = to_iwch_ucontext(context); in iwch_dealloc_ucontext() local
71 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in iwch_dealloc_ucontext()
73 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx); in iwch_dealloc_ucontext()
74 kfree(ucontext); in iwch_dealloc_ucontext()
120 struct iwch_ucontext *ucontext = NULL; in iwch_create_cq() local
134 ucontext = to_iwch_ucontext(ib_context); in iwch_create_cq()
160 if (cxio_create_cq(&rhp->rdev, &chp->cq, !ucontext)) { in iwch_create_cq()
176 if (ucontext) { in iwch_create_cq()
186 spin_lock(&ucontext->mmap_lock); in iwch_create_cq()
187 uresp.key = ucontext->key; in iwch_create_cq()
[all …]
/Linux-v4.19/drivers/infiniband/core/
Drdma_core.c268 struct ib_ucontext *ucontext; in alloc_uobj() local
270 ucontext = ib_uverbs_get_ucontext(ufile); in alloc_uobj()
271 if (IS_ERR(ucontext)) in alloc_uobj()
272 return ERR_CAST(ucontext); in alloc_uobj()
282 uobj->context = ucontext; in alloc_uobj()
842 struct ib_ucontext *ucontext = ufile->ucontext; in ufile_destroy_ucontext() local
846 ufile_disassociate_ucontext(ucontext); in ufile_destroy_ucontext()
848 put_pid(ucontext->tgid); in ufile_destroy_ucontext()
849 ib_rdmacg_uncharge(&ucontext->cg_obj, ucontext->device, in ufile_destroy_ucontext()
856 ret = ucontext->device->dealloc_ucontext(ucontext); in ufile_destroy_ucontext()
[all …]
Duverbs_cmd.c75 struct ib_ucontext *ucontext; in ib_uverbs_get_context() local
95 if (file->ucontext) { in ib_uverbs_get_context()
109 ucontext = ib_dev->alloc_ucontext(ib_dev, &udata); in ib_uverbs_get_context()
110 if (IS_ERR(ucontext)) { in ib_uverbs_get_context()
111 ret = PTR_ERR(ucontext); in ib_uverbs_get_context()
115 ucontext->device = ib_dev; in ib_uverbs_get_context()
116 ucontext->cg_obj = cg_obj; in ib_uverbs_get_context()
118 ucontext->ufile = file; in ib_uverbs_get_context()
121 ucontext->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); in ib_uverbs_get_context()
123 ucontext->closing = 0; in ib_uverbs_get_context()
[all …]
/Linux-v4.19/arch/s390/include/uapi/asm/
Ducontext.h22 struct ucontext *uc_link;
31 struct ucontext { struct
33 struct ucontext *uc_link; argument
/Linux-v4.19/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()
107 if (user && ucontext->is_32b_cqe) { in create_cq()
149 ((user && ucontext->is_32b_cqe) ? in create_cq()
974 struct c4iw_ucontext *ucontext; in c4iw_destroy_cq() local
983 ucontext = ib_cq->uobject ? to_c4iw_ucontext(ib_cq->uobject->context) in c4iw_destroy_cq()
986 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx, in c4iw_destroy_cq()
1004 struct c4iw_ucontext *ucontext = NULL; in c4iw_create_cq() local
1019 ucontext = to_c4iw_ucontext(ib_context); in c4iw_create_cq()
1021 ucontext->is_32b_cqe = 1; in c4iw_create_cq()
[all …]
Dqp.c887 struct c4iw_ucontext *ucontext; in free_qp_work() local
892 ucontext = qhp->ucontext; in free_qp_work()
895 pr_debug("qhp %p ucontext %p\n", qhp, ucontext); in free_qp_work()
897 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !qhp->srq); in free_qp_work()
899 if (ucontext) in free_qp_work()
900 c4iw_put_ucontext(ucontext); in free_qp_work()
2131 struct c4iw_ucontext *ucontext; in c4iw_create_qp() local
2165 ucontext = pd->uobject ? to_c4iw_ucontext(pd->uobject->context) : NULL; in c4iw_create_qp()
2189 if (ucontext) { in c4iw_create_qp()
2197 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_qp()
[all …]
Diw_cxgb4.h557 struct c4iw_ucontext *ucontext; member
603 static inline void c4iw_put_ucontext(struct c4iw_ucontext *ucontext) in c4iw_put_ucontext() argument
605 kref_put(&ucontext->kref, _c4iw_free_ucontext); in c4iw_put_ucontext()
608 static inline void c4iw_get_ucontext(struct c4iw_ucontext *ucontext) in c4iw_get_ucontext() argument
610 kref_get(&ucontext->kref); in c4iw_get_ucontext()
620 static inline struct c4iw_mm_entry *remove_mmap(struct c4iw_ucontext *ucontext, in remove_mmap() argument
626 spin_lock(&ucontext->mmap_lock); in remove_mmap()
627 list_for_each_safe(pos, nxt, &ucontext->mmaps) { in remove_mmap()
632 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
638 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
[all …]
Dprovider.c63 struct c4iw_ucontext *ucontext; in _c4iw_free_ucontext() local
67 ucontext = container_of(kref, struct c4iw_ucontext, kref); in _c4iw_free_ucontext()
68 rhp = to_c4iw_dev(ucontext->ibucontext.device); in _c4iw_free_ucontext()
70 pr_debug("ucontext %p\n", ucontext); in _c4iw_free_ucontext()
71 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in _c4iw_free_ucontext()
73 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in _c4iw_free_ucontext()
74 kfree(ucontext); in _c4iw_free_ucontext()
79 struct c4iw_ucontext *ucontext = to_c4iw_ucontext(context); in c4iw_dealloc_ucontext() local
82 c4iw_put_ucontext(ucontext); in c4iw_dealloc_ucontext()
150 struct c4iw_ucontext *ucontext; in c4iw_mmap() local
[all …]
/Linux-v4.19/arch/sparc/include/uapi/asm/
Ductx.h64 struct ucontext { struct
65 struct ucontext *uc_link; argument
70 typedef struct ucontext ucontext_t; argument
/Linux-v4.19/drivers/infiniband/hw/i40iw/
Di40iw_verbs.c135 struct i40iw_ucontext *ucontext; in i40iw_alloc_ucontext() local
151 ucontext = kzalloc(sizeof(*ucontext), GFP_KERNEL); in i40iw_alloc_ucontext()
152 if (!ucontext) in i40iw_alloc_ucontext()
155 ucontext->iwdev = iwdev; in i40iw_alloc_ucontext()
156 ucontext->abi_ver = req.userspace_ver; in i40iw_alloc_ucontext()
159 kfree(ucontext); in i40iw_alloc_ucontext()
163 INIT_LIST_HEAD(&ucontext->cq_reg_mem_list); in i40iw_alloc_ucontext()
164 spin_lock_init(&ucontext->cq_reg_mem_list_lock); in i40iw_alloc_ucontext()
165 INIT_LIST_HEAD(&ucontext->qp_reg_mem_list); in i40iw_alloc_ucontext()
166 spin_lock_init(&ucontext->qp_reg_mem_list_lock); in i40iw_alloc_ucontext()
[all …]
/Linux-v4.19/arch/parisc/include/asm/
Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/Linux-v4.19/arch/xtensa/include/asm/
Ducontext.h14 struct ucontext { struct
16 struct ucontext *uc_link; argument
/Linux-v4.19/include/uapi/asm-generic/
Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/Linux-v4.19/arch/alpha/include/asm/
Ducontext.h5 struct ucontext { struct
7 struct ucontext *uc_link; argument
/Linux-v4.19/arch/riscv/include/uapi/asm/
Ducontext.h24 struct ucontext { struct
26 struct ucontext *uc_link; argument
/Linux-v4.19/arch/arm64/include/uapi/asm/
Ducontext.h22 struct ucontext { struct
24 struct ucontext *uc_link; argument
/Linux-v4.19/arch/mips/include/uapi/asm/
Ducontext.h54 struct ucontext { struct
57 struct ucontext *uc_link; argument
/Linux-v4.19/arch/m68k/include/asm/
Ducontext.h22 struct ucontext { struct
24 struct ucontext *uc_link; argument
/Linux-v4.19/arch/powerpc/include/uapi/asm/
Ducontext.h21 struct ucontext { struct
23 struct ucontext __user *uc_link; argument
/Linux-v4.19/arch/powerpc/kernel/
Dsignal_32.c64 #define ucontext ucontext32 macro
73 (sizeof(struct ucontext) - sizeof(elf_vsrreghalf_t32))
231 struct ucontext uc;
233 struct ucontext uc_transact;
983 static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int sig) in do_setcontext()
1013 static int do_setcontext_tm(struct ucontext __user *ucp, in do_setcontext_tm()
1014 struct ucontext __user *tm_ucp, in do_setcontext_tm()
1042 COMPAT_SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in COMPAT_SYSCALL_DEFINE3()
1043 struct ucontext __user *, new_ctx, int, ctx_size) in COMPAT_SYSCALL_DEFINE3()
1045 SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in COMPAT_SYSCALL_DEFINE3()
[all …]
Dsignal_64.c60 struct ucontext uc;
62 struct ucontext uc_transact;
623 (sizeof(struct ucontext) - 32*sizeof(long))
628 SYSCALL_DEFINE3(swapcontext, struct ucontext __user *, old_ctx, in SYSCALL_DEFINE3()
629 struct ucontext __user *, new_ctx, long, ctx_size) in SYSCALL_DEFINE3()
649 if ((ctx_size < sizeof(struct ucontext)) && in SYSCALL_DEFINE3()
653 if (ctx_size >= sizeof(struct ucontext)) in SYSCALL_DEFINE3()
702 struct ucontext __user *uc = (struct ucontext __user *)regs->gpr[1]; in SYSCALL_DEFINE0()
736 struct ucontext __user *uc_transact; in SYSCALL_DEFINE0()
/Linux-v4.19/arch/arm/include/asm/
Ducontext.h18 struct ucontext { struct
20 struct ucontext *uc_link; argument
/Linux-v4.19/arch/x86/include/asm/
Dsigframe.h13 #define ucontext_ia32 ucontext
65 struct ucontext uc;
/Linux-v4.19/arch/powerpc/include/asm/
Dasm-prototypes.h83 long sys_swapcontext(struct ucontext __user *old_ctx,
84 struct ucontext __user *new_ctx,
87 long sys_debug_setcontext(struct ucontext __user *ctx,

1234