vdma3 765 drivers/media/common/saa7146/saa7146_hlp.c static int calc_planar_422(struct saa7146_vv *vv, struct saa7146_buf *buf, struct saa7146_video_dma *vdma2, struct saa7146_video_dma *vdma3) vdma3 771 drivers/media/common/saa7146/saa7146_hlp.c vdma3->pitch = width; vdma3 780 drivers/media/common/saa7146/saa7146_hlp.c vdma3->prot_addr = buf->pt[2].offset; vdma3 781 drivers/media/common/saa7146/saa7146_hlp.c vdma3->base_even = ((vdma3->pitch/2)*height)+buf->pt[2].offset; vdma3 782 drivers/media/common/saa7146/saa7146_hlp.c vdma3->base_odd = vdma3->base_even - (vdma3->pitch/2); vdma3 784 drivers/media/common/saa7146/saa7146_hlp.c vdma3->base_even = buf->pt[2].offset; vdma3 785 drivers/media/common/saa7146/saa7146_hlp.c vdma3->base_odd = vdma3->base_even + (vdma3->pitch/2); vdma3 786 drivers/media/common/saa7146/saa7146_hlp.c vdma3->prot_addr = (vdma3->pitch/2)*height+buf->pt[2].offset; vdma3 796 drivers/media/common/saa7146/saa7146_hlp.c static int calc_planar_420(struct saa7146_vv *vv, struct saa7146_buf *buf, struct saa7146_video_dma *vdma2, struct saa7146_video_dma *vdma3) vdma3 802 drivers/media/common/saa7146/saa7146_hlp.c vdma3->pitch = width/2; vdma3 809 drivers/media/common/saa7146/saa7146_hlp.c vdma3->prot_addr = buf->pt[1].offset; vdma3 810 drivers/media/common/saa7146/saa7146_hlp.c vdma3->base_even = ((vdma3->pitch/2)*height)+buf->pt[1].offset; vdma3 811 drivers/media/common/saa7146/saa7146_hlp.c vdma3->base_odd = vdma3->base_even - (vdma3->pitch/2); vdma3 814 drivers/media/common/saa7146/saa7146_hlp.c vdma3->base_even = buf->pt[2].offset; vdma3 815 drivers/media/common/saa7146/saa7146_hlp.c vdma3->base_odd = vdma3->base_even + (vdma3->pitch); vdma3 816 drivers/media/common/saa7146/saa7146_hlp.c vdma3->prot_addr = (vdma3->pitch/2)*height+buf->pt[2].offset; vdma3 830 drivers/media/common/saa7146/saa7146_hlp.c struct saa7146_video_dma vdma3; vdma3 868 drivers/media/common/saa7146/saa7146_hlp.c vdma3.num_line_byte = 0; /* unused */ vdma3 869 drivers/media/common/saa7146/saa7146_hlp.c vdma3.base_page = buf->pt[2].dma | ME1; vdma3 873 drivers/media/common/saa7146/saa7146_hlp.c calc_planar_420(vv,buf,&vdma2,&vdma3); vdma3 877 drivers/media/common/saa7146/saa7146_hlp.c calc_planar_422(vv,buf,&vdma2,&vdma3); vdma3 892 drivers/media/common/saa7146/saa7146_hlp.c vdma3.base_odd = vdma3.prot_addr; vdma3 893 drivers/media/common/saa7146/saa7146_hlp.c vdma3.pitch /= 2; vdma3 899 drivers/media/common/saa7146/saa7146_hlp.c vdma3.base_odd = vdma3.prot_addr; vdma3 900 drivers/media/common/saa7146/saa7146_hlp.c vdma3.pitch /= 2; vdma3 908 drivers/media/common/saa7146/saa7146_hlp.c vdma3.base_odd = vdma3.base_even; vdma3 909 drivers/media/common/saa7146/saa7146_hlp.c vdma3.base_even = vdma3.prot_addr; vdma3 910 drivers/media/common/saa7146/saa7146_hlp.c vdma3.pitch /= 2; vdma3 916 drivers/media/common/saa7146/saa7146_hlp.c vdma3.pitch *= -1; vdma3 922 drivers/media/common/saa7146/saa7146_hlp.c saa7146_write_out_dma(dev, 2, &vdma3); vdma3 925 drivers/media/common/saa7146/saa7146_hlp.c saa7146_write_out_dma(dev, 3, &vdma3); vdma3 139 drivers/media/common/saa7146/saa7146_vbi.c struct saa7146_video_dma vdma3; vdma3 153 drivers/media/common/saa7146/saa7146_vbi.c vdma3.base_even = buf->pt[2].offset; vdma3 154 drivers/media/common/saa7146/saa7146_vbi.c vdma3.base_odd = buf->pt[2].offset + 16 * vbi_pixel_to_capture; vdma3 155 drivers/media/common/saa7146/saa7146_vbi.c vdma3.prot_addr = buf->pt[2].offset + 16 * 2 * vbi_pixel_to_capture; vdma3 156 drivers/media/common/saa7146/saa7146_vbi.c vdma3.pitch = vbi_pixel_to_capture; vdma3 157 drivers/media/common/saa7146/saa7146_vbi.c vdma3.base_page = buf->pt[2].dma | ME1; vdma3 158 drivers/media/common/saa7146/saa7146_vbi.c vdma3.num_line_byte = (16 << 16) | vbi_pixel_to_capture; vdma3 160 drivers/media/common/saa7146/saa7146_vbi.c saa7146_write_out_dma(dev, 3, &vdma3);