to_hr_dev
struct hns_roce_dev *hr_dev = to_hr_dev(ibah->device);
struct hns_roce_dev *hr_dev = to_hr_dev(hr_cq->ib_cq.device);
struct hns_roce_dev *hr_dev = to_hr_dev(hr_cq->ib_cq.device);
struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device);
struct hns_roce_dev *hr_dev = to_hr_dev(uctx->ibucontext.device);
struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device);
struct hns_roce_dev *hr_dev = to_hr_dev(uctx->ibucontext.device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(srq->ibsrq.device);
struct ib_device *ibdev = &(to_hr_dev(qp->ibqp.device))->ib_dev;
struct hns_roce_dev *hr_dev = to_hr_dev(qp->ibqp.device);
struct hns_roce_dev *hr_dev = to_hr_dev(qp->ibqp.device);
struct hns_roce_dev *hr_dev = to_hr_dev(hr_qp->ibqp.device);
struct hns_roce_dev *hr_dev = to_hr_dev(hr_cq->ib_cq.device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibcq->device);
struct hns_roce_dev *hr_dev = to_hr_dev(hr_cq->ib_cq.device);
struct hns_roce_dev *hr_dev = to_hr_dev(hr_cq->ib_cq.device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibcq->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibdev);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(qp->ibqp.device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibdev);
struct hns_roce_dev *hr_dev = to_hr_dev(ibdev);
struct hns_roce_dev *hr_dev = to_hr_dev(ibsrq->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibsrq->device);
struct hns_roce_dev *hr_dev = to_hr_dev(cq->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev);
struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev);
spin_lock_irqsave(&to_hr_dev(ib_dev)->sm_lock, flags);
spin_unlock_irqrestore(&to_hr_dev(ib_dev)->sm_lock, flags);
struct hns_roce_dev *hr_dev = to_hr_dev(uctx->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibcontext->device);
struct hns_roce_dev *hr_dev = to_hr_dev(uctx->device);
if (to_hr_dev(ib_dev)->caps.flags & HNS_ROCE_CAP_FLAG_ROCE_V1_V2)
u64 fw_ver = to_hr_dev(device)->caps.fw_ver;
struct hns_roce_dev *hr_dev = to_hr_dev(device);
struct hns_roce_dev *hr_dev = to_hr_dev(device);
struct hns_roce_dev *hr_dev = to_hr_dev(attr->device);
struct hns_roce_dev *hr_dev = to_hr_dev(attr->device);
struct hns_roce_dev *hr_dev = to_hr_dev(pd->device);
struct hns_roce_dev *hr_dev = to_hr_dev(pd->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device);
struct hns_roce_dev *hr_dev = to_hr_dev(pd->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibmr->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ib_xrcd->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ib_xrcd->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ib_dev);
struct hns_roce_dev *hr_dev = to_hr_dev(pd->device);
struct hns_roce_dev *hr_dev = to_hr_dev(hr_qp->ibqp.device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibdev);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ib_mr->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ib_srq->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ib_cq->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ib_qp->device);
struct hns_roce_dev *hr_dev = to_hr_dev(srq->ibsrq.device);
struct hns_roce_dev *hr_dev = to_hr_dev(srq->ibsrq.device);
struct hns_roce_dev *hr_dev = to_hr_dev(ib_srq->device);
struct hns_roce_dev *hr_dev = to_hr_dev(ibsrq->device);