Home
last modified time | relevance | path

Searched refs:seqbuf (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/firmware/tegra/
H A Dbpmp-debugfs.c15 struct seqbuf { struct
21 static void seqbuf_init(struct seqbuf *seqbuf, void *buf, size_t size) in seqbuf_init() argument
23 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() argument
30 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() argument
35 return seqbuf->pos <= seqbuf->size ? 0 : -EOVERFLOW; in seqbuf_status()
38 static int seqbuf_eof(struct seqbuf *seqbuf) in seqbuf_eof() argument
[all …]