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
254 au0828_irq_callback, dma_q, 1); in au0828_init_isoc()
286 struct au0828_dmaqueue *dma_q, in buffer_filled() argument
309 struct au0828_dmaqueue *dma_q, in au0828_copy_video() argument
321 if (dma_q->pos + len > buf->length) in au0828_copy_video()
322 len = buf->length - dma_q->pos; in au0828_copy_video()
333 linesdone = dma_q->pos / bytesperline; in au0828_copy_video()
334 currlinedone = dma_q->pos % bytesperline; in au0828_copy_video()
383 dma_q->pos += len; in au0828_copy_video()
389 static inline void get_next_buf(struct au0828_dmaqueue *dma_q, in get_next_buf() argument
392 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq); in get_next_buf()
394 if (list_empty(&dma_q->active)) { in get_next_buf()
402 *buf = list_entry(dma_q->active.next, struct au0828_buffer, list); in get_next_buf()
405 dma_q->pos = 0; in get_next_buf()
413 struct au0828_dmaqueue *dma_q, in au0828_copy_vbi() argument
427 if (dma_q == NULL) { in au0828_copy_vbi()
444 if (dma_q->pos + len > buf->length) in au0828_copy_vbi()
445 len = buf->length - dma_q->pos; in au0828_copy_vbi()
448 startwrite = outp + (dma_q->pos / 2); in au0828_copy_vbi()
457 dma_q->pos += len; in au0828_copy_vbi()
464 static inline void vbi_get_next_buf(struct au0828_dmaqueue *dma_q, in vbi_get_next_buf() argument
467 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vbiq); in vbi_get_next_buf()
469 if (list_empty(&dma_q->active)) { in vbi_get_next_buf()
477 *buf = list_entry(dma_q->active.next, struct au0828_buffer, list); in vbi_get_next_buf()
480 dma_q->pos = 0; in vbi_get_next_buf()
493 struct au0828_dmaqueue *dma_q = urb->context; in au0828_isoc_copy() local
565 buffer_filled(dev, dma_q, buf); in au0828_isoc_copy()
566 get_next_buf(dma_q, &buf); in au0828_isoc_copy()
599 dma_q->pos = 0; in au0828_isoc_copy()
620 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()