Home
last modified time | relevance | path

Searched refs:to_mucontext (Results 1 – 14 of 14) sorted by relevance

/linux-4.1.27/drivers/infiniband/hw/mthca/
Dmthca_provider.c347 mthca_cleanup_user_db_tab(to_mdev(context->device), &to_mucontext(context)->uar, in mthca_dealloc_ucontext()
348 to_mucontext(context)->db_tab); in mthca_dealloc_ucontext()
349 mthca_uar_free(to_mdev(context->device), &to_mucontext(context)->uar); in mthca_dealloc_ucontext()
350 kfree(to_mucontext(context)); in mthca_dealloc_ucontext()
364 to_mucontext(context)->uar.pfn, in mthca_mmap_uar()
451 context = to_mucontext(pd->uobject->context); in mthca_create_srq()
498 context = to_mucontext(srq->uobject->context); in mthca_destroy_srq()
533 context = to_mucontext(pd->uobject->context); in mthca_create_qp()
572 context = to_mucontext(pd->uobject->context); in mthca_create_qp()
631 &to_mucontext(qp->uobject->context)->uar, in mthca_destroy_qp()
[all …]
Dmthca_provider.h299 static inline struct mthca_ucontext *to_mucontext(struct ib_ucontext *ibucontext) in to_mucontext() function
Dmthca_srq.c108 cpu_to_be32(to_mucontext(pd->ibpd.uobject->context)->uar.index); in mthca_tavor_init_srq_context()
134 cpu_to_be32(to_mucontext(pd->ibpd.uobject->context)->uar.index); in mthca_arbel_init_srq_context()
Dmthca_qp.c611 cpu_to_be32(to_mucontext(qp->ibqp.uobject->context)->uar.index); in __mthca_modify_qp()
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dsrq.c132 err = mlx4_ib_db_map_user(to_mucontext(pd->uobject->context), in mlx4_ib_create_srq()
205 mlx4_ib_db_unmap_user(to_mucontext(pd->uobject->context), &srq->db); in mlx4_ib_create_srq()
281 mlx4_ib_db_unmap_user(to_mucontext(srq->uobject->context), &msrq->db); in mlx4_ib_destroy_srq()
Dcq.c207 err = mlx4_ib_db_map_user(to_mucontext(context), ucmd.db_addr, in mlx4_ib_create_cq()
212 uar = &to_mucontext(context)->uar; in mlx4_ib_create_cq()
254 mlx4_ib_db_unmap_user(to_mucontext(context), &cq->db); in mlx4_ib_create_cq()
473 mlx4_ib_db_unmap_user(to_mucontext(cq->uobject->context), &mcq->db); in mlx4_ib_destroy_cq()
Dmlx4_ib.h563 static inline struct mlx4_ib_ucontext *to_mucontext(struct ib_ucontext *ibucontext) in to_mucontext() function
Dqp.c741 err = mlx4_ib_db_map_user(to_mucontext(pd->uobject->context), in create_qp_common()
875 mlx4_ib_db_unmap_user(to_mucontext(pd->uobject->context), &qp->db); in create_qp_common()
1049 mlx4_ib_db_unmap_user(to_mucontext(qp->ibqp.uobject->context), in destroy_qp_common()
1526 context->usr_page = cpu_to_be32(to_mucontext(ibqp->uobject->context)->uar.index); in __mlx4_ib_modify_qp()
Dmain.c685 struct mlx4_ib_ucontext *context = to_mucontext(ibcontext); in mlx4_ib_dealloc_ucontext()
704 to_mucontext(context)->uar.pfn, in mlx4_ib_mmap()
711 to_mucontext(context)->uar.pfn + in mlx4_ib_mmap()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dsrq.c131 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()
402 mlx5_ib_db_unmap_user(to_mucontext(srq->uobject->context), &msrq->db); in mlx5_ib_destroy_srq()
Dcq.c641 err = mlx5_ib_db_map_user(to_mucontext(context), ucmd.db_addr, in create_cq_user()
660 *index = to_mucontext(context)->uuari.uars[0].index; in create_cq_user()
665 mlx5_ib_db_unmap_user(to_mucontext(context), &cq->db); in create_cq_user()
674 mlx5_ib_db_unmap_user(to_mucontext(context), &cq->db); in destroy_cq_user()
Dmlx5_ib.h98 static inline struct mlx5_ib_ucontext *to_mucontext(struct ib_ucontext *ibucontext) in to_mucontext() function
Dmain.c527 struct mlx5_ib_ucontext *context = to_mucontext(ibcontext); in mlx5_ib_dealloc_ucontext()
567 struct mlx5_ib_ucontext *context = to_mucontext(ibcontext); in mlx5_ib_mmap()
Dqp.c622 context = to_mucontext(pd->uobject->context); in create_user_qp()
727 context = to_mucontext(pd->uobject->context); in destroy_qp_user()