Lines Matching refs:max_elements

182 				  rq->hwq.max_elements * qp->rq_hdr_buf_size,  in bnxt_qplib_free_qp_hdr_buf()
186 sq->hwq.max_elements * qp->sq_hdr_buf_size, in bnxt_qplib_free_qp_hdr_buf()
203 if (qp->sq_hdr_buf_size && sq->hwq.max_elements) { in bnxt_qplib_alloc_qp_hdr_buf()
205 sq->hwq.max_elements * in bnxt_qplib_alloc_qp_hdr_buf()
216 if (qp->rq_hdr_buf_size && rq->hwq.max_elements) { in bnxt_qplib_alloc_qp_hdr_buf()
218 rq->hwq.max_elements * in bnxt_qplib_alloc_qp_hdr_buf()
256 if (!NQE_CMP_VALID(nqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_nq()
318 hwq->max_elements, nq->ring_id, in bnxt_qplib_service_nq()
347 nq->hwq.max_elements, nq->ring_id, gen_p5); in bnxt_qplib_nq_stop_irq()
410 nq->hwq.max_elements, nq->ring_id, gen_p5); in bnxt_qplib_nq_start_irq()
466 if (nq->hwq.max_elements) { in bnxt_qplib_free_nq()
468 nq->hwq.max_elements = 0; in bnxt_qplib_free_nq()
477 if (!nq->hwq.max_elements || in bnxt_qplib_alloc_nq()
478 nq->hwq.max_elements > BNXT_QPLIB_NQE_MAX_CNT) in bnxt_qplib_alloc_nq()
479 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_qplib_alloc_nq()
482 &nq->hwq.max_elements, in bnxt_qplib_alloc_nq()
542 srq->hwq.max_elements = srq->max_wqe; in bnxt_qplib_create_srq()
544 &srq->hwq.max_elements, in bnxt_qplib_create_srq()
550 srq->swq = kcalloc(srq->hwq.max_elements, sizeof(*srq->swq), in bnxt_qplib_create_srq()
563 req.srq_size = cpu_to_le16((u16)srq->hwq.max_elements); in bnxt_qplib_create_srq()
592 srq->last_idx = srq->hwq.max_elements - 1; in bnxt_qplib_create_srq()
593 for (idx = 0; idx < srq->hwq.max_elements; idx++) in bnxt_qplib_create_srq()
621 srq_hwq->max_elements - sw_cons + sw_prod; in bnxt_qplib_modify_srq()
709 srq_hwq->max_elements - sw_cons + sw_prod; in bnxt_qplib_post_srq_recv()
742 sq->hwq.max_elements = sq->max_wqe; in bnxt_qplib_create_qp1()
744 &sq->hwq.max_elements, in bnxt_qplib_create_qp1()
750 sq->swq = kcalloc(sq->hwq.max_elements, sizeof(*sq->swq), GFP_KERNEL); in bnxt_qplib_create_qp1()
781 rq->hwq.max_elements = qp->rq.max_wqe; in bnxt_qplib_create_qp1()
783 &rq->hwq.max_elements, in bnxt_qplib_create_qp1()
789 rq->swq = kcalloc(rq->hwq.max_elements, sizeof(*rq->swq), in bnxt_qplib_create_qp1()
824 req.sq_size = cpu_to_le32(sq->hwq.max_elements); in bnxt_qplib_create_qp1()
825 req.rq_size = cpu_to_le32(rq->hwq.max_elements); in bnxt_qplib_create_qp1()
890 sq->hwq.max_elements = sq->max_wqe; in bnxt_qplib_create_qp()
892 &sq->hwq.max_elements, in bnxt_qplib_create_qp()
899 sq->swq = kcalloc(sq->hwq.max_elements, sizeof(*sq->swq), GFP_KERNEL); in bnxt_qplib_create_qp()
908 (sq->hwq.max_elements)]; in bnxt_qplib_create_qp()
910 &hw_sq_send_ptr[get_sqe_pg(sq->hwq.max_elements)] in bnxt_qplib_create_qp()
911 [get_sqe_idx(sq->hwq.max_elements)]; in bnxt_qplib_create_qp()
919 for (i = 0; i < sq->hwq.max_elements; i++) { in bnxt_qplib_create_qp()
959 rq->hwq.max_elements = rq->max_wqe; in bnxt_qplib_create_qp()
962 &rq->hwq.max_elements, in bnxt_qplib_create_qp()
968 rq->swq = kcalloc(rq->hwq.max_elements, sizeof(*rq->swq), in bnxt_qplib_create_qp()
1003 req.sq_size = cpu_to_le32(sq->hwq.max_elements); in bnxt_qplib_create_qp()
1004 req.rq_size = cpu_to_le32(rq->hwq.max_elements); in bnxt_qplib_create_qp()
1027 xrrq->max_elements = in bnxt_qplib_create_qp()
1029 req_size = xrrq->max_elements * in bnxt_qplib_create_qp()
1033 &xrrq->max_elements, in bnxt_qplib_create_qp()
1042 xrrq->max_elements = IRD_LIMIT_TO_IRRQ_SLOTS( in bnxt_qplib_create_qp()
1044 req_size = xrrq->max_elements * in bnxt_qplib_create_qp()
1049 &xrrq->max_elements, in bnxt_qplib_create_qp()
1076 if (qp->irrq.max_elements) in bnxt_qplib_create_qp()
1079 if (qp->orrq.max_elements) in bnxt_qplib_create_qp()
1270 req.sq_size = cpu_to_le32(qp->sq.hwq.max_elements); in bnxt_qplib_modify_qp()
1271 req.rq_size = cpu_to_le32(qp->rq.hwq.max_elements); in bnxt_qplib_modify_qp()
1358 qp->sq.max_wqe = qp->sq.hwq.max_elements; in bnxt_qplib_query_qp()
1359 qp->rq.max_wqe = qp->rq.hwq.max_elements; in bnxt_qplib_query_qp()
1377 for (i = 0; i < cq_hwq->max_elements; i++) { in __clean_cq()
1380 if (!CQE_CMP_VALID(hw_cqe, i, cq_hwq->max_elements)) in __clean_cq()
1449 if (qp->irrq.max_elements) in bnxt_qplib_free_qp_res()
1451 if (qp->orrq.max_elements) in bnxt_qplib_free_qp_res()
1548 sq->hwq.prod, sq->hwq.cons, sq->hwq.max_elements, in bnxt_qplib_post_send()
1936 cq->hwq.max_elements = cq->max_wqe; in bnxt_qplib_create_cq()
1938 &cq->hwq.max_elements, in bnxt_qplib_create_cq()
1954 req.cq_size = cpu_to_le32(cq->hwq.max_elements); in bnxt_qplib_create_cq()
2153 i = cq->hwq.max_elements; in do_wa9060()
2161 cq->hwq.max_elements)) { in do_wa9060()
2237 if (cqe_sq_cons > sq->hwq.max_elements) { in bnxt_qplib_cq_process_req()
2240 cqe_sq_cons, sq->hwq.max_elements); in bnxt_qplib_cq_process_req()
2368 if (wr_id_idx >= srq->hwq.max_elements) { in bnxt_qplib_cq_process_res_rc()
2371 wr_id_idx, srq->hwq.max_elements); in bnxt_qplib_cq_process_res_rc()
2381 if (wr_id_idx >= rq->hwq.max_elements) { in bnxt_qplib_cq_process_res_rc()
2384 wr_id_idx, rq->hwq.max_elements); in bnxt_qplib_cq_process_res_rc()
2449 if (wr_id_idx >= srq->hwq.max_elements) { in bnxt_qplib_cq_process_res_ud()
2452 wr_id_idx, srq->hwq.max_elements); in bnxt_qplib_cq_process_res_ud()
2462 if (wr_id_idx >= rq->hwq.max_elements) { in bnxt_qplib_cq_process_res_ud()
2465 wr_id_idx, rq->hwq.max_elements); in bnxt_qplib_cq_process_res_ud()
2497 rc = !CQE_CMP_VALID(hw_cqe, raw_cons, cq->hwq.max_elements); in bnxt_qplib_is_cq_empty()
2553 if (wr_id_idx >= srq->hwq.max_elements) { in bnxt_qplib_cq_process_res_raweth_qp1()
2556 wr_id_idx, srq->hwq.max_elements); in bnxt_qplib_cq_process_res_raweth_qp1()
2566 if (wr_id_idx >= rq->hwq.max_elements) { in bnxt_qplib_cq_process_res_raweth_qp1()
2569 wr_id_idx, rq->hwq.max_elements); in bnxt_qplib_cq_process_res_raweth_qp1()
2624 if (cqe_cons > sq->hwq.max_elements) { in bnxt_qplib_cq_process_terminal()
2627 cqe_cons, sq->hwq.max_elements); in bnxt_qplib_cq_process_terminal()
2672 } else if (cqe_cons > rq->hwq.max_elements) { in bnxt_qplib_cq_process_terminal()
2675 cqe_cons, rq->hwq.max_elements); in bnxt_qplib_cq_process_terminal()
2752 if (!CQE_CMP_VALID(hw_cqe, raw_cons, cq->hwq.max_elements)) in bnxt_qplib_poll_cq()