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()
616 hwq_attr.depth = srq->max_wqe; in bnxt_qplib_create_srq()
794 que->swq = kcalloc(que->max_wqe, sizeof(*que->swq), GFP_KERNEL); in bnxt_qplib_alloc_init_swq()
801 que->swq_last = que->max_wqe - 1; in bnxt_qplib_alloc_init_swq()
802 for (indx = 0; indx < que->max_wqe; indx++) in bnxt_qplib_alloc_init_swq()
859 if (rq->max_wqe) { in bnxt_qplib_create_qp1()
871 req.rq_size = cpu_to_le32(rq->max_wqe); in bnxt_qplib_create_qp1()
906 if (rq->max_wqe) { in bnxt_qplib_create_qp1()
1028 req.rq_size = cpu_to_le32(rq->max_wqe); in bnxt_qplib_create_qp()
1115 if (rq->max_wqe) { in bnxt_qplib_create_qp()
1405 qp->sq.max_wqe = qp->sq.hwq.max_elements; in bnxt_qplib_query_qp()
1406 qp->rq.max_wqe = qp->rq.hwq.max_elements; in bnxt_qplib_query_qp()
2047 hwq_attr.depth = cq->max_wqe; in bnxt_qplib_create_cq()
2290 - 1) % sq->max_wqe); in do_wa9060()
2346 cqe_sq_cons = le16_to_cpu(hwcqe->sq_cons_idx) % sq->max_wqe; in bnxt_qplib_cq_process_req()
2486 if (wr_id_idx > (rq->max_wqe - 1)) { in bnxt_qplib_cq_process_res_rc()
2489 wr_id_idx, rq->max_wqe); in bnxt_qplib_cq_process_res_rc()
2573 if (wr_id_idx > (rq->max_wqe - 1)) { in bnxt_qplib_cq_process_res_ud()
2576 wr_id_idx, rq->max_wqe); in bnxt_qplib_cq_process_res_ud()
2681 if (wr_id_idx > (rq->max_wqe - 1)) { in bnxt_qplib_cq_process_res_raweth_qp1()
2684 wr_id_idx, rq->max_wqe); in bnxt_qplib_cq_process_res_raweth_qp1()
2742 cqe_cons %= sq->max_wqe; in bnxt_qplib_cq_process_terminal()
2786 } else if (cqe_cons > rq->max_wqe - 1) { in bnxt_qplib_cq_process_terminal()
2789 cqe_cons, rq->max_wqe); in bnxt_qplib_cq_process_terminal()