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()
793 que->swq = kcalloc(que->max_wqe, sizeof(*que->swq), GFP_KERNEL); in bnxt_qplib_alloc_init_swq()
800 que->swq_last = que->max_wqe - 1; in bnxt_qplib_alloc_init_swq()
801 for (indx = 0; indx < que->max_wqe; indx++) in bnxt_qplib_alloc_init_swq()
858 if (rq->max_wqe) { in bnxt_qplib_create_qp1()
870 req.rq_size = cpu_to_le32(rq->max_wqe); in bnxt_qplib_create_qp1()
905 if (rq->max_wqe) { in bnxt_qplib_create_qp1()
1027 req.rq_size = cpu_to_le32(rq->max_wqe); in bnxt_qplib_create_qp()
1114 if (rq->max_wqe) { in bnxt_qplib_create_qp()
1406 qp->sq.max_wqe = qp->sq.hwq.max_elements; in bnxt_qplib_query_qp()
1407 qp->rq.max_wqe = qp->rq.hwq.max_elements; in bnxt_qplib_query_qp()
2048 hwq_attr.depth = cq->max_wqe; in bnxt_qplib_create_cq()
2291 - 1) % sq->max_wqe); in do_wa9060()
2347 cqe_sq_cons = le16_to_cpu(hwcqe->sq_cons_idx) % sq->max_wqe; in bnxt_qplib_cq_process_req()
2487 if (wr_id_idx > (rq->max_wqe - 1)) { in bnxt_qplib_cq_process_res_rc()
2490 wr_id_idx, rq->max_wqe); in bnxt_qplib_cq_process_res_rc()
2574 if (wr_id_idx > (rq->max_wqe - 1)) { in bnxt_qplib_cq_process_res_ud()
2577 wr_id_idx, rq->max_wqe); in bnxt_qplib_cq_process_res_ud()
2682 if (wr_id_idx > (rq->max_wqe - 1)) { in bnxt_qplib_cq_process_res_raweth_qp1()
2685 wr_id_idx, rq->max_wqe); in bnxt_qplib_cq_process_res_raweth_qp1()
2743 cqe_cons %= sq->max_wqe; in bnxt_qplib_cq_process_terminal()
2787 } else if (cqe_cons > rq->max_wqe - 1) { in bnxt_qplib_cq_process_terminal()
2790 cqe_cons, rq->max_wqe); in bnxt_qplib_cq_process_terminal()