Home
last modified time | relevance | path

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

/freebsd/sys/dev/sound/midi/
H A Dmidi.c183 static struct sbuf midistat_sbuf; variable
953 sbuf_new(&midistat_sbuf, NULL, 4096, SBUF_AUTOEXTEND); in midistat_open()
954 error = (midistat_prepare(&midistat_sbuf) > 0) ? 0 : ENOMEM; in midistat_open()
970 sbuf_delete(&midistat_sbuf); in midistat_close()
988 if (uio->uio_offset < 0 || uio->uio_offset > sbuf_len(&midistat_sbuf)) { in midistat_read()
993 l = lmin(uio->uio_resid, sbuf_len(&midistat_sbuf) - uio->uio_offset); in midistat_read()
995 err = uiomove(sbuf_data(&midistat_sbuf) + uio->uio_offset, l, in midistat_read()