/drivers/infiniband/core/ |
D | uverbs_cmd.c | 214 put_uobj_read(pd->uobject); in put_pd_read() 224 put_uobj_read(cq->uobject); in put_cq_read() 234 put_uobj_read(ah->uobject); in put_ah_read() 244 put_uobj_read(qp->uobject); in put_qp_read() 254 put_uobj_read(srq->uobject); in put_srq_read() 499 pd->uobject = uobj; in ib_uverbs_alloc_pd() 627 mr->uobject = uobj; in ib_uverbs_reg_mr() 769 init_uobj(&obj->uobject, cmd.user_handle, file->ucontext, &cq_lock_key); in ib_uverbs_create_cq() 770 down_write(&obj->uobject.mutex); in ib_uverbs_create_cq() 795 cq->uobject = &obj->uobject; in ib_uverbs_create_cq() [all …]
|
D | uverbs_main.c | 205 container_of(uobj, struct ib_uqp_object, uevent.uobject); in ib_uverbs_cleanup_ucontext() 218 container_of(uobj, struct ib_ucq_object, uobject); in ib_uverbs_cleanup_ucontext() 229 container_of(uobj, struct ib_uevent_object, uobject); in ib_uverbs_cleanup_ucontext() 400 uobj = container_of(cq->uobject, struct ib_ucq_object, uobject); in ib_uverbs_comp_handler() 402 entry->desc.comp.cq_handle = cq->uobject->user_handle; in ib_uverbs_comp_handler() 448 struct ib_ucq_object *uobj = container_of(event->element.cq->uobject, in ib_uverbs_cq_event_handler() 449 struct ib_ucq_object, uobject); in ib_uverbs_cq_event_handler() 451 ib_uverbs_async_handler(uobj->uverbs_file, uobj->uobject.user_handle, in ib_uverbs_cq_event_handler() 460 uobj = container_of(event->element.qp->uobject, in ib_uverbs_qp_event_handler() 461 struct ib_uevent_object, uobject); in ib_uverbs_qp_event_handler() [all …]
|
D | verbs.c | 107 pd->uobject = NULL; in ib_alloc_pd() 135 ah->uobject = NULL; in ib_create_ah() 234 srq->uobject = NULL; in ib_create_srq() 296 qp->uobject = NULL; in ib_create_qp() 619 cq->uobject = NULL; in ib_create_cq() 664 mr->uobject = NULL; in ib_get_dma_mr() 690 mr->uobject = NULL; in ib_reg_phys_mr() 767 mr->uobject = NULL; in ib_alloc_fast_reg_mr() 814 mw->uobject = NULL; in ib_alloc_mw()
|
D | uverbs.h | 117 struct ib_uobject uobject; member 128 struct ib_uobject uobject; member
|
/drivers/infiniband/hw/mlx4/ |
D | srq.c | 104 if (pd->uobject) { in mlx4_ib_create_srq() 112 srq->umem = ib_umem_get(pd->uobject->context, ucmd.buf_addr, in mlx4_ib_create_srq() 128 err = mlx4_ib_db_map_user(to_mucontext(pd->uobject->context), in mlx4_ib_create_srq() 177 if (pd->uobject) in mlx4_ib_create_srq() 188 if (pd->uobject) in mlx4_ib_create_srq() 189 mlx4_ib_db_unmap_user(to_mucontext(pd->uobject->context), &srq->db); in mlx4_ib_create_srq() 197 if (pd->uobject) in mlx4_ib_create_srq() 203 if (!pd->uobject) in mlx4_ib_create_srq() 264 if (srq->uobject) { in mlx4_ib_destroy_srq() 265 mlx4_ib_db_unmap_user(to_mucontext(srq->uobject->context), &msrq->db); in mlx4_ib_destroy_srq()
|
D | qp.c | 465 err = set_rq_size(dev, &init_attr->cap, !!pd->uobject, !!init_attr->srq, qp); in create_qp_common() 469 if (pd->uobject) { in create_qp_common() 483 qp->umem = ib_umem_get(pd->uobject->context, ucmd.buf_addr, in create_qp_common() 500 err = mlx4_ib_db_map_user(to_mucontext(pd->uobject->context), in create_qp_common() 577 if (pd->uobject) { in create_qp_common() 579 mlx4_ib_db_unmap_user(to_mucontext(pd->uobject->context), in create_qp_common() 590 if (pd->uobject) in create_qp_common() 596 if (!pd->uobject && !init_attr->srq) in create_qp_common() 679 mlx4_ib_db_unmap_user(to_mucontext(qp->ibqp.uobject->context), in destroy_qp_common() 709 (pd->uobject || init_attr->qp_type != IB_QPT_UD)) in mlx4_ib_create_qp() [all …]
|
D | cq.c | 365 if (ibcq->uobject) { in mlx4_ib_resize_cq() 389 if (ibcq->uobject) { in mlx4_ib_resize_cq() 416 if (!ibcq->uobject) in mlx4_ib_resize_cq() 441 if (cq->uobject) { in mlx4_ib_destroy_cq() 442 mlx4_ib_db_unmap_user(to_mucontext(cq->uobject->context), &mcq->db); in mlx4_ib_destroy_cq()
|
D | mr.c | 136 mr->umem = ib_umem_get(pd->uobject->context, start, length, in mlx4_ib_reg_user_mr()
|
/drivers/infiniband/hw/ehca/ |
D | ehca_uverbs.c | 255 struct ib_uobject *uobject; in ehca_mmap() local 267 if (!cq->ib_cq.uobject || cq->ib_cq.uobject->context != context) in ehca_mmap() 288 uobject = IS_SRQ(qp) ? qp->ib_srq.uobject : qp->ib_qp.uobject; in ehca_mmap() 289 if (!uobject || uobject->context != context) in ehca_mmap()
|
D | ehca_qp.c | 612 if (pd->uobject && udata) in internal_create_qp() 613 context = pd->uobject->context; in internal_create_qp() 961 struct ib_uobject *uobject); 1055 internal_destroy_qp(pd->device, my_qp, my_qp->ib_srq.uobject); in ehca_create_srq() 1387 if (!ibqp->uobject) { in internal_modify_qp() 2131 struct ib_uobject *uobject) in internal_destroy_qp() argument 2144 if (uobject) { in internal_destroy_qp() 2229 qp->uobject); in ehca_destroy_qp() 2236 srq->uobject); in ehca_destroy_srq()
|
D | ehca_cq.c | 335 if (cq->uobject) { in ehca_destroy_cq()
|
D | ehca_mrmw.c | 325 e_mr->umem = ib_umem_get(pd->uobject->context, start, length, in ehca_reg_user_mr() 1539 e_mr->ib.ib_mr.uobject = NULL; in ehca_reg_internal_maxmr()
|
/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 477 if (pd->uobject) { in mthca_create_srq() 478 context = to_mucontext(pd->uobject->context); in mthca_create_srq() 499 if (err && pd->uobject) in mthca_create_srq() 524 if (srq->uobject) { in mthca_destroy_srq() 525 context = to_mucontext(srq->uobject->context); in mthca_destroy_srq() 559 if (pd->uobject) { in mthca_create_qp() 560 context = to_mucontext(pd->uobject->context); in mthca_create_qp() 598 if (err && pd->uobject) { in mthca_create_qp() 599 context = to_mucontext(pd->uobject->context); in mthca_create_qp() 618 if (pd->uobject) in mthca_create_qp() [all …]
|
D | mthca_srq.c | 106 if (pd->ibpd.uobject) in mthca_tavor_init_srq_context() 108 cpu_to_be32(to_mucontext(pd->ibpd.uobject->context)->uar.index); in mthca_tavor_init_srq_context() 132 if (pd->ibpd.uobject) in mthca_arbel_init_srq_context() 134 cpu_to_be32(to_mucontext(pd->ibpd.uobject->context)->uar.index); in mthca_arbel_init_srq_context() 155 if (pd->ibpd.uobject) in mthca_alloc_srq_buf() 239 if (!pd->ibpd.uobject) { in mthca_alloc_srq() 309 if (!pd->ibpd.uobject) in mthca_alloc_srq() 316 if (!pd->ibpd.uobject && mthca_is_memfree(dev)) in mthca_alloc_srq() 365 if (!srq->ibsrq.uobject) { in mthca_free_srq()
|
D | mthca_qp.c | 615 if (qp->ibqp.uobject) in __mthca_modify_qp() 617 cpu_to_be32(to_mucontext(qp->ibqp.uobject->context)->uar.index); in __mthca_modify_qp() 659 u8 sched_queue = ibqp->uobject ? 0x2 : 0x1; in __mthca_modify_qp() 827 if (new_state == IB_QPS_RESET && !qp->ibqp.uobject) { in __mthca_modify_qp() 950 return pd->ibpd.uobject ? max_data_size - MTHCA_INLINE_HEADER_SIZE : 0; in mthca_max_inline_data() 1047 if (pd->ibpd.uobject) in mthca_alloc_wqe_buf() 1190 if (pd->ibpd.uobject) in mthca_alloc_qp_common() 1460 if (!qp->ibqp.uobject) { in mthca_free_qp()
|
/drivers/infiniband/hw/nes/ |
D | nes_verbs.c | 573 nesmr->ibmw.uobject = NULL; in nes_dealloc_fmr() 934 if ((ibpd->uobject) && (ibpd->uobject->context)) { in nes_dealloc_pd() 935 nesucontext = to_nesucontext(ibpd->uobject->context); in nes_dealloc_pd() 1280 if ((ibpd->uobject) && (ibpd->uobject->context)) { in nes_create_qp() 1282 nes_ucontext = to_nesucontext(ibpd->uobject->context); in nes_create_qp() 1303 nes_ucontext = to_nesucontext(ibpd->uobject->context); in nes_create_qp() 1470 if (ibpd->uobject) { in nes_create_qp() 1550 if ((ibqp->uobject)&&(ibqp->uobject->context)) { in nes_destroy_qp() 1551 nes_ucontext = to_nesucontext(ibqp->uobject->context); in nes_destroy_qp() 2262 region = ib_umem_get(pd->uobject->context, start, length, acc, 0); in nes_reg_user_mr() [all …]
|
/drivers/infiniband/hw/amso1100/ |
D | c2_provider.c | 259 if (pd->uobject) { in c2_create_qp() 266 if (err && pd->uobject) { in c2_create_qp() 454 c2mr->umem = ib_umem_get(pd->uobject->context, start, length, acc, 0); in c2_reg_user_mr()
|
/drivers/infiniband/hw/cxgb3/ |
D | iwch_provider.c | 624 mhp->umem = ib_umem_get(pd->uobject->context, start, length, acc, 0); in iwch_reg_user_mr() 854 ucontext = ib_qp->uobject ? to_iwch_ucontext(ib_qp->uobject->context) in iwch_destroy_qp() 915 ucontext = pd->uobject ? to_iwch_ucontext(pd->uobject->context) : NULL; in iwch_create_qp()
|
D | iwch_qp.c | 840 if (qhp->ibqp.uobject) in flush_qp() 884 if (!qhp->ibqp.uobject) in rdma_init() 1022 if (qhp->ibqp.uobject) in iwch_modify_qp()
|
/drivers/infiniband/hw/ipath/ |
D | ipath_srq.c | 149 ibpd->uobject->context, in ipath_create_srq()
|
D | ipath_mr.c | 198 umem = ib_umem_get(pd->uobject->context, start, length, in ipath_reg_user_mr()
|
D | ipath_qp.c | 899 ibpd->uobject->context, in ipath_create_qp()
|