Lines Matching refs:max_elements
280 bnxt_qplib_hwq_incr_cons(hwq->max_elements, &hwq->cons, in clean_nq()
391 bnxt_qplib_hwq_incr_cons(hwq->max_elements, &hwq->cons, in bnxt_qplib_service_nq()
412 nq->budget = nq->hwq.max_elements; in bnxt_re_synchronize_nq()
584 if (nq->hwq.max_elements) { in bnxt_qplib_free_nq()
586 nq->hwq.max_elements = 0; in bnxt_qplib_free_nq()
597 if (!nq->hwq.max_elements || in bnxt_qplib_alloc_nq()
598 nq->hwq.max_elements > BNXT_QPLIB_NQE_MAX_CNT) in bnxt_qplib_alloc_nq()
599 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_qplib_alloc_nq()
605 hwq_attr.depth = nq->hwq.max_elements; in bnxt_qplib_alloc_nq()
662 srq->swq = kcalloc(srq->hwq.max_elements, sizeof(*srq->swq), in bnxt_qplib_create_srq()
677 req.srq_size = cpu_to_le16((u16)srq->hwq.max_elements); in bnxt_qplib_create_srq()
695 srq->last_idx = srq->hwq.max_elements - 1; in bnxt_qplib_create_srq()
696 for (idx = 0; idx < srq->hwq.max_elements; idx++) in bnxt_qplib_create_srq()
1116 xrrq->max_elements = in bnxt_qplib_create_qp()
1118 req_size = xrrq->max_elements * in bnxt_qplib_create_qp()
1126 hwq_attr.depth = xrrq->max_elements; in bnxt_qplib_create_qp()
1138 xrrq->max_elements = IRD_LIMIT_TO_IRRQ_SLOTS( in bnxt_qplib_create_qp()
1140 req_size = xrrq->max_elements * in bnxt_qplib_create_qp()
1144 hwq_attr.depth = xrrq->max_elements; in bnxt_qplib_create_qp()
1373 req.sq_size = cpu_to_le32(qp->sq.hwq.max_elements); in bnxt_qplib_modify_qp()
1374 req.rq_size = cpu_to_le32(qp->rq.hwq.max_elements); in bnxt_qplib_modify_qp()
1465 qp->sq.max_wqe = qp->sq.hwq.max_elements; in bnxt_qplib_query_qp()
1466 qp->rq.max_wqe = qp->rq.hwq.max_elements; in bnxt_qplib_query_qp()
1488 for (i = 0; i < cq_hwq->max_elements; i++) { in __clean_cq()
1520 bnxt_qplib_hwq_incr_cons(cq_hwq->max_elements, &peek_cons, in __clean_cq()
1570 if (qp->irrq.max_elements) in bnxt_qplib_free_qp_res()
1572 if (qp->orrq.max_elements) in bnxt_qplib_free_qp_res()
2322 bnxt_qplib_hwq_incr_cons(sq->hwq.max_elements, &sq->hwq.cons, in __flush_sq()
2370 bnxt_qplib_hwq_incr_cons(rq->hwq.max_elements, &rq->hwq.cons, in __flush_rq()
2433 i = cq->hwq.max_elements; in do_wa9060()
2481 bnxt_qplib_hwq_incr_cons(cq->hwq.max_elements, in do_wa9060()
2611 bnxt_qplib_hwq_incr_cons(sq->hwq.max_elements, &sq->hwq.cons, in bnxt_qplib_cq_process_req()
2639 bnxt_qplib_hwq_incr_cons(srq->hwq.max_elements, &srq->hwq.cons, in bnxt_qplib_release_srqe()
2682 if (wr_id_idx >= srq->hwq.max_elements) { in bnxt_qplib_cq_process_res_rc()
2685 wr_id_idx, srq->hwq.max_elements); in bnxt_qplib_cq_process_res_rc()
2709 bnxt_qplib_hwq_incr_cons(rq->hwq.max_elements, &rq->hwq.cons, in bnxt_qplib_cq_process_res_rc()
2768 if (wr_id_idx >= srq->hwq.max_elements) { in bnxt_qplib_cq_process_res_ud()
2771 wr_id_idx, srq->hwq.max_elements); in bnxt_qplib_cq_process_res_ud()
2796 bnxt_qplib_hwq_incr_cons(rq->hwq.max_elements, &rq->hwq.cons, in bnxt_qplib_cq_process_res_ud()
2873 if (wr_id_idx >= srq->hwq.max_elements) { in bnxt_qplib_cq_process_res_raweth_qp1()
2876 wr_id_idx, srq->hwq.max_elements); in bnxt_qplib_cq_process_res_raweth_qp1()
2900 bnxt_qplib_hwq_incr_cons(rq->hwq.max_elements, &rq->hwq.cons, in bnxt_qplib_cq_process_res_raweth_qp1()
2974 bnxt_qplib_hwq_incr_cons(sq->hwq.max_elements, &sq->hwq.cons, in bnxt_qplib_cq_process_terminal()
3132 bnxt_qplib_hwq_incr_cons(cq->hwq.max_elements, &cq->hwq.cons, in bnxt_qplib_poll_cq()