Home
last modified time | relevance | path

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

/sound/usb/line6/
Dmidibuf.c35 return (this->pos_read == this->pos_write) && !this->full; in midibuf_is_empty()
45 this->pos_read = this->pos_write = this->full = 0; in line6_midibuf_reset()
67 (this->pos_read - this->pos_write + this->size - 1) % this->size + in line6_midibuf_bytes_free()
76 (this->pos_write - this->pos_read + this->size - 1) % this->size + in line6_midibuf_bytes_used()
102 length1 = this->size - this->pos_write; in line6_midibuf_write()
106 memcpy(this->buf + this->pos_write, data, length); in line6_midibuf_write()
107 this->pos_write += length; in line6_midibuf_write()
111 memcpy(this->buf + this->pos_write, data, length1); in line6_midibuf_write()
113 this->pos_write = length2; in line6_midibuf_write()
116 if (this->pos_write == this->pos_read) in line6_midibuf_write()
Dmidibuf.h18 int pos_read, pos_write; member