Searched refs:to_mpd (Results 1 – 14 of 14) sorted by relevance
/linux-4.4.14/drivers/infiniband/hw/mlx4/ |
D | mr.c | 66 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() 347 err = mlx4_mw_alloc(dev->dev, to_mpd(pd)->pdn, in mlx4_ib_alloc_mw() 417 err = mlx4_mr_alloc(dev->dev, to_mpd(pd)->pdn, 0, 0, 0, in mlx4_ib_alloc_mr() 457 err = mlx4_fmr_alloc(dev->dev, to_mpd(pd)->pdn, convert_access(acc), in mlx4_ib_fmr_alloc()
|
D | ah.c | 48 ah->av.ib.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); in create_ib_ah() 104 ah->av.eth.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); in create_iboe_ah()
|
D | srq.c | 190 err = mlx4_srq_alloc(dev->dev, to_mpd(pd)->pdn, cqn, xrcdn, &srq->mtt, in mlx4_ib_create_srq()
|
D | mlx4_ib.h | 620 static inline struct mlx4_ib_pd *to_mpd(struct ib_pd *ibpd) in to_mpd() function
|
D | qp.c | 252 av->port_pd = cpu_to_be32((qp->port << 24) | to_mpd(qp->ibqp.pd)->pdn); in post_nop_wqe() 976 return to_mpd(to_mxrcd(qp->ibqp.xrcd)->pd); in get_pd() 978 return to_mpd(qp->ibqp.pd); in get_pd()
|
D | main.c | 1170 mlx4_pd_free(to_mdev(pd->device)->dev, to_mpd(pd)->pdn); in mlx4_ib_dealloc_pd()
|
/linux-4.4.14/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 405 mthca_pd_free(to_mdev(pd->device), to_mpd(pd)); in mthca_dealloc_pd() 421 err = mthca_create_ah(to_mdev(pd->device), to_mpd(pd), ah_attr, ah); in mthca_ah_create() 473 err = mthca_alloc_srq(to_mdev(pd->device), to_mpd(pd), in mthca_create_srq() 569 err = mthca_alloc_qp(to_mdev(pd->device), to_mpd(pd), in mthca_create_qp() 604 err = mthca_alloc_sqp(to_mdev(pd->device), to_mpd(pd), in mthca_create_qp() 888 to_mpd(pd)->pd_num, in mthca_get_dma_mr() 963 to_mpd(pd)->pd_num, in mthca_reg_phys_mr() 967 to_mpd(pd)->pd_num, in mthca_reg_phys_mr() 1065 err = mthca_mr_alloc(dev, to_mpd(pd)->pd_num, shift, virt, length, in mthca_reg_user_mr() 1107 err = mthca_fmr_alloc(to_mdev(pd->device), to_mpd(pd)->pd_num, in mthca_alloc_fmr()
|
D | mthca_provider.h | 314 static inline struct mthca_pd *to_mpd(struct ib_pd *ibpd) in to_mpd() function
|
D | mthca_qp.c | 693 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.4.14/drivers/infiniband/hw/mlx5/ |
D | mr.c | 656 seg->flags_pd = cpu_to_be32(to_mpd(pd)->pdn | MLX5_MKEY_LEN64); in mlx5_ib_get_dma_mr() 835 mr->mmr.pd = to_mpd(pd)->pdn; in reg_umr() 1007 in->seg.flags_pd = cpu_to_be32(to_mpd(pd)->pdn); in reg_create() 1319 in->seg.flags_pd = cpu_to_be32(to_mpd(pd)->pdn); in mlx5_ib_alloc_mr() 1345 err = mlx5_core_create_psv(dev->mdev, to_mpd(pd)->pdn, in mlx5_ib_alloc_mr()
|
D | srq.c | 303 in->ctx.pd = cpu_to_be32(to_mpd(pd)->pdn); in mlx5_ib_create_srq()
|
D | qp.c | 947 in->ctx.flags_pd = cpu_to_be32(to_mpd(pd ? pd : devr->p0)->pdn); in create_qp_common() 1108 return to_mpd(qp->ibqp.pd); in get_pd() 1646 context->flags_pd = cpu_to_be32(pd ? pd->pdn : to_mpd(dev->devr.p0)->pdn); in __mlx5_ib_modify_qp() 2026 seg->flags_pd = cpu_to_be32(to_mpd(umrwr->pd)->pdn); in set_reg_mkey_segment() 2438 struct mlx5_ib_pd *pd = to_mpd(qp->ibqp.pd); in set_reg_wr()
|
D | mlx5_ib.h | 466 static inline struct mlx5_ib_pd *to_mpd(struct ib_pd *ibpd) in to_mpd() function
|
D | main.c | 830 struct mlx5_ib_pd *mpd = to_mpd(pd); in mlx5_ib_dealloc_pd()
|