Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_provider.c351 mthca_cleanup_user_db_tab(to_mdev(context->device), &to_mucontext(context)->uar, in mthca_dealloc_ucontext()
352 to_mucontext(context)->db_tab); in mthca_dealloc_ucontext()
353 mthca_uar_free(to_mdev(context->device), &to_mucontext(context)->uar); in mthca_dealloc_ucontext()
354 kfree(to_mucontext(context)); in mthca_dealloc_ucontext()
368 to_mucontext(context)->uar.pfn, in mthca_mmap_uar()
455 context = to_mucontext(pd->uobject->context); in mthca_create_srq()
502 context = to_mucontext(srq->uobject->context); in mthca_destroy_srq()
537 context = to_mucontext(pd->uobject->context); in mthca_create_qp()
576 context = to_mucontext(pd->uobject->context); in mthca_create_qp()
635 &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.4.14/drivers/infiniband/hw/mlx4/
Dsrq.c133 err = mlx4_ib_db_map_user(to_mucontext(pd->uobject->context), in mlx4_ib_create_srq()
210 mlx4_ib_db_unmap_user(to_mucontext(pd->uobject->context), &srq->db); in mlx4_ib_create_srq()
286 mlx4_ib_db_unmap_user(to_mucontext(srq->uobject->context), &msrq->db); in mlx4_ib_destroy_srq()
Dcq.c215 err = mlx4_ib_db_map_user(to_mucontext(context), ucmd.db_addr, in mlx4_ib_create_cq()
220 uar = &to_mucontext(context)->uar; in mlx4_ib_create_cq()
263 mlx4_ib_db_unmap_user(to_mucontext(context), &cq->db); in mlx4_ib_create_cq()
482 mlx4_ib_db_unmap_user(to_mucontext(cq->uobject->context), &mcq->db); in mlx4_ib_destroy_cq()
Dmain.c955 struct mlx4_ib_ucontext *context = to_mucontext(ibcontext); in mlx4_ib_dealloc_ucontext()
1008 struct mlx4_ib_ucontext *context = to_mucontext(ibcontext); in mlx4_ib_disassociate_ucontext()
1076 struct mlx4_ib_ucontext *mucontext = to_mucontext(context); in mlx4_ib_mmap()
1089 to_mucontext(context)->uar.pfn, in mlx4_ib_mmap()
1103 to_mucontext(context)->uar.pfn + in mlx4_ib_mmap()
Dmlx4_ib.h615 static inline struct mlx4_ib_ucontext *to_mucontext(struct ib_ucontext *ibucontext) in to_mucontext() function
Dqp.c754 err = mlx4_ib_db_map_user(to_mucontext(pd->uobject->context), in create_qp_common()
894 mlx4_ib_db_unmap_user(to_mucontext(pd->uobject->context), &qp->db); in create_qp_common()
1068 mlx4_ib_db_unmap_user(to_mucontext(qp->ibqp.uobject->context), in destroy_qp_common()
1594 context->usr_page = cpu_to_be32(to_mucontext(ibqp->uobject->context)->uar.index); in __mlx4_ib_modify_qp()
/linux-4.4.14/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()
401 mlx5_ib_db_unmap_user(to_mucontext(srq->uobject->context), &msrq->db); in mlx5_ib_destroy_srq()
Dcq.c648 err = mlx5_ib_db_map_user(to_mucontext(context), ucmd.db_addr, in create_cq_user()
667 *index = to_mucontext(context)->uuari.uars[0].index; in create_cq_user()
672 mlx5_ib_db_unmap_user(to_mucontext(context), &cq->db); in create_cq_user()
681 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.c716 struct mlx5_ib_ucontext *context = to_mucontext(ibcontext); in mlx5_ib_dealloc_ucontext()
756 struct mlx5_ib_ucontext *context = to_mucontext(ibcontext); in mlx5_ib_mmap()
Dqp.c614 context = to_mucontext(pd->uobject->context); in create_user_qp()
719 context = to_mucontext(pd->uobject->context); in destroy_qp_user()