Lines Matching refs:req_cap
128 struct ib_qp_cap *req_cap, in pvrdma_set_rq_size() argument
131 if (req_cap->max_recv_wr > dev->dsr->caps.max_qp_wr || in pvrdma_set_rq_size()
132 req_cap->max_recv_sge > dev->dsr->caps.max_sge) { in pvrdma_set_rq_size()
137 qp->rq.wqe_cnt = roundup_pow_of_two(max(1U, req_cap->max_recv_wr)); in pvrdma_set_rq_size()
138 qp->rq.max_sg = roundup_pow_of_two(max(1U, req_cap->max_recv_sge)); in pvrdma_set_rq_size()
141 req_cap->max_recv_wr = qp->rq.wqe_cnt; in pvrdma_set_rq_size()
142 req_cap->max_recv_sge = qp->rq.max_sg; in pvrdma_set_rq_size()
153 static int pvrdma_set_sq_size(struct pvrdma_dev *dev, struct ib_qp_cap *req_cap, in pvrdma_set_sq_size() argument
156 if (req_cap->max_send_wr > dev->dsr->caps.max_qp_wr || in pvrdma_set_sq_size()
157 req_cap->max_send_sge > dev->dsr->caps.max_sge) { in pvrdma_set_sq_size()
162 qp->sq.wqe_cnt = roundup_pow_of_two(max(1U, req_cap->max_send_wr)); in pvrdma_set_sq_size()
163 qp->sq.max_sg = roundup_pow_of_two(max(1U, req_cap->max_send_sge)); in pvrdma_set_sq_size()
166 req_cap->max_send_wr = qp->sq.wqe_cnt; in pvrdma_set_sq_size()
167 req_cap->max_send_sge = qp->sq.max_sg; in pvrdma_set_sq_size()