Lines Matching refs:yi
340 struct yuv_playback_info *yi = &itv->yuv_info; in ivtv_dma_stream_dec_prepare() local
341 u8 frame = yi->draw_frame; in ivtv_dma_stream_dec_prepare()
342 struct yuv_frame_info *f = &yi->new_frame_info[frame]; in ivtv_dma_stream_dec_prepare()
354 if (yi->blanking_dmaptr) { in ivtv_dma_stream_dec_prepare()
355 s->sg_pending[idx].src = yi->blanking_dmaptr; in ivtv_dma_stream_dec_prepare()
832 struct yuv_playback_info *yi = &itv->yuv_info; in ivtv_irq_vsync() local
833 int last_dma_frame = atomic_read(&yi->next_dma_frame); in ivtv_irq_vsync()
834 struct yuv_frame_info *f = &yi->new_frame_info[last_dma_frame]; in ivtv_irq_vsync()
843 if (!(f->interlaced && f->delay && yi->fields_lapsed < 1)) { in ivtv_irq_vsync()
844 if (next_dma_frame >= 0 && next_dma_frame != atomic_read(&yi->next_fill_frame)) { in ivtv_irq_vsync()
850 atomic_set(&yi->next_dma_frame, next_dma_frame); in ivtv_irq_vsync()
851 yi->fields_lapsed = -1; in ivtv_irq_vsync()
852 yi->running = 1; in ivtv_irq_vsync()
895 if (yi->running && (yi->yuv_forced_update || f->update)) { in ivtv_irq_vsync()
898 (u8)(atomic_read(&yi->next_dma_frame) - in ivtv_irq_vsync()
900 f = &yi->new_frame_info[last_dma_frame]; in ivtv_irq_vsync()
904 yi->update_frame = last_dma_frame; in ivtv_irq_vsync()
906 yi->yuv_forced_update = 0; in ivtv_irq_vsync()
912 yi->fields_lapsed++; in ivtv_irq_vsync()