Lines Matching refs:max_wqe
181 rq->max_wqe * qp->rq_hdr_buf_size, in bnxt_qplib_free_qp_hdr_buf()
185 sq->max_wqe * qp->sq_hdr_buf_size, in bnxt_qplib_free_qp_hdr_buf()
202 if (qp->sq_hdr_buf_size && sq->max_wqe) { in bnxt_qplib_alloc_qp_hdr_buf()
204 sq->max_wqe * qp->sq_hdr_buf_size, in bnxt_qplib_alloc_qp_hdr_buf()
214 if (qp->rq_hdr_buf_size && rq->max_wqe) { in bnxt_qplib_alloc_qp_hdr_buf()
216 rq->max_wqe * in bnxt_qplib_alloc_qp_hdr_buf()
615 hwq_attr.depth = srq->max_wqe; in bnxt_qplib_create_srq()
792 que->swq = kcalloc(que->max_wqe, sizeof(*que->swq), GFP_KERNEL); in bnxt_qplib_alloc_init_swq()
799 que->swq_last = que->max_wqe - 1; in bnxt_qplib_alloc_init_swq()
800 for (indx = 0; indx < que->max_wqe; indx++) in bnxt_qplib_alloc_init_swq()
857 if (rq->max_wqe) { in bnxt_qplib_create_qp1()
869 req.rq_size = cpu_to_le32(rq->max_wqe); in bnxt_qplib_create_qp1()
904 if (rq->max_wqe) { in bnxt_qplib_create_qp1()
1026 req.rq_size = cpu_to_le32(rq->max_wqe); in bnxt_qplib_create_qp()
1110 if (rq->max_wqe) { in bnxt_qplib_create_qp()
1402 qp->sq.max_wqe = qp->sq.hwq.max_elements; in bnxt_qplib_query_qp()
1403 qp->rq.max_wqe = qp->rq.hwq.max_elements; in bnxt_qplib_query_qp()
2044 hwq_attr.depth = cq->max_wqe; in bnxt_qplib_create_cq()
2287 - 1) % sq->max_wqe); in do_wa9060()
2343 cqe_sq_cons = le16_to_cpu(hwcqe->sq_cons_idx) % sq->max_wqe; in bnxt_qplib_cq_process_req()
2483 if (wr_id_idx > (rq->max_wqe - 1)) { in bnxt_qplib_cq_process_res_rc()
2486 wr_id_idx, rq->max_wqe); in bnxt_qplib_cq_process_res_rc()
2570 if (wr_id_idx > (rq->max_wqe - 1)) { in bnxt_qplib_cq_process_res_ud()
2573 wr_id_idx, rq->max_wqe); in bnxt_qplib_cq_process_res_ud()
2678 if (wr_id_idx > (rq->max_wqe - 1)) { in bnxt_qplib_cq_process_res_raweth_qp1()
2681 wr_id_idx, rq->max_wqe); in bnxt_qplib_cq_process_res_raweth_qp1()
2739 cqe_cons %= sq->max_wqe; in bnxt_qplib_cq_process_terminal()
2783 } else if (cqe_cons > rq->max_wqe - 1) { in bnxt_qplib_cq_process_terminal()
2786 cqe_cons, rq->max_wqe); in bnxt_qplib_cq_process_terminal()