Searched refs:seqbuf (Results 1 – 1 of 1) sorted by relevance
15 struct seqbuf { struct21 static void seqbuf_init(struct seqbuf *seqbuf, void *buf, size_t size) in seqbuf_init() argument23 seqbuf->buf = buf; in seqbuf_init()24 seqbuf->size = size; in seqbuf_init()25 seqbuf->pos = 0; in seqbuf_init()28 static size_t seqbuf_avail(struct seqbuf *seqbuf) in seqbuf_avail() argument30 return seqbuf->pos < seqbuf->size ? seqbuf->size - seqbuf->pos : 0; in seqbuf_avail()33 static size_t seqbuf_status(struct seqbuf *seqbuf) in seqbuf_status() argument35 return seqbuf->pos <= seqbuf->size ? 0 : -EOVERFLOW; in seqbuf_status()38 static int seqbuf_eof(struct seqbuf *seqbuf) in seqbuf_eof() argument[all …]