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