Lines Matching refs:s_psn
66 qp->s_len = restart_sge(&qp->s_sge, wqe, qp->s_psn, in ipath_init_restart()
470 bth2 |= qp->s_psn & IPATH_PSN_MASK; in ipath_make_rc_req()
472 qp->s_psn = wqe->lpsn + 1; in ipath_make_rc_req()
474 qp->s_psn++; in ipath_make_rc_req()
475 if (ipath_cmp24(qp->s_psn, qp->s_next_psn) > 0) in ipath_make_rc_req()
476 qp->s_next_psn = qp->s_psn; in ipath_make_rc_req()
501 bth2 = qp->s_psn++ & IPATH_PSN_MASK; in ipath_make_rc_req()
502 if (ipath_cmp24(qp->s_psn, qp->s_next_psn) > 0) in ipath_make_rc_req()
503 qp->s_next_psn = qp->s_psn; in ipath_make_rc_req()
537 bth2 = qp->s_psn++ & IPATH_PSN_MASK; in ipath_make_rc_req()
538 if (ipath_cmp24(qp->s_psn, qp->s_next_psn) > 0) in ipath_make_rc_req()
539 qp->s_next_psn = qp->s_psn; in ipath_make_rc_req()
568 len = ((qp->s_psn - wqe->psn) & IPATH_PSN_MASK) * pmtu; in ipath_make_rc_req()
576 bth2 = qp->s_psn & IPATH_PSN_MASK; in ipath_make_rc_req()
577 qp->s_psn = wqe->lpsn + 1; in ipath_make_rc_req()
585 if (ipath_cmp24(qp->s_psn, qp->s_last_psn + IPATH_PSN_CREDIT - 1) >= 0) in ipath_make_rc_req()
794 qp->s_psn = psn; in reset_psn()
832 dev->n_rc_resends += (qp->s_psn - psn) & IPATH_PSN_MASK; in ipath_restart_rc()
976 qp->s_psn = wqe->psn; in do_rc_ack()
1003 if (ipath_cmp24(qp->s_psn, psn) <= 0) { in do_rc_ack()
1007 } else if (ipath_cmp24(qp->s_psn, psn) <= 0) { in do_rc_ack()
1009 qp->s_psn = psn + 1; in do_rc_ack()
1036 (qp->s_psn - psn) & IPATH_PSN_MASK; in do_rc_ack()