Searched refs:ucontext (Results 1 - 9 of 9) sorted by relevance

/drivers/infiniband/hw/cxgb3/
H A Diwch_provider.h205 static inline struct iwch_mm_entry *remove_mmap(struct iwch_ucontext *ucontext, argument
211 spin_lock(&ucontext->mmap_lock);
212 list_for_each_safe(pos, nxt, &ucontext->mmaps) {
217 spin_unlock(&ucontext->mmap_lock);
223 spin_unlock(&ucontext->mmap_lock);
227 static inline void insert_mmap(struct iwch_ucontext *ucontext, argument
230 spin_lock(&ucontext->mmap_lock);
233 list_add_tail(&mm->entry, &ucontext->mmaps);
234 spin_unlock(&ucontext->mmap_lock);
H A Diwch_provider.c98 struct iwch_ucontext *ucontext = to_iwch_ucontext(context); local
102 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry)
104 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx);
105 kfree(ucontext);
149 struct iwch_ucontext *ucontext = NULL; local
160 ucontext = to_iwch_ucontext(ib_context);
186 if (cxio_create_cq(&rhp->rdev, &chp->cq, !ucontext)) {
202 if (ucontext) {
212 spin_lock(&ucontext->mmap_lock);
213 uresp.key = ucontext
352 struct iwch_ucontext *ucontext; local
864 struct iwch_ucontext *ucontext; local
900 struct iwch_ucontext *ucontext; local
[all...]
/drivers/infiniband/hw/cxgb4/
H A Dcq.c733 struct c4iw_ucontext *ucontext; local
742 ucontext = ib_cq->uobject ? to_c4iw_ucontext(ib_cq->uobject->context)
745 ucontext ? &ucontext->uctx : &chp->cq.rdev->uctx);
757 struct c4iw_ucontext *ucontext = NULL; local
771 ucontext = to_c4iw_ucontext(ib_context);
801 if (ucontext) {
813 ucontext ? &ucontext->uctx : &rhp->rdev.uctx);
828 if (ucontext) {
[all...]
H A Dprovider.c93 struct c4iw_ucontext *ucontext = to_c4iw_ucontext(context); local
97 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry)
99 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx);
100 kfree(ucontext);
127 struct c4iw_ucontext *ucontext; local
137 ucontext = to_c4iw_ucontext(context);
139 mm = remove_mmap(ucontext, key, len);
H A Dqp.c1360 struct c4iw_ucontext *ucontext; local
1376 ucontext = ib_qp->uobject ?
1379 ucontext ? &ucontext->uctx : &rhp->rdev.uctx);
1396 struct c4iw_ucontext *ucontext; local
1423 ucontext = pd->uobject ? to_c4iw_ucontext(pd->uobject->context) : NULL;
1434 if (ucontext) {
1443 ucontext ? &ucontext->uctx : &rhp->rdev.uctx);
1513 spin_lock(&ucontext
[all...]
H A Diw_cxgb4.h396 static inline struct c4iw_mm_entry *remove_mmap(struct c4iw_ucontext *ucontext, argument
402 spin_lock(&ucontext->mmap_lock);
403 list_for_each_safe(pos, nxt, &ucontext->mmaps) {
408 spin_unlock(&ucontext->mmap_lock);
414 spin_unlock(&ucontext->mmap_lock);
418 static inline void insert_mmap(struct c4iw_ucontext *ucontext, argument
421 spin_lock(&ucontext->mmap_lock);
424 list_add_tail(&mm->entry, &ucontext->mmaps);
425 spin_unlock(&ucontext->mmap_lock);
/drivers/infiniband/core/
H A Duverbs_cmd.c292 struct ib_ucontext *ucontext; local
304 if (file->ucontext) {
313 ucontext = ibdev->alloc_ucontext(ibdev, &udata);
314 if (IS_ERR(ucontext)) {
315 ret = PTR_ERR(ucontext);
319 ucontext->device = ibdev;
320 INIT_LIST_HEAD(&ucontext->pd_list);
321 INIT_LIST_HEAD(&ucontext->mr_list);
322 INIT_LIST_HEAD(&ucontext->mw_list);
323 INIT_LIST_HEAD(&ucontext
[all...]
H A Duverbs.h98 struct ib_ucontext *ucontext; member in struct:ib_uverbs_file
H A Duverbs_main.c585 if (!file->ucontext &&
600 if (!file->ucontext)
603 return file->device->ib_dev->mmap(file->ucontext, vma);
640 file->ucontext = NULL;
661 ib_uverbs_cleanup_ucontext(file, file->ucontext);

Completed in 878 milliseconds