Lines Matching refs:rwnd
173 asoc->rwnd = SCTP_DEFAULT_MINWINDOW; in sctp_association_init()
175 asoc->rwnd = sk->sk_rcvbuf/2; in sctp_association_init()
177 asoc->a_rwnd = asoc->rwnd; in sctp_association_init()
180 asoc->peer.rwnd = SCTP_DEFAULT_MAXWINDOW; in sctp_association_init()
1098 asoc->peer.rwnd = new->peer.rwnd; in sctp_assoc_update()
1427 if ((asoc->rwnd > asoc->a_rwnd) && in sctp_peer_needs_update()
1428 ((asoc->rwnd - asoc->a_rwnd) >= max_t(__u32, in sctp_peer_needs_update()
1449 asoc->rwnd += (len - asoc->rwnd_over); in sctp_assoc_rwnd_increase()
1453 asoc->rwnd += len; in sctp_assoc_rwnd_increase()
1461 if (asoc->rwnd_press && asoc->rwnd >= asoc->rwnd_press) { in sctp_assoc_rwnd_increase()
1463 asoc->rwnd += change; in sctp_assoc_rwnd_increase()
1468 __func__, asoc, len, asoc->rwnd, asoc->rwnd_over, in sctp_assoc_rwnd_increase()
1477 asoc->a_rwnd = asoc->rwnd; in sctp_assoc_rwnd_increase()
1480 "a_rwnd:%u\n", __func__, asoc, asoc->rwnd, in sctp_assoc_rwnd_increase()
1504 if (unlikely(!asoc->rwnd || asoc->rwnd_over)) in sctp_assoc_rwnd_decrease()
1507 asoc->rwnd, asoc->rwnd_over); in sctp_assoc_rwnd_decrease()
1522 if (asoc->rwnd >= len) { in sctp_assoc_rwnd_decrease()
1523 asoc->rwnd -= len; in sctp_assoc_rwnd_decrease()
1525 asoc->rwnd_press += asoc->rwnd; in sctp_assoc_rwnd_decrease()
1526 asoc->rwnd = 0; in sctp_assoc_rwnd_decrease()
1529 asoc->rwnd_over = len - asoc->rwnd; in sctp_assoc_rwnd_decrease()
1530 asoc->rwnd = 0; in sctp_assoc_rwnd_decrease()
1534 __func__, asoc, len, asoc->rwnd, asoc->rwnd_over, in sctp_assoc_rwnd_decrease()