Lines Matching refs:size
57 int line6_midibuf_init(struct midi_buffer *this, int size, int split)
59 this->buf = kmalloc(size, GFP_KERNEL);
64 this->size = size;
72 pr_debug("midibuf size=%d split=%d pos_read=%d pos_write=%d full=%d command_prev=%02x\n",
73 this->size, this->split, this->pos_read, this->pos_write,
82 (this->pos_read - this->pos_write + this->size - 1) % this->size +
91 (this->pos_write - this->pos_read + this->size - 1) % this->size +
117 length1 = this->size - this->pos_write;
160 length1 = this->size - this->pos_read;
250 this->pos_read = (this->pos_read + length) % this->size;