Lines Matching refs:vdma2
339 struct saa7146_video_dma *vdma2, u32* clip_format, u32* arbtr_ctrl, enum v4l2_field field) in calculate_clipping_registers_rect() argument
451 vdma2->base_even = vv->d_clipping.dma_handle; in calculate_clipping_registers_rect()
452 vdma2->base_odd = vv->d_clipping.dma_handle; in calculate_clipping_registers_rect()
453 vdma2->prot_addr = vv->d_clipping.dma_handle+((sizeof(u32))*(numdwords)); in calculate_clipping_registers_rect()
454 vdma2->base_page = 0x04; in calculate_clipping_registers_rect()
455 vdma2->pitch = 0x00; in calculate_clipping_registers_rect()
456 vdma2->num_line_byte = (0 << 16 | (sizeof(u32))*(numdwords-1) ); in calculate_clipping_registers_rect()
488 struct saa7146_video_dma vdma2; in saa7146_set_clipping_rect() local
501 calculate_clipping_registers_rect(dev, fh, &vdma2, &clip_format, &arbtr_ctrl, field); in saa7146_set_clipping_rect()
508 saa7146_write(dev, BASE_EVEN2, vdma2.base_even); in saa7146_set_clipping_rect()
509 saa7146_write(dev, BASE_ODD2, vdma2.base_odd); in saa7146_set_clipping_rect()
510 saa7146_write(dev, PROT_ADDR2, vdma2.prot_addr); in saa7146_set_clipping_rect()
511 saa7146_write(dev, BASE_PAGE2, vdma2.base_page); in saa7146_set_clipping_rect()
512 saa7146_write(dev, PITCH2, vdma2.pitch); in saa7146_set_clipping_rect()
513 saa7146_write(dev, NUM_LINE_BYTE2, vdma2.num_line_byte); in saa7146_set_clipping_rect()
765 …struct saa7146_vv *vv, struct saa7146_buf *buf, struct saa7146_video_dma *vdma2, struct saa7146_vi… in calc_planar_422() argument
770 vdma2->pitch = width; in calc_planar_422()
776 vdma2->prot_addr = buf->pt[1].offset; in calc_planar_422()
777 vdma2->base_even = ((vdma2->pitch/2)*height)+buf->pt[1].offset; in calc_planar_422()
778 vdma2->base_odd = vdma2->base_even - (vdma2->pitch/2); in calc_planar_422()
788 vdma2->base_even = buf->pt[1].offset; in calc_planar_422()
789 vdma2->base_odd = vdma2->base_even + (vdma2->pitch/2); in calc_planar_422()
790 vdma2->prot_addr = (vdma2->pitch/2)*height+buf->pt[1].offset; in calc_planar_422()
796 …struct saa7146_vv *vv, struct saa7146_buf *buf, struct saa7146_video_dma *vdma2, struct saa7146_vi… in calc_planar_420() argument
801 vdma2->pitch = width/2; in calc_planar_420()
805 vdma2->prot_addr = buf->pt[2].offset; in calc_planar_420()
806 vdma2->base_even = ((vdma2->pitch/2)*height)+buf->pt[2].offset; in calc_planar_420()
807 vdma2->base_odd = vdma2->base_even - (vdma2->pitch/2); in calc_planar_420()
818 vdma2->base_even = buf->pt[1].offset; in calc_planar_420()
819 vdma2->base_odd = vdma2->base_even + (vdma2->pitch); in calc_planar_420()
820 vdma2->prot_addr = (vdma2->pitch/2)*height+buf->pt[1].offset; in calc_planar_420()
829 struct saa7146_video_dma vdma2; in calculate_video_dma_grab_planar() local
865 vdma2.num_line_byte = 0; /* unused */ in calculate_video_dma_grab_planar()
866 vdma2.base_page = buf->pt[1].dma | ME1; in calculate_video_dma_grab_planar()
873 calc_planar_420(vv,buf,&vdma2,&vdma3); in calculate_video_dma_grab_planar()
877 calc_planar_422(vv,buf,&vdma2,&vdma3); in calculate_video_dma_grab_planar()
890 vdma2.base_odd = vdma2.prot_addr; in calculate_video_dma_grab_planar()
891 vdma2.pitch /= 2; in calculate_video_dma_grab_planar()
897 vdma2.base_odd = vdma2.prot_addr; in calculate_video_dma_grab_planar()
898 vdma2.pitch /= 2; in calculate_video_dma_grab_planar()
905 vdma2.base_odd = vdma2.base_even; in calculate_video_dma_grab_planar()
906 vdma2.base_even = vdma2.prot_addr; in calculate_video_dma_grab_planar()
907 vdma2.pitch /= 2; in calculate_video_dma_grab_planar()
915 vdma2.pitch *= -1; in calculate_video_dma_grab_planar()
921 saa7146_write_out_dma(dev, 3, &vdma2); in calculate_video_dma_grab_planar()
924 saa7146_write_out_dma(dev, 2, &vdma2); in calculate_video_dma_grab_planar()