Lines Matching refs:bytesused
222 if (buf->readpos != buf->bytesused) { in ivtv_get_buffer()
282 itv->vbi.sliced_mpeg_buf.bytesused = itv->vbi.sliced_mpeg_size[idx]; in ivtv_setup_sliced_vbi_buf()
290 size_t len = buf->bytesused - buf->readpos; in ivtv_copy_buf_to_user()
303 if ((char *)q + 15 >= buf->buf + buf->bytesused || in ivtv_copy_buf_to_user()
385 ivtv_enqueue(s, buf, (buf->readpos == buf->bytesused) ? &s->q_free : &s->q_io); in ivtv_read()
387 else if (buf->readpos == buf->bytesused) { in ivtv_read()
391 itv->vbi_data_inserted += buf->bytesused; in ivtv_read()
605 IVTV_DEBUG_HI_FILE("Wrote %d bytes to %s (%d)\n", bytes_written, s->name, s->q_full.bytesused); in ivtv_write()
612 while (q.length - q.bytesused < count && (buf = ivtv_dequeue(s, &s->q_io))) in ivtv_write()
614 while (q.length - q.bytesused < count && (buf = ivtv_dequeue(s, &s->q_free))) { in ivtv_write()
664 if (buf->bytesused != s->buf_size) { in ivtv_write()
704 IVTV_DEBUG_HI_FILE("Wrote %d bytes to %s (%d)\n", bytes_written, s->name, s->q_full.bytesused); in ivtv_write()