Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dmr.c66 err = mlx4_mr_alloc(to_mdev(pd->device)->dev, to_mpd(pd)->pdn, 0, in mlx4_ib_get_dma_mr()
159 err = mlx4_mr_alloc(dev->dev, to_mpd(pd)->pdn, virt_addr, length, in mlx4_ib_reg_user_mr()
210 to_mpd(pd)->pdn); in mlx4_ib_rereg_user_mr()
299 err = mlx4_mw_alloc(dev->dev, to_mpd(pd)->pdn, in mlx4_ib_alloc_mw()
364 err = mlx4_mr_alloc(dev->dev, to_mpd(pd)->pdn, 0, 0, 0, in mlx4_ib_alloc_fast_reg_mr()
445 err = mlx4_fmr_alloc(dev->dev, to_mpd(pd)->pdn, convert_access(acc), in mlx4_ib_fmr_alloc()
Dah.c48 ah->av.ib.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); in create_ib_ah()
91 ah->av.eth.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); in create_iboe_ah()
Dsrq.c185 err = mlx4_srq_alloc(dev->dev, to_mpd(pd)->pdn, cqn, xrcdn, &srq->mtt, in mlx4_ib_create_srq()
Dmlx4_ib.h568 static inline struct mlx4_ib_pd *to_mpd(struct ib_pd *ibpd) in to_mpd() function
Dqp.c251 av->port_pd = cpu_to_be32((qp->port << 24) | to_mpd(qp->ibqp.pd)->pdn); in post_nop_wqe()
957 return to_mpd(to_mxrcd(qp->ibqp.xrcd)->pd); in get_pd()
959 return to_mpd(qp->ibqp.pd); in get_pd()
Dmain.c750 mlx4_pd_free(to_mdev(pd->device)->dev, to_mpd(pd)->pdn); in mlx4_ib_dealloc_pd()
/linux-4.1.27/drivers/infiniband/hw/mthca/
Dmthca_provider.c401 mthca_pd_free(to_mdev(pd->device), to_mpd(pd)); in mthca_dealloc_pd()
417 err = mthca_create_ah(to_mdev(pd->device), to_mpd(pd), ah_attr, ah); in mthca_ah_create()
469 err = mthca_alloc_srq(to_mdev(pd->device), to_mpd(pd), in mthca_create_srq()
565 err = mthca_alloc_qp(to_mdev(pd->device), to_mpd(pd), in mthca_create_qp()
600 err = mthca_alloc_sqp(to_mdev(pd->device), to_mpd(pd), in mthca_create_qp()
880 to_mpd(pd)->pd_num, in mthca_get_dma_mr()
955 to_mpd(pd)->pd_num, in mthca_reg_phys_mr()
959 to_mpd(pd)->pd_num, in mthca_reg_phys_mr()
1057 err = mthca_mr_alloc(dev, to_mpd(pd)->pd_num, shift, virt, length, in mthca_reg_user_mr()
1099 err = mthca_fmr_alloc(to_mdev(pd->device), to_mpd(pd)->pd_num, in mthca_alloc_fmr()
Dmthca_provider.h314 static inline struct mthca_pd *to_mpd(struct ib_pd *ibpd) in to_mpd() function
Dmthca_qp.c693 qp_context->pd = cpu_to_be32(to_mpd(ibqp->pd)->pd_num); in __mthca_modify_qp()
1468 atomic_dec(&(to_mpd(qp->ibqp.pd)->sqp_count)); in mthca_free_qp()
1538 data->lkey = cpu_to_be32(to_mpd(sqp->qp.ibqp.pd)->ntmr.ibmr.lkey); in build_mlx_header()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dmr.c647 seg->flags_pd = cpu_to_be32(to_mpd(pd)->pdn | MLX5_MKEY_LEN64); in mlx5_ib_get_dma_mr()
826 mr->mmr.pd = to_mpd(pd)->pdn; in reg_umr()
999 in->seg.flags_pd = cpu_to_be32(to_mpd(pd)->pdn); in reg_create()
1248 in->seg.flags_pd = cpu_to_be32(to_mpd(pd)->pdn); in mlx5_ib_create_mr()
1264 err = mlx5_core_create_psv(dev->mdev, to_mpd(pd)->pdn, in mlx5_ib_create_mr()
1364 in->seg.flags_pd = cpu_to_be32(to_mpd(pd)->pdn); in mlx5_ib_alloc_fast_reg_mr()
Dqp.c936 qp->pa_lkey = to_mpd(pd)->pa_lkey; in create_qp_common()
956 in->ctx.flags_pd = cpu_to_be32(to_mpd(pd ? pd : devr->p0)->pdn); in create_qp_common()
1116 return to_mpd(qp->ibqp.pd); in get_pd()
1660 context->flags_pd = cpu_to_be32(pd ? pd->pdn : to_mpd(dev->devr.p0)->pdn); in __mlx5_ib_modify_qp()
2034 seg->flags_pd = cpu_to_be32(to_mpd(umrwr->pd)->pdn); in set_reg_mkey_segment()
2669 err = set_frwr_li_wr(&seg, wr, &size, mdev, to_mpd(ibqp->pd), qp); in mlx5_ib_post_send()
2682 err = set_frwr_li_wr(&seg, wr, &size, mdev, to_mpd(ibqp->pd), qp); in mlx5_ib_post_send()
Dsrq.c304 in->ctx.pd = cpu_to_be32(to_mpd(pd)->pdn); in mlx5_ib_create_srq()
Dmlx5_ib.h481 static inline struct mlx5_ib_pd *to_mpd(struct ib_pd *ibpd) in to_mpd() function
Dmain.c695 struct mlx5_ib_pd *mpd = to_mpd(pd); in mlx5_ib_dealloc_pd()