Home
last modified time | relevance | path

Searched refs:htotal (Results 1 – 127 of 127) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/panel/
Dpanel-simple.c377 .htotal = 800 + 0 + 255 + 0,
402 .htotal = 1024 + 156 + 8 + 156,
425 .htotal = 1280 + 119 + 32 + 21,
448 .htotal = 1366 + 20 + 70,
472 .htotal = 1366 + 40 + 40 + 32,
495 .htotal = 1366 + 48 + 32 + 20,
518 .htotal = 1920 + 172 + 80 + 60,
546 .htotal = 1024 + 160 + 4 + 156,
574 .htotal = 1366 + 58 + 58 + 58,
597 .htotal = 1366 + 48 + 32 + 20,
[all …]
Dpanel-sharp-lq101r1sx01.c281 .htotal = 2560 + 128 + 64 + 64,
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp4/
Dmdp4_dtv_encoder.c120 mode->hsync_end, mode->htotal, in mdp4_dtv_encoder_mode_set()
138 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_dtv_encoder_mode_set()
139 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_dtv_encoder_mode_set()
141 vsync_period = mode->vtotal * mode->htotal; in mdp4_dtv_encoder_mode_set()
142 vsync_len = (mode->vsync_end - mode->vsync_start) * 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()
144 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_s… in mdp4_dtv_encoder_mode_set()
148 MDP4_DTV_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_dtv_encoder_mode_set()
Dmdp4_lcdc_encoder.c286 mode->hsync_end, mode->htotal, in mdp4_lcdc_encoder_mode_set()
304 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp4_lcdc_encoder_mode_set()
305 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp4_lcdc_encoder_mode_set()
307 vsync_period = mode->vtotal * mode->htotal; in mdp4_lcdc_encoder_mode_set()
308 vsync_len = (mode->vsync_end - mode->vsync_start) * 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()
310 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + lcdc_hsync_… in mdp4_lcdc_encoder_mode_set()
314 MDP4_LCDC_HSYNC_CTRL_PERIOD(mode->htotal)); in mdp4_lcdc_encoder_mode_set()
Dmdp4_crtc.c256 mode->hsync_end, mode->htotal, in mdp4_crtc_mode_set_nofb()
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_encoder.c141 mode->hsync_end, mode->htotal, in mdp5_encoder_mode_set()
177 hsync_start_x = (mode->htotal - mode->hsync_start); in mdp5_encoder_mode_set()
178 hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; in mdp5_encoder_mode_set()
180 vsync_period = mode->vtotal * mode->htotal; in mdp5_encoder_mode_set()
181 vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; in mdp5_encoder_mode_set()
182 display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; in mdp5_encoder_mode_set()
183 …display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_s… in mdp5_encoder_mode_set()
191 display_v_start += mode->htotal - mode->hsync_start; in mdp5_encoder_mode_set()
199 MDP5_INTF_HSYNC_CTL_PERIOD(mode->htotal)); in mdp5_encoder_mode_set()
Dmdp5_cmd_encoder.c208 mode->hsync_end, mode->htotal, in mdp5_cmd_encoder_mode_set()
Dmdp5_crtc.c255 mode->hsync_end, mode->htotal, in mdp5_crtc_mode_set_nofb()
/linux-4.1.27/drivers/media/i2c/
Dths8200.c61 static inline unsigned htotal(const struct v4l2_bt_timings *t) in htotal() function
252 ths8200_write(sd, THS8200_DTG1_SPEC_G_LSB, (htotal(bt)/2) & 0xff); in ths8200_setup()
254 ((htotal(bt)/2) >> 8) & 0x0f); in ths8200_setup()
257 ths8200_write(sd, THS8200_DTG1_TOT_PIXELS_MSB, htotal(bt) >> 8); in ths8200_setup()
258 ths8200_write(sd, THS8200_DTG1_TOT_PIXELS_LSB, htotal(bt) & 0xff); in ths8200_setup()
308 (htotal(bt) >> 8) & 0x1f); in ths8200_setup()
309 ths8200_write(sd, THS8200_DTG2_HLENGTH_HDLY_LSB, htotal(bt)); in ths8200_setup()
356 "vertical: sync %d\n", __func__, htotal(bt), vtotal(bt), in ths8200_setup()
Dadv7842.c224 static inline unsigned htotal(const struct v4l2_bt_timings *t) in htotal() function
967 u32 width = htotal(bt); in configure_custom_video_timings()
1324 pix_clk = hfreq * htotal(bt); in stdi2dv_timings()
Dadv7604.c337 static inline unsigned htotal(const struct v4l2_bt_timings *t) in htotal() function
927 u32 width = htotal(bt); in configure_custom_video_timings()
1295 pix_clk = hfreq * htotal(&adv76xx_timings[i].bt); in stdi2dv_timings()
/linux-4.1.27/drivers/gpu/drm/sti/
Dsti_vtg.c132 writel(mode->htotal, vtg->regs + VTG_CLKLN); in vtg_set_mode()
136 tmp |= mode->htotal - mode->hsync_start; in vtg_set_mode()
141 tmp |= mode->hdisplay + mode->htotal - mode->hsync_start; in vtg_set_mode()
170 tmp |= mode->htotal + AWG_DELAY_HD; in vtg_set_mode()
178 tmp = (mode->htotal + AWG_DELAY_HD) << 16; in vtg_set_mode()
179 tmp |= mode->htotal + AWG_DELAY_HD; in vtg_set_mode()
257 return mode.htotal - mode.hsync_start + x; in sti_vtg_get_pixel_number()
Dsti_dvo.c122 timing.total_pixels = mode->htotal; in dvo_awg_generate_code()
125 timing.trailing_pixels = mode->htotal - mode->hsync_start; in dvo_awg_generate_code()
Dsti_drm_crtc.c99 mode->htotal, in sti_drm_crtc_mode_set()
Dsti_hqvdp.c507 lfw = layer->mode->htotal * (clk_get_rate(hqvdp->clk) / 1000000); in sti_hqvdp_check_hw_scaling()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_modes.c56 mode->hsync_end, mode->htotal, in drm_mode_debug_printmodeline()
282 drm_mode->htotal = drm_mode->hdisplay + hblank; in drm_cvt_mode()
285 (drm_mode->htotal * CVT_HSYNC_PERCENTAGE) / 100; in drm_cvt_mode()
316 drm_mode->htotal = drm_mode->hdisplay + CVT_RB_H_BLANK; in drm_cvt_mode()
325 drm_mode->clock = drm_mode->htotal * HV_FACTOR * 1000 / hperiod; in drm_cvt_mode()
511 drm_mode->htotal = total_pixels; in drm_gtf_mode_complex()
590 dmode->htotal = dmode->hsync_end + vm->hback_porch; in drm_display_mode_from_videomode()
631 vm->hback_porch = dmode->htotal - dmode->hsync_end; in drm_display_mode_to_videomode()
725 if (mode->htotal < 0) in drm_mode_hsync()
728 calc_val = (mode->clock * 1000) / mode->htotal; /* hsync in Hz */ in drm_mode_hsync()
[all …]
Ddrm_edid.c1451 return (mode->htotal - mode->hdisplay == 160) && in mode_is_rb()
1870 mode->htotal = mode->hdisplay + hblank; in drm_mode_detailed()
1878 if (mode->hsync_end > mode->htotal) in drm_mode_detailed()
1879 mode->htotal = mode->hsync_end + 1; in drm_mode_detailed()
Ddrm_crtc.c1725 in->hsync_end > USHRT_MAX || in->htotal > USHRT_MAX || in drm_crtc_convert_to_umode()
1735 out->htotal = in->htotal; in drm_crtc_convert_to_umode()
1773 out->htotal = in->htotal; in drm_crtc_convert_umode()
/linux-4.1.27/drivers/gpu/drm/gma500/
Dmdfld_tpo_vid.c50 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | in tpo_vid_get_config_mode()
66 dev_dbg(dev->dev, "htotal is %d\n", mode->htotal); in tpo_vid_get_config_mode()
76 mode->htotal = 887; in tpo_vid_get_config_mode()
Dmdfld_device.c200 pipe->htotal = PSB_RVDC32(map->htotal); in mdfld_save_display_registers()
326 PSB_WVDC32(pipe->htotal, map->htotal); in mdfld_restore_display_registers()
455 .htotal = HTOTAL_A,
477 .htotal = HTOTAL_B,
500 .htotal = HTOTAL_C,
Dmdfld_tmd_vid.c53 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in tmd_vid_get_config_mode()
69 dev_dbg(dev->dev, "htotal is %d\n", mode->htotal); in tmd_vid_get_config_mode()
79 mode->htotal = 499; in tmd_vid_get_config_mode()
Dintel_bios.c168 panel_fixed_mode->htotal = panel_fixed_mode->hdisplay + in fill_detail_timing_data()
193 if (panel_fixed_mode->hsync_end > panel_fixed_mode->htotal) in fill_detail_timing_data()
194 panel_fixed_mode->htotal = panel_fixed_mode->hsync_end + 1; in fill_detail_timing_data()
271 if (panel_fixed_mode->htotal > 0 && panel_fixed_mode->vtotal > 0) { in parse_lfp_panel_data()
Dpsb_intel_display.c272 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in psb_intel_crtc_mode_set()
399 htot = REG_READ(map->htotal); in psb_intel_crtc_mode_get()
405 htot = p->htotal; in psb_intel_crtc_mode_get()
417 mode->htotal = ((htot & 0xffff0000) >> 16) + 1; in psb_intel_crtc_mode_get()
Doaktrail_device.c213 p->htotal = PSB_RVDC32(HTOTAL_A); in oaktrail_save_display_registers()
333 PSB_WVDC32(p->htotal, HTOTAL_A); in oaktrail_restore_display_registers()
471 .htotal = HTOTAL_A,
495 .htotal = HTOTAL_B,
Dmdfld_dsi_dpi.c438 pclk_hbp = mode->htotal - mode->hsync_end; in mdfld_dsi_dpi_timing_calculation()
505 (mode->vtotal * mode->htotal * dsi_config->bpp / in mdfld_dsi_dpi_controller_init()
699 adjusted_mode->htotal = fixed_mode->htotal; in mdfld_dsi_dpi_mode_fixup()
797 REG_WRITE(HTOTAL_A, ((mode->htotal - 1) << 16) | (mode->hdisplay - 1)); in mdfld_set_pipe_timing()
798 REG_WRITE(HBLANK_A, ((mode->htotal - 1) << 16) | (mode->hdisplay - 1)); in mdfld_set_pipe_timing()
Dpsb_device.c270 .htotal = HTOTAL_A,
294 .htotal = HTOTAL_B,
Doaktrail_hdmi.c160 u32 htotal, new_crtc_htotal; in htotal_calculate() local
162 htotal = (mode->crtc_hdisplay - 1) | ((mode->crtc_htotal - 1) << 16); in htotal_calculate()
770 pipeb->htotal = PSB_RVDC32(HTOTAL_B); in oaktrail_hdmi_save()
823 PSB_WVDC32(pipeb->htotal, HTOTAL_B); in oaktrail_hdmi_restore()
Dcdv_intel_display.c797 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in cdv_intel_crtc_mode_set()
943 htot = REG_READ(map->htotal); in cdv_intel_crtc_mode_get()
949 htot = p->htotal; in cdv_intel_crtc_mode_get()
961 mode->htotal = ((htot & 0xffff0000) >> 16) + 1; in cdv_intel_crtc_mode_get()
Doaktrail_lvds.c246 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in oaktrail_lvds_get_configuration_mode()
262 printk(KERN_INFO "htotal is %d\n", mode->htotal); in oaktrail_lvds_get_configuration_mode()
Dmdfld_intel_display.c716 adjusted_mode->htotal); in mdfld_crtc_mode_set()
819 REG_WRITE(map->htotal, (mode->crtc_hdisplay - 1) | in mdfld_crtc_mode_set()
836 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in mdfld_crtc_mode_set()
Dcdv_device.c533 .htotal = HTOTAL_A,
558 .htotal = HTOTAL_B,
Dcdv_intel_lvds.c303 adjusted_mode->htotal = panel_fixed_mode->htotal; in cdv_intel_lvds_mode_fixup()
Doaktrail_crtc.c450 REG_WRITE_WITH_AUX(map->htotal, (mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set()
469 REG_WRITE_WITH_AUX(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set()
Dtc35876x-dsi-lvds.c592 mode->htotal = 1440; in tc35876x_get_config_mode()
602 dev_info(&dev->pdev->dev, "htotal = %d\n", mode->htotal); in tc35876x_get_config_mode()
Dpsb_intel_lvds.c419 adjusted_mode->htotal = panel_fixed_mode->htotal; in psb_intel_lvds_mode_fixup()
Dpsb_drv.h285 u32 htotal; member
319 u32 htotal; member
Dgma_display.c576 crtc_state->saveHTOTAL = REG_READ(map->htotal); in gma_crtc_save()
630 REG_WRITE(map->htotal, crtc_state->saveHTOTAL); in gma_crtc_restore()
Dcdv_intel_dp.c882 adjusted_mode->htotal = fixed_mode->htotal; in cdv_intel_fixed_panel_mode()
Dpsb_intel_sdvo.c779 mode->htotal = mode->hdisplay + dtd->part1.h_blank; in psb_intel_sdvo_get_mode_from_dtd()
780 mode->htotal += (dtd->part1.h_high & 0xf) << 8; in psb_intel_sdvo_get_mode_from_dtd()
/linux-4.1.27/drivers/video/fbdev/core/
Dfbmon.c721 int vtotal, htotal; in fb_get_monitor_limits() local
733 htotal = mode->xres + mode->right_margin + mode->hsync_len in fb_get_monitor_limits()
744 hscan = (pixclock + htotal / 2) / htotal; in fb_get_monitor_limits()
1112 u32 htotal; member
1244 timings->htotal = timings->hactive + timings->hblank; in fb_timings_vfreq()
1245 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_vfreq()
1255 timings->htotal = timings->hactive + timings->hblank; in fb_timings_hfreq()
1256 timings->dclk = timings->htotal * timings->hfreq; in fb_timings_hfreq()
1263 timings->htotal = timings->hactive + timings->hblank; in fb_timings_dclk()
1264 timings->hfreq = timings->dclk/timings->htotal; in fb_timings_dclk()
[all …]
Dfbcvt.c44 u32 htotal; member
132 hsync = (FB_CVT_CELLSIZE * cvt->htotal)/100; in fb_cvt_hsync()
177 pixclock = (cvt->f_refresh * cvt->vtotal * cvt->htotal)/1000; in fb_cvt_pixclock()
179 pixclock = (cvt->htotal * 1000000)/cvt->hperiod; in fb_cvt_pixclock()
365 cvt.htotal = cvt.active_pixels + cvt.hblank; in fb_find_mode_cvt()
368 cvt.hfreq = cvt.pixclock/cvt.htotal; in fb_find_mode_cvt()
Dmodedb.c885 u32 pixclock, hfreq, htotal, vtotal; in fb_var_to_videomode() local
907 htotal = var->xres + var->right_margin + var->hsync_len + in fb_var_to_videomode()
917 hfreq = pixclock/htotal; in fb_var_to_videomode()
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_tv.c357 int hsync_end, hblank_start, hblank_end, htotal; member
426 .hblank_start = 836, .htotal = 857,
468 .hblank_start = 836, .htotal = 857,
511 .hblank_start = 836, .htotal = 857,
554 .hblank_start = 836, .htotal = 857,
597 .hblank_start = 844, .htotal = 863,
642 .hblank_start = 844, .htotal = 863,
684 .hblank_start = 842, .htotal = 857,
708 .hblank_start = 859, .htotal = 863,
732 .hblank_start = 1580, .htotal = 1649,
[all …]
Di915_irq.c558 u32 high1, high2, low, pixel, vbl_start, hsync_start, htotal; in i915_get_vblank_counter() local
564 htotal = mode->crtc_htotal; in i915_get_vblank_counter()
571 vbl_start *= htotal; in i915_get_vblank_counter()
574 vbl_start -= htotal - hsync_start; in i915_get_vblank_counter()
646 int vbl_start, vbl_end, hsync_start, htotal, vtotal; in i915_get_crtc_scanoutpos() local
657 htotal = mode->crtc_htotal; in i915_get_crtc_scanoutpos()
697 vbl_start *= htotal; in i915_get_crtc_scanoutpos()
698 vbl_end *= htotal; in i915_get_crtc_scanoutpos()
699 vtotal *= htotal; in i915_get_crtc_scanoutpos()
722 position = (position + htotal - hsync_start) % vtotal; in i915_get_crtc_scanoutpos()
[all …]
Ddvo_ns2501.c516 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_valid()
542 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_set()
Dintel_dsi.c705 hbp = mode->htotal - mode->hsync_end; in set_dsi_timings()
833 txbyteclkhs(adjusted_mode->htotal, bpp, in intel_dsi_prepare()
839 adjusted_mode->htotal, in intel_dsi_prepare()
Dintel_dsi_pll.c86 hbp = mode->htotal - mode->hsync_end; in dsi_rr_formula()
Dintel_bios.c95 panel_fixed_mode->htotal = panel_fixed_mode->hdisplay + in fill_detail_timing_data()
120 if (panel_fixed_mode->hsync_end > panel_fixed_mode->htotal) in fill_detail_timing_data()
121 panel_fixed_mode->htotal = panel_fixed_mode->hsync_end + 1; in fill_detail_timing_data()
Dintel_dvo.c280 C(htotal); in intel_dvo_compute_config()
Dintel_pm.c716 int htotal, hdisplay, clock, pixel_size; in g4x_compute_wm0() local
729 htotal = adjusted_mode->crtc_htotal; in g4x_compute_wm0()
744 line_time_us = max(htotal * 1000 / clock, 1); in g4x_compute_wm0()
802 int hdisplay, htotal, pixel_size, clock; in g4x_compute_srwm() local
816 htotal = adjusted_mode->crtc_htotal; in g4x_compute_srwm()
820 line_time_us = max(htotal * 1000 / clock, 1); in g4x_compute_srwm()
1199 int htotal = adjusted_mode->crtc_htotal; in i965_update_wm() local
1205 line_time_us = max(htotal * 1000 / clock, 1); in i965_update_wm()
1347 int htotal = adjusted_mode->crtc_htotal; in i9xx_update_wm() local
1353 line_time_us = max(htotal * 1000 / clock, 1); in i9xx_update_wm()
Dintel_panel.c77 scan->htotal == fixed_mode->htotal && in intel_find_panel_downclock()
Dintel_sdvo.c817 h_blank_len = mode->htotal - mode->hdisplay; in intel_sdvo_get_dtd_from_mode()
869 mode.htotal = mode.hdisplay + dtd->part1.h_blank; in intel_sdvo_get_mode_from_dtd()
870 mode.htotal += (dtd->part1.h_high & 0xf) << 8; in intel_sdvo_get_mode_from_dtd()
Dintel_display.c6703 mode->htotal = pipe_config->base.adjusted_mode.crtc_htotal; in intel_mode_from_pipe_config()
9381 mode->htotal = ((htot & 0xffff0000) >> 16) + 1; in intel_crtc_mode_get()
14472 u32 htotal; member
14550 error->transcoder[i].htotal = I915_READ(HTOTAL(cpu_transcoder)); in intel_display_capture_error_state()
14611 err_printf(m, " HTOTAL: %08x\n", error->transcoder[i].htotal); in intel_display_print_error_state()
Di915_debugfs.c2507 mode->hsync_end, mode->htotal, in intel_seq_print_mode()
/linux-4.1.27/drivers/gpu/drm/cirrus/
Dcirrus_mode.c200 int hsyncstart, hsyncend, htotal, hdispend; in cirrus_crtc_mode_set() local
205 htotal = mode->htotal / 8; in cirrus_crtc_mode_set()
216 htotal -= 5; in cirrus_crtc_mode_set()
222 WREG_CRT(VGA_CRTC_H_TOTAL, htotal); in cirrus_crtc_mode_set()
254 if ((htotal + 5) & 64) in cirrus_crtc_mode_set()
256 if ((htotal + 5) & 128) in cirrus_crtc_mode_set()
/linux-4.1.27/drivers/video/fbdev/geode/
Ddisplay_gx.c65 int hactive, hblankstart, hsyncstart, hsyncend, hblankend, htotal; in gx_set_mode() local
138 htotal = hblankend; in gx_set_mode()
148 ((htotal - 1) << 16)); in gx_set_mode()
Ddisplay_gx1.c85 int hactive, hblankstart, hsyncstart, hsyncend, hblankend, htotal; in gx1_set_mode() local
156 htotal = hblankend; in gx1_set_mode()
165 val = (hactive - 1) | ((htotal - 1) << 16); in gx1_set_mode()
Dlxfb_ops.c353 int hactive, hblankstart, hsyncstart, hsyncend, hblankend, htotal; in lx_set_mode() local
473 htotal = hblankend; in lx_set_mode()
482 write_dc(par, DC_H_ACTIVE_TIMING, (hactive - 1) | ((htotal - 1) << 16)); in lx_set_mode()
/linux-4.1.27/drivers/gpu/drm/msm/hdmi/
Dhdmi_bridge.c147 hstart = mode->htotal - mode->hsync_start; in hdmi_bridge_mode_set()
148 hend = mode->htotal - mode->hsync_start + mode->hdisplay; in hdmi_bridge_mode_set()
154 mode->htotal, mode->vtotal, hstart, hend, vstart, vend); in hdmi_bridge_mode_set()
157 HDMI_TOTAL_H_TOTAL(mode->htotal - 1) | in hdmi_bridge_mode_set()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
Dnv04.c416 u32 htotal = nv_rdvgac(priv, 0, 0x06); in nv04_devinit_init() local
417 htotal |= (nv_rdvgac(priv, 0, 0x07) & 0x01) << 8; in nv04_devinit_init()
418 htotal |= (nv_rdvgac(priv, 0, 0x07) & 0x20) << 4; in nv04_devinit_init()
419 htotal |= (nv_rdvgac(priv, 0, 0x25) & 0x01) << 10; in nv04_devinit_init()
420 htotal |= (nv_rdvgac(priv, 0, 0x41) & 0x01) << 11; in nv04_devinit_init()
421 if (!htotal) { in nv04_devinit_init()
/linux-4.1.27/drivers/video/fbdev/matrox/
Dmatroxfb_maven.c225 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()
276 if (ln > htotal) 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()
747 m->htotal = h - 2; in maven_find_exact_clocks()
800 m->regs[0xA0] = m->htotal; in maven_compute_timming()
801 m->regs[0xA1] = m->htotal >> 8; in maven_compute_timming()
[all …]
Dmatroxfb_base.h276 u_int16_t htotal; member
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dnv04.c55 args->v0.htotal = nv_rd32(priv, 0x680824 + hoff) & 0xffff; in nv04_disp_scanoutpos()
56 args->v0.hblanke = args->v0.htotal - 1; in nv04_disp_scanoutpos()
63 if (!args->v0.vtotal || !args->v0.htotal) in nv04_disp_scanoutpos()
Dgf110.c644 args->v0.htotal = ( total & 0x0000ffff); in gf110_disp_main_scanoutpos()
Dnv50.c968 args->v0.htotal = ( total & 0x0000ffff); in nv50_disp_main_scanoutpos()
/linux-4.1.27/drivers/gpu/drm/imx/
Dipuv3-plane.c46 unsigned long htotal, vtotal; in calc_vref() local
48 htotal = mode->htotal; in calc_vref()
51 if (!htotal || !vtotal) in calc_vref()
54 return DIV_ROUND_UP(mode->clock * 1000, vtotal * htotal); in calc_vref()
/linux-4.1.27/drivers/video/fbdev/
Damifb.c755 u_short htotal; /* vmode */ member
1021 #define htotal2hw(htotal) (div8(htotal) - 1) argument
1025 #define hcenter2hw(htotal) (div8(htotal)) argument
1127 u_int htotal, vtotal; in ami_decode_var() local
1216 par->htotal = down8((var->left_margin + par->xres + var->right_margin + in ami_decode_var()
1227 par->diwstop_h = par->htotal - in ami_decode_var()
1238 if (par->diwstop_h >= par->htotal + 8) { in ami_decode_var()
1261 if (par->htotal != PAL_HTOTAL) { in ami_decode_var()
1273 htotal = PAL_HTOTAL>>clk_shift; in ami_decode_var()
1291 if (par->htotal != NTSC_HTOTAL) { in ami_decode_var()
[all …]
Dgbefb.c521 timing->htotal = var->left_margin + var->xres + in compute_gbe_timing()
525 timing->fields_sec = 1000 * timing->cfreq / timing->htotal * in compute_gbe_timing()
529 timing->hblank_end = timing->htotal; in compute_gbe_timing()
556 SET_GBE_FIELD(VT_XYMAX, MAXX, val, timing->htotal); in gbe_set_timing_info()
604 timing->htotal - (20 - timing->hblank_end)); in gbe_set_timing_info()
614 timing->htotal - (GBE_CRS_MAGIC - in gbe_set_timing_info()
626 temp += timing->htotal; /* allow blank to wrap around */ in gbe_set_timing_info()
631 GBE_PIXEN_MAGIC_OFF) % timing->htotal)); in gbe_set_timing_info()
994 var->left_margin = timing.htotal - timing.hsync_end; in gbefb_check_var()
Dcirrusfb.c666 int hdispend, hsyncstart, hsyncend, htotal; in cirrusfb_set_par_foo() local
701 htotal = (hsyncend + var->left_margin) / 8; in cirrusfb_set_par_foo()
736 htotal /= 2; in cirrusfb_set_par_foo()
742 htotal -= 5; in cirrusfb_set_par_foo()
751 dev_dbg(info->device, "CRT0: %d\n", htotal); in cirrusfb_set_par_foo()
752 vga_wcrt(regbase, VGA_CRTC_H_TOTAL, htotal); in cirrusfb_set_par_foo()
761 dev_dbg(info->device, "CRT3: 128+%d\n", (htotal + 5) % 32); in cirrusfb_set_par_foo()
763 128 + ((htotal + 5) % 32)); in cirrusfb_set_par_foo()
769 if ((htotal + 5) & 32) in cirrusfb_set_par_foo()
824 if ((htotal + 5) & 64) in cirrusfb_set_par_foo()
[all …]
Ds3fb.c618 u32 htotal, hsstart; in s3fb_set_par() local
906 htotal = info->var.xres + info->var.left_margin + info->var.right_margin + info->var.hsync_len; in s3fb_set_par()
907 htotal = ((htotal * hmul) / 8) - 5; in s3fb_set_par()
908 vga_wcrt(par->state.vgabase, 0x3C, (htotal + 1) / 2); in s3fb_set_par()
913 value = clamp((htotal + hsstart + 1) / 2 + 2, hsstart + 4, htotal + 1); in s3fb_set_par()
Dsh_mobile_hdmi.c406 u16 htotal, hblank, hdelay, vtotal, vblank, vdelay, voffset; in sh_hdmi_external_video_param() local
409 htotal = mode->xres + mode->right_margin + mode->left_margin in sh_hdmi_external_video_param()
436 htotal, hblank, hdelay, mode->hsync_len, in sh_hdmi_external_video_param()
441 hdmi_write(hdmi, htotal, HDMI_EXTERNAL_H_TOTAL_7_0); in sh_hdmi_external_video_param()
442 hdmi_write(hdmi, htotal >> 8, HDMI_EXTERNAL_H_TOTAL_11_8); in sh_hdmi_external_video_param()
Dtridentfb.c1011 u32 htotal, hdispend, hsyncstart, hsyncend, hblankstart, hblankend; in tridentfb_set_par() local
1022 htotal = (var->xres + var->left_margin + var->right_margin + in tridentfb_set_par()
1025 hblankend = htotal + 3; in tridentfb_set_par()
1081 write3X4(par, VGA_CRTC_H_TOTAL, htotal & 0xFF); in tridentfb_set_par()
1109 tmp = (htotal >> 8) & 0x01; in tridentfb_set_par()
Dneofb.c264 int htotal = (hsync_end + var->left_margin) >> 3; in vgaHWInit() local
289 par->CRTC[0] = htotal - 5; in vgaHWInit()
292 par->CRTC[3] = ((htotal - 1) & 0x1F) | 0x80; in vgaHWInit()
294 par->CRTC[5] = (((htotal - 1) & 0x20) << 2) in vgaHWInit()
Dmx3fb.c932 u32 htotal; in mx3fb_check_var() local
1000 htotal = var->xres + var->right_margin + var->hsync_len + in mx3fb_check_var()
1004 var->pixclock = (vtotal * htotal * 6UL) / 100UL; in mx3fb_check_var()
Dtdfxfb.c567 u32 htotal = hsyncend + info->var.left_margin; in tdfxfb_set_par() local
594 htotal >>= 1; in tdfxfb_set_par()
601 ht = (htotal >> 3) - 1; in tdfxfb_set_par()
Dpm2fb.c694 u32 hsstart, hsend, hbend, htotal; in pm2fb_set_par() local
725 htotal = to3264(xres, depth, data64) + hbend - 1; in pm2fb_set_par()
817 pm2_WR(par, PM2R_H_TOTAL, htotal); in pm2fb_set_par()
Dpm3fb.c732 const u32 htotal = xres + hbend; in pm3fb_write_mode() local
747 pm3fb_shift_bpp(bpp, htotal - 1)); in pm3fb_write_mode()
/linux-4.1.27/drivers/video/fbdev/sis/
Dinitextlfb.c40 int *htotal, int *vtotal, unsigned char rateindex);
177 sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, int *htotal, in sisfb_gettotalfrommode() argument
214 *htotal = (((cr_data & 0xff) | ((unsigned short) (sr_data & 0x03) << 8)) + 5) * 8; in sisfb_gettotalfrommode()
Dsis_main.c562 int htotal, vtotal; in sisfb_verify_rate() local
597 &htotal, &vtotal, rate_idx)) { in sisfb_verify_rate()
598 dclock = (htotal * vtotal * rate) / 1000; in sisfb_verify_rate()
601 hsync = dclock / htotal; in sisfb_verify_rate()
1186 unsigned int htotal = 0, vtotal = 0; in sisfb_do_set_var() local
1192 htotal = var->left_margin + var->xres + var->right_margin + var->hsync_len; in sisfb_do_set_var()
1209 if(!(htotal) || !(vtotal)) { in sisfb_do_set_var()
1214 if(pixclock && htotal && vtotal) { in sisfb_do_set_var()
1216 hrate = (drate * 1000) / htotal; in sisfb_do_set_var()
1292 ivideo->current_htotal = htotal; in sisfb_do_set_var()
[all …]
Dsis_main.h754 int *htotal, int *vtotal, unsigned char rateindex);
/linux-4.1.27/drivers/gpu/drm/mgag200/
Dmgag200_mode.c787 int hdisplay, hsyncstart, hsyncend, htotal; in mga_crtc_mode_set() local
909 htotal = mode->htotal / 8 - 1; in mga_crtc_mode_set()
912 if ((htotal & 0x07) == 0x06 || (htotal & 0x07) == 0x04) in mga_crtc_mode_set()
913 htotal++; in mga_crtc_mode_set()
930 WREG_CRT(0, htotal - 4); in mga_crtc_mode_set()
933 WREG_CRT(3, (htotal & 0x1F) | 0x80); in mga_crtc_mode_set()
935 WREG_CRT(5, ((htotal & 0x20) << 2) | (hsyncend & 0x1F)); in mga_crtc_mode_set()
969 ext_vga[1] = (((htotal - 4) & 0x100) >> 8) | in mga_crtc_mode_set()
972 (htotal & 0x40); in mga_crtc_mode_set()
1465 if (!mode->htotal || !mode->vtotal || !mode->clock) in mga_vga_calculate_mode_bandwidth()
[all …]
/linux-4.1.27/include/drm/
Ddrm_modes.h86 .htotal = (ht), .hskew = (hsk), .vdisplay = (vd), \
114 int htotal; member
/linux-4.1.27/drivers/gpu/drm/omapdrm/
Domap_connector.c53 mode->htotal = mode->hsync_end + timings->hbp; in copy_timings_omap_to_drm()
84 timings->hbp = mode->htotal - mode->hsync_end; in copy_timings_drm_to_omap()
247 mode->hsync_end, mode->htotal, in omap_connector_mode_valid()
Domap_crtc.c506 mode->hsync_end, mode->htotal, in omap_crtc_mode_set()
/linux-4.1.27/arch/m68k/include/asm/
Damigahw.h183 unsigned short htotal; member
268 amiga_custom.htotal = 113; /* 31 kHz */ in amifb_video_off()
/linux-4.1.27/Documentation/EDID/
DHOWTO.txt37 HTimings: hdisp hsyncstart hsyncend htotal
42 #define XBLANK htotal-hdisp
/linux-4.1.27/drivers/gpu/drm/rcar-du/
Drcar_du_crtc.c157 rcar_du_crtc_write(rcrtc, HDSR, mode->htotal - mode->hsync_start - 19); in rcar_du_crtc_set_display_timing()
158 rcar_du_crtc_write(rcrtc, HDER, mode->htotal - mode->hsync_start + in rcar_du_crtc_set_display_timing()
162 rcar_du_crtc_write(rcrtc, HCR, mode->htotal - 1); in rcar_du_crtc_set_display_timing()
174 rcar_du_crtc_write(rcrtc, DESR, mode->htotal - mode->hsync_start); in rcar_du_crtc_set_display_timing()
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
Dtvnv17.c221 mode->htotal / 1000 * in nv17_tv_get_ld_modes()
280 mode->htotal = output_mode->htotal; in nv17_tv_get_hd_modes()
281 mode->hsync_start = (mode->hdisplay + (mode->htotal in nv17_tv_get_hd_modes()
542 regs->fp_horiz_regs[FP_TOTAL] = output_mode->htotal - 1; in nv17_tv_mode_set()
Dtvnv04.c145 regp->tv_htotal = adjusted_mode->htotal; in nv04_tv_mode_set()
Ddfp.c300 regp->fp_horiz_regs[FP_TOTAL] = output_mode->htotal - 1; in nv04_dfp_mode_set()
/linux-4.1.27/drivers/video/fbdev/vermilion/
Dvermilion.c781 u32 htotal, hactive, hblank_start, hblank_end, hsync_start, hsync_end; in vmlfb_set_par_locked() local
793 htotal = in vmlfb_set_par_locked()
797 hblank_end = htotal; in vmlfb_set_par_locked()
818 ": Set mode Hfreq : %d kHz, Vfreq : %d Hz.\n", clock / htotal, in vmlfb_set_par_locked()
819 ((clock / htotal) * 1000) / vtotal); in vmlfb_set_par_locked()
843 VML_WRITE32(par, VML_HTOTAL_A, ((htotal - 1) << 16) | (hactive - 1)); in vmlfb_set_par_locked()
/linux-4.1.27/drivers/media/platform/xilinx/
Dxilinx-tpg.c197 unsigned int htotal; in xtpg_s_stream() local
200 htotal = min_t(unsigned int, XVTC_MAX_HSIZE, in xtpg_s_stream()
205 config.hsync_end = htotal - 1; in xtpg_s_stream()
206 config.hsize = htotal; in xtpg_s_stream()
/linux-4.1.27/drivers/gpu/drm/shmobile/
Dshmob_drm_crtc.c109 | (mode->htotal / 8); /* HTCN */ in shmob_drm_crtc_setup_geometry()
116 value = ((mode->hdisplay & 7) << 24) | ((mode->htotal & 7) << 16) in shmob_drm_crtc_setup_geometry()
662 mode->htotal = sdev->pdata->panel.mode.htotal; in shmob_drm_connector_get_modes()
/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_hdmi.c1804 hdmi_set_reg(core->h_blank, 2, m->htotal - m->hdisplay); in hdmi_v13_mode_set()
1805 hdmi_set_reg(core->h_v_line, 3, (m->htotal << 12) | m->vtotal); in hdmi_v13_mode_set()
1844 val = ((m->htotal / 2) + (m->hsync_start - m->hdisplay)); in hdmi_v13_mode_set()
1845 val |= ((m->htotal / 2) + in hdmi_v13_mode_set()
1875 hdmi_set_reg(tg->h_fsz, 2, m->htotal); in hdmi_v13_mode_set()
1876 hdmi_set_reg(tg->hact_st, 2, m->htotal - m->hdisplay); in hdmi_v13_mode_set()
1901 hdmi_set_reg(core->h_blank, 2, m->htotal - m->hdisplay); in hdmi_v14_mode_set()
1903 hdmi_set_reg(core->h_line, 2, m->htotal); in hdmi_v14_mode_set()
1931 (m->htotal / 2) + (m->hsync_start - m->hdisplay)); in hdmi_v14_mode_set()
1933 (m->htotal / 2) + (m->hsync_start - m->hdisplay)); in hdmi_v14_mode_set()
[all …]
Dexynos7_drm_decon.c156 unsigned long ideal_clk = mode->htotal * mode->vtotal * mode->vrefresh; in decon_calc_clkdiv()
185 if (mode->htotal == 0 || mode->vtotal == 0) in decon_commit()
Dexynos_drm_fimd.c310 unsigned long ideal_clk = mode->htotal * mode->vtotal * mode->vrefresh; in fimd_calc_clkdiv()
349 if (mode->htotal == 0 || mode->vtotal == 0) in fimd_commit()
Dexynos_drm_dsi.c1525 vm->hback_porch = mode->htotal - mode->hsync_end; in exynos_dsi_mode_set()
/linux-4.1.27/drivers/gpu/drm/msm/edp/
Dedp_bridge.c67 mode->hsync_end, mode->htotal, in edp_bridge_mode_set()
Dedp_ctrl.c1312 EDP_TOTAL_HOR_VER_HORIZ(mode->htotal) | in msm_edp_ctrl_timing_cfg()
1316 hstart_from_sync = mode->htotal - mode->hsync_start; in msm_edp_ctrl_timing_cfg()
/linux-4.1.27/drivers/staging/xgifb/
DXGI_main_26.c929 unsigned int htotal = var->left_margin + var->xres + var->right_margin in XGIfb_do_set_var() local
949 if (!htotal || !vtotal) { in XGIfb_do_set_var()
953 var->pixclock, htotal, vtotal); in XGIfb_do_set_var()
957 hrate = (drate * 1000) / htotal; in XGIfb_do_set_var()
1231 unsigned int htotal = var->left_margin + var->xres + var->right_margin in XGIfb_check_var() local
1253 if (!(htotal) || !(vtotal)) { in XGIfb_check_var()
1258 if (var->pixclock && htotal && vtotal) { in XGIfb_check_var()
1260 hrate = (drate * 1000) / htotal; in XGIfb_check_var()
1266 __func__, var->pixclock, htotal, vtotal, in XGIfb_check_var()
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_bios.c473 mode->htotal = ROM16(mode_entry[21]) + 1; in nouveau_bios_fp_mode()
2062 unsigned htotal; in nouveau_bios_posted() local
2067 htotal = NVReadVgaCrtc(dev, 0, 0x06); in nouveau_bios_posted()
2068 htotal |= (NVReadVgaCrtc(dev, 0, 0x07) & 0x01) << 8; in nouveau_bios_posted()
2069 htotal |= (NVReadVgaCrtc(dev, 0, 0x07) & 0x20) << 4; in nouveau_bios_posted()
2070 htotal |= (NVReadVgaCrtc(dev, 0, 0x25) & 0x01) << 10; in nouveau_bios_posted()
2071 htotal |= (NVReadVgaCrtc(dev, 0, 0x41) & 0x01) << 11; in nouveau_bios_posted()
2072 return (htotal != 0); in nouveau_bios_posted()
Dnv50_display.c1127 hactive = mode->htotal; in nv50_crtc_mode_set()
1129 hbackp = mode->htotal - mode->hsync_end; in nv50_crtc_mode_set()
1132 hblanks = mode->htotal - hfrontp - 1; in nv50_crtc_mode_set()
1784 max_ac_packet = mode->htotal - mode->hdisplay; in nv50_hdmi_mode_set()
/linux-4.1.27/drivers/gpu/drm/i2c/
Dch7006_mode.c115 .htotal = ht, \
188 mode->mode.htotal != drm_mode->htotal || in ch7006_lookup_mode()
Dtda998x_drv.c832 if (mode->htotal >= BIT(13)) in tda998x_encoder_mode_valid()
870 n_pix = mode->htotal; in tda998x_encoder_mode_set()
875 de_pix_e = mode->htotal; in tda998x_encoder_mode_set()
876 de_pix_s = mode->htotal - mode->hdisplay; in tda998x_encoder_mode_set()
908 vs2_pix_s = vs2_pix_e = hs_pix_s + mode->htotal/2; in tda998x_encoder_mode_set()
Dch7006_drv.c141 start_active = (drm_mode->htotal & ~0x7) - (drm_mode->hsync_start & ~0x7); in ch7006_encoder_mode_set()
/linux-4.1.27/drivers/gpu/drm/rockchip/
Drockchip_drm_vop.c640 dsp_stx = crtc_x + crtc->mode.htotal - crtc->mode.hsync_start; in vop_update_plane_event()
864 if (adjusted_mode->htotal == 0 || adjusted_mode->vtotal == 0) in vop_crtc_mode_fixup()
895 u16 htotal = adjusted_mode->htotal; in vop_crtc_mode_set() local
896 u16 hact_st = adjusted_mode->htotal - adjusted_mode->hsync_start; in vop_crtc_mode_set()
935 VOP_CTRL_SET(vop, htotal_pw, (htotal << 16) | hsync_len); in vop_crtc_mode_set()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_encoders.c326 unsigned hblank = native_mode->htotal - native_mode->hdisplay; in radeon_panel_mode_fixup()
341 adjusted_mode->htotal = native_mode->hdisplay + hblank; in radeon_panel_mode_fixup()
Dradeon_legacy_crtc.c845 htotal_cntl = mode->htotal & 0x7; in radeon_set_pll()
Drs780_dpm.c65 if (crtc->mode.htotal && crtc->mode.vtotal) in rs780_get_pm_mode_parameters()
Dradeon_combios.c1263 lvds->native_mode.htotal = lvds->native_mode.hdisplay + in radeon_combios_get_lvds_info()
Dradeon_atombios.c1655 lvds->native_mode.htotal = lvds->native_mode.hdisplay + in radeon_atombios_get_lvds_info()
/linux-4.1.27/drivers/media/pci/cx88/
Dcx88-core.c864 u32 bdelay,agcdelay,htotal; in cx88_set_tvnorm() local
961 htotal = (u32)tmp64; in cx88_set_tvnorm()
963 htotal, cx_read(MO_HTOTAL), (u32)tmp64); in cx88_set_tvnorm()
964 cx_andor(MO_HTOTAL, 0x07ff, htotal); in cx88_set_tvnorm()
/linux-4.1.27/drivers/video/fbdev/intelfb/
Dintelfbhw.c1050 u32 hsync_start, hsync_end, hblank_start, hblank_end, htotal, hactive; in intelfbhw_mode_to_hw() local
1179 htotal = hsync_end + var->left_margin; in intelfbhw_mode_to_hw()
1181 hblank_end = htotal; in intelfbhw_mode_to_hw()
1184 hactive, hsync_start, hsync_end, htotal, hblank_start, in intelfbhw_mode_to_hw()
1210 htotal--; in intelfbhw_mode_to_hw()
1211 if (check_overflow(htotal, HTOTAL_MASK, "CRTC htotal")) in intelfbhw_mode_to_hw()
1239 *ht = (htotal << HTOTAL_SHIFT) | (hactive << HACTIVE_SHIFT); in intelfbhw_mode_to_hw()
/linux-4.1.27/include/video/
Dgbe.h293 short htotal; /* Horizontal total pixels */ member
/linux-4.1.27/drivers/gpu/drm/tilcdc/
Dtilcdc_crtc.c276 hbp = mode->htotal - mode->hsync_end; in tilcdc_crtc_mode_set()
465 hbp = mode->htotal - mode->hsync_end; in tilcdc_crtc_mode_valid()
/linux-4.1.27/drivers/gpu/drm/msm/dsi/
Ddsi_manager.c157 mode->htotal >>= 1; in dsi_dual_connector_fix_modes()
422 mode->hsync_end, mode->htotal, in dsi_mgr_bridge_mode_set()
Ddsi_host.c799 u32 h_total = mode->htotal; in dsi_timing_setup()
/linux-4.1.27/include/uapi/drm/
Ddrm_mode.h108 __u16 hdisplay, hsync_start, hsync_end, htotal, hskew; member
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvif/
Dclass.h401 __u16 htotal; member
/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_dc.c150 int hback_porch = mode->htotal - mode->hsync_end; in atmel_hlcdc_dc_mode_valid()
/linux-4.1.27/drivers/gpu/drm/tegra/
Ddsi.c554 hbp = (mode->htotal - mode->hsync_end) * mul / div; in tegra_dsi_configure()
603 bclk = DIV_ROUND_UP(mode->htotal * mul, div * lanes); in tegra_dsi_configure()
Dsor.c460 num = ((mode->htotal - mode->hdisplay) - 7) * link_rate; in tegra_sor_calc_config()
1305 value = ((mode->vtotal & 0x7fff) << 16) | (mode->htotal & 0x7fff); in tegra_sor_encoder_mode_set()
Dhdmi.c851 h_back_porch = mode->htotal - mode->hsync_end; in tegra_hdmi_encoder_mode_set()
Ddc.c1156 ((mode->htotal - mode->hsync_end) << 0); in tegra_dc_set_timings()
/linux-4.1.27/drivers/video/fbdev/via/
Dviafbdev.c190 u32 htotal, vtotal; in get_var_refresh() local
192 htotal = var->left_margin + var->xres + var->right_margin in get_var_refresh()
196 return PICOS2KHZ(var->pixclock) * 1000 / (htotal * vtotal); in get_var_refresh()
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_kms.c1926 mode->htotal = mode->hsync_end + 50; in vmw_guess_mode_timing()
1932 mode->clock = (u32)mode->htotal * (u32)mode->vtotal / 100 * 6; in vmw_guess_mode_timing()
/linux-4.1.27/drivers/gpu/drm/bridge/
Ddw_hdmi.c1075 hblank = mode->htotal - mode->hdisplay; in hdmi_av_composer()