Lines Matching refs:bytesused
15 if (s->buf_size - buf->bytesused < copybytes) in ivtv_buf_copy_from_user()
16 copybytes = s->buf_size - buf->bytesused; in ivtv_buf_copy_from_user()
17 if (copy_from_user(buf->buf + buf->bytesused, src, copybytes)) { in ivtv_buf_copy_from_user()
20 buf->bytesused += copybytes; in ivtv_buf_copy_from_user()
28 for (i = 0; i < buf->bytesused; i += 4) in ivtv_buf_swap()
37 q->bytesused = 0; in ivtv_queue_init()
46 buf->bytesused = 0; in ivtv_enqueue()
55 q->bytesused += buf->bytesused - buf->readpos; in ivtv_enqueue()
70 q->bytesused -= buf->bytesused - buf->readpos; in ivtv_dequeue()
84 from->bytesused -= buf->bytesused - buf->readpos; in ivtv_queue_move_buf()
87 buf->bytesused = buf->readpos = buf->b_flags = buf->dma_xfer_cnt = 0; in ivtv_queue_move_buf()
90 to->bytesused += buf->bytesused - buf->readpos; in ivtv_queue_move_buf()
125 bytes_available = from_free ? from->length : from->bytesused; in ivtv_queue_move()
145 steal->bytesused -= buf->bytesused - buf->readpos; in ivtv_queue_move()
146 buf->bytesused = buf->readpos = buf->b_flags = buf->dma_xfer_cnt = 0; in ivtv_queue_move()
163 u32 old_bytesused = to->bytesused; in ivtv_queue_move()
165 while (to->bytesused - old_bytesused < needed_bytes) { in ivtv_queue_move()