Lines Matching full:comp

35 	[COMPST_COMP_WQE]		= "COMP WQE",
36 [COMPST_COMP_ACK] = "COMP ACK",
42 [COMPST_UPDATE_COMP] = "UPDATE COMP",
124 qp->comp.timeout = 1; in retransmit_timer()
167 qp->comp.retry_cnt = qp->attr.retry_cnt; in reset_retry_counters()
168 qp->comp.rnr_retry = qp->attr.rnr_retry; in reset_retry_counters()
169 qp->comp.started_retry = 0; in reset_retry_counters()
195 diff = psn_compare(pkt->psn, qp->comp.psn); in check_psn()
203 (qp->comp.opcode == IB_OPCODE_RC_RDMA_READ_RESPONSE_FIRST || in check_psn()
204 qp->comp.opcode == IB_OPCODE_RC_RDMA_READ_RESPONSE_MIDDLE)) in check_psn()
224 switch (qp->comp.opcode) { in check_ack()
313 if (psn_compare(pkt->psn, qp->comp.psn) > 0) { in check_ack()
316 qp->comp.psn = pkt->psn; in check_ack()
480 if (qp->attr.sq_draining && qp->comp.psn == qp->req.psn) { in comp_check_sq_drain_done()
507 qp->comp.timeout_retry = 0; in complete_ack()
517 if (psn_compare(pkt->psn, qp->comp.psn) >= 0) in complete_ack()
528 if (psn_compare(wqe->last_psn, qp->comp.psn) >= 0) { in complete_wqe()
529 qp->comp.psn = (wqe->last_psn + 1) & BTH_PSN_MASK; in complete_wqe()
530 qp->comp.opcode = -1; in complete_wqe()
631 psn_compare(qp->req.psn, qp->comp.psn) > 0) in reset_retry_timer()
662 if (qp->comp.timeout) { in rxe_completer()
663 qp->comp.timeout_retry = 1; in rxe_completer()
664 qp->comp.timeout = 0; in rxe_completer()
666 qp->comp.timeout_retry = 0; in rxe_completer()
681 qp->comp.timeout_retry = 0; in rxe_completer()
724 qp->comp.opcode = -1; in rxe_completer()
726 qp->comp.opcode = pkt->opcode; in rxe_completer()
728 if (psn_compare(pkt->psn, qp->comp.psn) >= 0) in rxe_completer()
729 qp->comp.psn = (pkt->psn + 1) & BTH_PSN_MASK; in rxe_completer()
743 if (qp->comp.timeout_retry && wqe) { in rxe_completer()
767 if (qp->comp.started_retry && in rxe_completer()
768 !qp->comp.timeout_retry) in rxe_completer()
771 if (qp->comp.retry_cnt > 0) { in rxe_completer()
772 if (qp->comp.retry_cnt != 7) in rxe_completer()
773 qp->comp.retry_cnt--; in rxe_completer()
780 qp->comp.psn) > 0) { in rxe_completer()
787 qp->comp.started_retry = 1; in rxe_completer()
801 if (qp->comp.rnr_retry > 0) { in rxe_completer()
802 if (qp->comp.rnr_retry != 7) in rxe_completer()
803 qp->comp.rnr_retry--; in rxe_completer()