Lines Matching refs:dma_q
124 struct au0828_dmaqueue *dma_q = urb->context; in au0828_irq_callback() local
125 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq); in au0828_irq_callback()
211 struct au0828_dmaqueue *dma_q = &dev->vidq; in au0828_init_isoc() local
269 au0828_irq_callback, dma_q, 1); in au0828_init_isoc()
301 struct au0828_dmaqueue *dma_q, in buffer_filled() argument
324 struct au0828_dmaqueue *dma_q, in au0828_copy_video() argument
336 if (dma_q->pos + len > buf->length) in au0828_copy_video()
337 len = buf->length - dma_q->pos; in au0828_copy_video()
348 linesdone = dma_q->pos / bytesperline; in au0828_copy_video()
349 currlinedone = dma_q->pos % bytesperline; in au0828_copy_video()
398 dma_q->pos += len; in au0828_copy_video()
404 static inline void get_next_buf(struct au0828_dmaqueue *dma_q, in get_next_buf() argument
407 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq); in get_next_buf()
409 if (list_empty(&dma_q->active)) { in get_next_buf()
417 *buf = list_entry(dma_q->active.next, struct au0828_buffer, list); in get_next_buf()
420 dma_q->pos = 0; in get_next_buf()
428 struct au0828_dmaqueue *dma_q, in au0828_copy_vbi() argument
442 if (dma_q == NULL) { in au0828_copy_vbi()
459 if (dma_q->pos + len > buf->length) in au0828_copy_vbi()
460 len = buf->length - dma_q->pos; in au0828_copy_vbi()
463 startwrite = outp + (dma_q->pos / 2); in au0828_copy_vbi()
472 dma_q->pos += len; in au0828_copy_vbi()
479 static inline void vbi_get_next_buf(struct au0828_dmaqueue *dma_q, in vbi_get_next_buf() argument
482 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vbiq); in vbi_get_next_buf()
484 if (list_empty(&dma_q->active)) { in vbi_get_next_buf()
492 *buf = list_entry(dma_q->active.next, struct au0828_buffer, list); in vbi_get_next_buf()
495 dma_q->pos = 0; in vbi_get_next_buf()
508 struct au0828_dmaqueue *dma_q = urb->context; in au0828_isoc_copy() local
580 buffer_filled(dev, dma_q, buf); in au0828_isoc_copy()
581 get_next_buf(dma_q, &buf); in au0828_isoc_copy()
613 dma_q->pos = 0; in au0828_isoc_copy()
634 au0828_copy_video(dev, dma_q, buf, p, outp, len); in au0828_isoc_copy()
904 struct au0828_dmaqueue *dma_q = &dev->vidq; in au0828_vid_buffer_timeout() local
915 buffer_filled(dev, dma_q, buf); in au0828_vid_buffer_timeout()
917 get_next_buf(dma_q, &buf); in au0828_vid_buffer_timeout()
928 struct au0828_dmaqueue *dma_q = &dev->vbiq; in au0828_vbi_buffer_timeout() local
939 buffer_filled(dev, dma_q, buf); in au0828_vbi_buffer_timeout()
941 vbi_get_next_buf(dma_q, &buf); in au0828_vbi_buffer_timeout()