| /linux-4.4.14/drivers/gpu/drm/panel/ |
| D | panel-simple.c | 381 .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, [all …]
|
| D | panel-lg-lg4573.c | 208 .vtotal = 800 + 15 + 15 + 15,
|
| D | panel-sharp-lq101r1sx01.c | 285 .vtotal = 1600 + 4 + 8 + 32,
|
| /linux-4.4.14/drivers/gpu/drm/ |
| D | drm_modes.c | 58 mode->vsync_end, mode->vtotal, mode->type, mode->flags); in drm_mode_debug_printmodeline() 258 drm_mode->vtotal = vdisplay_rnd + 2 * vmargin + in drm_cvt_mode() 314 drm_mode->vtotal = vdisplay_rnd + 2 * vmargin + vbilines; in drm_cvt_mode() 330 drm_mode->vtotal *= 2; in drm_cvt_mode() 515 drm_mode->vtotal = vtotal_lines; in drm_gtf_mode_complex() 520 drm_mode->vtotal *= 2; in drm_gtf_mode_complex() 595 dmode->vtotal = dmode->vsync_end + vm->vback_porch; in drm_display_mode_from_videomode() 636 vm->vback_porch = dmode->vtotal - dmode->vsync_end; in drm_display_mode_to_videomode() 751 else if (mode->htotal > 0 && mode->vtotal > 0) { in drm_mode_vrefresh() 752 int vtotal; in drm_mode_vrefresh() local [all …]
|
| D | drm_edid.c | 1849 mode->vtotal *= 2; in drm_mode_do_interlace_quirk() 1850 mode->vtotal |= 1; in drm_mode_do_interlace_quirk() 1927 mode->vtotal = mode->vdisplay + vblank; in drm_mode_detailed() 1932 if (mode->vsync_end > mode->vtotal) in drm_mode_detailed() 1933 mode->vtotal = mode->vsync_end + 1; in drm_mode_detailed()
|
| /linux-4.4.14/drivers/media/i2c/ |
| D | ths8200.c | 66 static inline unsigned vtotal(const struct v4l2_bt_timings *t) in vtotal() function 218 uint16_t line_start_front_porch = (vtotal(bt) - bt->vfrontporch); in ths8200_setup() 265 ((vtotal(bt) >> 4) & 0xf0) + 0x7); in ths8200_setup() 266 ths8200_write(sd, THS8200_DTG1_FRAME_SZ_LSB, vtotal(bt) & 0xff); in ths8200_setup() 292 ths8200_write(sd, THS8200_DTG2_BP3_4_MSB, ((vtotal(bt)) >> 4) & 0x70); in ths8200_setup() 295 ths8200_write(sd, THS8200_DTG2_BP3_LSB, (vtotal(bt)) & 0xff); in ths8200_setup() 318 ((vtotal(bt) + 1) >> 8) & 0x7); in ths8200_setup() 319 ths8200_write(sd, THS8200_DTG2_VDLY1_LSB, vtotal(bt) + 1); in ths8200_setup() 356 "vertical: sync %d\n", __func__, htotal(bt), vtotal(bt), in ths8200_setup()
|
| D | adv7604.c | 375 static inline unsigned vtotal(const struct v4l2_bt_timings *t) in vtotal() function 972 u32 height = vtotal(bt); in configure_custom_video_timings() 1334 if (vtotal(&adv76xx_timings[i].bt) != stdi->lcf + 1) in stdi2dv_timings()
|
| D | adv7842.c | 278 static inline unsigned vtotal(const struct v4l2_bt_timings *t) in vtotal() function 1081 u32 height = vtotal(bt); in configure_custom_video_timings() 1432 if (vtotal(bt) != stdi->lcf + 1) in stdi2dv_timings()
|
| /linux-4.4.14/drivers/video/fbdev/core/ |
| D | fbcvt.c | 45 u32 vtotal; member 164 u32 vtotal = cvt->yres/cvt->interlace; in fb_cvt_vtotal() local 166 vtotal += 2 * cvt->v_margin + cvt->interlace/2 + fb_cvt_vbi_lines(cvt); in fb_cvt_vtotal() 167 vtotal |= cvt->interlace/2; in fb_cvt_vtotal() 169 return vtotal; in fb_cvt_vtotal() 177 pixclock = (cvt->f_refresh * cvt->vtotal * cvt->htotal)/1000; in fb_cvt_pixclock() 363 cvt.vtotal = fb_cvt_vtotal(&cvt); in fb_find_mode_cvt() 373 cvt.v_back_porch = cvt.vtotal - cvt.yres/cvt.interlace - in fb_find_mode_cvt()
|
| D | fbmon.c | 721 int vtotal, htotal; in fb_get_monitor_limits() local 735 vtotal = mode->yres + mode->lower_margin + mode->vsync_len in fb_get_monitor_limits() 739 vtotal /= 2; in fb_get_monitor_limits() 742 vtotal *= 2; in fb_get_monitor_limits() 746 hz = (hscan + vtotal / 2) / vtotal; in fb_get_monitor_limits() 1113 u32 vtotal; member 1241 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_vfreq() 1251 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_hfreq() 1252 timings->vfreq = timings->hfreq/timings->vtotal; in fb_timings_hfreq() 1266 timings->vtotal = timings->vactive + timings->vblank; in fb_timings_dclk() [all …]
|
| D | modedb.c | 885 u32 pixclock, hfreq, htotal, vtotal; in fb_var_to_videomode() local 909 vtotal = var->yres + var->lower_margin + var->vsync_len + in fb_var_to_videomode() 913 vtotal /= 2; in fb_var_to_videomode() 915 vtotal *= 2; in fb_var_to_videomode() 918 mode->refresh = hfreq/vtotal; in fb_var_to_videomode()
|
| /linux-4.4.14/drivers/gpu/drm/exynos/ |
| D | exynos_hdmi.c | 1303 (m->htotal << 12) | m->vtotal); in hdmi_v13_mode_apply() 1329 val = m->vtotal / 2; in hdmi_v13_mode_apply() 1330 val |= ((m->vtotal - m->vdisplay) / 2) << 11; in hdmi_v13_mode_apply() 1333 val = (m->vtotal + in hdmi_v13_mode_apply() 1335 val |= m->vtotal << 11; in hdmi_v13_mode_apply() 1338 val = ((m->vtotal / 2) + 7); in hdmi_v13_mode_apply() 1339 val |= ((m->vtotal / 2) + 2) << 12; in hdmi_v13_mode_apply() 1348 (m->vtotal - m->vdisplay) / 2); in hdmi_v13_mode_apply() 1355 val = m->vtotal; in hdmi_v13_mode_apply() 1356 val |= (m->vtotal - m->vdisplay) << 11; in hdmi_v13_mode_apply() [all …]
|
| D | exynos7_drm_decon.c | 158 unsigned long ideal_clk = mode->htotal * mode->vtotal * mode->vrefresh; in decon_calc_clkdiv() 177 if (mode->htotal == 0 || mode->vtotal == 0) in decon_commit()
|
| D | exynos_drm_fimd.c | 362 unsigned long ideal_clk = mode->htotal * mode->vtotal * mode->vrefresh; in fimd_calc_clkdiv() 391 if (mode->htotal == 0 || mode->vtotal == 0) in fimd_commit()
|
| D | exynos_drm_dsi.c | 1680 vm->vback_porch = m->vtotal - m->vsync_end; in exynos_dsi_mode_set()
|
| /linux-4.4.14/drivers/gpu/drm/cirrus/ |
| D | cirrus_mode.c | 201 int vtotal, vdispend; in cirrus_crtc_mode_set() local 210 vtotal = mode->vtotal; in cirrus_crtc_mode_set() 214 vtotal -= 2; in cirrus_crtc_mode_set() 226 WREG_CRT(VGA_CRTC_V_TOTAL, vtotal & 0xff); in cirrus_crtc_mode_set() 238 if (vtotal & 256) in cirrus_crtc_mode_set() 244 if (vtotal & 512) in cirrus_crtc_mode_set() 258 if (vtotal & 256) in cirrus_crtc_mode_set() 260 if (vtotal & 512) in cirrus_crtc_mode_set()
|
| /linux-4.4.14/drivers/gpu/drm/msm/hdmi/ |
| D | hdmi_bridge.c | 158 vstart = mode->vtotal - mode->vsync_start - 1; in hdmi_bridge_mode_set() 159 vend = mode->vtotal - mode->vsync_start + mode->vdisplay - 1; in hdmi_bridge_mode_set() 162 mode->htotal, mode->vtotal, hstart, hend, vstart, vend); in hdmi_bridge_mode_set() 166 HDMI_TOTAL_V_TOTAL(mode->vtotal - 1)); in hdmi_bridge_mode_set() 177 HDMI_VSYNC_TOTAL_F2_V_TOTAL(mode->vtotal)); in hdmi_bridge_mode_set()
|
| /linux-4.4.14/drivers/gpu/drm/gma500/ |
| D | mdfld_tpo_vid.c | 58 mode->vtotal = mode->vdisplay + in tpo_vid_get_config_mode() 69 dev_dbg(dev->dev, "vtotal is %d\n", mode->vtotal); in tpo_vid_get_config_mode() 79 mode->vtotal = 499; in tpo_vid_get_config_mode()
|
| D | mdfld_device.c | 203 pipe->vtotal = PSB_RVDC32(map->vtotal); in mdfld_save_display_registers() 329 PSB_WVDC32(pipe->vtotal, map->vtotal); in mdfld_restore_display_registers() 458 .vtotal = VTOTAL_A, 480 .vtotal = VTOTAL_B, 503 .vtotal = VTOTAL_C,
|
| D | mdfld_tmd_vid.c | 61 mode->vtotal = mode->vdisplay + \ in tmd_vid_get_config_mode() 72 dev_dbg(dev->dev, "vtotal is %d\n", mode->vtotal); in tmd_vid_get_config_mode() 82 mode->vtotal = 873; in tmd_vid_get_config_mode()
|
| D | intel_bios.c | 177 panel_fixed_mode->vtotal = panel_fixed_mode->vdisplay + in fill_detail_timing_data() 195 if (panel_fixed_mode->vsync_end > panel_fixed_mode->vtotal) in fill_detail_timing_data() 196 panel_fixed_mode->vtotal = panel_fixed_mode->vsync_end + 1; in fill_detail_timing_data() 271 if (panel_fixed_mode->htotal > 0 && panel_fixed_mode->vtotal > 0) { in parse_lfp_panel_data()
|
| D | psb_intel_display.c | 278 REG_WRITE(map->vtotal, (adjusted_mode->crtc_vdisplay - 1) | in psb_intel_crtc_mode_set() 401 vtot = REG_READ(map->vtotal); in psb_intel_crtc_mode_get() 407 vtot = p->vtotal; in psb_intel_crtc_mode_get() 421 mode->vtotal = ((vtot & 0xffff0000) >> 16) + 1; in psb_intel_crtc_mode_get()
|
| D | oaktrail_device.c | 216 p->vtotal = PSB_RVDC32(VTOTAL_A); in oaktrail_save_display_registers() 336 PSB_WVDC32(p->vtotal, VTOTAL_A); in oaktrail_restore_display_registers() 474 .vtotal = VTOTAL_A, 498 .vtotal = VTOTAL_B,
|
| D | mdfld_dsi_dpi.c | 442 pclk_vbp = mode->vtotal - mode->vsync_end; in mdfld_dsi_dpi_timing_calculation() 505 (mode->vtotal * mode->htotal * dsi_config->bpp / in mdfld_dsi_dpi_controller_init() 703 adjusted_mode->vtotal = fixed_mode->vtotal; in mdfld_dsi_dpi_mode_fixup() 802 REG_WRITE(VTOTAL_A, ((mode->vtotal - 1) << 16) | (mode->vdisplay - 1)); in mdfld_set_pipe_timing() 803 REG_WRITE(VBLANK_A, ((mode->vtotal - 1) << 16) | (mode->vdisplay - 1)); in mdfld_set_pipe_timing()
|
| D | psb_device.c | 273 .vtotal = VTOTAL_A, 297 .vtotal = VTOTAL_B,
|
| D | cdv_intel_display.c | 803 REG_WRITE(map->vtotal, (adjusted_mode->crtc_vdisplay - 1) | in cdv_intel_crtc_mode_set() 945 vtot = REG_READ(map->vtotal); in cdv_intel_crtc_mode_get() 951 vtot = p->vtotal; in cdv_intel_crtc_mode_get() 965 mode->vtotal = ((vtot & 0xffff0000) >> 16) + 1; in cdv_intel_crtc_mode_get()
|
| D | oaktrail_lvds.c | 254 mode->vtotal = mode->vdisplay + \ in oaktrail_lvds_get_configuration_mode() 265 printk(KERN_INFO "vtotal is %d\n", mode->vtotal); in oaktrail_lvds_get_configuration_mode()
|
| D | mdfld_intel_display.c | 722 adjusted_mode->vtotal); in mdfld_crtc_mode_set() 821 REG_WRITE(map->vtotal, (mode->crtc_vdisplay - 1) | in mdfld_crtc_mode_set() 838 REG_WRITE(map->vtotal, (adjusted_mode->crtc_vdisplay - 1) | in mdfld_crtc_mode_set()
|
| D | cdv_intel_lvds.c | 307 adjusted_mode->vtotal = panel_fixed_mode->vtotal; in cdv_intel_lvds_mode_fixup()
|
| D | cdv_device.c | 536 .vtotal = VTOTAL_A, 561 .vtotal = VTOTAL_B,
|
| D | tc35876x-dsi-lvds.c | 595 mode->vtotal = 838; in tc35876x_get_config_mode() 605 dev_info(&dev->pdev->dev, "vtotal = %d\n", mode->vtotal); in tc35876x_get_config_mode()
|
| D | oaktrail_crtc.c | 452 REG_WRITE_WITH_AUX(map->vtotal, (mode->crtc_vdisplay - 1) | in oaktrail_crtc_mode_set() 471 REG_WRITE_WITH_AUX(map->vtotal, (adjusted_mode->crtc_vdisplay - 1) | in oaktrail_crtc_mode_set()
|
| D | psb_intel_lvds.c | 423 adjusted_mode->vtotal = panel_fixed_mode->vtotal; in psb_intel_lvds_mode_fixup()
|
| D | psb_drv.h | 288 u32 vtotal; member 322 u32 vtotal; member
|
| D | oaktrail_hdmi.c | 773 pipeb->vtotal = PSB_RVDC32(VTOTAL_B); in oaktrail_hdmi_save() 826 PSB_WVDC32(pipeb->vtotal, VTOTAL_B); in oaktrail_hdmi_restore()
|
| D | gma_display.c | 579 crtc_state->saveVTOTAL = REG_READ(map->vtotal); in gma_crtc_save() 633 REG_WRITE(map->vtotal, crtc_state->saveVTOTAL); in gma_crtc_restore()
|
| D | cdv_intel_dp.c | 886 adjusted_mode->vtotal = fixed_mode->vtotal; in cdv_intel_fixed_panel_mode()
|
| D | psb_intel_sdvo.c | 791 mode->vtotal = mode->vdisplay + dtd->part1.v_blank; in psb_intel_sdvo_get_mode_from_dtd() 792 mode->vtotal += (dtd->part1.v_high & 0xf) << 8; in psb_intel_sdvo_get_mode_from_dtd()
|
| /linux-4.4.14/drivers/video/fbdev/sis/ |
| D | initextlfb.c | 40 int *htotal, int *vtotal, unsigned char rateindex); 178 int *vtotal, unsigned char rateindex) in sisfb_gettotalfrommode() argument 219 *vtotal = ((cr_data & 0xFF) | in sisfb_gettotalfrommode() 225 *vtotal *= 2; in sisfb_gettotalfrommode()
|
| D | sis_main.c | 559 int htotal, vtotal; in sisfb_verify_rate() local 594 &htotal, &vtotal, rate_idx)) { in sisfb_verify_rate() 595 dclock = (htotal * vtotal * rate) / 1000; in sisfb_verify_rate() 1183 unsigned int htotal = 0, vtotal = 0; in sisfb_do_set_var() local 1191 vtotal = var->upper_margin + var->lower_margin + var->vsync_len; in sisfb_do_set_var() 1196 vtotal += var->yres; in sisfb_do_set_var() 1197 vtotal <<= 1; in sisfb_do_set_var() 1199 vtotal += var->yres; in sisfb_do_set_var() 1200 vtotal <<= 2; in sisfb_do_set_var() 1202 vtotal += var->yres; in sisfb_do_set_var() [all …]
|
| D | sis_main.h | 754 int *htotal, int *vtotal, unsigned char rateindex);
|
| /linux-4.4.14/drivers/gpu/drm/i915/ |
| D | dvo_ns2501.c | 216 uint16_t vtotal; /* number of lines generated, 82/83 */ member 243 .vtotal = 1341, 263 .vtotal = 1341, 282 .vtotal = 1341, 531 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_valid() 558 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_set() 626 ns2501_writeb(dvo, NS2501_REG82, conf->vtotal & 0xff); in ns2501_mode_set() 627 ns2501_writeb(dvo, NS2501_REG83, conf->vtotal >> 8); in ns2501_mode_set()
|
| D | intel_crt.c | 485 uint32_t vtotal, vactive; in intel_crt_load_detect() local 511 vtotal = ((save_vtotal >> 16) & 0xfff) + 1; in intel_crt_load_detect() 541 if (vblank_start <= vactive && vblank_end >= vtotal) { in intel_crt_load_detect() 552 if (vblank_start - vactive >= vtotal - vblank_end) in intel_crt_load_detect() 555 vsample = (vtotal + vblank_end) >> 1; in intel_crt_load_detect()
|
| D | i915_irq.c | 729 int position, vtotal; in __intel_get_crtc_scanline() local 731 vtotal = mode->crtc_vtotal; in __intel_get_crtc_scanline() 733 vtotal /= 2; in __intel_get_crtc_scanline() 770 return (position + crtc->scanline_offset) % vtotal; in __intel_get_crtc_scanline() 782 int vbl_start, vbl_end, hsync_start, htotal, vtotal; in i915_get_crtc_scanoutpos() local 795 vtotal = mode->crtc_vtotal; in i915_get_crtc_scanoutpos() 802 vtotal /= 2; in i915_get_crtc_scanoutpos() 835 vtotal *= htotal; in i915_get_crtc_scanoutpos() 846 if (position >= vtotal) in i915_get_crtc_scanoutpos() 847 position = vtotal - 1; in i915_get_crtc_scanoutpos() [all …]
|
| D | intel_bios.c | 105 panel_fixed_mode->vtotal = panel_fixed_mode->vdisplay + in fill_detail_timing_data() 123 if (panel_fixed_mode->vsync_end > panel_fixed_mode->vtotal) in fill_detail_timing_data() 124 panel_fixed_mode->vtotal = panel_fixed_mode->vsync_end + 1; in fill_detail_timing_data()
|
| D | intel_tv.c | 1164 .vtotal = 1104, 1436 mode_ptr->vtotal = vactive_s + 33; in intel_tv_get_modes() 1438 tmp = (u64) tv_mode->refresh * mode_ptr->vtotal; in intel_tv_get_modes()
|
| D | intel_dsi_pll.c | 99 vbp = mode->vtotal - mode->vsync_end; in dsi_rr_formula()
|
| D | intel_dsi_panel_vbt.c | 444 pclk += DIV_ROUND_UP(mode->vtotal * in vbt_panel_init()
|
| D | intel_sdvo.c | 833 v_blank_len = mode->vtotal - mode->vdisplay; in intel_sdvo_get_dtd_from_mode() 894 mode.vtotal = mode.vdisplay + dtd->part1.v_blank; in intel_sdvo_get_mode_from_dtd() 895 mode.vtotal += (dtd->part1.v_high & 0xf) << 8; in intel_sdvo_get_mode_from_dtd()
|
| D | intel_panel.c | 84 scan->vtotal == fixed_mode->vtotal) { in intel_find_panel_downclock()
|
| D | intel_display.c | 7815 mode->vtotal = pipe_config->base.adjusted_mode.crtc_vtotal; in intel_mode_from_pipe_config() 10709 mode->vtotal = ((vtot & 0xffff0000) >> 16) + 1; in intel_crtc_mode_get() 12917 int vtotal; in update_scanline_offset() local 12919 vtotal = adjusted_mode->crtc_vtotal; in update_scanline_offset() 12921 vtotal /= 2; in update_scanline_offset() 12923 crtc->scanline_offset = vtotal - 1; in update_scanline_offset() 15667 u32 vtotal; member 15745 error->transcoder[i].vtotal = I915_READ(VTOTAL(cpu_transcoder)); in intel_display_capture_error_state() 15806 err_printf(m, " VTOTAL: %08x\n", error->transcoder[i].vtotal); in intel_display_print_error_state()
|
| D | i915_debugfs.c | 2796 mode->vsync_end, mode->vtotal, in intel_seq_print_mode()
|
| /linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| D | rootnv04.c | 55 args->v0.vtotal = nvkm_rd32(device, 0x680804 + hoff) & 0xffff; in nv04_disp_scanoutpos() 56 args->v0.vblanke = args->v0.vtotal - 1; in nv04_disp_scanoutpos() 67 if (!args->v0.vtotal || !args->v0.htotal) in nv04_disp_scanoutpos()
|
| D | rootgf119.c | 54 args->v0.vtotal = ( total & 0xffff0000) >> 16; in gf119_disp_root_scanoutpos()
|
| D | rootnv50.c | 54 args->v0.vtotal = ( total & 0xffff0000) >> 16; in nv50_disp_root_scanoutpos()
|
| /linux-4.4.14/drivers/gpu/drm/i2c/ |
| D | ch7006_mode.c | 41 .vtotal = 525, \ 46 .vtotal = 625, \ 120 .vtotal = vt, \ 187 mode->mode.vtotal != drm_mode->vtotal || in ch7006_lookup_mode() 346 scale = norm->vtotal*fixed1; in ch7006_setup_properties() 347 do_div(scale, mode->vtotal); in ch7006_setup_properties() 353 * priv->hmargin * mode->vtotal) / norm->vtotal / 100 / 4; in ch7006_setup_properties()
|
| D | tda998x_drv.c | 885 if (mode->vtotal >= BIT(11)) in tda998x_connector_mode_valid() 923 n_line = mode->vtotal; in tda998x_encoder_mode_set() 941 vwin1_line_s = mode->vtotal - mode->vdisplay - 1; in tda998x_encoder_mode_set() 952 vwin1_line_s = (mode->vtotal - mode->vdisplay)/2; in tda998x_encoder_mode_set() 958 vwin2_line_s = vwin1_line_s + mode->vtotal/2; in tda998x_encoder_mode_set() 961 vs2_line_s = vs1_line_s + mode->vtotal/2 ; in tda998x_encoder_mode_set()
|
| D | ch7006_priv.h | 52 int vtotal; member
|
| /linux-4.4.14/drivers/video/fbdev/geode/ |
| D | display_gx.c | 66 int vactive, vblankstart, vsyncstart, vsyncend, vblankend, vtotal; in gx_set_mode() local 145 vtotal = vblankend; in gx_set_mode() 155 ((vtotal - 1) << 16)); in gx_set_mode()
|
| D | display_gx1.c | 86 int vactive, vblankstart, vsyncstart, vsyncend, vblankend, vtotal; in gx1_set_mode() local 163 vtotal = vblankend; in gx1_set_mode() 172 val = (vactive - 1) | ((vtotal - 1) << 16); in gx1_set_mode()
|
| D | lxfb_ops.c | 354 int vactive, vblankstart, vsyncstart, vsyncend, vblankend, vtotal; in lx_set_mode() local 480 vtotal = vblankend; in lx_set_mode() 488 write_dc(par, DC_V_ACTIVE_TIMING, (vactive - 1) | ((vtotal - 1) << 16)); in lx_set_mode()
|
| /linux-4.4.14/drivers/gpu/drm/imx/ |
| D | ipuv3-plane.c | 55 unsigned long htotal, vtotal; in calc_vref() local 58 vtotal = mode->vtotal; in calc_vref() 60 if (!htotal || !vtotal) in calc_vref() 63 return DIV_ROUND_UP(mode->clock * 1000, vtotal * htotal); in calc_vref()
|
| /linux-4.4.14/drivers/video/fbdev/ |
| D | amifb.c | 756 u_short vtotal; /* vmode */ member 1024 #define vtotal2hw(vtotal) (div2(vtotal) - 1) argument 1127 u_int htotal, vtotal; in ami_decode_var() local 1218 par->vtotal = in ami_decode_var() 1235 par->diwstop_v = par->vtotal - in ami_decode_var() 1242 if (par->diwstop_v > par->vtotal) { in ami_decode_var() 1259 if (par->vtotal > (PAL_VTOTAL + NTSC_VTOTAL) / 2) { in ami_decode_var() 1274 vtotal = PAL_VTOTAL>>1; in ami_decode_var() 1304 vtotal = NTSC_VTOTAL>>1; in ami_decode_var() 1339 par->diwstop_v = par->vtotal; in ami_decode_var() [all …]
|
| D | pvr2fb.c | 361 unsigned int vtotal; in pvr2fb_set_par() local 390 vtotal = par->vsync_total; in pvr2fb_set_par() 392 vtotal /= 2; in pvr2fb_set_par() 393 if (vtotal > (PAL_VTOTAL + NTSC_VTOTAL)/2) { in pvr2fb_set_par() 436 unsigned int vtotal, hsync_total; in pvr2fb_check_var() local 508 vtotal = var->upper_margin + var->yres + var->lower_margin + in pvr2fb_check_var() 513 vtotal /= 2; in pvr2fb_check_var() 514 if (vtotal > (PAL_VTOTAL + NTSC_VTOTAL)/2) { in pvr2fb_check_var()
|
| D | cirrusfb.c | 667 int yres, vdispend, vsyncstart, vsyncend, vtotal; in cirrusfb_set_par_foo() local 709 vtotal = vsyncend + var->upper_margin; in cirrusfb_set_par_foo() 715 vtotal *= 2; in cirrusfb_set_par_foo() 720 vtotal = (vtotal + 1) / 2; in cirrusfb_set_par_foo() 724 vtotal /= 2; in cirrusfb_set_par_foo() 733 vtotal -= 2; in cirrusfb_set_par_foo() 774 dev_dbg(info->device, "CRT6: %d\n", vtotal & 0xff); in cirrusfb_set_par_foo() 775 vga_wcrt(regbase, VGA_CRTC_V_TOTAL, vtotal & 0xff); in cirrusfb_set_par_foo() 778 if (vtotal & 256) in cirrusfb_set_par_foo() 786 if (vtotal & 512) in cirrusfb_set_par_foo() [all …]
|
| D | neofb.c | 262 int vtotal = vsync_end + var->upper_margin; in vgaHWInit() local 291 par->CRTC[6] = (vtotal - 2) & 0xFF; in vgaHWInit() 292 par->CRTC[7] = (((vtotal - 2) & 0x100) >> 8) in vgaHWInit() 296 | 0x10 | (((vtotal - 2) & 0x200) >> 4) in vgaHWInit() 317 par->CRTC[22] = (vtotal - 1) & 0xFF; in vgaHWInit() 728 int vsync_start, vtotal; in neofb_set_par() local 737 vtotal = vsync_start + info->var.vsync_len + info->var.upper_margin; in neofb_set_par() 783 par->VerticalExt = (((vtotal - 2) & 0x400) >> 10) in neofb_set_par()
|
| D | tridentfb.c | 1139 u32 vtotal, vdispend, vsyncstart, vsyncend, vblankstart, vblankend; in tridentfb_set_par() local 1157 vtotal = var->upper_margin + vsyncend - 2; in tridentfb_set_par() 1159 vblankend = vtotal; in tridentfb_set_par() 1162 vtotal /= 2; in tridentfb_set_par() 1200 write3X4(par, VGA_CRTC_V_TOTAL, vtotal & 0xFF); in tridentfb_set_par() 1218 if (vtotal & 0x100) tmp |= 0x01; in tridentfb_set_par() 1223 if (vtotal & 0x200) tmp |= 0x20; in tridentfb_set_par() 1230 if (vtotal & 0x400) tmp |= 0x80; in tridentfb_set_par()
|
| D | gbefb.c | 521 timing->vtotal = var->upper_margin + var->yres + in compute_gbe_timing() 524 1000 / timing->vtotal; in compute_gbe_timing() 530 timing->vblank_end = timing->vtotal; in compute_gbe_timing() 555 SET_GBE_FIELD(VT_XYMAX, MAXY, val, timing->vtotal); in gbe_set_timing_info() 994 var->upper_margin = timing.vtotal - timing.vsync_end; in gbefb_check_var()
|
| D | sh_mobile_hdmi.c | 406 u16 htotal, hblank, hdelay, vtotal, vblank, vdelay, voffset; in sh_hdmi_external_video_param() local 418 vtotal = mode->yres + mode->upper_margin + mode->lower_margin in sh_hdmi_external_video_param() 437 vtotal, vblank, vdelay, mode->vsync_len, sync); in sh_hdmi_external_video_param() 453 hdmi_write(hdmi, vtotal, HDMI_EXTERNAL_V_TOTAL_7_0); in sh_hdmi_external_video_param() 454 hdmi_write(hdmi, vtotal >> 8, HDMI_EXTERNAL_V_TOTAL_9_8); in sh_hdmi_external_video_param()
|
| D | mx3fb.c | 931 u32 vtotal; in mx3fb_check_var() local 1002 vtotal = var->yres + var->lower_margin + var->vsync_len + in mx3fb_check_var() 1004 var->pixclock = (vtotal * htotal * 6UL) / 100UL; in mx3fb_check_var()
|
| D | pm2fb.c | 688 u32 vsstart, vsend, vbend, vtotal; in pm2fb_set_par() local 725 vtotal = info->var.yres + vbend - 1; in pm2fb_set_par() 815 pm2_WR(par, PM2R_V_TOTAL, vtotal); in pm2fb_set_par()
|
| D | pm3fb.c | 729 const u32 vtotal = info->var.yres + vbend; in pm3fb_write_mode() local 751 PM3_WRITE_REG(par, PM3VTotal, vtotal - 1); in pm3fb_write_mode()
|
| /linux-4.4.14/drivers/staging/xgifb/ |
| D | XGI_main_26.c | 928 unsigned int vtotal = var->upper_margin + var->yres + var->lower_margin in XGIfb_do_set_var() local 942 vtotal <<= 1; in XGIfb_do_set_var() 944 vtotal <<= 2; in XGIfb_do_set_var() 946 if (!htotal || !vtotal) { in XGIfb_do_set_var() 950 var->pixclock, htotal, vtotal); in XGIfb_do_set_var() 956 / vtotal); in XGIfb_do_set_var() 1230 unsigned int vtotal = 0; in XGIfb_check_var() local 1236 vtotal = var->upper_margin + var->yres + var->lower_margin in XGIfb_check_var() 1238 vtotal <<= 1; in XGIfb_check_var() 1240 vtotal = var->upper_margin + var->yres + var->lower_margin in XGIfb_check_var() [all …]
|
| /linux-4.4.14/drivers/video/fbdev/matrox/ |
| D | matroxfb_g450.c | 331 unsigned int vtotal; in computeRegs() local 335 vtotal = mt->VTotal; in computeRegs() 338 if (vtotal < outd->v_total) { in computeRegs() 339 unsigned int yovr = outd->v_total - vtotal; in computeRegs() 342 } else if (vtotal > outd->v_total) { in computeRegs()
|
| D | matroxfb_maven.c | 225 unsigned int htotal, unsigned int vtotal, in matroxfb_PLL_mavenclock() argument 238 scrlen = htotal * (vtotal - 1); in matroxfb_PLL_mavenclock() 239 fwant = htotal * vtotal; in matroxfb_PLL_mavenclock() 243 fwant, fxtal, htotal, vtotal, fmax); in matroxfb_PLL_mavenclock() 298 unsigned int htotal, unsigned int vtotal, in matroxfb_mavenclock() argument 304 fvco = matroxfb_PLL_mavenclock(&maven1000_pll, ctl, htotal, vtotal, in, feed, &p, htotal2); in matroxfb_mavenclock()
|
| /linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp4/ |
| D | mdp4_dtv_encoder.c | 122 mode->vsync_end, mode->vtotal, in mdp4_dtv_encoder_mode_set() 141 vsync_period = mode->vtotal * mode->htotal; in mdp4_dtv_encoder_mode_set() 143 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp4_dtv_encoder_mode_set()
|
| D | mdp4_lcdc_encoder.c | 288 mode->vsync_end, mode->vtotal, in mdp4_lcdc_encoder_mode_set() 307 vsync_period = mode->vtotal * mode->htotal; in mdp4_lcdc_encoder_mode_set() 309 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + lcdc_hsync_skew; in mdp4_lcdc_encoder_mode_set()
|
| D | mdp4_crtc.c | 265 mode->vsync_end, mode->vtotal, in mdp4_crtc_mode_set_nofb()
|
| /linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp5/ |
| D | mdp5_cmd_encoder.c | 112 total_lines_x100 = mode->vtotal * mode->vrefresh; in pingpong_tearcheck_setup() 115 __func__, mode->vtotal, mode->vrefresh); in pingpong_tearcheck_setup() 212 mode->vsync_end, mode->vtotal, in mdp5_cmd_encoder_mode_set()
|
| D | mdp5_encoder.c | 145 mode->vsync_end, mode->vtotal, in mdp5_encoder_mode_set() 186 vsync_period = mode->vtotal * mode->htotal; in mdp5_encoder_mode_set() 188 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp5_encoder_mode_set()
|
| D | mdp5_crtc.c | 315 mode->vsync_end, mode->vtotal, in mdp5_crtc_mode_set_nofb()
|
| /linux-4.4.14/drivers/gpu/drm/omapdrm/ |
| D | omap_connector.c | 59 mode->vtotal = mode->vsync_end + timings->vbp; in copy_timings_omap_to_drm() 90 timings->vbp = mode->vtotal - mode->vsync_end; in copy_timings_drm_to_omap() 250 mode->vsync_end, mode->vtotal, mode->type, mode->flags); in omap_connector_mode_valid()
|
| D | omap_crtc.c | 385 mode->vdisplay, mode->vsync_start, mode->vsync_end, mode->vtotal, in omap_crtc_mode_set_nofb()
|
| /linux-4.4.14/include/drm/ |
| D | drm_modes.h | 87 .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), \ 119 int vtotal; member
|
| /linux-4.4.14/drivers/gpu/drm/sti/ |
| D | sti_vtg.c | 161 writel(mode->vtotal * 2, vtg->regs + VTG_HLFLN); in vtg_set_mode() 198 tmp |= mode->vtotal; in vtg_set_mode() 259 u32 start_line = mode.vtotal - mode.vsync_start + 1; in sti_vtg_get_line_number()
|
| D | sti_dvo.c | 118 timing.total_lines = mode->vtotal; in dvo_awg_generate_code() 121 timing.trailing_lines = mode->vtotal - mode->vsync_start; in dvo_awg_generate_code()
|
| D | sti_crtc.c | 83 mode->vtotal, mode->type, mode->flags); in sti_crtc_mode_set()
|
| /linux-4.4.14/arch/m68k/include/asm/ |
| D | amigahw.h | 187 unsigned short vtotal; member 269 amiga_custom.vtotal = 223; /* 70 Hz */ in amifb_video_off()
|
| /linux-4.4.14/drivers/gpu/drm/mgag200/ |
| D | mgag200_mode.c | 888 int vdisplay, vsyncstart, vsyncend, vtotal; in mga_crtc_mode_set() local 1022 vtotal = mode->vtotal - 2; in mga_crtc_mode_set() 1040 WREG_CRT(6, vtotal & 0xFF); in mga_crtc_mode_set() 1041 WREG_CRT(7, ((vtotal & 0x100) >> 8) | in mga_crtc_mode_set() 1046 ((vtotal & 0x200) >> 4)| in mga_crtc_mode_set() 1063 WREG_CRT(22, (vtotal + 1) & 0xFF); in mga_crtc_mode_set() 1077 ext_vga[2] = ((vtotal & 0xc00) >> 10) | in mga_crtc_mode_set() 1572 if (!mode->htotal || !mode->vtotal || !mode->clock) in mga_vga_calculate_mode_bandwidth() 1576 total_area = mode->htotal * mode->vtotal; in mga_vga_calculate_mode_bandwidth()
|
| /linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_encoders.c | 153 unsigned vblank = native_mode->vtotal - native_mode->vdisplay; in amdgpu_panel_mode_fixup() 169 adjusted_mode->vtotal = native_mode->vdisplay + vblank; in amdgpu_panel_mode_fixup()
|
| D | amdgpu_display.c | 800 int vbl_start, vbl_end, vtotal, ret = 0; in amdgpu_get_crtc_scanoutpos() local 879 vtotal = mode->crtc_vtotal; in amdgpu_get_crtc_scanoutpos() 880 *vpos = *vpos - vtotal; in amdgpu_get_crtc_scanoutpos()
|
| D | atombios_encoders.c | 1944 lvds->native_mode.vtotal = lvds->native_mode.vdisplay + in amdgpu_atombios_encoder_get_lcd_info()
|
| /linux-4.4.14/Documentation/EDID/ |
| D | HOWTO.txt | 38 VTimings: vdisp vsyncstart vsyncend vtotal 47 #define YBLANK vtotal-vdisp
|
| /linux-4.4.14/drivers/media/platform/xilinx/ |
| D | xilinx-tpg.c | 198 unsigned int vtotal; in xtpg_s_stream() local 202 vtotal = min_t(unsigned int, XVTC_MAX_VSIZE, in xtpg_s_stream() 207 config.vsync_end = vtotal - 1; in xtpg_s_stream() 208 config.vsize = vtotal; in xtpg_s_stream()
|
| /linux-4.4.14/drivers/media/pci/bt8xx/ |
| D | bttv-risc.c | 368 geo->vtotal = tvnorm->vtotal; in bttv_calc_geo_old() 419 geo->vtotal = tvnorm->vtotal; in bttv_calc_geo() 455 btwrite(geo->vtotal>>8, BT848_VTOTAL_HI); in bttv_apply_geo() 456 btwrite(geo->vtotal & 0xff, BT848_VTOTAL_LO); in bttv_apply_geo()
|
| D | bttvp.h | 100 u16 vtotal; member 153 u16 sheight,vscale,vdelay,vtotal; member
|
| D | bttv-driver.c | 498 .vtotal = 524,
|
| /linux-4.4.14/drivers/gpu/drm/msm/edp/ |
| D | edp_bridge.c | 69 mode->vsync_end, mode->vtotal, in edp_bridge_mode_set()
|
| D | edp_ctrl.c | 1299 EDP_TOTAL_HOR_VER_VERT(mode->vtotal)); in msm_edp_ctrl_timing_cfg() 1301 vstart_from_sync = mode->vtotal - mode->vsync_start; in msm_edp_ctrl_timing_cfg()
|
| /linux-4.4.14/drivers/video/fbdev/vermilion/ |
| D | vermilion.c | 782 u32 vtotal, vactive, vblank_start, vblank_end, vsync_start, vsync_end; in vmlfb_set_par_locked() local 801 vtotal = in vmlfb_set_par_locked() 805 vblank_end = vtotal; in vmlfb_set_par_locked() 819 ((clock / htotal) * 1000) / vtotal); in vmlfb_set_par_locked() 848 VML_WRITE32(par, VML_VTOTAL_A, ((vtotal - 1) << 16) | (vactive - 1)); in vmlfb_set_par_locked()
|
| /linux-4.4.14/drivers/gpu/drm/nouveau/dispnv04/ |
| D | tvnv17.c | 214 mode->vtotal / 1000; in nv17_tv_get_ld_modes() 279 mode->vtotal = output_mode->vtotal; in nv17_tv_get_hd_modes() 542 regs->fp_vert_regs[FP_TOTAL] = output_mode->vtotal - 1; in nv17_tv_mode_set()
|
| D | tvnv04.c | 150 regp->tv_vtotal = adjusted_mode->vtotal; in nv04_tv_mode_set()
|
| D | dfp.c | 313 regp->fp_vert_regs[FP_TOTAL] = output_mode->vtotal - 1; in nv04_dfp_mode_set() 314 regp->fp_vert_regs[FP_CRTC] = output_mode->vtotal - 5 - 1; in nv04_dfp_mode_set()
|
| /linux-4.4.14/drivers/gpu/drm/radeon/ |
| D | radeon_encoders.c | 327 unsigned vblank = native_mode->vtotal - native_mode->vdisplay; in radeon_panel_mode_fixup() 345 adjusted_mode->vtotal = native_mode->vdisplay + vblank; in radeon_panel_mode_fixup()
|
| D | radeon_display.c | 1859 int vbl_start, vbl_end, vtotal, ret = 0; in radeon_get_crtc_scanoutpos() local 2017 vtotal = mode->crtc_vtotal; in radeon_get_crtc_scanoutpos() 2018 *vpos = *vpos - vtotal; in radeon_get_crtc_scanoutpos()
|
| D | rs780_dpm.c | 65 if (crtc->mode.htotal && crtc->mode.vtotal) in rs780_get_pm_mode_parameters()
|
| D | radeon_combios.c | 1270 lvds->native_mode.vtotal = lvds->native_mode.vdisplay + in radeon_combios_get_lvds_info()
|
| D | radeon_atombios.c | 1661 lvds->native_mode.vtotal = lvds->native_mode.vdisplay + in radeon_atombios_get_lvds_info()
|
| /linux-4.4.14/drivers/gpu/drm/shmobile/ |
| D | shmob_drm_crtc.c | 122 | mode->vtotal; /* VTLN */ in shmob_drm_crtc_setup_geometry() 666 mode->vtotal = sdev->pdata->panel.mode.vtotal; in shmob_drm_connector_get_modes()
|
| /linux-4.4.14/drivers/gpu/drm/rockchip/ |
| D | rockchip_drm_vop.c | 884 dsp_sty = dest.y1 + crtc->mode.vtotal - crtc->mode.vsync_start; in vop_update_plane_event() 1140 if (adjusted_mode->htotal == 0 || adjusted_mode->vtotal == 0) in vop_crtc_mode_fixup() 1175 u16 vtotal = adjusted_mode->vtotal; in vop_crtc_mode_set() local 1177 u16 vact_st = adjusted_mode->vtotal - adjusted_mode->vsync_start; in vop_crtc_mode_set() 1217 VOP_CTRL_SET(vop, vtotal_pw, (vtotal << 16) | vsync_len); in vop_crtc_mode_set()
|
| /linux-4.4.14/drivers/gpu/drm/fsl-dcu/ |
| D | fsl_dcu_drm_crtc.c | 99 vbp = mode->vtotal - mode->vsync_end; in fsl_dcu_drm_crtc_mode_set_nofb()
|
| /linux-4.4.14/include/video/ |
| D | gbe.h | 298 short vtotal; /* Vertical total lines */ member
|
| /linux-4.4.14/drivers/gpu/drm/tilcdc/ |
| D | tilcdc_crtc.c | 305 vbp = mode->vtotal - mode->vsync_end; in tilcdc_crtc_mode_set() 494 vbp = mode->vtotal - mode->vsync_end; in tilcdc_crtc_mode_valid()
|
| /linux-4.4.14/drivers/video/fbdev/intelfb/ |
| D | intelfbhw.c | 1051 u32 vsync_start, vsync_end, vblank_start, vblank_end, vtotal, vactive; in intelfbhw_mode_to_hw() local 1192 vtotal = vsync_end + var->upper_margin; in intelfbhw_mode_to_hw() 1197 vactive, vsync_start, vsync_end, vtotal, vblank_start, in intelfbhw_mode_to_hw() 1229 vtotal--; in intelfbhw_mode_to_hw() 1230 if (check_overflow(vtotal, VTOTAL_MASK, "CRTC vtotal")) in intelfbhw_mode_to_hw() 1244 *vt = (vtotal << VTOTAL_SHIFT) | (vactive << VACTIVE_SHIFT); in intelfbhw_mode_to_hw()
|
| /linux-4.4.14/include/uapi/drm/ |
| D | drm_mode.h | 116 __u16 vtotal; member
|
| /linux-4.4.14/drivers/gpu/drm/nouveau/include/nvif/ |
| D | class.h | 472 __u16 vtotal; member
|
| /linux-4.4.14/drivers/gpu/drm/vc4/ |
| D | vc4_hdmi.c | 295 VC4_SET_FIELD(mode->vtotal - mode->vsync_end, in vc4_hdmi_encoder_mode_set()
|
| D | vc4_crtc.c | 216 VC4_SET_FIELD(mode->vtotal - mode->vsync_end - 1, in vc4_crtc_mode_set_nofb()
|
| /linux-4.4.14/Documentation/fb/ |
| D | vesafb.txt | 169 vtotal:n
|
| D | uvesafb.txt | 96 vtotal:n
|
| /linux-4.4.14/drivers/gpu/drm/atmel-hlcdc/ |
| D | atmel_hlcdc_dc.c | 350 int vback_porch = mode->vtotal - mode->vsync_end; in atmel_hlcdc_dc_mode_valid()
|
| /linux-4.4.14/drivers/video/fbdev/via/ |
| D | viafbdev.c | 190 u32 htotal, vtotal; in get_var_refresh() local 194 vtotal = var->upper_margin + var->yres + var->lower_margin in get_var_refresh() 196 return PICOS2KHZ(var->pixclock) * 1000 / (htotal * vtotal); in get_var_refresh()
|
| /linux-4.4.14/drivers/gpu/drm/msm/dsi/ |
| D | dsi_manager.c | 498 mode->vsync_end, mode->vtotal, in dsi_mgr_bridge_mode_set()
|
| D | dsi_host.c | 715 u32 v_total = mode->vtotal; in dsi_timing_setup()
|
| /linux-4.4.14/drivers/gpu/drm/tegra/ |
| D | sor.c | 1537 value = ((mode->vtotal & 0x7fff) << 16) | (mode->htotal & 0x7fff); in tegra_sor_edp_enable() 2092 value = ((mode->vtotal & 0x7fff) << 16) | (mode->htotal & 0x7fff); in tegra_sor_hdmi_enable() 2103 vbe = vse + (mode->vtotal - mode->vsync_end); in tegra_sor_hdmi_enable()
|
| D | dc.c | 1080 value = ((mode->vtotal - mode->vsync_end) << 16) | in tegra_dc_set_timings()
|
| /linux-4.4.14/drivers/gpu/drm/nouveau/ |
| D | nouveau_display.c | 125 args.scan.vtotal, args.scan.vline); in nouveau_display_scanoutpos_head()
|
| D | nv50_display.c | 1153 vactive = mode->vtotal * vscan / ilace; in nv50_crtc_mode_set() 1155 vbackp = (mode->vtotal - mode->vsync_end) * vscan / ilace; in nv50_crtc_mode_set()
|
| D | nouveau_bios.c | 479 mode->vtotal = ROM16(mode_entry[35]) + 1; in nouveau_bios_fp_mode()
|
| /linux-4.4.14/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_kms.c | 1520 mode->vtotal = mode->vsync_end + 50; in vmw_guess_mode_timing() 1522 mode->clock = (u32)mode->htotal * (u32)mode->vtotal / 100 * 6; in vmw_guess_mode_timing()
|
| /linux-4.4.14/drivers/gpu/drm/bridge/ |
| D | dw_hdmi.c | 1047 vblank = mode->vtotal - mode->vdisplay; in hdmi_av_composer()
|