Lines Matching refs:vdma3
754 static int calc_planar_422(struct saa7146_vv *vv, struct saa7146_buf *buf, struct saa7146_video_dma *vdma2, struct saa7146_video_dma *vdma3)
760 vdma3->pitch = width;
768 vdma3->prot_addr = buf->pt[2].offset;
769 vdma3->base_even = ((vdma3->pitch/2)*height)+buf->pt[2].offset;
770 vdma3->base_odd = vdma3->base_even - (vdma3->pitch/2);
772 vdma3->base_even = buf->pt[2].offset;
773 vdma3->base_odd = vdma3->base_even + (vdma3->pitch/2);
774 vdma3->prot_addr = (vdma3->pitch/2)*height+buf->pt[2].offset;
784 static int calc_planar_420(struct saa7146_vv *vv, struct saa7146_buf *buf, struct saa7146_video_dma *vdma2, struct saa7146_video_dma *vdma3)
790 vdma3->pitch = width/2;
797 vdma3->prot_addr = buf->pt[1].offset;
798 vdma3->base_even = ((vdma3->pitch/2)*height)+buf->pt[1].offset;
799 vdma3->base_odd = vdma3->base_even - (vdma3->pitch/2);
802 vdma3->base_even = buf->pt[2].offset;
803 vdma3->base_odd = vdma3->base_even + (vdma3->pitch);
804 vdma3->prot_addr = (vdma3->pitch/2)*height+buf->pt[2].offset;
818 struct saa7146_video_dma vdma3;
852 vdma3.num_line_byte = 0; /* unused */
853 vdma3.base_page = buf->pt[2].dma | ME1;
857 calc_planar_420(vv,buf,&vdma2,&vdma3);
861 calc_planar_422(vv,buf,&vdma2,&vdma3);
875 vdma3.base_odd = vdma3.prot_addr;
876 vdma3.pitch /= 2;
882 vdma3.base_odd = vdma3.prot_addr;
883 vdma3.pitch /= 2;
891 vdma3.base_odd = vdma3.base_even;
892 vdma3.base_even = vdma3.prot_addr;
893 vdma3.pitch /= 2;
899 vdma3.pitch *= -1;
905 saa7146_write_out_dma(dev, 2, &vdma3);
908 saa7146_write_out_dma(dev, 3, &vdma3);