Lines Matching refs:vv
22 static void calculate_hxo_and_hyo(struct saa7146_vv *vv, u32* hps_h_scale, u32* hps_ctrl)
26 hyo = vv->standard->v_offset;
27 hxo = vv->standard->h_offset;
341 struct saa7146_vv *vv = dev->vv_data;
342 __le32 *clipping = vv->d_clipping.cpu_addr;
344 int width = vv->ov.win.w.width;
345 int height = vv->ov.win.w.height;
346 int clipcount = vv->ov.nclips;
366 x[i] = vv->ov.clips[i].c.left;
367 y[i] = vv->ov.clips[i].c.top;
368 w[i] = vv->ov.clips[i].c.width;
369 h[i] = vv->ov.clips[i].c.height;
383 if( 0 != vv->vflip ) {
451 vdma2->base_even = vv->d_clipping.dma_handle;
452 vdma2->base_odd = vv->d_clipping.dma_handle;
453 vdma2->prot_addr = vv->d_clipping.dma_handle+((sizeof(u32))*(numdwords));
486 struct saa7146_vv *vv = dev->vv_data;
487 enum v4l2_field field = vv->ov.win.field;
493 if (vv->ov.nclips == 0) {
526 struct saa7146_vv *vv = dev->vv_data;
528 int source = vv->current_hps_source;
529 int sync = vv->current_hps_sync;
536 calculate_v_scale_registers(dev, field, vv->standard->v_field*2, height, &hps_v_scale, &hps_v_gain);
542 calculate_h_scale_registers(dev, vv->standard->h_pixels, width, vv->hflip, &hps_ctrl, &hps_v_gain, &hps_h_prescale, &hps_h_scale);
545 calculate_hxo_and_hyo(vv, &hps_h_scale, &hps_ctrl);
562 struct saa7146_vv *vv = dev->vv_data;
565 int b_depth = vv->ov_fmt->depth;
566 int b_bpl = vv->ov_fb.fmt.bytesperline;
574 u32 base = (u32)(unsigned long)vv->ov_fb.base;
580 if ( 0 == vv->vflip ) {
605 if ( 0 != vv->vflip ) {
610 vdma1.num_line_byte = (vv->standard->v_field<<16)+vv->standard->h_pixels;
630 struct saa7146_vv *vv = dev->vv_data;
643 vv->current_hps_source = source;
644 vv->current_hps_sync = sync;
651 struct saa7146_vv *vv = dev->vv_data;
653 saa7146_set_window(dev, vv->ov.win.w.width, vv->ov.win.w.height, vv->ov.win.field);
654 saa7146_set_position(dev, vv->ov.win.w.left, vv->ov.win.w.top, vv->ov.win.w.height, vv->ov.win.field, vv->ov_fmt->pixelformat);
655 saa7146_set_output_format(dev, vv->ov_fmt->trans);
704 struct saa7146_vv *vv = dev->vv_data;
724 vdma1.num_line_byte = ((vv->standard->v_field<<16) + vv->standard->h_pixels);
727 if( 0 != vv->vflip ) {
740 if ( vv->last_field == V4L2_FIELD_TOP ) {
743 } else if ( vv->last_field == V4L2_FIELD_BOTTOM ) {
757 if( 0 != vv->vflip ) {
765 static int calc_planar_422(struct saa7146_vv *vv, struct saa7146_buf *buf, struct saa7146_video_dma *vdma2, struct saa7146_video_dma *vdma3)
775 if( 0 != vv->vflip ) {
796 static int calc_planar_420(struct saa7146_vv *vv, struct saa7146_buf *buf, struct saa7146_video_dma *vdma2, struct saa7146_video_dma *vdma3)
804 if( 0 != vv->vflip ) {
827 struct saa7146_vv *vv = dev->vv_data;
852 vdma1.num_line_byte = ((vv->standard->v_field<<16) + vv->standard->h_pixels);
855 if( 0 != vv->vflip ) {
873 calc_planar_420(vv,buf,&vdma2,&vdma3);
877 calc_planar_422(vv,buf,&vdma2,&vdma3);
913 if( 0 != vv->vflip ) {
932 struct saa7146_vv *vv = dev->vv_data;
935 unsigned long e_wait = vv->current_hps_sync == SAA7146_HPS_SYNC_PORT_A ? CMD_E_FID_A : CMD_E_FID_B;
936 unsigned long o_wait = vv->current_hps_sync == SAA7146_HPS_SYNC_PORT_A ? CMD_O_FID_A : CMD_O_FID_B;
963 if ( vv->last_field == V4L2_FIELD_INTERLACED ) {
966 } else if ( vv->last_field == V4L2_FIELD_TOP ) {
967 WRITE_RPS0(CMD_PAUSE | (vv->current_hps_sync == SAA7146_HPS_SYNC_PORT_A ? MASK_10 : MASK_09));
969 } else if ( vv->last_field == V4L2_FIELD_BOTTOM ) {
970 WRITE_RPS0(CMD_PAUSE | (vv->current_hps_sync == SAA7146_HPS_SYNC_PORT_A ? MASK_10 : MASK_09));
1000 struct saa7146_vv *vv = dev->vv_data;
1016 if ( vv->last_field == V4L2_FIELD_INTERLACED ) {
1017 } else if ( vv->last_field == V4L2_FIELD_TOP ) {
1018 vv->last_field = V4L2_FIELD_BOTTOM;
1019 } else if ( vv->last_field == V4L2_FIELD_BOTTOM ) {
1020 vv->last_field = V4L2_FIELD_TOP;