/linux-4.1.27/drivers/infiniband/core/ |
D | uverbs_cmd.c | 216 put_uobj_read(pd->uobject); in put_pd_read() 226 put_uobj_read(cq->uobject); in put_cq_read() 236 put_uobj_read(ah->uobject); in put_ah_read() 254 put_uobj_read(qp->uobject); in put_qp_read() 259 put_uobj_write(qp->uobject); in put_qp_write() 269 put_uobj_read(srq->uobject); in put_srq_read() 564 pd->uobject = uobj; in ib_uverbs_alloc_pd() 776 init_uobj(&obj->uobject, 0, file->ucontext, &xrcd_lock_class); in ib_uverbs_open_xrcd() 778 down_write(&obj->uobject.mutex); in ib_uverbs_open_xrcd() 797 obj->uobject.object = xrcd; in ib_uverbs_open_xrcd() [all …]
|
D | uverbs_main.c | 242 container_of(uobj, struct ib_uqp_object, uevent.uobject); in ib_uverbs_cleanup_ucontext() 258 container_of(uobj, struct ib_uevent_object, uobject); in ib_uverbs_cleanup_ucontext() 270 container_of(uobj, struct ib_ucq_object, uobject); in ib_uverbs_cleanup_ucontext() 290 container_of(uobj, struct ib_uxrcd_object, uobject); in ib_uverbs_cleanup_ucontext() 460 uobj = container_of(cq->uobject, struct ib_ucq_object, uobject); in ib_uverbs_comp_handler() 462 entry->desc.comp.cq_handle = cq->uobject->user_handle; in ib_uverbs_comp_handler() 509 struct ib_ucq_object *uobj = container_of(event->element.cq->uobject, in ib_uverbs_cq_event_handler() 510 struct ib_ucq_object, uobject); in ib_uverbs_cq_event_handler() 512 ib_uverbs_async_handler(uobj->uverbs_file, uobj->uobject.user_handle, in ib_uverbs_cq_event_handler() 522 if (!event->element.qp->uobject || !event->element.qp->uobject->live) in ib_uverbs_qp_event_handler() [all …]
|
D | uverbs.h | 137 struct ib_uobject uobject; member 143 struct ib_uobject uobject; member 159 struct ib_uobject uobject; member
|
D | verbs.c | 159 pd->uobject = NULL; in ib_alloc_pd() 187 ah->uobject = NULL; in ib_create_ah() 306 srq->uobject = NULL; in ib_create_srq() 454 qp->uobject = NULL; in ib_create_qp() 1023 cq->uobject = NULL; in ib_create_cq() 1073 mr->uobject = NULL; in ib_get_dma_mr() 1104 mr->uobject = NULL; in ib_reg_phys_mr() 1186 mr->uobject = NULL; in ib_create_mr() 1224 mr->uobject = NULL; in ib_alloc_fast_reg_mr() 1271 mw->uobject = NULL; in ib_alloc_mw()
|
/linux-4.1.27/drivers/infiniband/hw/ehca/ |
D | ehca_uverbs.c | 257 struct ib_uobject *uobject; in ehca_mmap() local 269 if (!cq->ib_cq.uobject || cq->ib_cq.uobject->context != context) in ehca_mmap() 290 uobject = IS_SRQ(qp) ? qp->ib_srq.uobject : qp->ib_qp.uobject; in ehca_mmap() 291 if (!uobject || uobject->context != context) in ehca_mmap()
|
D | ehca_qp.c | 619 if (pd->uobject && udata) { in internal_create_qp() 621 context = pd->uobject->context; in internal_create_qp() 962 struct ib_uobject *uobject); 1059 internal_destroy_qp(pd->device, my_qp, my_qp->ib_srq.uobject); in ehca_create_srq() 1274 if (ibqp->uobject) in internal_modify_qp() 1394 if (!ibqp->uobject) { in internal_modify_qp() 2132 struct ib_uobject *uobject) in internal_destroy_qp() argument 2146 if (uobject) { in internal_destroy_qp() 2232 qp->uobject); in ehca_destroy_qp() 2239 srq->uobject); in ehca_destroy_srq()
|
D | ehca_cq.c | 325 if (cq->uobject) { in ehca_destroy_cq()
|
D | ehca_mrmw.c | 361 e_mr->umem = ib_umem_get(pd->uobject->context, start, length, in ehca_reg_user_mr() 1670 e_mr->ib.ib_mr.uobject = NULL; in ehca_reg_internal_maxmr()
|
/linux-4.1.27/drivers/infiniband/hw/mlx4/ |
D | srq.c | 108 if (pd->uobject) { in mlx4_ib_create_srq() 116 srq->umem = ib_umem_get(pd->uobject->context, ucmd.buf_addr, in mlx4_ib_create_srq() 132 err = mlx4_ib_db_map_user(to_mucontext(pd->uobject->context), in mlx4_ib_create_srq() 193 if (pd->uobject) in mlx4_ib_create_srq() 204 if (pd->uobject) in mlx4_ib_create_srq() 205 mlx4_ib_db_unmap_user(to_mucontext(pd->uobject->context), &srq->db); in mlx4_ib_create_srq() 213 if (pd->uobject) in mlx4_ib_create_srq() 219 if (!pd->uobject) in mlx4_ib_create_srq() 280 if (srq->uobject) { in mlx4_ib_destroy_srq() 281 mlx4_ib_db_unmap_user(to_mucontext(srq->uobject->context), &msrq->db); in mlx4_ib_destroy_srq()
|
D | cq.c | 388 if (ibcq->uobject) { in mlx4_ib_resize_cq() 412 if (ibcq->uobject) { in mlx4_ib_resize_cq() 446 if (!ibcq->uobject) in mlx4_ib_resize_cq() 472 if (cq->uobject) { in mlx4_ib_destroy_cq() 473 mlx4_ib_db_unmap_user(to_mucontext(cq->uobject->context), &mcq->db); in mlx4_ib_destroy_cq()
|
D | qp.c | 706 err = set_rq_size(dev, &init_attr->cap, !!pd->uobject, qp_has_rq(init_attr), qp); in create_qp_common() 710 if (pd->uobject) { in create_qp_common() 724 qp->umem = ib_umem_get(pd->uobject->context, ucmd.buf_addr, in create_qp_common() 741 err = mlx4_ib_db_map_user(to_mucontext(pd->uobject->context), in create_qp_common() 873 if (pd->uobject) { in create_qp_common() 875 mlx4_ib_db_unmap_user(to_mucontext(pd->uobject->context), &qp->db); in create_qp_common() 885 if (pd->uobject) in create_qp_common() 891 if (!pd->uobject && qp_has_rq(init_attr)) in create_qp_common() 1049 mlx4_ib_db_unmap_user(to_mucontext(qp->ibqp.uobject->context), in destroy_qp_common() 1193 destroy_qp_common(dev, mqp, !!pd->ibpd.uobject); in mlx4_ib_destroy_qp() [all …]
|
D | mr.c | 149 mr->umem = ib_umem_get(pd->uobject->context, start, length, in mlx4_ib_reg_user_mr() 230 mmr->umem = ib_umem_get(mr->uobject->context, start, length, in mlx4_ib_rereg_user_mr()
|
/linux-4.1.27/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 450 if (pd->uobject) { in mthca_create_srq() 451 context = to_mucontext(pd->uobject->context); in mthca_create_srq() 472 if (err && pd->uobject) in mthca_create_srq() 497 if (srq->uobject) { in mthca_destroy_srq() 498 context = to_mucontext(srq->uobject->context); in mthca_destroy_srq() 532 if (pd->uobject) { in mthca_create_qp() 533 context = to_mucontext(pd->uobject->context); in mthca_create_qp() 571 if (err && pd->uobject) { in mthca_create_qp() 572 context = to_mucontext(pd->uobject->context); in mthca_create_qp() 591 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() 238 if (!pd->ibpd.uobject) { in mthca_alloc_srq() 300 if (!pd->ibpd.uobject) in mthca_alloc_srq() 307 if (!pd->ibpd.uobject && mthca_is_memfree(dev)) in mthca_alloc_srq() 353 if (!srq->ibsrq.uobject) { in mthca_free_srq()
|
D | mthca_qp.c | 609 if (qp->ibqp.uobject) in __mthca_modify_qp() 611 cpu_to_be32(to_mucontext(qp->ibqp.uobject->context)->uar.index); in __mthca_modify_qp() 653 u8 sched_queue = ibqp->uobject ? 0x2 : 0x1; in __mthca_modify_qp() 818 if (new_state == IB_QPS_RESET && !qp->ibqp.uobject) { in __mthca_modify_qp() 942 return pd->ibpd.uobject ? max_data_size - MTHCA_INLINE_HEADER_SIZE : 0; in mthca_max_inline_data() 1039 if (pd->ibpd.uobject) in mthca_alloc_wqe_buf() 1182 if (pd->ibpd.uobject) in mthca_alloc_qp_common() 1455 if (!qp->ibqp.uobject) { in mthca_free_qp()
|
/linux-4.1.27/drivers/infiniband/hw/mlx5/ |
D | srq.c | 105 srq->umem = ib_umem_get(pd->uobject->context, ucmd.buf_addr, buf_size, in create_srq_user() 131 err = mlx5_ib_db_map_user(to_mucontext(pd->uobject->context), in create_srq_user() 222 mlx5_ib_db_unmap_user(to_mucontext(pd->uobject->context), &srq->db); in destroy_srq_user() 279 if (pd->uobject) in mlx5_ib_create_srq() 286 pd->uobject ? "user" : "kernel", err); in mlx5_ib_create_srq() 318 if (pd->uobject) in mlx5_ib_create_srq() 333 if (pd->uobject) in mlx5_ib_create_srq() 401 if (srq->uobject) { in mlx5_ib_destroy_srq() 402 mlx5_ib_db_unmap_user(to_mucontext(srq->uobject->context), &msrq->db); in mlx5_ib_destroy_srq()
|
D | main.c | 697 if (!pd->uobject) in mlx5_ib_dealloc_pd() 1021 qp->uobject = NULL; in create_umr_res() 1100 devr->p0->uobject = NULL; in create_dev_resources() 1109 devr->c0->uobject = NULL; in create_dev_resources() 1151 devr->s0->uobject = NULL; in create_dev_resources()
|
D | qp.c | 622 context = to_mucontext(pd->uobject->context); in create_user_qp() 654 qp->umem = ib_umem_get(pd->uobject->context, ucmd.buf_addr, in create_user_qp() 727 context = to_mucontext(pd->uobject->context); in destroy_qp_user() 895 if (pd && pd->uobject) { in create_qp_common() 909 qp, (pd && pd->uobject) ? &ucmd : NULL); in create_qp_common() 916 if (pd->uobject) { in create_qp_common() 1707 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp() 1753 if (new_state == IB_QPS_RESET && !ibqp->uobject) { in __mlx5_ib_modify_qp() 3103 if (!ibqp->uobject) { in mlx5_ib_query_qp()
|
D | cq.c | 836 if (cq->uobject) in mlx5_ib_destroy_cq() 837 context = cq->uobject->context; in mlx5_ib_destroy_cq()
|
D | mr.c | 1047 umem = ib_umem_get(pd->uobject->context, start, length, access_flags, in mlx5_ib_reg_user_mr()
|
/linux-4.1.27/include/rdma/ |
D | ib_verbs.h | 1197 struct ib_uobject *uobject; member 1213 struct ib_uobject *uobject; member 1220 struct ib_uobject *uobject; member 1231 struct ib_uobject *uobject; member 1258 struct ib_uobject *uobject; member 1268 struct ib_uobject *uobject; member 1277 struct ib_uobject *uobject; member 1407 struct ib_uobject *uobject; member
|
/linux-4.1.27/drivers/infiniband/hw/amso1100/ |
D | c2_provider.c | 252 if (pd->uobject) { in c2_create_qp() 259 if (err && pd->uobject) { in c2_create_qp() 447 c2mr->umem = ib_umem_get(pd->uobject->context, start, length, acc, 0); in c2_reg_user_mr()
|
/linux-4.1.27/drivers/infiniband/hw/nes/ |
D | nes_verbs.c | 844 if ((ibpd->uobject) && (ibpd->uobject->context)) { in nes_dealloc_pd() 845 nesucontext = to_nesucontext(ibpd->uobject->context); in nes_dealloc_pd() 1196 if ((ibpd->uobject) && (ibpd->uobject->context)) { in nes_create_qp() 1198 nes_ucontext = to_nesucontext(ibpd->uobject->context); in nes_create_qp() 1219 nes_ucontext = to_nesucontext(ibpd->uobject->context); in nes_create_qp() 1387 if (ibpd->uobject) { in nes_create_qp() 1502 if ((ibqp->uobject)&&(ibqp->uobject->context)) { in nes_destroy_qp() 1503 nes_ucontext = to_nesucontext(ibqp->uobject->context); in nes_destroy_qp() 2336 region = ib_umem_get(pd->uobject->context, start, length, acc, 0); in nes_reg_user_mr() 2586 nes_ucontext = to_nesucontext(pd->uobject->context); in nes_reg_user_mr()
|
/linux-4.1.27/drivers/infiniband/hw/cxgb3/ |
D | iwch_provider.c | 638 mhp->umem = ib_umem_get(pd->uobject->context, start, length, acc, 0); in iwch_reg_user_mr() 877 ucontext = ib_qp->uobject ? to_iwch_ucontext(ib_qp->uobject->context) in iwch_destroy_qp() 938 ucontext = pd->uobject ? to_iwch_ucontext(pd->uobject->context) : NULL; in iwch_create_qp()
|
D | iwch_qp.c | 860 if (qhp->ibqp.uobject) { in flush_qp() 917 if (!qhp->ibqp.uobject) in rdma_init() 1056 if (qhp->ibqp.uobject) in iwch_modify_qp()
|
/linux-4.1.27/drivers/infiniband/hw/cxgb4/ |
D | qp.c | 1172 if (qhp->ibqp.uobject) { in flush_qp() 1299 if (!qhp->ibqp.uobject) in rdma_init() 1598 ucontext = ib_qp->uobject ? in c4iw_destroy_qp() 1599 to_c4iw_ucontext(ib_qp->uobject->context) : NULL; in c4iw_destroy_qp() 1649 ucontext = pd->uobject ? to_c4iw_ucontext(pd->uobject->context) : NULL; in c4iw_create_qp()
|
D | cq.c | 861 ucontext = ib_cq->uobject ? to_c4iw_ucontext(ib_cq->uobject->context) in c4iw_destroy_cq()
|
D | mem.c | 732 mhp->umem = ib_umem_get(pd->uobject->context, start, length, acc, 0); in c4iw_reg_user_mr()
|
/linux-4.1.27/drivers/infiniband/hw/usnic/ |
D | usnic_ib_verbs.c | 466 ucontext = to_uucontext(pd->uobject->context); in usnic_ib_create_qp() 629 usnic_uiom_reg_release(mr->umem, ibmr->pd->uobject->context->closing); in usnic_ib_dereg_mr()
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
D | ipath_srq.c | 155 ibpd->uobject->context, in ipath_create_srq()
|
D | ipath_mr.c | 200 umem = ib_umem_get(pd->uobject->context, start, length, in ipath_reg_user_mr()
|
D | ipath_qp.c | 901 ibpd->uobject->context, in ipath_create_qp()
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
D | qib_srq.c | 151 qib_create_mmap_info(dev, s, ibpd->uobject->context, in qib_create_srq()
|
D | qib_mr.c | 244 umem = ib_umem_get(pd->uobject->context, start, length, in qib_reg_user_mr()
|
D | qib_qp.c | 1148 ibpd->uobject->context, in qib_create_qp()
|
/linux-4.1.27/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 905 mr->umem = ib_umem_get(ibpd->uobject->context, start, len, acc, 0); in ocrdma_reg_user_mr() 1190 if (ibpd->uobject && attrs->qp_type == IB_QPT_GSI) { in ocrdma_check_qp_params()
|