Lines Matching refs:swq_last

814 	que->swq_last = que->max_wqe - 1;  in bnxt_qplib_alloc_init_swq()
817 que->swq[que->swq_last].next_idx = 0; /* Make it circular */ in bnxt_qplib_alloc_init_swq()
818 que->swq_last = 0; in bnxt_qplib_alloc_init_swq()
2279 last = sq->swq_last; in __flush_sq()
2299 sq->swq_last = sq->swq[last].next_idx; in __flush_sq()
2302 if (!(*budget) && sq->swq_last != start) in __flush_sq()
2334 last = rq->swq_last; in __flush_rq()
2347 rq->swq_last = rq->swq[last].next_idx; in __flush_rq()
2350 if (!*budget && rq->swq_last != start) in __flush_rq()
2373 u32 cq_cons, u32 swq_last, u32 cqe_sq_cons) in do_wa9060() argument
2386 swq = &sq->swq[swq_last]; in do_wa9060()
2395 cq_cons, qp->id, swq_last, cqe_sq_cons); in do_wa9060()
2462 cq_cons, qp->id, swq_last, cqe_sq_cons); in do_wa9060()
2502 if (sq->swq_last == cqe_sq_cons) in bnxt_qplib_cq_process_req()
2506 swq = &sq->swq[sq->swq_last]; in bnxt_qplib_cq_process_req()
2525 sq->swq_last, cqe->wr_id, cqe->status); in bnxt_qplib_cq_process_req()
2533 if (do_wa9060(qp, cq, cq_cons, sq->swq_last, in bnxt_qplib_cq_process_req()
2547 sq->swq_last = swq->next_idx; in bnxt_qplib_cq_process_req()
2553 if (sq->swq_last != cqe_sq_cons) { in bnxt_qplib_cq_process_req()
2637 if (wr_id_idx != rq->swq_last) in bnxt_qplib_cq_process_res_rc()
2639 swq = &rq->swq[rq->swq_last]; in bnxt_qplib_cq_process_res_rc()
2645 rq->swq_last = swq->next_idx; in bnxt_qplib_cq_process_res_rc()
2724 if (rq->swq_last != wr_id_idx) in bnxt_qplib_cq_process_res_ud()
2726 swq = &rq->swq[rq->swq_last]; in bnxt_qplib_cq_process_res_ud()
2732 rq->swq_last = swq->next_idx; in bnxt_qplib_cq_process_res_ud()
2828 if (rq->swq_last != wr_id_idx) in bnxt_qplib_cq_process_res_raweth_qp1()
2830 swq = &rq->swq[rq->swq_last]; in bnxt_qplib_cq_process_res_raweth_qp1()
2836 rq->swq_last = swq->next_idx; in bnxt_qplib_cq_process_res_raweth_qp1()
2857 u32 swq_last = 0, cqe_cons; in bnxt_qplib_cq_process_terminal() local
2894 swq_last = sq->swq_last; in bnxt_qplib_cq_process_terminal()
2895 if (swq_last == cqe_cons) in bnxt_qplib_cq_process_terminal()
2897 if (sq->swq[swq_last].flags & SQ_SEND_FLAGS_SIGNAL_COMP) { in bnxt_qplib_cq_process_terminal()
2903 cqe->wr_id = sq->swq[swq_last].wr_id; in bnxt_qplib_cq_process_terminal()
2904 cqe->type = sq->swq[swq_last].type; in bnxt_qplib_cq_process_terminal()
2909 sq->swq[swq_last].slots, &sq->dbinfo.flags); in bnxt_qplib_cq_process_terminal()
2910 sq->swq_last = sq->swq[swq_last].next_idx; in bnxt_qplib_cq_process_terminal()
2913 if (!(*budget) && swq_last != cqe_cons) { in bnxt_qplib_cq_process_terminal()