Lines Matching refs:psn
120 int diff = psn_compare(pkt->psn, qp->resp.psn);
563 u32 psn,
598 bth_set_psn(ack, psn);
600 ack->psn = psn;
659 res->first_psn = req_pkt->psn;
662 res->last_psn = (req_pkt->psn +
668 res->cur_psn = req_pkt->psn;
734 if (psn_compare(res->cur_psn, qp->resp.psn) >= 0)
735 qp->resp.psn = res->cur_psn;
793 /* next expected psn, read handles this separately */
794 qp->resp.psn = (pkt->psn + 1) & BTH_PSN_MASK;
795 qp->resp.ack_psn = qp->resp.psn;
932 u8 syndrome, u32 psn)
939 0, psn, syndrome, NULL);
962 IB_OPCODE_RC_ATOMIC_ACKNOWLEDGE, 0, pkt->psn,
980 res->first_psn = ack_pkt.psn;
981 res->last_psn = ack_pkt.psn;
982 res->cur_psn = ack_pkt.psn;
1000 send_ack(qp, pkt, qp->resp.aeth_syndrome, pkt->psn);
1004 send_ack(qp, pkt, AETH_ACK_UNLIMITED, pkt->psn);
1028 static struct resp_res *find_resource(struct rxe_qp *qp, u32 psn)
1038 if (psn_compare(psn, res->first_psn) >= 0 &&
1039 psn_compare(psn, res->last_psn) <= 0) {
1063 res = find_resource(qp, pkt->psn);
1090 res->cur_psn = pkt->psn;
1091 res->state = (pkt->psn == res->first_psn) ?
1110 res = find_resource(qp, pkt->psn);
1263 send_ack(qp, pkt, AETH_NAK_PSN_SEQ_ERROR, qp->resp.psn);
1288 pkt->psn);