Home
last modified time | relevance | path

Searched refs:to_mpd (Results 1 – 18 of 18) sorted by relevance

/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_mr.c70 err = mlx4_mr_alloc(to_mdev(pd->device)->dev, to_mpd(pd)->pdn, 0, in mlx4_ib_get_dma_mr()
163 err = mlx4_mr_alloc(dev->dev, to_mpd(pd)->pdn, virt_addr, length, in mlx4_ib_reg_user_mr()
214 to_mpd(pd)->pdn); in mlx4_ib_rereg_user_mr()
354 err = mlx4_mw_alloc(dev->dev, to_mpd(pd)->pdn, in mlx4_ib_alloc_mw()
401 err = mlx4_mr_alloc(dev->dev, to_mpd(pd)->pdn, 0, 0, 0, in mlx4_ib_alloc_mr()
441 err = mlx4_fmr_alloc(dev->dev, to_mpd(pd)->pdn, convert_access(acc), in mlx4_ib_fmr_alloc()
H A Dmlx4_ib_ah.c51 ah->av.ib.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); in create_ib_ah()
106 ah->av.eth.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); in create_iboe_ah()
H A Dmlx4_ib_srq.c185 err = mlx4_srq_alloc(dev->dev, to_mpd(ib_srq->pd)->pdn, cqn, xrcdn, in mlx4_ib_create_srq()
H A Dmlx4_ib.h639 static inline struct mlx4_ib_pd *to_mpd(struct ib_pd *ibpd) in to_mpd() function
H A Dmlx4_ib_qp.c260 av->port_pd = cpu_to_be32((qp->port << 24) | to_mpd(qp->ibqp.pd)->pdn); in post_nop_wqe()
1001 return to_mpd(to_mxrcd(qp->ibqp.xrcd)->pd); in get_pd()
1003 return to_mpd(qp->ibqp.pd); in get_pd()
H A Dmlx4_ib_main.c1141 struct mlx4_ib_pd *pd = to_mpd(ibpd); in mlx4_ib_alloc_pd()
1158 mlx4_pd_free(to_mdev(pd->device)->dev, to_mpd(pd)->pdn); in mlx4_ib_dealloc_pd()
/freebsd/sys/dev/mthca/
H A Dmthca_provider.c367 struct mthca_pd *pd = to_mpd(ibpd); in mthca_alloc_pd()
386 mthca_pd_free(to_mdev(pd->device), to_mpd(pd)); in mthca_dealloc_pd()
396 return mthca_create_ah(to_mdev(ibah->device), to_mpd(ibah->pd), in mthca_ah_create()
433 err = mthca_alloc_srq(to_mdev(ibsrq->device), to_mpd(ibsrq->pd), in mthca_create_srq()
520 err = mthca_alloc_qp(to_mdev(pd->device), to_mpd(pd), in mthca_create_qp()
549 err = mthca_alloc_sqp(to_mdev(pd->device), to_mpd(pd), in mthca_create_qp()
836 to_mpd(pd)->pd_num, in mthca_get_dma_mr()
930 err = mthca_mr_alloc(dev, to_mpd(pd)->pd_num, shift, virt, length, in mthca_reg_user_mr()
971 err = mthca_fmr_alloc(to_mdev(pd->device), to_mpd(pd)->pd_num, in mthca_alloc_fmr()
H A Dmthca_provider.h316 static inline struct mthca_pd *to_mpd(struct ib_pd *ibpd) in to_mpd() function
H A Dmthca_qp.c697 qp_context->pd = cpu_to_be32(to_mpd(ibqp->pd)->pd_num); in __mthca_modify_qp()
1474 atomic_dec(&(to_mpd(qp->ibqp.pd)->sqp_count)); in mthca_free_qp()
1544 data->lkey = cpu_to_be32(to_mpd(sqp->qp.ibqp.pd)->ntmr.ibmr.lkey); in build_mlx_header()
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_qp.c848 attr->qp_type != IB_QPT_XRC_INI) ? to_mpd(pd)->uid : 0; in create_user_qp()
1068 MLX5_SET(create_tis_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_tis()
1076 mlx5_core_destroy_tis(dev->mdev, sq->tisn, to_mpd(pd)->uid); in destroy_raw_packet_qp_tis()
1112 MLX5_SET(create_sq_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_sq()
1196 MLX5_SET(create_rq_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_rq()
1251 MLX5_SET(create_tir_in, in, uid, to_mpd(pd)->uid); in create_raw_packet_qp_tir()
1268 mlx5_core_destroy_tir(dev->mdev, rq->tirn, to_mpd(pd)->uid); in destroy_raw_packet_qp_tir()
1359 to_mpd(qp->ibqp.pd)->uid); in destroy_rss_raw_qp_tir()
1431 MLX5_SET(create_tir_in, in, uid, to_mpd(pd)->uid); in create_rss_raw_qp_tir()
1746 MLX5_SET(qpc, qpc, pd, to_mpd(pd ? pd : devr->p0)->pdn); in create_qp_common()
[all …]
H A Dmlx5_ib_mr.c507 MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); in mlx5_ib_get_dma_mr()
724 mr->mmkey.pd = to_mpd(pd)->pdn; in reg_umr()
913 MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); in reg_create()
1199 mr->mmkey.pd = to_mpd(pd)->pdn; in mlx5_ib_rereg_user_mr()
1372 MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); in mlx5_ib_alloc_mr()
1405 err = mlx5_core_create_psv(dev->mdev, to_mpd(pd)->pdn, in mlx5_ib_alloc_mr()
1500 MLX5_SET(mkc, mkc, pd, to_mpd(pd)->pdn); in mlx5_ib_alloc_mw()
H A Dmlx5_ib_srq.c140 in->uid = (in->type != IB_SRQT_XRC) ? to_mpd(pd)->uid : 0; in create_srq_user()
308 in.pd = to_mpd(ib_srq->pd)->pdn; in mlx5_ib_create_srq()
H A Dmlx5_ib.h838 static inline struct mlx5_ib_pd *to_mpd(struct ib_pd *ibpd) in to_mpd() function
H A Dmlx5_ib_main.c1741 struct mlx5_ib_pd *pd = to_mpd(ibpd); in mlx5_ib_alloc_pd()
1768 struct mlx5_ib_pd *mpd = to_mpd(pd); in mlx5_ib_dealloc_pd()
/freebsd/contrib/ofed/libmlx4/
H A Dmlx4.h319 static inline struct mlx4_pd *to_mpd(struct ibv_pd *ibpd) in to_mpd() function
H A Dverbs.c223 free(to_mpd(pd)); in mlx4_free_pd()
1216 ah->av.port_pd = htobe32(to_mpd(pd)->pdn | (attr->port_num << 24)); in mlx4_create_ah()
/freebsd/contrib/ofed/libmlx5/
H A Dmlx5.h490 static inline struct mlx5_pd *to_mpd(struct ibv_pd *ibpd) in to_mpd() function
H A Dverbs.c162 free(to_mpd(pd)); in mlx5_free_pd()