Lines Matching refs:dma_q
112 struct au0828_dmaqueue *dma_q = urb->context; in au0828_irq_callback() local
113 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq); in au0828_irq_callback()
199 struct au0828_dmaqueue *dma_q = &dev->vidq; in au0828_init_isoc() local
255 au0828_irq_callback, dma_q, 1); in au0828_init_isoc()
287 struct au0828_dmaqueue *dma_q, in buffer_filled() argument
310 struct au0828_dmaqueue *dma_q, in au0828_copy_video() argument
322 if (dma_q->pos + len > buf->length) in au0828_copy_video()
323 len = buf->length - dma_q->pos; in au0828_copy_video()
334 linesdone = dma_q->pos / bytesperline; in au0828_copy_video()
335 currlinedone = dma_q->pos % bytesperline; in au0828_copy_video()
384 dma_q->pos += len; in au0828_copy_video()
390 static inline void get_next_buf(struct au0828_dmaqueue *dma_q, in get_next_buf() argument
393 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq); in get_next_buf()
395 if (list_empty(&dma_q->active)) { in get_next_buf()
403 *buf = list_entry(dma_q->active.next, struct au0828_buffer, list); in get_next_buf()
406 dma_q->pos = 0; in get_next_buf()
414 struct au0828_dmaqueue *dma_q, in au0828_copy_vbi() argument
428 if (dma_q == NULL) { in au0828_copy_vbi()
445 if (dma_q->pos + len > buf->length) in au0828_copy_vbi()
446 len = buf->length - dma_q->pos; in au0828_copy_vbi()
449 startwrite = outp + (dma_q->pos / 2); in au0828_copy_vbi()
458 dma_q->pos += len; in au0828_copy_vbi()
465 static inline void vbi_get_next_buf(struct au0828_dmaqueue *dma_q, in vbi_get_next_buf() argument
468 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vbiq); in vbi_get_next_buf()
470 if (list_empty(&dma_q->active)) { in vbi_get_next_buf()
478 *buf = list_entry(dma_q->active.next, struct au0828_buffer, list); in vbi_get_next_buf()
481 dma_q->pos = 0; in vbi_get_next_buf()
494 struct au0828_dmaqueue *dma_q = urb->context; in au0828_isoc_copy() local
566 buffer_filled(dev, dma_q, buf); in au0828_isoc_copy()
567 get_next_buf(dma_q, &buf); in au0828_isoc_copy()
600 dma_q->pos = 0; in au0828_isoc_copy()
621 au0828_copy_video(dev, dma_q, buf, p, outp, len); in au0828_isoc_copy()
957 struct au0828_dmaqueue *dma_q = &dev->vidq; in au0828_vid_buffer_timeout() local
968 buffer_filled(dev, dma_q, buf); in au0828_vid_buffer_timeout()
970 get_next_buf(dma_q, &buf); in au0828_vid_buffer_timeout()
981 struct au0828_dmaqueue *dma_q = &dev->vbiq; in au0828_vbi_buffer_timeout() local
992 buffer_filled(dev, dma_q, buf); in au0828_vbi_buffer_timeout()
994 vbi_get_next_buf(dma_q, &buf); in au0828_vbi_buffer_timeout()