Lines Matching refs:swq

522 	kfree(srq->swq);  in bnxt_qplib_destroy_srq()
544 srq->swq = kcalloc(srq->hwq.max_elements, sizeof(*srq->swq), in bnxt_qplib_create_srq()
546 if (!srq->swq) { in bnxt_qplib_create_srq()
588 srq->swq[idx].next_idx = idx + 1; in bnxt_qplib_create_srq()
589 srq->swq[srq->last_idx].next_idx = -1; in bnxt_qplib_create_srq()
600 kfree(srq->swq); in bnxt_qplib_create_srq()
672 srq->start_idx = srq->swq[next].next_idx; in bnxt_qplib_post_srq_recv()
691 srq->swq[next].wr_id = wqe->wr_id; in bnxt_qplib_post_srq_recv()
744 sq->swq = kcalloc(sq->hwq.max_elements, sizeof(*sq->swq), GFP_KERNEL); in bnxt_qplib_create_qp1()
745 if (!sq->swq) { in bnxt_qplib_create_qp1()
783 rq->swq = kcalloc(rq->hwq.max_elements, sizeof(*rq->swq), in bnxt_qplib_create_qp1()
785 if (!rq->swq) { in bnxt_qplib_create_qp1()
846 kfree(rq->swq); in bnxt_qplib_create_qp1()
849 kfree(sq->swq); in bnxt_qplib_create_qp1()
889 sq->swq = kcalloc(sq->hwq.max_elements, sizeof(*sq->swq), GFP_KERNEL); in bnxt_qplib_create_qp()
890 if (!sq->swq) { in bnxt_qplib_create_qp()
910 sq->swq[i].psn_search = in bnxt_qplib_create_qp()
959 rq->swq = kcalloc(rq->hwq.max_elements, sizeof(*rq->swq), in bnxt_qplib_create_qp()
961 if (!rq->swq) { in bnxt_qplib_create_qp()
1074 kfree(rq->swq); in bnxt_qplib_create_qp()
1077 kfree(sq->swq); in bnxt_qplib_create_qp()
1433 kfree(qp->sq.swq); in bnxt_qplib_free_qp_res()
1436 kfree(qp->rq.swq); in bnxt_qplib_free_qp_res()
1517 struct bnxt_qplib_swq *swq; in bnxt_qplib_post_send() local
1546 swq = &sq->swq[sw_prod]; in bnxt_qplib_post_send()
1547 swq->wr_id = wqe->wr_id; in bnxt_qplib_post_send()
1548 swq->type = wqe->type; in bnxt_qplib_post_send()
1549 swq->flags = wqe->flags; in bnxt_qplib_post_send()
1551 swq->flags |= SQ_SEND_FLAGS_SIGNAL_COMP; in bnxt_qplib_post_send()
1552 swq->start_psn = sq->psn & BTH_PSN_MASK; in bnxt_qplib_post_send()
1743 swq->next_psn = sq->psn & BTH_PSN_MASK; in bnxt_qplib_post_send()
1744 if (swq->psn_search) { in bnxt_qplib_post_send()
1745 swq->psn_search->opcode_start_psn = cpu_to_le32( in bnxt_qplib_post_send()
1746 ((swq->start_psn << SQ_PSN_SEARCH_START_PSN_SFT) & in bnxt_qplib_post_send()
1750 swq->psn_search->flags_next_psn = cpu_to_le32( in bnxt_qplib_post_send()
1751 ((swq->next_psn << SQ_PSN_SEARCH_NEXT_PSN_SFT) & in bnxt_qplib_post_send()
1758 swq = &sq->swq[sw_prod]; in bnxt_qplib_post_send()
1759 swq->wr_id = wqe->wr_id; in bnxt_qplib_post_send()
1760 swq->type = wqe->type; in bnxt_qplib_post_send()
1761 swq->flags = wqe->flags; in bnxt_qplib_post_send()
1763 swq->flags |= SQ_SEND_FLAGS_SIGNAL_COMP; in bnxt_qplib_post_send()
1764 swq->start_psn = sq->psn & BTH_PSN_MASK; in bnxt_qplib_post_send()
1829 rq->swq[sw_prod].wr_id = wqe->wr_id; in bnxt_qplib_post_recv()
1860 rq->swq[sw_prod].wr_id = wqe->wr_id; in bnxt_qplib_post_recv()
2017 if (sq->swq[sw_cons].wr_id == BNXT_QPLIB_FENCE_WRID) { in __flush_sq()
2025 cqe->wr_id = sq->swq[sw_cons].wr_id; in __flush_sq()
2027 cqe->type = sq->swq[sw_cons].type; in __flush_sq()
2073 cqe->wr_id = rq->swq[sw_cons].wr_id; in __flush_rq()
2105 struct bnxt_qplib_swq *swq; in do_wa9060() local
2115 swq = &sq->swq[sw_sq_cons]; in do_wa9060()
2116 if (swq->psn_search && in do_wa9060()
2117 le32_to_cpu(swq->psn_search->flags_next_psn) & 0x80000000) { in do_wa9060()
2119 swq->psn_search->flags_next_psn = cpu_to_le32 in do_wa9060()
2120 (le32_to_cpu(swq->psn_search->flags_next_psn) in do_wa9060()
2168 sq->swq[peek_sq_cons_idx].wr_id == in do_wa9060()
2209 struct bnxt_qplib_swq *swq; in bnxt_qplib_cq_process_req() local
2247 swq = &sq->swq[sw_sq_cons]; in bnxt_qplib_cq_process_req()
2252 cqe->wr_id = swq->wr_id; in bnxt_qplib_cq_process_req()
2255 cqe->type = swq->type; in bnxt_qplib_cq_process_req()
2275 if (swq->flags & SQ_SEND_FLAGS_SIGNAL_COMP) { in bnxt_qplib_cq_process_req()
2311 srq->swq[srq->last_idx].next_idx = (int)tag; in bnxt_qplib_release_srqe()
2313 srq->swq[srq->last_idx].next_idx = -1; in bnxt_qplib_release_srqe()
2365 cqe->wr_id = srq->swq[wr_id_idx].wr_id; in bnxt_qplib_cq_process_res_rc()
2380 cqe->wr_id = rq->swq[wr_id_idx].wr_id; in bnxt_qplib_cq_process_res_rc()
2448 cqe->wr_id = srq->swq[wr_id_idx].wr_id; in bnxt_qplib_cq_process_res_ud()
2464 cqe->wr_id = rq->swq[wr_id_idx].wr_id; in bnxt_qplib_cq_process_res_ud()
2557 cqe->wr_id = srq->swq[wr_id_idx].wr_id; in bnxt_qplib_cq_process_res_raweth_qp1()
2572 cqe->wr_id = rq->swq[wr_id_idx].wr_id; in bnxt_qplib_cq_process_res_raweth_qp1()
2648 if (sq->swq[sw_cons].flags & SQ_SEND_FLAGS_SIGNAL_COMP) { in bnxt_qplib_cq_process_terminal()
2654 cqe->wr_id = sq->swq[sw_cons].wr_id; in bnxt_qplib_cq_process_terminal()
2655 cqe->type = sq->swq[sw_cons].type; in bnxt_qplib_cq_process_terminal()