Lines Matching defs:lim
1801 size_t beg, lim, wrnew;
1808 /* lim is the index we can NOT write to */
1809 lim = pxtcp->inbuf.unacked;
1810 if (lim == 0) {
1811 lim = sz - 1; /* empty slot at the end */
1813 else if (lim == 1 && beg != 0) {
1814 lim = sz; /* empty slot at the beginning */
1817 --lim;
1820 if (beg == lim) {
1831 if (beg < lim) {
1834 IOVEC_SET_LEN(iov[0], lim - beg);
1841 IOVEC_SET_LEN(iov[1], lim);
2004 size_t beg, lim, sndlim;
2034 lim = pxtcp->inbuf.vacant;
2036 if (beg == lim) {
2047 * reschedule us as it receives more data and vacant (lim)
2076 if (lim < beg) { /* lim wrapped */
2078 /* so beg is not going to wrap, treat sndbuf as lim */
2079 lim = beg + sndbuf; /* ... and proceed to the simple case */
2083 if (toeob == sndbuf || lim == 0) {
2108 LWIP_ASSERT1(beg < lim);
2110 if (lim > sndlim) {
2111 lim = sndlim;
2113 tolim = lim - beg;
2120 pxtcp->inbuf.unsent = lim;