Lines Matching refs:buf_chunk
33 static bool chunk_is_empty(const struct buf_chunk *chunk)
38 static bool chunk_is_full(const struct buf_chunk *chunk)
43 static size_t chunk_len(const struct buf_chunk *chunk)
48 static size_t chunk_space(const struct buf_chunk *chunk)
53 static void chunk_reset(struct buf_chunk *chunk)
59 static size_t chunk_append(struct buf_chunk *chunk,
73 static size_t chunk_read(struct buf_chunk *chunk,
94 static ssize_t chunk_slurpn(struct buf_chunk *chunk, size_t max_len,
117 static void chunk_peek(const struct buf_chunk *chunk,
125 static void chunk_peek_at(const struct buf_chunk *chunk, size_t offset,
134 static size_t chunk_skip(struct buf_chunk *chunk, size_t amount)
147 static void chunk_list_free(struct buf_chunk **anchor)
149 struct buf_chunk *chunk;
170 struct buf_chunk **pchunk)
172 struct buf_chunk *chunk = NULL;
194 struct buf_chunk *chunk)
252 struct buf_chunk *chunk;
264 const struct buf_chunk *chunk = q->head;
279 struct buf_chunk *chunk = q->spare;
308 static struct buf_chunk *get_spare(struct bufq *q)
310 struct buf_chunk *chunk = NULL;
340 struct buf_chunk *chunk;
366 static struct buf_chunk *get_non_full_tail(struct bufq *q)
368 struct buf_chunk *chunk;
391 struct buf_chunk *tail;
461 struct buf_chunk *c = q->head;
579 struct buf_chunk *tail = NULL;