to_hr_cq
struct hns_roce_cq *hr_cq = to_hr_cq(ib_cq);
struct hns_roce_cq *hr_cq = to_hr_cq(ib_cq);
free_mr->rsv_cq = to_hr_cq(cq);
struct hns_roce_cq *hr_cq = to_hr_cq(ibcq);
struct hns_roce_cq *hr_cq = to_hr_cq(ibcq);
return ib_cq ? to_hr_cq(ib_cq)->cqn : 0;
hns_roce_v2_cq_clean(to_hr_cq(ibqp->send_cq),
hns_roce_v2_cq_clean(to_hr_cq(ibqp->recv_cq),
send_cq = hr_qp->ibqp.send_cq ? to_hr_cq(hr_qp->ibqp.send_cq) : NULL;
recv_cq = hr_qp->ibqp.recv_cq ? to_hr_cq(hr_qp->ibqp.recv_cq) : NULL;
struct hns_roce_cq *hr_cq = to_hr_cq(cq);
struct hns_roce_cq *hr_cq = to_hr_cq(ibcq);
struct hns_roce_cq *hr_cq = to_hr_cq(cq);
hns_roce_lock_cqs(init_attr->send_cq ? to_hr_cq(init_attr->send_cq) : NULL,
init_attr->recv_cq ? to_hr_cq(init_attr->recv_cq) : NULL);
hns_roce_unlock_cqs(init_attr->send_cq ? to_hr_cq(init_attr->send_cq) : NULL,
init_attr->recv_cq ? to_hr_cq(init_attr->recv_cq) : NULL);
hr_cq = to_hr_cq(ib_cq);
cqn = to_hr_cq(scq)->cqn;
hr_send_cq = send_cq ? to_hr_cq(send_cq) : NULL;
hr_recv_cq = recv_cq ? to_hr_cq(recv_cq) : NULL;
struct hns_roce_cq *hr_cq = to_hr_cq(ib_cq);
struct hns_roce_cq *hr_cq = to_hr_cq(ib_cq);
to_hr_cq(init_attr->ext.cq)->cqn : 0;