Lines Matching full:end
44 uint32_t start = ws->start, end = ws->end, seq = ws->seq; in sys_winstream_write() local
47 * (Max bytes buffered is actually len-1 because start==end is in sys_winstream_write()
51 start = end; in sys_winstream_write()
60 uint32_t avail = (ws->len - 1) - idx_sub(ws, end, start); in sys_winstream_write()
70 ws->start = end; in sys_winstream_write()
74 suffix = MIN(len, ws->len - end); in sys_winstream_write()
75 MEMCPY(&ws->data[end], data, suffix); in sys_winstream_write()
80 ws->end = idx_mod(ws, end + len); in sys_winstream_write()
88 uint32_t seq0 = *seq, start, end, wseq, len, behind, copy, suffix; in sys_winstream_read() local
91 start = ws->start; end = ws->end; wseq = ws->seq; in sys_winstream_read()
95 if (*seq == wseq || start == end) { in sys_winstream_read()
105 if (behind > idx_sub(ws, ws->end, ws->start)) { in sys_winstream_read()
111 copy = idx_sub(ws, ws->end, behind); in sys_winstream_read()