Lines Matching refs:max_wqe

182 				  rq->max_wqe * qp->rq_hdr_buf_size,  in bnxt_qplib_free_qp_hdr_buf()
186 sq->max_wqe * qp->sq_hdr_buf_size, in bnxt_qplib_free_qp_hdr_buf()
203 if (qp->sq_hdr_buf_size && sq->max_wqe) { in bnxt_qplib_alloc_qp_hdr_buf()
205 sq->max_wqe * qp->sq_hdr_buf_size, in bnxt_qplib_alloc_qp_hdr_buf()
215 if (qp->rq_hdr_buf_size && rq->max_wqe) { in bnxt_qplib_alloc_qp_hdr_buf()
217 rq->max_wqe * in bnxt_qplib_alloc_qp_hdr_buf()
639 hwq_attr.depth = srq->max_wqe; in bnxt_qplib_create_srq()
823 que->swq = kcalloc(que->max_wqe, sizeof(*que->swq), GFP_KERNEL); in bnxt_qplib_alloc_init_swq()
828 que->swq_last = que->max_wqe - 1; in bnxt_qplib_alloc_init_swq()
829 for (indx = 0; indx < que->max_wqe; indx++) in bnxt_qplib_alloc_init_swq()
887 if (rq->max_wqe) { in bnxt_qplib_create_qp1()
899 req.rq_size = cpu_to_le32(rq->max_wqe); in bnxt_qplib_create_qp1()
934 if (rq->max_wqe) { in bnxt_qplib_create_qp1()
1057 req.rq_size = cpu_to_le32(rq->max_wqe); in bnxt_qplib_create_qp()
1145 if (rq->max_wqe) { in bnxt_qplib_create_qp()
1440 qp->sq.max_wqe = qp->sq.hwq.max_elements; in bnxt_qplib_query_qp()
1441 qp->rq.max_wqe = qp->rq.hwq.max_elements; in bnxt_qplib_query_qp()
2090 hwq_attr.depth = cq->max_wqe; in bnxt_qplib_create_cq()
2379 - 1) % sq->max_wqe); in do_wa9060()
2435 cqe_sq_cons = le16_to_cpu(hwcqe->sq_cons_idx) % sq->max_wqe; in bnxt_qplib_cq_process_req()
2574 if (wr_id_idx > (rq->max_wqe - 1)) { in bnxt_qplib_cq_process_res_rc()
2577 wr_id_idx, rq->max_wqe); in bnxt_qplib_cq_process_res_rc()
2659 if (wr_id_idx > (rq->max_wqe - 1)) { in bnxt_qplib_cq_process_res_ud()
2662 wr_id_idx, rq->max_wqe); in bnxt_qplib_cq_process_res_ud()
2766 if (wr_id_idx > (rq->max_wqe - 1)) { in bnxt_qplib_cq_process_res_raweth_qp1()
2769 wr_id_idx, rq->max_wqe); in bnxt_qplib_cq_process_res_raweth_qp1()
2823 cqe_cons %= sq->max_wqe; in bnxt_qplib_cq_process_terminal()
2867 } else if (cqe_cons > rq->max_wqe - 1) { in bnxt_qplib_cq_process_terminal()
2870 cqe_cons, rq->max_wqe); in bnxt_qplib_cq_process_terminal()