Searched refs:to_hr_pd (Results 1 – 4 of 4) sorted by relevance
50 struct hns_roce_pd *pd = to_hr_pd(ibpd); in hns_roce_alloc_pd()80 ida_free(&hr_dev->pd_ida.ida, (int)to_hr_pd(pd)->pdn); in hns_roce_dealloc_pd()
198 mr->pd = to_hr_pd(pd)->pdn; in hns_roce_get_dma_mr()236 mr->pd = to_hr_pd(pd)->pdn; in hns_roce_reg_user_mr()301 mr->pd = to_hr_pd(pd)->pdn; in hns_roce_rereg_user_mr()375 mr->pd = to_hr_pd(pd)->pdn; in hns_roce_alloc_mr()548 mw->pdn = to_hr_pd(ibmw->pd)->pdn; in hns_roce_alloc_mw()
991 static inline struct hns_roce_pd *to_hr_pd(struct ib_pd *ibpd) in to_hr_pd() function
491 hr_reg_write(ud_sq_wqe, UD_SEND_WQE_PD, to_hr_pd(qp->ibqp.pd)->pdn); in set_ud_wqe()2555 free_mr->rsv_pd = to_hr_pd(pd); in free_mr_init_pd()4227 return ib_pd ? to_hr_pd(ib_pd)->pdn : 0; in get_pdn()5588 hr_reg_write(ctx, SRQC_PD, to_hr_pd(srq->ibsrq.pd)->pdn); in hns_roce_v2_write_srqc()