Searched refs:buf_index (Results 1 – 1 of 1) sorted by relevance
176 int buf_index; member447 if (f->is_write && f->buf_index > 0) { in qemu_fflush()450 len = f->put_buffer(f->opaque, f->buf, f->buf_offset, f->buf_index); in qemu_fflush()452 f->buf_offset += f->buf_index; in qemu_fflush()455 f->buf_index = 0; in qemu_fflush()471 f->buf_index = 0; in qemu_fill_buffer()497 if (!f->has_error && f->is_write == 0 && f->buf_index > 0) { in qemu_put_buffer()504 l = IO_BUF_SIZE - f->buf_index; in qemu_put_buffer()507 memcpy(f->buf + f->buf_index, buf, l); in qemu_put_buffer()509 f->buf_index += l; in qemu_put_buffer()[all …]