Lines Matching full:vv
22 static void calculate_hxo_and_hyo(struct saa7146_vv *vv, u32* hps_h_scale, u32* hps_ctrl) in calculate_hxo_and_hyo() argument
26 hyo = vv->standard->v_offset; in calculate_hxo_and_hyo()
27 hxo = vv->standard->h_offset; in calculate_hxo_and_hyo()
311 struct saa7146_vv *vv = dev->vv_data; in saa7146_set_window() local
313 int source = vv->current_hps_source; in saa7146_set_window()
314 int sync = vv->current_hps_sync; in saa7146_set_window()
321 …calculate_v_scale_registers(dev, field, vv->standard->v_field*2, height, &hps_v_scale, &hps_v_gain… in saa7146_set_window()
327 …calculate_h_scale_registers(dev, vv->standard->h_pixels, width, vv->hflip, &hps_ctrl, &hps_v_gain,… in saa7146_set_window()
330 calculate_hxo_and_hyo(vv, &hps_h_scale, &hps_ctrl); in saa7146_set_window()
359 struct saa7146_vv *vv = dev->vv_data; in saa7146_set_hps_source_and_sync() local
372 vv->current_hps_source = source; in saa7146_set_hps_source_and_sync()
373 vv->current_hps_sync = sync; in saa7146_set_hps_source_and_sync()
409 struct saa7146_vv *vv = dev->vv_data; in calculate_video_dma_grab_packed() local
410 struct v4l2_pix_format *pix = &vv->video_fmt; in calculate_video_dma_grab_packed()
429 vdma1.num_line_byte = ((vv->standard->v_field<<16) + vv->standard->h_pixels); in calculate_video_dma_grab_packed()
432 if( 0 != vv->vflip ) { in calculate_video_dma_grab_packed()
445 if ( vv->last_field == V4L2_FIELD_TOP ) { in calculate_video_dma_grab_packed()
448 } else if ( vv->last_field == V4L2_FIELD_BOTTOM ) { in calculate_video_dma_grab_packed()
462 if( 0 != vv->vflip ) { in calculate_video_dma_grab_packed()
470 static int calc_planar_422(struct saa7146_vv *vv, struct saa7146_buf *buf, struct saa7146_video_dma… in calc_planar_422() argument
472 struct v4l2_pix_format *pix = &vv->video_fmt; in calc_planar_422()
481 if( 0 != vv->vflip ) { in calc_planar_422()
502 static int calc_planar_420(struct saa7146_vv *vv, struct saa7146_buf *buf, struct saa7146_video_dma… in calc_planar_420() argument
504 struct v4l2_pix_format *pix = &vv->video_fmt; in calc_planar_420()
511 if( 0 != vv->vflip ) { in calc_planar_420()
534 struct saa7146_vv *vv = dev->vv_data; in calculate_video_dma_grab_planar() local
535 struct v4l2_pix_format *pix = &vv->video_fmt; in calculate_video_dma_grab_planar()
560 vdma1.num_line_byte = ((vv->standard->v_field<<16) + vv->standard->h_pixels); in calculate_video_dma_grab_planar()
563 if( 0 != vv->vflip ) { in calculate_video_dma_grab_planar()
581 calc_planar_420(vv,buf,&vdma2,&vdma3); in calculate_video_dma_grab_planar()
585 calc_planar_422(vv,buf,&vdma2,&vdma3); in calculate_video_dma_grab_planar()
621 if( 0 != vv->vflip ) { in calculate_video_dma_grab_planar()
640 struct saa7146_vv *vv = dev->vv_data; in program_capture_engine() local
643 unsigned long e_wait = vv->current_hps_sync == SAA7146_HPS_SYNC_PORT_A ? CMD_E_FID_A : CMD_E_FID_B; in program_capture_engine()
644 unsigned long o_wait = vv->current_hps_sync == SAA7146_HPS_SYNC_PORT_A ? CMD_O_FID_A : CMD_O_FID_B; in program_capture_engine()
671 if ( vv->last_field == V4L2_FIELD_INTERLACED ) { in program_capture_engine()
674 } else if ( vv->last_field == V4L2_FIELD_TOP ) { in program_capture_engine()
675 WRITE_RPS0(CMD_PAUSE | (vv->current_hps_sync == SAA7146_HPS_SYNC_PORT_A ? MASK_10 : MASK_09)); in program_capture_engine()
677 } else if ( vv->last_field == V4L2_FIELD_BOTTOM ) { in program_capture_engine()
678 WRITE_RPS0(CMD_PAUSE | (vv->current_hps_sync == SAA7146_HPS_SYNC_PORT_A ? MASK_10 : MASK_09)); in program_capture_engine()
723 struct saa7146_vv *vv = dev->vv_data; in saa7146_set_capture() local
724 struct v4l2_pix_format *pix = &vv->video_fmt; in saa7146_set_capture()
741 if ( vv->last_field == V4L2_FIELD_INTERLACED ) { in saa7146_set_capture()
742 } else if ( vv->last_field == V4L2_FIELD_TOP ) { in saa7146_set_capture()
743 vv->last_field = V4L2_FIELD_BOTTOM; in saa7146_set_capture()
744 } else if ( vv->last_field == V4L2_FIELD_BOTTOM ) { in saa7146_set_capture()
745 vv->last_field = V4L2_FIELD_TOP; in saa7146_set_capture()