Lines Matching refs:max_gs
282 if (unlikely(wr->num_sge > qp->sq.max_gs)) { in hns_roce_v2_post_send()
284 wr->num_sge, qp->sq.max_gs); in hns_roce_v2_post_send()
648 if (unlikely(wr->num_sge > hr_qp->rq.max_gs)) { in hns_roce_v2_post_recv()
650 wr->num_sge, hr_qp->rq.max_gs); in hns_roce_v2_post_recv()
665 if (i < hr_qp->rq.max_gs) { in hns_roce_v2_post_recv()
3229 hr_qp->sq.max_gs > in set_qpc_wqe_cnt()
3284 V2_QPC_BYTE_20_RQWS_S, ilog2(hr_qp->rq.max_gs)); in modify_qp_reset_to_init()
3741 hr_qp->sq.max_gs > HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE) ? in modify_qp_init_to_rtr()
3965 hr_qp->sq.max_gs > HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE) ? in modify_qp_rtr_to_rts()
3971 ((ibqp->qp_type == IB_QPT_GSI) || hr_qp->sq.max_gs > in modify_qp_rtr_to_rts()
4630 qp_attr->cap.max_recv_sge = hr_qp->rq.max_gs; in hns_roce_v2_query_qp()
4634 qp_attr->cap.max_send_sge = hr_qp->sq.max_gs; in hns_roce_v2_query_qp()
6067 SRQC_BYTE_28_RQWS_S, srq->max_gs <= 0 ? 0 : in hns_roce_v2_write_srqc()
6068 fls(srq->max_gs - 1)); in hns_roce_v2_write_srqc()
6193 attr->max_sge = srq->max_gs; in hns_roce_v2_query_srq()
6248 if (unlikely(wr->num_sge > srq->max_gs)) { in hns_roce_v2_post_srq_recv()
6277 if (i < srq->max_gs) { in hns_roce_v2_post_srq_recv()