Lines Matching refs:s_cur

469 	wqe = rvt_get_swqe_ptr(qp, qp->s_cur);  in hfi1_make_rc_req()
483 if (qp->s_cur == qp->s_tail) { in hfi1_make_rc_req()
511 if (qp->s_last != qp->s_cur) in hfi1_make_rc_req()
513 if (++qp->s_cur == qp->s_size) in hfi1_make_rc_req()
514 qp->s_cur = 0; in hfi1_make_rc_req()
581 if (++qp->s_cur == qp->s_size) in hfi1_make_rc_req()
582 qp->s_cur = 0; in hfi1_make_rc_req()
618 if (++qp->s_cur == qp->s_size) in hfi1_make_rc_req()
619 qp->s_cur = 0; in hfi1_make_rc_req()
640 priv->s_tid_cur = qp->s_cur; in hfi1_make_rc_req()
642 priv->s_tid_tail = qp->s_cur; in hfi1_make_rc_req()
682 priv->s_tid_tail = qp->s_cur; in hfi1_make_rc_req()
686 priv->s_tid_cur = qp->s_cur; in hfi1_make_rc_req()
698 if (priv->s_tid_tail == qp->s_cur && in hfi1_make_rc_req()
704 priv->s_tid_head = qp->s_cur; in hfi1_make_rc_req()
725 if (++qp->s_cur == qp->s_size) in hfi1_make_rc_req()
726 qp->s_cur = 0; in hfi1_make_rc_req()
753 if (++qp->s_cur == qp->s_size) in hfi1_make_rc_req()
754 qp->s_cur = 0; in hfi1_make_rc_req()
827 ++qp->s_cur == qp->s_size) in hfi1_make_rc_req()
828 qp->s_cur = 0; in hfi1_make_rc_req()
868 if (++qp->s_cur == qp->s_size) in hfi1_make_rc_req()
869 qp->s_cur = 0; in hfi1_make_rc_req()
936 qp->s_cur++; in hfi1_make_rc_req()
937 if (qp->s_cur >= qp->s_size) in hfi1_make_rc_req()
938 qp->s_cur = 0; in hfi1_make_rc_req()
976 qp->s_cur++; in hfi1_make_rc_req()
977 if (qp->s_cur >= qp->s_size) in hfi1_make_rc_req()
978 qp->s_cur = 0; in hfi1_make_rc_req()
1004 qp->s_cur++; in hfi1_make_rc_req()
1005 if (qp->s_cur == qp->s_size) in hfi1_make_rc_req()
1006 qp->s_cur = 0; in hfi1_make_rc_req()
1030 priv->s_tid_cur = qp->s_cur; in hfi1_make_rc_req()
1031 if (++qp->s_cur == qp->s_size) in hfi1_make_rc_req()
1032 qp->s_cur = 0; in hfi1_make_rc_req()
1085 ++qp->s_cur == qp->s_size) in hfi1_make_rc_req()
1086 qp->s_cur = 0; in hfi1_make_rc_req()
1100 qp->s_cur == qp->s_tail) { in hfi1_make_rc_req()
1102 if (delta == 0 || qp->s_cur == qp->s_tail) in hfi1_make_rc_req()
1128 ++qp->s_cur == qp->s_size) in hfi1_make_rc_req()
1129 qp->s_cur = 0; in hfi1_make_rc_req()
1466 qp->s_cur = n; in reset_psn()
1493 wqe = rvt_get_swqe_ptr(qp, qp->s_cur); in reset_psn()
1496 qp->s_cur = n; in reset_psn()
1882 if (qp->s_acked == qp->s_cur) { in do_rc_completion()
1883 if (++qp->s_cur >= qp->s_size) in do_rc_completion()
1884 qp->s_cur = 0; in do_rc_completion()
1885 qp->s_acked = qp->s_cur; in do_rc_completion()
1886 wqe = rvt_get_swqe_ptr(qp, qp->s_cur); in do_rc_completion()
1894 if (qp->state == IB_QPS_SQD && qp->s_acked == qp->s_cur) in do_rc_completion()
1943 qp->s_cur = qpriv->s_tid_cur + 1; in update_qp_retry_state()
1944 if (qp->s_cur >= qp->s_size) in update_qp_retry_state()
1945 qp->s_cur = 0; in update_qp_retry_state()
1948 qp->s_cur = qpriv->s_tid_cur; in update_qp_retry_state()
2112 if (qp->s_cur != qp->s_tail && in do_rc_ack()