Lines Matching refs:v_bp
377 int v_fp, v_bp, h_fp, h_bp, hsync; in v4l2_detect_cvt() local
408 v_bp = CVT_RB_V_BPORCH; in v4l2_detect_cvt()
410 v_fp -= vsync + v_bp; in v4l2_detect_cvt()
416 v_bp = (CVT_RB_MIN_V_BLANK * hfreq) / 1000000 + 1; in v4l2_detect_cvt()
417 v_bp -= vsync + v_fp; in v4l2_detect_cvt()
419 if (v_bp < CVT_RB_MIN_V_BPORCH) in v4l2_detect_cvt()
420 v_bp = CVT_RB_MIN_V_BPORCH; in v4l2_detect_cvt()
424 v_bp = (CVT_MIN_VSYNC_BP * hfreq) / 1000000 + 1 - vsync; in v4l2_detect_cvt()
426 if (v_bp < CVT_MIN_V_BPORCH) in v4l2_detect_cvt()
427 v_bp = CVT_MIN_V_BPORCH; in v4l2_detect_cvt()
431 image_height = (frame_height - 2 * v_fp - 2 * vsync - 2 * v_bp) & ~0x1; in v4l2_detect_cvt()
433 image_height = (frame_height - v_fp - vsync - v_bp + 1) & ~0x1; in v4l2_detect_cvt()
596 int v_fp, v_bp, h_fp, hsync; in v4l2_detect_gtf() local
616 v_bp = (GTF_MIN_VSYNC_BP * hfreq + 500000) / 1000000 - vsync; in v4l2_detect_gtf()
618 image_height = (frame_height - 2 * v_fp - 2 * vsync - 2 * v_bp) & ~0x1; in v4l2_detect_gtf()
620 image_height = (frame_height - v_fp - vsync - v_bp + 1) & ~0x1; in v4l2_detect_gtf()