Searched refs:vdma3 (Results 1 - 2 of 2) sorted by relevance
/linux-4.1.27/drivers/media/common/saa7146/ |
H A D | saa7146_hlp.c | 767 static int calc_planar_422(struct saa7146_vv *vv, struct saa7146_buf *buf, struct saa7146_video_dma *vdma2, struct saa7146_video_dma *vdma3) calc_planar_422() argument 773 vdma3->pitch = width; calc_planar_422() 782 vdma3->prot_addr = buf->pt[2].offset; calc_planar_422() 783 vdma3->base_even = ((vdma3->pitch/2)*height)+buf->pt[2].offset; calc_planar_422() 784 vdma3->base_odd = vdma3->base_even - (vdma3->pitch/2); calc_planar_422() 786 vdma3->base_even = buf->pt[2].offset; calc_planar_422() 787 vdma3->base_odd = vdma3->base_even + (vdma3->pitch/2); calc_planar_422() 788 vdma3->prot_addr = (vdma3->pitch/2)*height+buf->pt[2].offset; calc_planar_422() 798 static int calc_planar_420(struct saa7146_vv *vv, struct saa7146_buf *buf, struct saa7146_video_dma *vdma2, struct saa7146_video_dma *vdma3) calc_planar_420() argument 804 vdma3->pitch = width/2; calc_planar_420() 811 vdma3->prot_addr = buf->pt[1].offset; calc_planar_420() 812 vdma3->base_even = ((vdma3->pitch/2)*height)+buf->pt[1].offset; calc_planar_420() 813 vdma3->base_odd = vdma3->base_even - (vdma3->pitch/2); calc_planar_420() 816 vdma3->base_even = buf->pt[2].offset; calc_planar_420() 817 vdma3->base_odd = vdma3->base_even + (vdma3->pitch); calc_planar_420() 818 vdma3->prot_addr = (vdma3->pitch/2)*height+buf->pt[2].offset; calc_planar_420() 832 struct saa7146_video_dma vdma3; calculate_video_dma_grab_planar() local 870 vdma3.num_line_byte = 0; /* unused */ calculate_video_dma_grab_planar() 871 vdma3.base_page = buf->pt[2].dma | ME1; calculate_video_dma_grab_planar() 875 calc_planar_420(vv,buf,&vdma2,&vdma3); calculate_video_dma_grab_planar() 879 calc_planar_422(vv,buf,&vdma2,&vdma3); calculate_video_dma_grab_planar() 894 vdma3.base_odd = vdma3.prot_addr; calculate_video_dma_grab_planar() 895 vdma3.pitch /= 2; calculate_video_dma_grab_planar() 901 vdma3.base_odd = vdma3.prot_addr; calculate_video_dma_grab_planar() 902 vdma3.pitch /= 2; calculate_video_dma_grab_planar() 910 vdma3.base_odd = vdma3.base_even; calculate_video_dma_grab_planar() 911 vdma3.base_even = vdma3.prot_addr; calculate_video_dma_grab_planar() 912 vdma3.pitch /= 2; calculate_video_dma_grab_planar() 918 vdma3.pitch *= -1; calculate_video_dma_grab_planar() 924 saa7146_write_out_dma(dev, 2, &vdma3); calculate_video_dma_grab_planar() 927 saa7146_write_out_dma(dev, 3, &vdma3); calculate_video_dma_grab_planar()
|
H A D | saa7146_vbi.c | 138 struct saa7146_video_dma vdma3; saa7146_set_vbi_capture() local 145 vdma3.base_even = 0xc8000000+2560*70; saa7146_set_vbi_capture() 146 vdma3.base_odd = 0xc8000000; saa7146_set_vbi_capture() 147 vdma3.prot_addr = 0xc8000000+2560*164; saa7146_set_vbi_capture() 148 vdma3.pitch = 2560; saa7146_set_vbi_capture() 149 vdma3.base_page = 0; saa7146_set_vbi_capture() 150 vdma3.num_line_byte = (64<<16)|((vbi_pixel_to_capture)<<0); // set above! saa7146_set_vbi_capture() 152 vdma3.base_even = buf->pt[2].offset; saa7146_set_vbi_capture() 153 vdma3.base_odd = buf->pt[2].offset + 16 * vbi_pixel_to_capture; saa7146_set_vbi_capture() 154 vdma3.prot_addr = buf->pt[2].offset + 16 * 2 * vbi_pixel_to_capture; saa7146_set_vbi_capture() 155 vdma3.pitch = vbi_pixel_to_capture; saa7146_set_vbi_capture() 156 vdma3.base_page = buf->pt[2].dma | ME1; saa7146_set_vbi_capture() 157 vdma3.num_line_byte = (16 << 16) | vbi_pixel_to_capture; saa7146_set_vbi_capture() 159 saa7146_write_out_dma(dev, 3, &vdma3); saa7146_set_vbi_capture()
|
Completed in 105 milliseconds