Home
last modified time | relevance | path

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

123

/linux-2.6.39/arch/s390/include/asm/
Ducontext.h18 struct ucontext *uc_link;
27 struct ucontext { struct
29 struct ucontext *uc_link; argument
/linux-2.6.39/drivers/infiniband/hw/cxgb3/
Diwch_provider.h204 static inline struct iwch_mm_entry *remove_mmap(struct iwch_ucontext *ucontext, in remove_mmap() argument
210 spin_lock(&ucontext->mmap_lock); in remove_mmap()
211 list_for_each_safe(pos, nxt, &ucontext->mmaps) { in remove_mmap()
216 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
222 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
226 static inline void insert_mmap(struct iwch_ucontext *ucontext, in insert_mmap() argument
229 spin_lock(&ucontext->mmap_lock); in insert_mmap()
232 list_add_tail(&mm->entry, &ucontext->mmaps); in insert_mmap()
233 spin_unlock(&ucontext->mmap_lock); in insert_mmap()
Diwch_provider.c105 struct iwch_ucontext *ucontext = to_iwch_ucontext(context); in iwch_dealloc_ucontext() local
109 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in iwch_dealloc_ucontext()
111 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx); in iwch_dealloc_ucontext()
112 kfree(ucontext); in iwch_dealloc_ucontext()
156 struct iwch_ucontext *ucontext = NULL; in iwch_create_cq() local
167 ucontext = to_iwch_ucontext(ib_context); in iwch_create_cq()
193 if (cxio_create_cq(&rhp->rdev, &chp->cq, !ucontext)) { in iwch_create_cq()
208 if (ucontext) { in iwch_create_cq()
218 spin_lock(&ucontext->mmap_lock); in iwch_create_cq()
219 uresp.key = ucontext->key; in iwch_create_cq()
[all …]
/linux-2.6.39/drivers/infiniband/core/
Duverbs_cmd.c266 struct ib_ucontext *ucontext; in ib_uverbs_get_context() local
278 if (file->ucontext) { in ib_uverbs_get_context()
287 ucontext = ibdev->alloc_ucontext(ibdev, &udata); in ib_uverbs_get_context()
288 if (IS_ERR(ucontext)) { in ib_uverbs_get_context()
289 ret = PTR_ERR(ucontext); in ib_uverbs_get_context()
293 ucontext->device = ibdev; in ib_uverbs_get_context()
294 INIT_LIST_HEAD(&ucontext->pd_list); in ib_uverbs_get_context()
295 INIT_LIST_HEAD(&ucontext->mr_list); in ib_uverbs_get_context()
296 INIT_LIST_HEAD(&ucontext->mw_list); in ib_uverbs_get_context()
297 INIT_LIST_HEAD(&ucontext->cq_list); in ib_uverbs_get_context()
[all …]
/linux-2.6.39/arch/sparc/include/asm/
Ductx.h63 struct ucontext { struct
64 struct ucontext *uc_link; argument
69 typedef struct ucontext ucontext_t; argument
/linux-2.6.39/drivers/infiniband/hw/cxgb4/
Dcq.c733 struct c4iw_ucontext *ucontext; in c4iw_destroy_cq() local
742 ucontext = ib_cq->uobject ? to_c4iw_ucontext(ib_cq->uobject->context) in c4iw_destroy_cq()
745 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx); in c4iw_destroy_cq()
757 struct c4iw_ucontext *ucontext = NULL; in c4iw_create_cq() local
771 ucontext = to_c4iw_ucontext(ib_context); in c4iw_create_cq()
801 if (ucontext) { in c4iw_create_cq()
809 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_cq()
823 if (ucontext) { in c4iw_create_cq()
835 spin_lock(&ucontext->mmap_lock); in c4iw_create_cq()
836 uresp.key = ucontext->key; in c4iw_create_cq()
[all …]
Dqp.c1335 struct c4iw_ucontext *ucontext; in c4iw_destroy_qp() local
1348 ucontext = ib_qp->uobject ? in c4iw_destroy_qp()
1351 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_destroy_qp()
1368 struct c4iw_ucontext *ucontext; in c4iw_create_qp() local
1395 ucontext = pd->uobject ? to_c4iw_ucontext(pd->uobject->context) : NULL; in c4iw_create_qp()
1406 if (ucontext) { in c4iw_create_qp()
1415 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in c4iw_create_qp()
1485 spin_lock(&ucontext->mmap_lock); in c4iw_create_qp()
1487 uresp.ma_sync_key = ucontext->key; in c4iw_create_qp()
1488 ucontext->key += PAGE_SIZE; in c4iw_create_qp()
[all …]
Diw_cxgb4.h386 static inline struct c4iw_mm_entry *remove_mmap(struct c4iw_ucontext *ucontext, in remove_mmap() argument
392 spin_lock(&ucontext->mmap_lock); in remove_mmap()
393 list_for_each_safe(pos, nxt, &ucontext->mmaps) { in remove_mmap()
398 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
404 spin_unlock(&ucontext->mmap_lock); in remove_mmap()
408 static inline void insert_mmap(struct c4iw_ucontext *ucontext, in insert_mmap() argument
411 spin_lock(&ucontext->mmap_lock); in insert_mmap()
414 list_add_tail(&mm->entry, &ucontext->mmaps); in insert_mmap()
415 spin_unlock(&ucontext->mmap_lock); in insert_mmap()
Dprovider.c100 struct c4iw_ucontext *ucontext = to_c4iw_ucontext(context); in c4iw_dealloc_ucontext() local
104 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in c4iw_dealloc_ucontext()
106 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in c4iw_dealloc_ucontext()
107 kfree(ucontext); in c4iw_dealloc_ucontext()
134 struct c4iw_ucontext *ucontext; in c4iw_mmap() local
144 ucontext = to_c4iw_ucontext(context); in c4iw_mmap()
146 mm = remove_mmap(ucontext, key, len); in c4iw_mmap()
/linux-2.6.39/arch/xtensa/include/asm/
Ducontext.h14 struct ucontext { struct
16 struct ucontext *uc_link; argument
/linux-2.6.39/arch/avr32/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext * uc_link; argument
/linux-2.6.39/arch/parisc/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-2.6.39/arch/m32r/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-2.6.39/arch/mn10300/include/asm/
Ducontext.h14 struct ucontext { struct
16 struct ucontext *uc_link; argument
/linux-2.6.39/include/asm-generic/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-2.6.39/arch/cris/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-2.6.39/arch/frv/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-2.6.39/arch/h8300/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-2.6.39/arch/alpha/include/asm/
Ducontext.h4 struct ucontext { struct
6 struct ucontext *uc_link; argument
/linux-2.6.39/arch/m68k/include/asm/
Ducontext.h25 struct ucontext { struct
27 struct ucontext *uc_link; argument
/linux-2.6.39/arch/powerpc/kernel/
Dsignal_64.c57 struct ucontext uc;
274 (sizeof(struct ucontext) - 32*sizeof(long))
279 int sys_swapcontext(struct ucontext __user *old_ctx, in sys_swapcontext()
280 struct ucontext __user *new_ctx, in sys_swapcontext()
301 if ((ctx_size < sizeof(struct ucontext)) && in sys_swapcontext()
305 if (ctx_size >= sizeof(struct ucontext)) in sys_swapcontext()
355 struct ucontext __user *uc = (struct ucontext __user *)regs->gpr[1]; in sys_rt_sigreturn()
/linux-2.6.39/arch/powerpc/include/asm/
Ducontext.h20 struct ucontext { struct
22 struct ucontext __user *uc_link; argument
/linux-2.6.39/arch/x86/include/asm/
Dsigframe.h13 #define ucontext_ia32 ucontext
64 struct ucontext uc;
/linux-2.6.39/arch/arm/include/asm/
Ducontext.h16 struct ucontext { struct
18 struct ucontext *uc_link; argument
/linux-2.6.39/arch/tile/include/asm/
Dsigframe.h28 struct ucontext uc;

123