Lines Matching refs:dma_q

121 	struct au0828_dmaqueue  *dma_q = urb->context;  in au0828_irq_callback()  local
122 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq); in au0828_irq_callback()
208 struct au0828_dmaqueue *dma_q = &dev->vidq; in au0828_init_isoc() local
264 au0828_irq_callback, dma_q, 1); in au0828_init_isoc()
296 struct au0828_dmaqueue *dma_q, in buffer_filled() argument
319 struct au0828_dmaqueue *dma_q, in au0828_copy_video() argument
331 if (dma_q->pos + len > buf->length) in au0828_copy_video()
332 len = buf->length - dma_q->pos; in au0828_copy_video()
343 linesdone = dma_q->pos / bytesperline; in au0828_copy_video()
344 currlinedone = dma_q->pos % bytesperline; in au0828_copy_video()
393 dma_q->pos += len; in au0828_copy_video()
399 static inline void get_next_buf(struct au0828_dmaqueue *dma_q, in get_next_buf() argument
402 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq); in get_next_buf()
404 if (list_empty(&dma_q->active)) { in get_next_buf()
412 *buf = list_entry(dma_q->active.next, struct au0828_buffer, list); in get_next_buf()
415 dma_q->pos = 0; in get_next_buf()
423 struct au0828_dmaqueue *dma_q, in au0828_copy_vbi() argument
437 if (dma_q == NULL) { in au0828_copy_vbi()
454 if (dma_q->pos + len > buf->length) in au0828_copy_vbi()
455 len = buf->length - dma_q->pos; in au0828_copy_vbi()
458 startwrite = outp + (dma_q->pos / 2); in au0828_copy_vbi()
467 dma_q->pos += len; in au0828_copy_vbi()
474 static inline void vbi_get_next_buf(struct au0828_dmaqueue *dma_q, in vbi_get_next_buf() argument
477 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vbiq); in vbi_get_next_buf()
479 if (list_empty(&dma_q->active)) { in vbi_get_next_buf()
487 *buf = list_entry(dma_q->active.next, struct au0828_buffer, list); in vbi_get_next_buf()
490 dma_q->pos = 0; in vbi_get_next_buf()
503 struct au0828_dmaqueue *dma_q = urb->context; in au0828_isoc_copy() local
575 buffer_filled(dev, dma_q, buf); in au0828_isoc_copy()
576 get_next_buf(dma_q, &buf); in au0828_isoc_copy()
609 dma_q->pos = 0; in au0828_isoc_copy()
630 au0828_copy_video(dev, dma_q, buf, p, outp, len); in au0828_isoc_copy()
960 struct au0828_dmaqueue *dma_q = &dev->vidq; in au0828_vid_buffer_timeout() local
971 buffer_filled(dev, dma_q, buf); in au0828_vid_buffer_timeout()
973 get_next_buf(dma_q, &buf); in au0828_vid_buffer_timeout()
984 struct au0828_dmaqueue *dma_q = &dev->vbiq; in au0828_vbi_buffer_timeout() local
995 buffer_filled(dev, dma_q, buf); in au0828_vbi_buffer_timeout()
997 vbi_get_next_buf(dma_q, &buf); in au0828_vbi_buffer_timeout()