Lines Matching refs:e
32 unsigned int e; in cirbuf_add_buf_head() local
37 e = CIRBUF_IS_EMPTY(cbuf) ? 1 : 0; in cirbuf_add_buf_head()
39 if (n < cbuf->start + e) { in cirbuf_add_buf_head()
40 dprintf("s[%d] -> d[%d] (%d)\n", 0, cbuf->start - n + e, n); in cirbuf_add_buf_head()
41 memcpy(cbuf->buf + cbuf->start - n + e, c, n); in cirbuf_add_buf_head()
44 dprintf("s[%d] -> d[%d] (%d)\n", + n - (cbuf->start + e), 0, in cirbuf_add_buf_head()
45 cbuf->start + e); in cirbuf_add_buf_head()
47 (cbuf->start + e), 0, n - (cbuf->start + e)); in cirbuf_add_buf_head()
48 memcpy(cbuf->buf, c + n - (cbuf->start + e) , cbuf->start + e); in cirbuf_add_buf_head()
49 memcpy(cbuf->buf + cbuf->maxlen - n + (cbuf->start + e), c, in cirbuf_add_buf_head()
50 n - (cbuf->start + e)); in cirbuf_add_buf_head()
53 cbuf->start += (cbuf->maxlen - n + e); in cirbuf_add_buf_head()
63 unsigned int e; in cirbuf_add_buf_tail() local
68 e = CIRBUF_IS_EMPTY(cbuf) ? 1 : 0; in cirbuf_add_buf_tail()
70 if (n < cbuf->maxlen - cbuf->end - 1 + e) { in cirbuf_add_buf_tail()
71 dprintf("s[%d] -> d[%d] (%d)\n", 0, cbuf->end + !e, n); in cirbuf_add_buf_tail()
72 memcpy(cbuf->buf + cbuf->end + !e, c, n); in cirbuf_add_buf_tail()
75 dprintf("s[%d] -> d[%d] (%d)\n", cbuf->end + !e, 0, in cirbuf_add_buf_tail()
76 cbuf->maxlen - cbuf->end - 1 + e); in cirbuf_add_buf_tail()
78 e, 0, n - cbuf->maxlen + cbuf->end + 1 - e); in cirbuf_add_buf_tail()
79 memcpy(cbuf->buf + cbuf->end + !e, c, cbuf->maxlen - in cirbuf_add_buf_tail()
80 cbuf->end - 1 + e); in cirbuf_add_buf_tail()
81 memcpy(cbuf->buf, c + cbuf->maxlen - cbuf->end - 1 + e, in cirbuf_add_buf_tail()
82 n - cbuf->maxlen + cbuf->end + 1 - e); in cirbuf_add_buf_tail()
85 cbuf->end += n - e; in cirbuf_add_buf_tail()