Searched refs:vtotal (Results 1 - 131 of 131) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/panel/
H A Dpanel-simple.c381 .vtotal = 480 + 2 + 45 + 0,
406 .vtotal = 600 + 16 + 6 + 16,
429 .vtotal = 800 + 4 + 20 + 8,
452 .vtotal = 768 + 14 + 42,
476 .vtotal = 768 + 10 + 12 + 6,
499 .vtotal = 768 + 3 + 6 + 13,
522 .vtotal = 1080 + 25 + 10 + 10,
550 .vtotal = 600 + 17 + 1 + 17,
578 .vtotal = 768 + 4 + 4 + 4,
601 .vtotal = 768 + 16 + 8 + 16,
624 .vtotal = 480 + 10 + 3 + 32,
648 .vtotal = 480 + 10 + 2 + 33,
672 .vtotal = 480 + 37 + 2 + 8,
696 .vtotal = 272 + 8 + 1 + 8,
743 .vtotal = 480 + 16 + 13 + 16,
766 .vtotal = 272 + 2 + 11 + 2,
791 .vtotal = 800 + 9 + 6 + 9,
814 .vtotal = 768 + 8 + 12 + 12,
838 .vtotal = 768 + 2 + 6 + 12,
861 .vtotal = 600 + 16 + 4 + 16,
884 .vtotal = 1700 + 3 + 10 + 36,
907 .vtotal = 800 + 3 + 3 + 3,
931 .vtotal = 600 + 3 + 6 + 61,
954 .vtotal = 768 + 2 + 5 + 17,
977 .vtotal = 480 + 1 + 23 + 22,
1127 .vtotal = 1280 + 28 + 1 + 14,
1155 .vtotal = 1280 + 8 + 4 + 12,
1183 .vtotal = 1200 + 17 + 2 + 16,
H A Dpanel-sharp-lq101r1sx01.c285 .vtotal = 1600 + 4 + 8 + 32,
/linux-4.1.27/drivers/gpu/drm/msm/hdmi/
H A Dhdmi_bridge.c150 vstart = mode->vtotal - mode->vsync_start - 1; hdmi_bridge_mode_set()
151 vend = mode->vtotal - mode->vsync_start + mode->vdisplay - 1; hdmi_bridge_mode_set()
153 DBG("htotal=%d, vtotal=%d, hstart=%d, hend=%d, vstart=%d, vend=%d", hdmi_bridge_mode_set()
154 mode->htotal, mode->vtotal, hstart, hend, vstart, vend); hdmi_bridge_mode_set()
158 HDMI_TOTAL_V_TOTAL(mode->vtotal - 1)); hdmi_bridge_mode_set()
169 HDMI_VSYNC_TOTAL_F2_V_TOTAL(mode->vtotal)); hdmi_bridge_mode_set()
/linux-4.1.27/drivers/gpu/drm/gma500/
H A Dmdfld_tpo_vid.c58 mode->vtotal = mode->vdisplay + tpo_vid_get_config_mode()
69 dev_dbg(dev->dev, "vtotal is %d\n", mode->vtotal); tpo_vid_get_config_mode()
79 mode->vtotal = 499; tpo_vid_get_config_mode()
H A Dmdfld_device.c203 pipe->vtotal = PSB_RVDC32(map->vtotal); mdfld_save_display_registers()
329 PSB_WVDC32(pipe->vtotal, map->vtotal); mdfld_restore_display_registers()
458 .vtotal = VTOTAL_A,
480 .vtotal = VTOTAL_B,
503 .vtotal = VTOTAL_C,
H A Dmdfld_tmd_vid.c61 mode->vtotal = mode->vdisplay + \ tmd_vid_get_config_mode()
72 dev_dbg(dev->dev, "vtotal is %d\n", mode->vtotal); tmd_vid_get_config_mode()
82 mode->vtotal = 873; tmd_vid_get_config_mode()
H A Dintel_bios.c177 panel_fixed_mode->vtotal = panel_fixed_mode->vdisplay + fill_detail_timing_data()
192 /* Some VBTs have bogus h/vtotal values */ fill_detail_timing_data()
195 if (panel_fixed_mode->vsync_end > panel_fixed_mode->vtotal) fill_detail_timing_data()
196 panel_fixed_mode->vtotal = panel_fixed_mode->vsync_end + 1; fill_detail_timing_data()
271 if (panel_fixed_mode->htotal > 0 && panel_fixed_mode->vtotal > 0) { parse_lfp_panel_data()
H A Doaktrail_lvds.c254 mode->vtotal = mode->vdisplay + \ oaktrail_lvds_get_configuration_mode()
265 printk(KERN_INFO "vtotal is %d\n", mode->vtotal); oaktrail_lvds_get_configuration_mode()
H A Doaktrail_device.c216 p->vtotal = PSB_RVDC32(VTOTAL_A); oaktrail_save_display_registers()
336 PSB_WVDC32(p->vtotal, VTOTAL_A); oaktrail_restore_display_registers()
474 .vtotal = VTOTAL_A,
498 .vtotal = VTOTAL_B,
H A Dpsb_intel_display.c278 REG_WRITE(map->vtotal, (adjusted_mode->crtc_vdisplay - 1) | psb_intel_crtc_mode_set()
401 vtot = REG_READ(map->vtotal); psb_intel_crtc_mode_get()
407 vtot = p->vtotal; psb_intel_crtc_mode_get()
421 mode->vtotal = ((vtot & 0xffff0000) >> 16) + 1; psb_intel_crtc_mode_get()
H A Dpsb_device.c273 .vtotal = VTOTAL_A,
297 .vtotal = VTOTAL_B,
H A Dmdfld_dsi_dpi.c442 pclk_vbp = mode->vtotal - mode->vsync_end; mdfld_dsi_dpi_timing_calculation()
505 (mode->vtotal * mode->htotal * dsi_config->bpp / mdfld_dsi_dpi_controller_init()
703 adjusted_mode->vtotal = fixed_mode->vtotal; mdfld_dsi_dpi_mode_fixup()
802 REG_WRITE(VTOTAL_A, ((mode->vtotal - 1) << 16) | (mode->vdisplay - 1)); mdfld_set_pipe_timing()
803 REG_WRITE(VBLANK_A, ((mode->vtotal - 1) << 16) | (mode->vdisplay - 1)); mdfld_set_pipe_timing()
H A Dtc35876x-dsi-lvds.c595 mode->vtotal = 838; tc35876x_get_config_mode()
605 dev_info(&dev->pdev->dev, "vtotal = %d\n", mode->vtotal); tc35876x_get_config_mode()
H A Dcdv_device.c536 .vtotal = VTOTAL_A,
561 .vtotal = VTOTAL_B,
H A Doaktrail_crtc.c452 REG_WRITE_WITH_AUX(map->vtotal, (mode->crtc_vdisplay - 1) | oaktrail_crtc_mode_set()
471 REG_WRITE_WITH_AUX(map->vtotal, (adjusted_mode->crtc_vdisplay - 1) | oaktrail_crtc_mode_set()
H A Dcdv_intel_display.c803 REG_WRITE(map->vtotal, (adjusted_mode->crtc_vdisplay - 1) | cdv_intel_crtc_mode_set()
945 vtot = REG_READ(map->vtotal); cdv_intel_crtc_mode_get()
951 vtot = p->vtotal; cdv_intel_crtc_mode_get()
965 mode->vtotal = ((vtot & 0xffff0000) >> 16) + 1; cdv_intel_crtc_mode_get()
H A Dcdv_intel_lvds.c307 adjusted_mode->vtotal = panel_fixed_mode->vtotal; cdv_intel_lvds_mode_fixup()
H A Dgma_display.c579 crtc_state->saveVTOTAL = REG_READ(map->vtotal); gma_crtc_save()
633 REG_WRITE(map->vtotal, crtc_state->saveVTOTAL); gma_crtc_restore()
H A Doaktrail_hdmi.c773 pipeb->vtotal = PSB_RVDC32(VTOTAL_B); oaktrail_hdmi_save()
826 PSB_WVDC32(pipeb->vtotal, VTOTAL_B); oaktrail_hdmi_restore()
H A Dpsb_drv.h288 u32 vtotal; member in struct:psb_offset
322 u32 vtotal; member in struct:psb_pipe
H A Dpsb_intel_lvds.c423 adjusted_mode->vtotal = panel_fixed_mode->vtotal; psb_intel_lvds_mode_fixup()
H A Dmdfld_intel_display.c722 adjusted_mode->vtotal); mdfld_crtc_mode_set()
821 REG_WRITE(map->vtotal, (mode->crtc_vdisplay - 1) | mdfld_crtc_mode_set()
838 REG_WRITE(map->vtotal, (adjusted_mode->crtc_vdisplay - 1) | mdfld_crtc_mode_set()
H A Dcdv_intel_dp.c887 adjusted_mode->vtotal = fixed_mode->vtotal; cdv_intel_fixed_panel_mode()
H A Dpsb_intel_sdvo.c791 mode->vtotal = mode->vdisplay + dtd->part1.v_blank; psb_intel_sdvo_get_mode_from_dtd()
792 mode->vtotal += (dtd->part1.v_high & 0xf) << 8; psb_intel_sdvo_get_mode_from_dtd()
/linux-4.1.27/drivers/video/fbdev/core/
H A Dfbcvt.c45 u32 vtotal; member in struct:fb_cvt_data
164 u32 vtotal = cvt->yres/cvt->interlace; fb_cvt_vtotal() local
166 vtotal += 2 * cvt->v_margin + cvt->interlace/2 + fb_cvt_vbi_lines(cvt); fb_cvt_vtotal()
167 vtotal |= cvt->interlace/2; fb_cvt_vtotal()
169 return vtotal; fb_cvt_vtotal()
177 pixclock = (cvt->f_refresh * cvt->vtotal * cvt->htotal)/1000; fb_cvt_pixclock()
363 cvt.vtotal = fb_cvt_vtotal(&cvt); fb_find_mode_cvt()
373 cvt.v_back_porch = cvt.vtotal - cvt.yres/cvt.interlace - fb_find_mode_cvt()
H A Dfbmon.c721 int vtotal, htotal; fb_get_monitor_limits() local
735 vtotal = mode->yres + mode->lower_margin + mode->vsync_len fb_get_monitor_limits()
739 vtotal /= 2; fb_get_monitor_limits()
742 vtotal *= 2; fb_get_monitor_limits()
746 hz = (hscan + vtotal / 2) / vtotal; fb_get_monitor_limits()
1113 u32 vtotal; member in struct:__fb_timings
1241 timings->vtotal = timings->vactive + timings->vblank; fb_timings_vfreq()
1251 timings->vtotal = timings->vactive + timings->vblank; fb_timings_hfreq()
1252 timings->vfreq = timings->hfreq/timings->vtotal; fb_timings_hfreq()
1266 timings->vtotal = timings->vactive + timings->vblank; fb_timings_dclk()
1267 timings->vfreq = timings->hfreq/timings->vtotal; fb_timings_dclk()
1403 unsigned int htotal, vtotal; fb_videomode_from_videomode() local
1433 vtotal = vm->vactive + vm->vfront_porch + vm->vback_porch + fb_videomode_from_videomode()
1436 if (htotal && vtotal) { fb_videomode_from_videomode()
1437 fbmode->refresh = vm->pixelclock / (htotal * vtotal); fb_videomode_from_videomode()
1438 /* a mode must have htotal and vtotal != 0 or it is invalid */ fb_videomode_from_videomode()
1526 u32 hfreq, vfreq, htotal, vtotal, pixclock; fb_validate_mode() local
1556 vtotal = var->yres + var->lower_margin + var->vsync_len + fb_validate_mode()
1560 vtotal /= 2; fb_validate_mode()
1562 vtotal *= 2; fb_validate_mode()
1567 vfreq = hfreq/vtotal; fb_validate_mode()
H A Dmodedb.c885 u32 pixclock, hfreq, htotal, vtotal; fb_var_to_videomode() local
909 vtotal = var->yres + var->lower_margin + var->vsync_len + fb_var_to_videomode()
913 vtotal /= 2; fb_var_to_videomode()
915 vtotal *= 2; fb_var_to_videomode()
918 mode->refresh = hfreq/vtotal; fb_var_to_videomode()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dnv04.c51 args->v0.vtotal = nv_rd32(priv, 0x680804 + hoff) & 0xffff; nv04_disp_scanoutpos()
52 args->v0.vblanke = args->v0.vtotal - 1; nv04_disp_scanoutpos()
59 * If output is vga instead of digital then vtotal/htotal is nv04_disp_scanoutpos()
63 if (!args->v0.vtotal || !args->v0.htotal) nv04_disp_scanoutpos()
H A Dgf110.c643 args->v0.vtotal = ( total & 0xffff0000) >> 16; gf110_disp_main_scanoutpos()
H A Dnv50.c967 args->v0.vtotal = ( total & 0xffff0000) >> 16; nv50_disp_main_scanoutpos()
/linux-4.1.27/drivers/media/i2c/
H A Dths8200.c66 static inline unsigned vtotal(const struct v4l2_bt_timings *t) vtotal() function
218 uint16_t line_start_front_porch = (vtotal(bt) - bt->vfrontporch); ths8200_setup()
265 ((vtotal(bt) >> 4) & 0xf0) + 0x7); ths8200_setup()
266 ths8200_write(sd, THS8200_DTG1_FRAME_SZ_LSB, vtotal(bt) & 0xff); ths8200_setup()
292 ths8200_write(sd, THS8200_DTG2_BP3_4_MSB, ((vtotal(bt)) >> 4) & 0x70); ths8200_setup()
295 ths8200_write(sd, THS8200_DTG2_BP3_LSB, (vtotal(bt)) & 0xff); ths8200_setup()
318 ((vtotal(bt) + 1) >> 8) & 0x7); ths8200_setup()
319 ths8200_write(sd, THS8200_DTG2_VDLY1_LSB, vtotal(bt) + 1); ths8200_setup()
356 "vertical: sync %d\n", __func__, htotal(bt), vtotal(bt), ths8200_setup()
H A Dadv7842.c229 static inline unsigned vtotal(const struct v4l2_bt_timings *t) vtotal() function
968 u32 height = vtotal(bt); configure_custom_video_timings()
1319 if (vtotal(bt) != stdi->lcf + 1) stdi2dv_timings()
H A Dadv7604.c342 static inline unsigned vtotal(const struct v4l2_bt_timings *t) vtotal() function
928 u32 height = vtotal(bt); configure_custom_video_timings()
1290 if (vtotal(&adv76xx_timings[i].bt) != stdi->lcf + 1) stdi2dv_timings()
/linux-4.1.27/drivers/gpu/drm/cirrus/
H A Dcirrus_mode.c201 int vtotal, vdispend; cirrus_crtc_mode_set() local
210 vtotal = mode->vtotal; cirrus_crtc_mode_set()
214 vtotal -= 2; cirrus_crtc_mode_set()
226 WREG_CRT(VGA_CRTC_V_TOTAL, vtotal & 0xff); cirrus_crtc_mode_set()
238 if (vtotal & 256) cirrus_crtc_mode_set()
244 if (vtotal & 512) cirrus_crtc_mode_set()
258 if (vtotal & 256) cirrus_crtc_mode_set()
260 if (vtotal & 512) cirrus_crtc_mode_set()
/linux-4.1.27/drivers/gpu/drm/i2c/
H A Dch7006_mode.c41 .vtotal = 525, \
46 .vtotal = 625, \
120 .vtotal = vt, \
187 mode->mode.vtotal != drm_mode->vtotal || ch7006_lookup_mode()
346 scale = norm->vtotal*fixed1; ch7006_setup_properties()
347 do_div(scale, mode->vtotal); ch7006_setup_properties()
353 * priv->hmargin * mode->vtotal) / norm->vtotal / 100 / 4; ch7006_setup_properties()
H A Dtda998x_drv.c834 if (mode->vtotal >= BIT(11)) tda998x_encoder_mode_valid()
871 n_line = mode->vtotal; tda998x_encoder_mode_set()
889 vwin1_line_s = mode->vtotal - mode->vdisplay - 1; tda998x_encoder_mode_set()
900 vwin1_line_s = (mode->vtotal - mode->vdisplay)/2; tda998x_encoder_mode_set()
906 vwin2_line_s = vwin1_line_s + mode->vtotal/2; tda998x_encoder_mode_set()
909 vs2_line_s = vs1_line_s + mode->vtotal/2 ; tda998x_encoder_mode_set()
H A Dch7006_priv.h52 int vtotal; member in struct:ch7006_tv_norm_info
/linux-4.1.27/drivers/gpu/drm/imx/
H A Dipuv3-plane.c46 unsigned long htotal, vtotal; calc_vref() local
49 vtotal = mode->vtotal; calc_vref()
51 if (!htotal || !vtotal) calc_vref()
54 return DIV_ROUND_UP(mode->clock * 1000, vtotal * htotal); calc_vref()
/linux-4.1.27/drivers/video/fbdev/geode/
H A Ddisplay_gx.c66 int vactive, vblankstart, vsyncstart, vsyncend, vblankend, vtotal; gx_set_mode() local
145 vtotal = vblankend; gx_set_mode()
155 ((vtotal - 1) << 16)); gx_set_mode()
H A Ddisplay_gx1.c86 int vactive, vblankstart, vsyncstart, vsyncend, vblankend, vtotal; gx1_set_mode() local
163 vtotal = vblankend; gx1_set_mode()
172 val = (vactive - 1) | ((vtotal - 1) << 16); gx1_set_mode()
H A Dlxfb_ops.c354 int vactive, vblankstart, vsyncstart, vsyncend, vblankend, vtotal; lx_set_mode() local
480 vtotal = vblankend; lx_set_mode()
488 write_dc(par, DC_V_ACTIVE_TIMING, (vactive - 1) | ((vtotal - 1) << 16)); lx_set_mode()
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_cmd_encoder.c110 total_lines_x100 = mode->vtotal * mode->vrefresh; pingpong_tearcheck_setup()
112 dev_err(dev, "%s: vtotal(%d) or vrefresh(%d) is 0\n", pingpong_tearcheck_setup()
113 __func__, mode->vtotal, mode->vrefresh); pingpong_tearcheck_setup()
210 mode->vsync_end, mode->vtotal, mdp5_cmd_encoder_mode_set()
H A Dmdp5_encoder.c143 mode->vsync_end, mode->vtotal, mdp5_encoder_mode_set()
180 vsync_period = mode->vtotal * mode->htotal; mdp5_encoder_mode_set()
182 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; mdp5_encoder_mode_set()
H A Dmdp5_crtc.c257 mode->vsync_end, mode->vtotal, mdp5_crtc_mode_set_nofb()
/linux-4.1.27/drivers/video/fbdev/sis/
H A Dinitextlfb.c40 int *htotal, int *vtotal, unsigned char rateindex);
178 int *vtotal, unsigned char rateindex) sisfb_gettotalfrommode()
219 *vtotal = ((cr_data & 0xFF) | sisfb_gettotalfrommode()
225 *vtotal *= 2; sisfb_gettotalfrommode()
177 sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, int *htotal, int *vtotal, unsigned char rateindex) sisfb_gettotalfrommode() argument
H A Dsis_main.c562 int htotal, vtotal; sisfb_verify_rate() local
597 &htotal, &vtotal, rate_idx)) { sisfb_verify_rate()
598 dclock = (htotal * vtotal * rate) / 1000; sisfb_verify_rate()
1186 unsigned int htotal = 0, vtotal = 0; sisfb_do_set_var() local
1194 vtotal = var->upper_margin + var->lower_margin + var->vsync_len; sisfb_do_set_var()
1199 vtotal += var->yres; sisfb_do_set_var()
1200 vtotal <<= 1; sisfb_do_set_var()
1202 vtotal += var->yres; sisfb_do_set_var()
1203 vtotal <<= 2; sisfb_do_set_var()
1205 vtotal += var->yres; sisfb_do_set_var()
1206 vtotal <<= 1; sisfb_do_set_var()
1207 } else vtotal += var->yres; sisfb_do_set_var()
1209 if(!(htotal) || !(vtotal)) { sisfb_do_set_var()
1214 if(pixclock && htotal && vtotal) { sisfb_do_set_var()
1217 ivideo->refresh_rate = (unsigned int) (hrate * 2 / vtotal); sisfb_do_set_var()
1293 ivideo->current_vtotal = vtotal; sisfb_do_set_var()
1432 unsigned int htotal = 0, vtotal = 0, myrateindex = 0; sisfb_check_var() local
1441 vtotal = var->upper_margin + var->lower_margin + var->vsync_len; sisfb_check_var()
1446 vtotal += var->yres; sisfb_check_var()
1447 vtotal <<= 1; sisfb_check_var()
1449 vtotal += var->yres; sisfb_check_var()
1450 vtotal <<= 2; sisfb_check_var()
1452 vtotal += var->yres; sisfb_check_var()
1453 vtotal <<= 1; sisfb_check_var()
1455 vtotal += var->yres; sisfb_check_var()
1457 if(!(htotal) || !(vtotal)) { sisfb_check_var()
1516 (ivideo->current_vtotal == vtotal) && sisfb_check_var()
1521 refresh_rate = (unsigned int) (hrate * 2 / vtotal); sisfb_check_var()
1523 (ivideo->current_vtotal != vtotal) ) && sisfb_check_var()
1536 } else if((pixclock) && (htotal) && (vtotal)) { sisfb_check_var()
1539 refresh_rate = (unsigned int) (hrate * 2 / vtotal); sisfb_check_var()
H A Dsis_main.h754 int *htotal, int *vtotal, unsigned char rateindex);
/linux-4.1.27/drivers/gpu/drm/exynos/
H A Dexynos_hdmi.c1805 hdmi_set_reg(core->h_v_line, 3, (m->htotal << 12) | m->vtotal); hdmi_v13_mode_set()
1831 val = m->vtotal / 2; hdmi_v13_mode_set()
1832 val |= ((m->vtotal - m->vdisplay) / 2) << 11; hdmi_v13_mode_set()
1835 val = (m->vtotal + hdmi_v13_mode_set()
1837 val |= m->vtotal << 11; hdmi_v13_mode_set()
1840 val = ((m->vtotal / 2) + 7); hdmi_v13_mode_set()
1841 val |= ((m->vtotal / 2) + 2) << 12; hdmi_v13_mode_set()
1849 hdmi_set_reg(tg->vact_st, 2, (m->vtotal - m->vdisplay) / 2); hdmi_v13_mode_set()
1856 val = m->vtotal; hdmi_v13_mode_set()
1857 val |= (m->vtotal - m->vdisplay) << 11; hdmi_v13_mode_set()
1868 hdmi_set_reg(tg->vact_st, 2, m->vtotal - m->vdisplay); hdmi_v13_mode_set()
1878 hdmi_set_reg(tg->v_fsz, 2, m->vtotal); hdmi_v13_mode_set()
1902 hdmi_set_reg(core->v_line, 2, m->vtotal); hdmi_v14_mode_set()
1924 hdmi_set_reg(core->v2_blank, 2, m->vtotal / 2); hdmi_v14_mode_set()
1925 hdmi_set_reg(core->v1_blank, 2, (m->vtotal - m->vdisplay) / 2); hdmi_v14_mode_set()
1926 hdmi_set_reg(core->v_blank_f0, 2, m->vtotal - m->vdisplay / 2); hdmi_v14_mode_set()
1927 hdmi_set_reg(core->v_blank_f1, 2, m->vtotal); hdmi_v14_mode_set()
1928 hdmi_set_reg(core->v_sync_line_aft_2, 2, (m->vtotal / 2) + 7); hdmi_v14_mode_set()
1929 hdmi_set_reg(core->v_sync_line_aft_1, 2, (m->vtotal / 2) + 2); hdmi_v14_mode_set()
1934 hdmi_set_reg(tg->vact_st, 2, (m->vtotal - m->vdisplay) / 2); hdmi_v14_mode_set()
1936 hdmi_set_reg(tg->vact_st2, 2, m->vtotal - m->vdisplay / 2); hdmi_v14_mode_set()
1937 hdmi_set_reg(tg->vsync2, 2, (m->vtotal / 2) + 1); hdmi_v14_mode_set()
1938 hdmi_set_reg(tg->vsync_bot_hdmi, 2, (m->vtotal / 2) + 1); hdmi_v14_mode_set()
1939 hdmi_set_reg(tg->field_bot_hdmi, 2, (m->vtotal / 2) + 1); hdmi_v14_mode_set()
1948 hdmi_set_reg(core->v2_blank, 2, m->vtotal); hdmi_v14_mode_set()
1949 hdmi_set_reg(core->v1_blank, 2, m->vtotal - m->vdisplay); hdmi_v14_mode_set()
1956 hdmi_set_reg(tg->vact_st, 2, m->vtotal - m->vdisplay); hdmi_v14_mode_set()
1993 hdmi_set_reg(tg->v_fsz, 2, m->vtotal); hdmi_v14_mode_set()
H A Dexynos7_drm_decon.c156 unsigned long ideal_clk = mode->htotal * mode->vtotal * mode->vrefresh; decon_calc_clkdiv()
185 if (mode->htotal == 0 || mode->vtotal == 0) decon_commit()
H A Dexynos_drm_fimd.c310 unsigned long ideal_clk = mode->htotal * mode->vtotal * mode->vrefresh; fimd_calc_clkdiv()
349 if (mode->htotal == 0 || mode->vtotal == 0) fimd_commit()
H A Dexynos_drm_dsi.c1522 vm->vback_porch = mode->vtotal - mode->vsync_end; exynos_dsi_mode_set()
/linux-4.1.27/drivers/gpu/drm/sti/
H A Dsti_vtg.c133 writel(mode->vtotal * 2, vtg->regs + VTG_HLFLN); vtg_set_mode()
135 tmp = (mode->vtotal - mode->vsync_start + 1) << 16; vtg_set_mode()
140 tmp = (mode->vdisplay + mode->vtotal - mode->vsync_start + 1) << 16; vtg_set_mode()
174 tmp |= mode->vtotal; vtg_set_mode()
236 u32 start_line = mode.vtotal - mode.vsync_start + 1; sti_vtg_get_line_number()
H A Dsti_dvo.c118 timing.total_lines = mode->vtotal; dvo_awg_generate_code()
121 timing.trailing_lines = mode->vtotal - mode->vsync_start; dvo_awg_generate_code()
H A Dsti_drm_crtc.c102 mode->vtotal, mode->type, mode->flags); sti_drm_crtc_mode_set()
/linux-4.1.27/drivers/staging/xgifb/
H A DXGI_main_26.c931 unsigned int vtotal = var->upper_margin + var->yres + var->lower_margin XGIfb_do_set_var() local
945 vtotal <<= 1; XGIfb_do_set_var()
947 vtotal <<= 2; XGIfb_do_set_var()
949 if (!htotal || !vtotal) { XGIfb_do_set_var()
952 } pr_debug("var->pixclock=%d, htotal=%d, vtotal=%d\n", XGIfb_do_set_var()
953 var->pixclock, htotal, vtotal); XGIfb_do_set_var()
959 / vtotal); XGIfb_do_set_var()
1233 unsigned int vtotal = 0; XGIfb_check_var() local
1239 vtotal = var->upper_margin + var->yres + var->lower_margin XGIfb_check_var()
1241 vtotal <<= 1; XGIfb_check_var()
1243 vtotal = var->upper_margin + var->yres + var->lower_margin XGIfb_check_var()
1245 vtotal <<= 2; XGIfb_check_var()
1247 vtotal = var->upper_margin + (var->yres / 2) XGIfb_check_var()
1250 vtotal = var->upper_margin + var->yres + var->lower_margin XGIfb_check_var()
1253 if (!(htotal) || !(vtotal)) { XGIfb_check_var()
1258 if (var->pixclock && htotal && vtotal) { XGIfb_check_var()
1262 (unsigned int) (hrate * 2 / vtotal); XGIfb_check_var()
1264 "%s: pixclock = %d ,htotal=%d, vtotal=%d\n" XGIfb_check_var()
1266 __func__, var->pixclock, htotal, vtotal, XGIfb_check_var()
/linux-4.1.27/drivers/video/fbdev/
H A Damifb.c157 - vtotal: Last line value (i.e. number of lines = vtotal + 1)
756 u_short vtotal; /* vmode */ member in struct:amifb_par
980 * vtotal 1 4096 1
1017 /* hsstrt/hsstop/htotal/vsstrt/vsstop/vtotal/hcenter (sync timings) */
1024 #define vtotal2hw(vtotal) (div2(vtotal) - 1)
1127 u_int htotal, vtotal; ami_decode_var() local
1218 par->vtotal = ami_decode_var()
1235 par->diwstop_v = par->vtotal - ami_decode_var()
1242 if (par->diwstop_v > par->vtotal) { ami_decode_var()
1259 if (par->vtotal > (PAL_VTOTAL + NTSC_VTOTAL) / 2) { ami_decode_var()
1274 vtotal = PAL_VTOTAL>>1; ami_decode_var()
1304 vtotal = NTSC_VTOTAL>>1; ami_decode_var()
1339 par->diwstop_v = par->vtotal; ami_decode_var()
1345 if (par->vtotal > 2048) { ami_decode_var()
1346 DPRINTK("vtotal too high\n"); ami_decode_var()
1364 vtotal = par->vtotal>>1; ami_decode_var()
1565 var->upper_margin = (par->vtotal>>line_shift) - var->yres - var->lower_margin - var->vsync_len; ami_encode_var()
1579 var->lower_margin = ((par->vtotal - par->diwstop_v)>>line_shift) + var->vsync_len; ami_encode_var()
1580 var->upper_margin = (((par->vtotal - 2)>>line_shift) + 1) - var->yres - ami_encode_var()
1712 custom.vtotal = vtotal2hw(par->vtotal); ami_init_display()
1764 custom.vsstrt = vsstrt2hw(par->vtotal + 4); ami_do_blank()
1765 custom.vsstop = vsstop2hw(par->vtotal + 4); ami_do_blank()
1776 custom.vsstrt = vsstrt2hw(par->vtotal + 4); ami_do_blank()
1777 custom.vsstop = vsstop2hw(par->vtotal + 4); ami_do_blank()
1782 custom.vtotal = vtotal2hw(par->vtotal); ami_do_blank()
2271 (copl++)->l = CMOVE(vtotal2hw(par->vtotal), vtotal); ami_build_copper()
2274 (cops++)->l = CMOVE(vtotal2hw(par->vtotal), vtotal); ami_build_copper()
2295 (copl++)->l = CMOVE(vtotal2hw(par->vtotal), vtotal); ami_build_copper()
H A Dpvr2fb.c361 unsigned int vtotal; pvr2fb_set_par() local
390 vtotal = par->vsync_total; pvr2fb_set_par()
392 vtotal /= 2; pvr2fb_set_par()
393 if (vtotal > (PAL_VTOTAL + NTSC_VTOTAL)/2) { pvr2fb_set_par()
436 unsigned int vtotal, hsync_total; pvr2fb_check_var() local
508 vtotal = var->upper_margin + var->yres + var->lower_margin + pvr2fb_check_var()
513 vtotal /= 2; pvr2fb_check_var()
514 if (vtotal > (PAL_VTOTAL + NTSC_VTOTAL)/2) { pvr2fb_check_var()
H A Dcirrusfb.c667 int yres, vdispend, vsyncstart, vsyncend, vtotal; cirrusfb_set_par_foo() local
709 vtotal = vsyncend + var->upper_margin; cirrusfb_set_par_foo()
715 vtotal *= 2; cirrusfb_set_par_foo()
720 vtotal = (vtotal + 1) / 2; cirrusfb_set_par_foo()
724 vtotal /= 2; cirrusfb_set_par_foo()
733 vtotal -= 2; cirrusfb_set_par_foo()
774 dev_dbg(info->device, "CRT6: %d\n", vtotal & 0xff); cirrusfb_set_par_foo()
775 vga_wcrt(regbase, VGA_CRTC_V_TOTAL, vtotal & 0xff); cirrusfb_set_par_foo()
778 if (vtotal & 256) cirrusfb_set_par_foo()
786 if (vtotal & 512) cirrusfb_set_par_foo()
815 dev_dbg(info->device, "CRT16: %d\n", vtotal & 0xff); cirrusfb_set_par_foo()
816 vga_wcrt(regbase, VGA_CRTC_V_BLANK_END, vtotal & 0xff); cirrusfb_set_par_foo()
828 if (vtotal & 256) cirrusfb_set_par_foo()
830 if (vtotal & 512) cirrusfb_set_par_foo()
1225 if (vtotal & 1024) cirrusfb_set_par_foo()
H A Dtridentfb.c1012 u32 vtotal, vdispend, vsyncstart, vsyncend, vblankstart, vblankend; tridentfb_set_par() local
1030 vtotal = var->upper_margin + vsyncend - 2; tridentfb_set_par()
1032 vblankend = vtotal; tridentfb_set_par()
1035 vtotal /= 2; tridentfb_set_par()
1073 write3X4(par, VGA_CRTC_V_TOTAL, vtotal & 0xFF); tridentfb_set_par()
1091 if (vtotal & 0x100) tmp |= 0x01; tridentfb_set_par()
1096 if (vtotal & 0x200) tmp |= 0x20; tridentfb_set_par()
1103 if (vtotal & 0x400) tmp |= 0x80; tridentfb_set_par()
H A Dgbefb.c523 timing->vtotal = var->upper_margin + var->yres + compute_gbe_timing()
526 1000 / timing->vtotal; compute_gbe_timing()
532 timing->vblank_end = timing->vtotal; compute_gbe_timing()
557 SET_GBE_FIELD(VT_XYMAX, MAXY, val, timing->vtotal); gbe_set_timing_info()
996 var->upper_margin = timing.vtotal - timing.vsync_end; gbefb_check_var()
H A Dneofb.c267 int vtotal = vsync_end + var->upper_margin; vgaHWInit() local
296 par->CRTC[6] = (vtotal - 2) & 0xFF; vgaHWInit()
297 par->CRTC[7] = (((vtotal - 2) & 0x100) >> 8) vgaHWInit()
301 | 0x10 | (((vtotal - 2) & 0x200) >> 4) vgaHWInit()
322 par->CRTC[22] = (vtotal - 1) & 0xFF; vgaHWInit()
733 int vsync_start, vtotal; neofb_set_par() local
742 vtotal = vsync_start + info->var.vsync_len + info->var.upper_margin; neofb_set_par()
788 par->VerticalExt = (((vtotal - 2) & 0x400) >> 10) neofb_set_par()
H A Dsh_mobile_hdmi.c406 u16 htotal, hblank, hdelay, vtotal, vblank, vdelay, voffset; sh_hdmi_external_video_param() local
418 vtotal = mode->yres + mode->upper_margin + mode->lower_margin sh_hdmi_external_video_param()
437 vtotal, vblank, vdelay, mode->vsync_len, sync); sh_hdmi_external_video_param()
453 hdmi_write(hdmi, vtotal, HDMI_EXTERNAL_V_TOTAL_7_0); sh_hdmi_external_video_param()
454 hdmi_write(hdmi, vtotal >> 8, HDMI_EXTERNAL_V_TOTAL_9_8); sh_hdmi_external_video_param()
H A Dmx3fb.c931 u32 vtotal; mx3fb_check_var() local
1002 vtotal = var->yres + var->lower_margin + var->vsync_len + mx3fb_check_var()
1004 var->pixclock = (vtotal * htotal * 6UL) / 100UL; mx3fb_check_var()
H A Dpm2fb.c695 u32 vsstart, vsend, vbend, vtotal; pm2fb_set_par() local
732 vtotal = info->var.yres + vbend - 1; pm2fb_set_par()
822 pm2_WR(par, PM2R_V_TOTAL, vtotal); pm2fb_set_par()
H A Dvesafb.c220 else if (! strncmp(this_opt, "vtotal:", 7)) vesafb_setup()
H A Dpm3fb.c736 const u32 vtotal = info->var.yres + vbend; pm3fb_write_mode() local
758 PM3_WRITE_REG(par, PM3VTotal, vtotal - 1); pm3fb_write_mode()
H A Duvesafb.c1859 else if (!strncmp(this_opt, "vtotal:", 7)) uvesafb_setup()
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_modes.c58 mode->vsync_end, mode->vtotal, mode->type, mode->flags); drm_mode_debug_printmodeline()
258 drm_mode->vtotal = vdisplay_rnd + 2 * vmargin + drm_cvt_mode()
314 drm_mode->vtotal = vdisplay_rnd + 2 * vmargin + vbilines; drm_cvt_mode()
330 drm_mode->vtotal *= 2; drm_cvt_mode()
515 drm_mode->vtotal = vtotal_lines; drm_gtf_mode_complex()
520 drm_mode->vtotal *= 2; drm_gtf_mode_complex()
595 dmode->vtotal = dmode->vsync_end + vm->vback_porch; drm_display_mode_from_videomode()
636 vm->vback_porch = dmode->vtotal - dmode->vsync_end; drm_display_mode_to_videomode()
751 else if (mode->htotal > 0 && mode->vtotal > 0) { drm_mode_vrefresh()
752 int vtotal; drm_mode_vrefresh() local
753 vtotal = mode->vtotal; drm_mode_vrefresh()
757 refresh = (calc_val + vtotal / 2) / vtotal; drm_mode_vrefresh()
799 p->crtc_vtotal = p->vtotal; drm_mode_set_crtcinfo()
950 mode1->vtotal == mode2->vtotal && drm_mode_equal_no_clocks_no_stereo()
985 mode->vtotal < mode->vsync_end) drm_mode_validate_basic()
H A Ddrm_edid.c1797 mode->vtotal *= 2; drm_mode_do_interlace_quirk()
1798 mode->vtotal |= 1; drm_mode_do_interlace_quirk()
1875 mode->vtotal = mode->vdisplay + vblank; drm_mode_detailed()
1877 /* Some EDIDs have bogus h/vtotal values */ drm_mode_detailed()
1880 if (mode->vsync_end > mode->vtotal) drm_mode_detailed()
1881 mode->vtotal = mode->vsync_end + 1; drm_mode_detailed()
H A Ddrm_crtc.c1728 in->vtotal > USHRT_MAX || in->vscan > USHRT_MAX, drm_crtc_convert_to_umode()
1740 out->vtotal = in->vtotal; drm_crtc_convert_to_umode()
1778 out->vtotal = in->vtotal; drm_crtc_convert_umode()
H A Ddrm_irq.c608 DRM_DEBUG("crtc %d: hwmode: htotal %d, vtotal %d, vdisplay %d\n", drm_calc_timestamping_constants()
/linux-4.1.27/drivers/gpu/drm/msm/edp/
H A Dedp_bridge.c69 mode->vsync_end, mode->vtotal, edp_bridge_mode_set()
H A Dedp_ctrl.c1313 EDP_TOTAL_HOR_VER_VERT(mode->vtotal)); msm_edp_ctrl_timing_cfg()
1315 vstart_from_sync = mode->vtotal - mode->vsync_start; msm_edp_ctrl_timing_cfg()
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp4/
H A Dmdp4_dtv_encoder.c122 mode->vsync_end, mode->vtotal, mdp4_dtv_encoder_mode_set()
141 vsync_period = mode->vtotal * mode->htotal; mdp4_dtv_encoder_mode_set()
143 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; mdp4_dtv_encoder_mode_set()
H A Dmdp4_lcdc_encoder.c288 mode->vsync_end, mode->vtotal, mdp4_lcdc_encoder_mode_set()
307 vsync_period = mode->vtotal * mode->htotal; mdp4_lcdc_encoder_mode_set()
309 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + lcdc_hsync_skew; mdp4_lcdc_encoder_mode_set()
H A Dmdp4_crtc.c258 mode->vsync_end, mode->vtotal, mdp4_crtc_mode_set_nofb()
/linux-4.1.27/drivers/gpu/drm/omapdrm/
H A Domap_connector.c58 mode->vtotal = mode->vsync_end + timings->vbp; copy_timings_omap_to_drm()
89 timings->vbp = mode->vtotal - mode->vsync_end; copy_timings_drm_to_omap()
249 mode->vsync_end, mode->vtotal, mode->type, mode->flags); omap_connector_mode_valid()
H A Domap_crtc.c508 mode->vsync_end, mode->vtotal, omap_crtc_mode_set()
/linux-4.1.27/drivers/video/fbdev/matrox/
H A Dmatroxfb_g450.c331 unsigned int vtotal; computeRegs() local
335 vtotal = mt->VTotal; computeRegs()
338 if (vtotal < outd->v_total) { computeRegs()
339 unsigned int yovr = outd->v_total - vtotal; computeRegs()
342 } else if (vtotal > outd->v_total) { computeRegs()
H A Dmatroxfb_maven.c225 unsigned int htotal, unsigned int vtotal, matroxfb_PLL_mavenclock()
238 scrlen = htotal * (vtotal - 1); matroxfb_PLL_mavenclock()
239 fwant = htotal * vtotal; matroxfb_PLL_mavenclock()
243 fwant, fxtal, htotal, vtotal, fmax); matroxfb_PLL_mavenclock()
298 unsigned int htotal, unsigned int vtotal, matroxfb_mavenclock()
304 fvco = matroxfb_PLL_mavenclock(&maven1000_pll, ctl, htotal, vtotal, in, feed, &p, htotal2); matroxfb_mavenclock()
963 /* vtotal - 1 */ maven_compute_timming()
223 matroxfb_PLL_mavenclock(const struct matrox_pll_features2* pll, const struct matrox_pll_ctl* ctl, unsigned int htotal, unsigned int vtotal, unsigned int* in, unsigned int* feed, unsigned int* post, unsigned int* h2) matroxfb_PLL_mavenclock() argument
297 matroxfb_mavenclock(const struct matrox_pll_ctl *ctl, unsigned int htotal, unsigned int vtotal, unsigned int* in, unsigned int* feed, unsigned int* post, unsigned int* htotal2) matroxfb_mavenclock() argument
/linux-4.1.27/drivers/gpu/drm/mgag200/
H A Dmgag200_mode.c788 int vdisplay, vsyncstart, vsyncend, vtotal; mga_crtc_mode_set() local
918 vtotal = mode->vtotal - 2; mga_crtc_mode_set()
936 WREG_CRT(6, vtotal & 0xFF); mga_crtc_mode_set()
937 WREG_CRT(7, ((vtotal & 0x100) >> 8) | mga_crtc_mode_set()
942 ((vtotal & 0x200) >> 4)| mga_crtc_mode_set()
959 WREG_CRT(22, (vtotal + 1) & 0xFF); mga_crtc_mode_set()
973 ext_vga[2] = ((vtotal & 0xc00) >> 10) | mga_crtc_mode_set()
1465 if (!mode->htotal || !mode->vtotal || !mode->clock) mga_vga_calculate_mode_bandwidth()
1469 total_area = mode->htotal * mode->vtotal; mga_vga_calculate_mode_bandwidth()
/linux-4.1.27/include/drm/
H A Ddrm_modes.h87 .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), \
119 int vtotal; member in struct:drm_display_mode
/linux-4.1.27/drivers/gpu/drm/i915/
H A Dintel_crt.c546 uint32_t vtotal, vactive; intel_crt_load_detect() local
572 vtotal = ((save_vtotal >> 16) & 0xfff) + 1; intel_crt_load_detect()
602 if (vblank_start <= vactive && vblank_end >= vtotal) { intel_crt_load_detect()
613 if (vblank_start - vactive >= vtotal - vblank_end) intel_crt_load_detect()
616 vsample = (vtotal + vblank_end) >> 1; intel_crt_load_detect()
H A Ddvo_ns2501.c515 ("is mode valid (hdisplay=%d,htotal=%d,vdisplay=%d,vtotal=%d)\n", ns2501_mode_valid()
516 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); ns2501_mode_valid()
541 ("set mode (hdisplay=%d,htotal=%d,vdisplay=%d,vtotal=%d).\n", ns2501_mode_set()
542 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); ns2501_mode_set()
H A Dintel_bios.c104 panel_fixed_mode->vtotal = panel_fixed_mode->vdisplay + fill_detail_timing_data()
119 /* Some VBTs have bogus h/vtotal values */ fill_detail_timing_data()
122 if (panel_fixed_mode->vsync_end > panel_fixed_mode->vtotal) fill_detail_timing_data()
123 panel_fixed_mode->vtotal = panel_fixed_mode->vsync_end + 1; fill_detail_timing_data()
H A Dintel_dsi_pll.c90 vbp = mode->vtotal - mode->vsync_end; dsi_rr_formula()
H A Di915_irq.c502 * vtotal = vblank_start + 3
619 int position, vtotal; __intel_get_crtc_scanline() local
621 vtotal = mode->crtc_vtotal; __intel_get_crtc_scanline()
623 vtotal /= 2; __intel_get_crtc_scanline()
634 return (position + crtc->scanline_offset) % vtotal; __intel_get_crtc_scanline()
646 int vbl_start, vbl_end, hsync_start, htotal, vtotal; i915_get_crtc_scanoutpos() local
659 vtotal = mode->crtc_vtotal; i915_get_crtc_scanoutpos()
666 vtotal /= 2; i915_get_crtc_scanoutpos()
699 vtotal *= htotal; i915_get_crtc_scanoutpos()
710 if (position >= vtotal) i915_get_crtc_scanoutpos()
711 position = vtotal - 1; i915_get_crtc_scanoutpos()
722 position = (position + htotal - hsync_start) % vtotal; i915_get_crtc_scanoutpos()
744 position += vtotal - vbl_end; i915_get_crtc_scanoutpos()
H A Dintel_tv.c1164 .vtotal = 1104,
1436 mode_ptr->vtotal = vactive_s + 33; intel_tv_get_modes()
1438 tmp = (u64) tv_mode->refresh * mode_ptr->vtotal; intel_tv_get_modes()
H A Dintel_dvo.c284 C(vtotal); intel_dvo_compute_config()
H A Dintel_dsi.c718 vbp = mode->vtotal - mode->vsync_end; set_dsi_timings()
838 txbyteclkhs(adjusted_mode->vtotal * intel_dsi_prepare()
H A Dintel_panel.c81 scan->vtotal == fixed_mode->vtotal) { intel_find_panel_downclock()
H A Dintel_dsi_panel_vbt.c444 pclk += DIV_ROUND_UP(mode->vtotal * vbt_panel_init()
H A Dintel_display.c6708 mode->vtotal = pipe_config->base.adjusted_mode.crtc_vtotal; intel_mode_from_pipe_config()
9385 mode->vtotal = ((vtot & 0xffff0000) >> 16) + 1; intel_crtc_mode_get()
11399 * On most platforms it starts counting from vtotal-1 on the update_scanline_offset()
11406 * of vtotal-1, so we have to subtract one (or rather add vtotal-1 update_scanline_offset()
11416 int vtotal; update_scanline_offset() local
11418 vtotal = mode->crtc_vtotal; update_scanline_offset()
11420 vtotal /= 2; update_scanline_offset()
11422 crtc->scanline_offset = vtotal - 1; update_scanline_offset()
14475 u32 vtotal; member in struct:intel_display_error_state::intel_transcoder_error_state
14553 error->transcoder[i].vtotal = I915_READ(VTOTAL(cpu_transcoder));
14614 err_printf(m, " VTOTAL: %08x\n", error->transcoder[i].vtotal);
H A Dintel_sdvo.c820 v_blank_len = mode->vtotal - mode->vdisplay; intel_sdvo_get_dtd_from_mode()
881 mode.vtotal = mode.vdisplay + dtd->part1.v_blank; intel_sdvo_get_mode_from_dtd()
882 mode.vtotal += (dtd->part1.v_high & 0xf) << 8; intel_sdvo_get_mode_from_dtd()
H A Di915_debugfs.c2509 mode->vsync_end, mode->vtotal, intel_seq_print_mode()
/linux-4.1.27/drivers/media/platform/xilinx/
H A Dxilinx-tpg.c198 unsigned int vtotal; xtpg_s_stream() local
202 vtotal = min_t(unsigned int, XVTC_MAX_VSIZE, xtpg_s_stream()
207 config.vsync_end = vtotal - 1; xtpg_s_stream()
208 config.vsize = vtotal; xtpg_s_stream()
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
H A Dtvnv17.c222 mode->vtotal / 1000; nv17_tv_get_ld_modes()
287 mode->vtotal = output_mode->vtotal; nv17_tv_get_hd_modes()
550 regs->fp_vert_regs[FP_TOTAL] = output_mode->vtotal - 1; nv17_tv_mode_set()
H A Dtvnv04.c146 regp->tv_vtotal = adjusted_mode->vtotal; nv04_tv_mode_set()
H A Ddfp.c313 regp->fp_vert_regs[FP_TOTAL] = output_mode->vtotal - 1; nv04_dfp_mode_set()
314 regp->fp_vert_regs[FP_CRTC] = output_mode->vtotal - 5 - 1; nv04_dfp_mode_set()
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dradeon_encoders.c327 unsigned vblank = native_mode->vtotal - native_mode->vdisplay; radeon_panel_mode_fixup()
345 adjusted_mode->vtotal = native_mode->vdisplay + vblank; radeon_panel_mode_fixup()
H A Dradeon_display.c1795 int vbl_start, vbl_end, vtotal, ret = 0; radeon_get_crtc_scanoutpos() local
1923 vtotal = rdev->mode_info.crtcs[crtc]->base.hwmode.crtc_vtotal; radeon_get_crtc_scanoutpos()
1924 *vpos = *vpos - vtotal; radeon_get_crtc_scanoutpos()
1946 vtotal = rdev->mode_info.crtcs[crtc]->base.hwmode.crtc_vtotal; radeon_get_crtc_scanoutpos()
1948 if (vbl_start - *vpos < vtotal / 100) { radeon_get_crtc_scanoutpos()
1949 *vpos -= vtotal; radeon_get_crtc_scanoutpos()
H A Drs780_dpm.c65 if (crtc->mode.htotal && crtc->mode.vtotal) rs780_get_pm_mode_parameters()
H A Dradeon_combios.c1270 lvds->native_mode.vtotal = lvds->native_mode.vdisplay + radeon_combios_get_lvds_info()
H A Dradeon_atombios.c1661 lvds->native_mode.vtotal = lvds->native_mode.vdisplay + radeon_atombios_get_lvds_info()
/linux-4.1.27/arch/m68k/include/asm/
H A Damigahw.h187 unsigned short vtotal; member in struct:CUSTOM
269 amiga_custom.vtotal = 223; /* 70 Hz */ amifb_video_off()
/linux-4.1.27/drivers/media/pci/bt8xx/
H A Dbttv-risc.c368 geo->vtotal = tvnorm->vtotal; bttv_calc_geo_old()
419 geo->vtotal = tvnorm->vtotal; bttv_calc_geo()
455 btwrite(geo->vtotal>>8, BT848_VTOTAL_HI); bttv_apply_geo()
456 btwrite(geo->vtotal & 0xff, BT848_VTOTAL_LO); bttv_apply_geo()
H A Dbttvp.h100 u16 vtotal; member in struct:bttv_tvnorm
153 u16 sheight,vscale,vdelay,vtotal; member in struct:bttv_geometry
H A Dbttv-driver.c498 .vtotal = 524,
/linux-4.1.27/drivers/gpu/drm/rockchip/
H A Drockchip_drm_vop.c641 dsp_sty = crtc_y + crtc->mode.vtotal - crtc->mode.vsync_start; vop_update_plane_event()
864 if (adjusted_mode->htotal == 0 || adjusted_mode->vtotal == 0) vop_crtc_mode_fixup()
899 u16 vtotal = adjusted_mode->vtotal; vop_crtc_mode_set() local
901 u16 vact_st = adjusted_mode->vtotal - adjusted_mode->vsync_start; vop_crtc_mode_set()
941 VOP_CTRL_SET(vop, vtotal_pw, (vtotal << 16) | vsync_len); vop_crtc_mode_set()
/linux-4.1.27/drivers/video/fbdev/intelfb/
H A Dintelfbhw.c1051 u32 vsync_start, vsync_end, vblank_start, vblank_end, vtotal, vactive; intelfbhw_mode_to_hw() local
1192 vtotal = vsync_end + var->upper_margin; intelfbhw_mode_to_hw()
1197 vactive, vsync_start, vsync_end, vtotal, vblank_start, intelfbhw_mode_to_hw()
1229 vtotal--; intelfbhw_mode_to_hw()
1230 if (check_overflow(vtotal, VTOTAL_MASK, "CRTC vtotal")) intelfbhw_mode_to_hw()
1244 *vt = (vtotal << VTOTAL_SHIFT) | (vactive << VACTIVE_SHIFT); intelfbhw_mode_to_hw()
/linux-4.1.27/drivers/video/fbdev/vermilion/
H A Dvermilion.c782 u32 vtotal, vactive, vblank_start, vblank_end, vsync_start, vsync_end; vmlfb_set_par_locked() local
801 vtotal = vmlfb_set_par_locked()
805 vblank_end = vtotal; vmlfb_set_par_locked()
819 ((clock / htotal) * 1000) / vtotal); vmlfb_set_par_locked()
848 VML_WRITE32(par, VML_VTOTAL_A, ((vtotal - 1) << 16) | (vactive - 1)); vmlfb_set_par_locked()
/linux-4.1.27/drivers/gpu/drm/shmobile/
H A Dshmob_drm_crtc.c122 | mode->vtotal; /* VTLN */ shmob_drm_crtc_setup_geometry()
666 mode->vtotal = sdev->pdata->panel.mode.vtotal; shmob_drm_connector_get_modes()
/linux-4.1.27/include/uapi/linux/
H A Dfb.h215 /* vtotal = 144d/288n/576i => PAL */
216 /* vtotal = 121d/242n/484i => NTSC */
/linux-4.1.27/drivers/video/fbdev/i810/
H A Di810_gtf.c159 /* vtotal */ i810fb_encode_registers()
/linux-4.1.27/include/video/
H A Dgbe.h298 short vtotal; /* Vertical total lines */ member in struct:gbe_timing_info
/linux-4.1.27/drivers/gpu/drm/tilcdc/
H A Dtilcdc_crtc.c279 vbp = mode->vtotal - mode->vsync_end; tilcdc_crtc_mode_set()
468 vbp = mode->vtotal - mode->vsync_end; tilcdc_crtc_mode_valid()
/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_dc.c147 int vback_porch = mode->vtotal - mode->vsync_end; atmel_hlcdc_dc_mode_valid()
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvif/
H A Dclass.h397 __u16 vtotal; member in struct:nv04_disp_scanoutpos_v0
/linux-4.1.27/include/uapi/drm/
H A Ddrm_mode.h109 __u16 vdisplay, vsync_start, vsync_end, vtotal, vscan; member in struct:drm_mode_modeinfo
/linux-4.1.27/drivers/gpu/drm/armada/
H A Darmada_crtc.c71 * vtotal = mode->crtc_vtotal + 1;
75 * vtotal = mode->crtc_vtotal;
/linux-4.1.27/drivers/video/fbdev/via/
H A Dviafbdev.c190 u32 htotal, vtotal; get_var_refresh() local
194 vtotal = var->upper_margin + var->yres + var->lower_margin get_var_refresh()
196 return PICOS2KHZ(var->pixclock) * 1000 / (htotal * vtotal); get_var_refresh()
/linux-4.1.27/drivers/gpu/drm/msm/dsi/
H A Ddsi_manager.c424 mode->vsync_end, mode->vtotal, dsi_mgr_bridge_mode_set()
H A Ddsi_host.c800 u32 v_total = mode->vtotal; dsi_timing_setup()
/linux-4.1.27/drivers/gpu/drm/nouveau/
H A Dnouveau_display.c124 args.scan.vtotal, args.scan.vline); nouveau_display_scanoutpos_head()
H A Dnv50_display.c1134 vactive = mode->vtotal * vscan / ilace; nv50_crtc_mode_set()
1136 vbackp = (mode->vtotal - mode->vsync_end) * vscan / ilace; nv50_crtc_mode_set()
H A Dnouveau_bios.c478 mode->vtotal = ROM16(mode_entry[35]) + 1; nouveau_bios_fp_mode()
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_kms.c1930 mode->vtotal = mode->vsync_end + 50; vmw_guess_mode_timing()
1932 mode->clock = (u32)mode->htotal * (u32)mode->vtotal / 100 * 6; vmw_guess_mode_timing()
/linux-4.1.27/drivers/media/pci/cx88/
H A Dcx88-core.c646 /* returns 4*FSC / vtotal / frames per seconds */ norm_htotal()
/linux-4.1.27/drivers/gpu/drm/bridge/
H A Ddw_hdmi.c1080 vblank = mode->vtotal - mode->vdisplay; hdmi_av_composer()
/linux-4.1.27/drivers/gpu/drm/tegra/
H A Dsor.c1305 value = ((mode->vtotal & 0x7fff) << 16) | (mode->htotal & 0x7fff); tegra_sor_encoder_mode_set()
H A Ddc.c1155 value = ((mode->vtotal - mode->vsync_end) << 16) | tegra_dc_set_timings()

Completed in 3245 milliseconds