Home
last modified time | relevance | path

Searched refs:hdisplay (Results 1 – 116 of 116) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/panel/
Dpanel-simple.c127 m->hdisplay, m->vdisplay, m->vrefresh); in panel_simple_get_fixed_modes()
374 .hdisplay = 800,
399 .hdisplay = 1024,
422 .hdisplay = 1280,
445 .hdisplay = 1366,
469 .hdisplay = 1366,
492 .hdisplay = 1366,
515 .hdisplay = 1920,
543 .hdisplay = 1024,
571 .hdisplay = 1366,
[all …]
Dpanel-sharp-lq101r1sx01.c142 err = mipi_dsi_dcs_set_column_address(left, 0, mode->hdisplay / 2 - 1); in sharp_setup_symmetrical_split()
154 err = mipi_dsi_dcs_set_column_address(right, mode->hdisplay / 2, in sharp_setup_symmetrical_split()
155 mode->hdisplay - 1); in sharp_setup_symmetrical_split()
278 .hdisplay = 2560,
296 default_mode.hdisplay, default_mode.vdisplay, in sharp_panel_get_modes()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_modes.c55 mode->hdisplay, mode->hsync_start, in drm_mode_debug_printmodeline()
149 struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, in drm_cvt_mode() argument
187 hdisplay_rnd = hdisplay - (hdisplay % CVT_H_GRANULARITY); in drm_cvt_mode()
196 drm_mode->hdisplay = hdisplay_rnd + 2 * hmargin; in drm_cvt_mode()
218 if (!(vdisplay % 3) && ((vdisplay * 4 / 3) == hdisplay)) in drm_cvt_mode()
220 else if (!(vdisplay % 9) && ((vdisplay * 16 / 9) == hdisplay)) in drm_cvt_mode()
222 else if (!(vdisplay % 10) && ((vdisplay * 16 / 10) == hdisplay)) in drm_cvt_mode()
224 else if (!(vdisplay % 4) && ((vdisplay * 5 / 4) == hdisplay)) in drm_cvt_mode()
226 else if (!(vdisplay % 9) && ((vdisplay * 15 / 9) == hdisplay)) in drm_cvt_mode()
278 hblank = drm_mode->hdisplay * hblank_percentage / in drm_cvt_mode()
[all …]
Ddrm_edid.c1394 #define MODE_SIZE(m) ((m)->hdisplay * (m)->vdisplay)
1451 return (mode->htotal - mode->hdisplay == 160) && in mode_is_rb()
1452 (mode->hsync_end - mode->hdisplay == 80) && in mode_is_rb()
1477 if (hsize != ptr->hdisplay) in drm_mode_find_dmt()
1704 if (m->hdisplay == hsize && m->vdisplay == vsize && in drm_mode_std()
1712 mode->hdisplay = 1366; in drm_mode_std()
1792 if ((mode->hdisplay == cea_interlaced[i].w) && in drm_mode_do_interlace_quirk()
1867 mode->hdisplay = hactive; in drm_mode_detailed()
1868 mode->hsync_start = mode->hdisplay + hsync_offset; in drm_mode_detailed()
1870 mode->htotal = mode->hdisplay + hblank; in drm_mode_detailed()
[all …]
Ddrm_crtc.c1724 WARN(in->hdisplay > USHRT_MAX || in->hsync_start > USHRT_MAX || in drm_crtc_convert_to_umode()
1732 out->hdisplay = in->hdisplay; in drm_crtc_convert_to_umode()
1770 out->hdisplay = in->hdisplay; in drm_crtc_convert_umode()
2675 int *hdisplay, int *vdisplay) in drm_crtc_get_hv_timing() argument
2681 *hdisplay = adjusted.crtc_hdisplay; in drm_crtc_get_hv_timing()
2701 int hdisplay, vdisplay; in drm_crtc_check_viewport() local
2703 drm_crtc_get_hv_timing(mode, &hdisplay, &vdisplay); in drm_crtc_check_viewport()
2706 swap(hdisplay, vdisplay); in drm_crtc_check_viewport()
2708 if (hdisplay > fb->width || in drm_crtc_check_viewport()
2710 x > fb->width - hdisplay || in drm_crtc_check_viewport()
[all …]
Ddrm_fb_helper.c1059 sizes.surface_width = max_t(u32, desired_mode->hdisplay + x, sizes.surface_width); in drm_fb_helper_single_fb_probe()
1073 sizes.fb_width = min_t(u32, desired_mode->hdisplay + x, sizes.fb_width); in drm_fb_helper_single_fb_probe()
1267 if (mode->hdisplay > width || in drm_has_preferred_mode()
1303 if (mode->hdisplay != cmdline_mode->xres || in drm_pick_cmdline_mode()
1466 hoffset += modes[i]->hdisplay; in drm_get_tile_offsets()
Ddrm_plane_helper.c250 .x2 = crtc->mode.hdisplay, in drm_primary_helper_update()
Ddrm_crtc_helper.c1018 plane_state->crtc_w = crtc->mode.hdisplay; in drm_helper_crtc_mode_set_base()
1022 plane_state->src_w = crtc->mode.hdisplay << 16; in drm_helper_crtc_mode_set_base()
Ddrm_atomic_helper.c1554 primary_state->crtc_w = set->mode->hdisplay; in drm_atomic_helper_set_config()
1558 primary_state->src_w = set->mode->hdisplay << 16; in drm_atomic_helper_set_config()
/linux-4.1.27/drivers/gpu/drm/gma500/
Dmdfld_tpo_vid.c42 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in tpo_vid_get_config_mode()
44 mode->hsync_start = mode->hdisplay + in tpo_vid_get_config_mode()
50 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | in tpo_vid_get_config_mode()
62 dev_dbg(dev->dev, "hdisplay is %d\n", mode->hdisplay); in tpo_vid_get_config_mode()
72 mode->hdisplay = 864; in tpo_vid_get_config_mode()
Dmdfld_tmd_vid.c45 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in tmd_vid_get_config_mode()
47 mode->hsync_start = mode->hdisplay + \ in tmd_vid_get_config_mode()
53 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in tmd_vid_get_config_mode()
65 dev_dbg(dev->dev, "hdisplay is %d\n", mode->hdisplay); in tmd_vid_get_config_mode()
75 mode->hdisplay = 480; in tmd_vid_get_config_mode()
Doaktrail_lvds.c144 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { in oaktrail_lvds_mode_set()
146 (mode->hdisplay * adjusted_mode->crtc_vdisplay)) in oaktrail_lvds_mode_set()
149 mode->vdisplay) > (mode->hdisplay * in oaktrail_lvds_mode_set()
238 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in oaktrail_lvds_get_configuration_mode()
240 mode->hsync_start = mode->hdisplay + \ in oaktrail_lvds_get_configuration_mode()
246 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in oaktrail_lvds_get_configuration_mode()
258 printk(KERN_INFO "hdisplay is %d\n", mode->hdisplay); in oaktrail_lvds_get_configuration_mode()
Dcdv_intel_lvds.c264 if (mode->hdisplay > fixed_mode->hdisplay) in cdv_intel_lvds_mode_valid()
300 adjusted_mode->hdisplay = panel_fixed_mode->hdisplay; in cdv_intel_lvds_mode_fixup()
373 if (mode->hdisplay != adjusted_mode->hdisplay || in cdv_intel_lvds_mode_set()
491 if (crtc->saved_mode.hdisplay != 0 && in cdv_intel_lvds_set_property()
Dmdfld_dsi_dpi.c435 pclk_hactive = mode->hdisplay; in mdfld_dsi_dpi_timing_calculation()
436 pclk_hfp = mode->hsync_start - mode->hdisplay; in mdfld_dsi_dpi_timing_calculation()
519 mode->vdisplay << 16 | mode->hdisplay); in mdfld_dsi_dpi_controller_init()
696 adjusted_mode->hdisplay = fixed_mode->hdisplay; in mdfld_dsi_dpi_mode_fixup()
753 mode->vdisplay << 16 | mode->hdisplay); in mdfld_mipi_set_video_timing()
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()
808 ((mode->hdisplay - 1) << 16) | (mode->vdisplay - 1)); in mdfld_set_pipe_timing()
873 ((mode->vdisplay - 1) << 16) | (mode->hdisplay - 1)); in mdfld_dsi_dpi_mode_set()
Dpsb_intel_lvds.c366 if (mode->hdisplay > fixed_mode->hdisplay) in psb_intel_lvds_mode_valid()
416 adjusted_mode->hdisplay = panel_fixed_mode->hdisplay; in psb_intel_lvds_mode_fixup()
488 if (mode->hdisplay != adjusted_mode->hdisplay || in psb_intel_lvds_mode_set()
611 if (crtc->saved_mode.hdisplay != 0 && in psb_intel_lvds_set_property()
Dmdfld_dsi_output.c283 if (gma_crtc->saved_mode.hdisplay != 0 && in mdfld_dsi_connector_set_property()
345 fixed_mode->hdisplay, fixed_mode->vdisplay); in mdfld_dsi_connector_get_modes()
375 if (mode->hdisplay != fixed_mode->hdisplay) in mdfld_dsi_connector_mode_valid()
Dintel_bios.c162 panel_fixed_mode->hdisplay = (dvo_timing->hactive_hi << 8) | in fill_detail_timing_data()
164 panel_fixed_mode->hsync_start = panel_fixed_mode->hdisplay + in fill_detail_timing_data()
168 panel_fixed_mode->htotal = panel_fixed_mode->hdisplay + in fill_detail_timing_data()
Dpsb_intel_display.c288 ((mode->vdisplay - 1) << 16) | (mode->hdisplay - 1)); in psb_intel_crtc_mode_set()
291 ((mode->hdisplay - 1) << 16) | (mode->vdisplay - 1)); in psb_intel_crtc_mode_set()
416 mode->hdisplay = (htot & 0xffff) + 1; in psb_intel_crtc_mode_get()
Dcdv_intel_dp.c520 if (mode->hdisplay > intel_dp->panel_fixed_mode->hdisplay) in cdv_intel_dp_mode_valid()
879 adjusted_mode->hdisplay = fixed_mode->hdisplay; in cdv_intel_fixed_panel_mode()
1095 if (mode->hdisplay != adjusted_mode->hdisplay || in cdv_intel_dp_mode_set()
Dpsb_intel_sdvo.c696 (psb_intel_sdvo->sdvo_lvds_fixed_mode->hdisplay != width || in psb_intel_sdvo_create_preferred_input_timing()
773 mode->hdisplay = dtd->part1.h_active; in psb_intel_sdvo_get_mode_from_dtd()
774 mode->hdisplay += ((dtd->part1.h_high >> 4) & 0x0f) << 8; in psb_intel_sdvo_get_mode_from_dtd()
775 mode->hsync_start = mode->hdisplay + dtd->part2.h_sync_off; in psb_intel_sdvo_get_mode_from_dtd()
779 mode->htotal = mode->hdisplay + dtd->part1.h_blank; in psb_intel_sdvo_get_mode_from_dtd()
935 mode->hdisplay, in psb_intel_sdvo_set_input_timings_for_mode()
1176 if (mode->hdisplay > psb_intel_sdvo->sdvo_lvds_fixed_mode->hdisplay) in psb_intel_sdvo_mode_valid()
Dcdv_intel_display.c813 ((mode->vdisplay - 1) << 16) | (mode->hdisplay - 1)); in cdv_intel_crtc_mode_set()
816 ((mode->hdisplay - 1) << 16) | (mode->vdisplay - 1)); in cdv_intel_crtc_mode_set()
960 mode->hdisplay = (htot & 0xffff) + 1; in cdv_intel_crtc_mode_get()
Dtc35876x-dsi-lvds.c588 mode->hdisplay = 1280; in tc35876x_get_config_mode()
598 dev_info(&dev->pdev->dev, "hdisplay(w) = %d\n", mode->hdisplay); in tc35876x_get_config_mode()
Dcdv_intel_hdmi.c191 if (crtc->saved_mode.hdisplay != 0 && in cdv_hdmi_set_property()
Dmdfld_intel_display.c708 adjusted_mode->hdisplay); in mdfld_crtc_mode_set()
726 mode->hdisplay); in mdfld_crtc_mode_set()
Doaktrail_hdmi.c345 REG_WRITE(dspsize_reg, ((mode->vdisplay - 1) << 16) | (mode->hdisplay - 1)); in oaktrail_crtc_hdmi_mode_set()
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
Dtvnv17.c215 for (tv_mode = nv17_tv_modes; tv_mode->hdisplay; tv_mode++) { in nv17_tv_get_ld_modes()
227 if (mode->hdisplay == tv_norm->tv_enc_mode.hdisplay && in nv17_tv_get_ld_modes()
245 int hdisplay; in nv17_tv_get_hd_modes() member
261 if (modes[i].hdisplay > output_mode->hdisplay || in nv17_tv_get_hd_modes()
265 if (modes[i].hdisplay == output_mode->hdisplay && in nv17_tv_get_hd_modes()
271 mode = drm_cvt_mode(encoder->dev, modes[i].hdisplay, in nv17_tv_get_hd_modes()
278 if (output_mode->hdisplay <= 720 in nv17_tv_get_hd_modes()
279 || output_mode->hdisplay >= 1920) { in nv17_tv_get_hd_modes()
281 mode->hsync_start = (mode->hdisplay + (mode->htotal in nv17_tv_get_hd_modes()
282 - mode->hdisplay) * 9 / 10) & ~7; in nv17_tv_get_hd_modes()
[all …]
Ddfp.c191 mode->hdisplay > nv_connector->native_mode->hdisplay || in nv04_dfp_mode_fixup()
299 regp->fp_horiz_regs[FP_DISPLAY_END] = output_mode->hdisplay - 1; in nv04_dfp_mode_set()
302 (output_mode->hsync_start - output_mode->hdisplay) >= in nv04_dfp_mode_set()
304 regp->fp_horiz_regs[FP_CRTC] = output_mode->hdisplay; in nv04_dfp_mode_set()
310 regp->fp_horiz_regs[FP_VALID_END] = output_mode->hdisplay - 1; in nv04_dfp_mode_set()
333 else if (adjusted_mode->hdisplay == output_mode->hdisplay && in nv04_dfp_mode_set()
373 mode_ratio = (1 << 12) * adjusted_mode->hdisplay / adjusted_mode->vdisplay; in nv04_dfp_mode_set()
374 panel_ratio = (1 << 12) * output_mode->hdisplay / output_mode->vdisplay; in nv04_dfp_mode_set()
392 diff = output_mode->hdisplay - in nv04_dfp_mode_set()
403 scale = (1 << 12) * adjusted_mode->hdisplay / output_mode->hdisplay; in nv04_dfp_mode_set()
[all …]
Dtvmodesnv17.c326 uint64_t rs[] = {mode->hdisplay * id3, in tv_setup_filter()
329 do_div(rs[0], overscan * tv_norm->tv_enc_mode.hdisplay); in tv_setup_filter()
560 hmargin = (output_mode->hdisplay - crtc_mode->hdisplay) / 2; in nv17_ctv_update_rescaler()
563 hmargin = interpolate(0, min(hmargin, output_mode->hdisplay/20), in nv17_ctv_update_rescaler()
568 hratio = crtc_mode->hdisplay * 0x800 / in nv17_ctv_update_rescaler()
569 (output_mode->hdisplay - 2*hmargin); in nv17_ctv_update_rescaler()
574 regs->fp_horiz_regs[FP_VALID_END] = output_mode->hdisplay - hmargin - 1; in nv17_ctv_update_rescaler()
Dtvnv17.h98 int hdisplay; member
/linux-4.1.27/include/drm/
Ddrm_modes.h85 .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \
111 int hdisplay; member
189 int hdisplay, int vdisplay, int vrefresh,
193 int hdisplay, int vdisplay, int vrefresh,
196 int hdisplay, int vdisplay,
Ddrm_crtc.h1270 int *hdisplay, int *vdisplay);
1440 int hdisplay, int vdisplay);
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_encoders.c326 unsigned hblank = native_mode->htotal - native_mode->hdisplay; in radeon_panel_mode_fixup()
328 unsigned hover = native_mode->hsync_start - native_mode->hdisplay; in radeon_panel_mode_fixup()
337 adjusted_mode->hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup()
341 adjusted_mode->htotal = native_mode->hdisplay + hblank; in radeon_panel_mode_fixup()
342 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in radeon_panel_mode_fixup()
352 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup()
Dradeon_connectors.c489 if (native_mode->hdisplay != 0 && in radeon_fp_native_mode()
497 } else if (native_mode->hdisplay != 0 && in radeon_fp_native_mode()
506 mode = drm_cvt_mode(dev, native_mode->hdisplay, native_mode->vdisplay, 60, true, false, false); in radeon_fp_native_mode()
550 if (common_modes[i].w > native_mode->hdisplay || in radeon_add_common_modes()
552 (common_modes[i].w == native_mode->hdisplay && in radeon_add_common_modes()
792 if (mode->hdisplay != native_mode->hdisplay || in radeon_fixup_lvds_native_mode()
801 if (mode->hdisplay == native_mode->hdisplay && in radeon_fixup_lvds_native_mode()
859 if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) in radeon_lvds_mode_valid()
869 if ((mode->hdisplay > native_mode->hdisplay) || in radeon_lvds_mode_valid()
875 if ((mode->hdisplay != native_mode->hdisplay) || in radeon_lvds_mode_valid()
[all …]
Dradeon_legacy_crtc.c51 int xres = mode->hdisplay; in radeon_legacy_rmx_mode_set()
109 if (native_mode->hdisplay == 0 || in radeon_legacy_rmx_mode_set()
114 if (xres > native_mode->hdisplay) in radeon_legacy_rmx_mode_set()
115 xres = native_mode->hdisplay; in radeon_legacy_rmx_mode_set()
119 if (xres == native_mode->hdisplay) in radeon_legacy_rmx_mode_set()
133 / native_mode->hdisplay + 1; in radeon_legacy_rmx_mode_set()
137 ((native_mode->hdisplay/8-1) << 16)); in radeon_legacy_rmx_mode_set()
190 (((native_mode->hdisplay / 8) & 0x1ff) << 16)); in radeon_legacy_rmx_mode_set()
Drs690.c228 if (mode1->hdisplay > mode2->hdisplay) { in rs690_line_buffer_adjust()
229 if (mode1->hdisplay > 2560) in rs690_line_buffer_adjust()
233 } else if (mode2->hdisplay > mode1->hdisplay) { in rs690_line_buffer_adjust()
234 if (mode2->hdisplay > 2560) in rs690_line_buffer_adjust()
Dradeon_display.c1661 if ((mode->vdisplay == 480 && mode->hdisplay == 720) || /* 480p */ in is_hdtv_mode()
1699 else if (mode->hdisplay < radeon_encoder->native_mode.hdisplay || in radeon_crtc_scaling_mode_fixup()
1710 src_h = crtc->mode.hdisplay; in radeon_crtc_scaling_mode_fixup()
1711 dst_h = radeon_crtc->native_mode.hdisplay; in radeon_crtc_scaling_mode_fixup()
1723 radeon_crtc->h_border = (mode->hdisplay >> 5) + 16; in radeon_crtc_scaling_mode_fixup()
1731 src_h = crtc->mode.hdisplay; in radeon_crtc_scaling_mode_fixup()
1732 dst_h = crtc->mode.hdisplay - (radeon_crtc->h_border * 2); in radeon_crtc_scaling_mode_fixup()
Dradeon_combios.c1134 lvds->native_mode.hdisplay = in radeon_legacy_get_lvds_info_from_regs()
1138 lvds->native_mode.hdisplay = in radeon_legacy_get_lvds_info_from_regs()
1141 if ((lvds->native_mode.hdisplay < 640) || in radeon_legacy_get_lvds_info_from_regs()
1143 lvds->native_mode.hdisplay = 640; in radeon_legacy_get_lvds_info_from_regs()
1164 DRM_INFO("Panel Size %dx%d\n", lvds->native_mode.hdisplay, in radeon_legacy_get_lvds_info_from_regs()
1195 lvds->native_mode.hdisplay = RBIOS16(lcd_info + 0x19); in radeon_combios_get_lvds_info()
1198 DRM_INFO("Panel Size %dx%d\n", lvds->native_mode.hdisplay, in radeon_combios_get_lvds_info()
1256 if ((RBIOS16(tmp) == lvds->native_mode.hdisplay) && in radeon_combios_get_lvds_info()
1260 if (hss > lvds->native_mode.hdisplay) in radeon_combios_get_lvds_info()
1263 lvds->native_mode.htotal = lvds->native_mode.hdisplay + in radeon_combios_get_lvds_info()
[all …]
Datombios_crtc.c1419 viewport_w = crtc->mode.hdisplay; in dce4_crtc_do_set_base()
1622 viewport_w = crtc->mode.hdisplay; in avivo_crtc_do_set_base()
Dradeon_atombios.c1651 lvds->native_mode.hdisplay = in radeon_atombios_get_lvds_info()
1655 lvds->native_mode.htotal = lvds->native_mode.hdisplay + in radeon_atombios_get_lvds_info()
1657 lvds->native_mode.hsync_start = lvds->native_mode.hdisplay + in radeon_atombios_get_lvds_info()
Dr100.c3462 stop_req = mode1->hdisplay * pixel_bytes1 / 16; in r100_bandwidth_update()
3542 stop_req = mode2->hdisplay * pixel_bytes2 / 16; in r100_bandwidth_update()
/linux-4.1.27/drivers/gpu/drm/tilcdc/
Dtilcdc_crtc.c277 hfp = mode->hsync_start - mode->hdisplay; in tilcdc_crtc_mode_set()
284 mode->hdisplay, mode->vdisplay, hbp, hfp, hsw, vbp, vfp, vsw); in tilcdc_crtc_mode_set()
304 reg = (((mode->hdisplay >> 4) - 1) << 4) | in tilcdc_crtc_mode_set()
309 reg |= (((mode->hdisplay >> 4) - 1) & 0x40) >> 3; in tilcdc_crtc_mode_set()
451 if (mode->hdisplay > tilcdc_crtc_max_width(crtc)) in tilcdc_crtc_mode_valid()
455 if (mode->hdisplay & 0xf) in tilcdc_crtc_mode_valid()
462 mode->hdisplay, mode->vdisplay, in tilcdc_crtc_mode_valid()
466 hfp = mode->hsync_start - mode->hdisplay; in tilcdc_crtc_mode_valid()
515 if (mode->hdisplay > priv->max_width) in tilcdc_crtc_mode_valid()
519 bandwidth = mode->hdisplay * mode->vdisplay * in tilcdc_crtc_mode_valid()
/linux-4.1.27/drivers/gpu/drm/i915/
Ddvo_ns2501.c516 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_valid()
524 if ((mode->hdisplay == 640 && mode->vdisplay == 480 && mode->clock == 25175) || in ns2501_mode_valid()
525 (mode->hdisplay == 800 && mode->vdisplay == 600 && mode->clock == 40000) || in ns2501_mode_valid()
526 (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 65000)) { in ns2501_mode_valid()
542 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_set()
544 if (mode->hdisplay == 640 && mode->vdisplay == 480) in ns2501_mode_set()
546 else if (mode->hdisplay == 800 && mode->vdisplay == 600) in ns2501_mode_set()
548 else if (mode->hdisplay == 1024 && mode->vdisplay == 768) in ns2501_mode_set()
Ddvo_ivch.c351 if (mode->hdisplay != adjusted_mode->hdisplay || in ivch_mode_set()
357 x_ratio = (((mode->hdisplay - 1) << 16) / in ivch_mode_set()
358 (adjusted_mode->hdisplay - 1)) >> 2; in ivch_mode_set()
Ddvo_ch7017.c301 horizontal_active_pixel_input = mode->hdisplay & 0x00ff; in ch7017_mode_set()
304 horizontal_active_pixel_output = mode->hdisplay & 0x00ff; in ch7017_mode_set()
306 active_input_line_output = ((mode->hdisplay & 0x0700) >> 8) | in ch7017_mode_set()
310 (mode->hdisplay & 0x0700) >> 8; in ch7017_mode_set()
Dintel_panel.c74 if (scan->hdisplay == fixed_mode->hdisplay && in intel_find_panel_downclock()
113 if (adjusted_mode->hdisplay == pipe_config->pipe_src_w && in intel_pch_panel_fitting()
121 x = (adjusted_mode->hdisplay - width + 1)/2; in intel_pch_panel_fitting()
128 u32 scaled_width = adjusted_mode->hdisplay in intel_pch_panel_fitting()
136 x = (adjusted_mode->hdisplay - width + 1) / 2; in intel_pch_panel_fitting()
145 width = adjusted_mode->hdisplay; in intel_pch_panel_fitting()
148 width = adjusted_mode->hdisplay; in intel_pch_panel_fitting()
156 width = adjusted_mode->hdisplay; in intel_pch_panel_fitting()
182 border = (mode->hdisplay - width + 1) / 2; in centre_horizontally()
231 u32 scaled_width = adjusted_mode->hdisplay * in i965_scale_aspect()
[all …]
Dintel_dvo.c255 if (mode->hdisplay > intel_dvo->panel_fixed_mode->hdisplay) in intel_dvo_mode_valid()
277 C(hdisplay); in intel_dvo_compute_config()
336 (adjusted_mode->hdisplay << DVO_SRCDIM_HORIZONTAL_SHIFT) | in intel_dvo_pre_enable()
Dintel_dsi_pll.c82 hactive = mode->hdisplay; in dsi_rr_formula()
84 hfp = mode->hsync_start - mode->hdisplay; in dsi_rr_formula()
Dintel_dsi.c658 if (mode->hdisplay > fixed_mode->hdisplay) in intel_dsi_mode_valid()
702 hactive = mode->hdisplay; in set_dsi_timings()
703 hfp = mode->hsync_start - mode->hdisplay; in set_dsi_timings()
760 mode_hdisplay = adjusted_mode->hdisplay; in intel_dsi_prepare()
Dintel_sdvo.c778 (intel_sdvo->sdvo_lvds_fixed_mode->hdisplay != width || in intel_sdvo_create_preferred_input_timing()
813 width = mode->hdisplay; in intel_sdvo_get_dtd_from_mode()
817 h_blank_len = mode->htotal - mode->hdisplay; in intel_sdvo_get_dtd_from_mode()
823 h_sync_offset = mode->hsync_start - mode->hdisplay; in intel_sdvo_get_dtd_from_mode()
863 mode.hdisplay = dtd->part1.h_active; in intel_sdvo_get_mode_from_dtd()
864 mode.hdisplay += ((dtd->part1.h_high >> 4) & 0x0f) << 8; in intel_sdvo_get_mode_from_dtd()
865 mode.hsync_start = mode.hdisplay + dtd->part2.h_sync_off; in intel_sdvo_get_mode_from_dtd()
869 mode.htotal = mode.hdisplay + dtd->part1.h_blank; in intel_sdvo_get_mode_from_dtd()
1075 mode->hdisplay, in intel_sdvo_get_preferred_input_mode()
1569 if (mode->hdisplay > intel_sdvo->sdvo_lvds_fixed_mode->hdisplay) in intel_sdvo_mode_valid()
Dintel_bios.c89 panel_fixed_mode->hdisplay = (dvo_timing->hactive_hi << 8) | in fill_detail_timing_data()
91 panel_fixed_mode->hsync_start = panel_fixed_mode->hdisplay + in fill_detail_timing_data()
95 panel_fixed_mode->htotal = panel_fixed_mode->hdisplay + in fill_detail_timing_data()
307 if (fp_timing->x_res == panel_fixed_mode->hdisplay && in parse_lfp_panel_data()
Dintel_lvds.c272 if (mode->hdisplay > fixed_mode->hdisplay) in intel_lvds_mode_valid()
Dintel_overlay.c895 if (rec->dst_x < mode->hdisplay && in check_overlay_dst()
896 rec->dst_x + rec->dst_width <= mode->hdisplay && in check_overlay_dst()
1132 if (mode->hdisplay > 1024 && in intel_overlay_put_image()
Dintel_pm.c716 int htotal, hdisplay, clock, pixel_size; in g4x_compute_wm0() local
730 hdisplay = to_intel_crtc(crtc)->config->pipe_src_w; in g4x_compute_wm0()
735 tlb_miss = display->fifo_size*display->cacheline_size - hdisplay * 8; in g4x_compute_wm0()
747 tlb_miss = cursor->fifo_size*cursor->cacheline_size - hdisplay * 8; in g4x_compute_wm0()
802 int hdisplay, htotal, pixel_size, clock; in g4x_compute_srwm() local
817 hdisplay = to_intel_crtc(crtc)->config->pipe_src_w; in g4x_compute_srwm()
822 line_size = hdisplay * pixel_size; in g4x_compute_srwm()
1200 int hdisplay = to_intel_crtc(crtc)->config->pipe_src_w; in i965_update_wm() local
1209 pixel_size * hdisplay; in i965_update_wm()
1348 int hdisplay = to_intel_crtc(enabled)->config->pipe_src_w; in i9xx_update_wm() local
[all …]
Dintel_tv.c1156 .hdisplay = 1280,
1424 mode_ptr->hdisplay = hactive_s; in intel_tv_get_modes()
Dintel_fbdev.c480 modes[i]->hdisplay, modes[i]->vdisplay, in intel_fb_initial_config()
Dintel_display.c5858 adjusted_mode->hsync_start == adjusted_mode->hdisplay) in intel_crtc_compute_config()
6696 pipe_config->base.mode.hdisplay = pipe_config->pipe_src_w; in intel_get_pipe_timings()
6702 mode->hdisplay = pipe_config->base.adjusted_mode.crtc_hdisplay; in intel_mode_from_pipe_config()
8921 u32 pitch = intel_framebuffer_pitch_for_width(mode->hdisplay, bpp); in intel_framebuffer_size_for_mode()
8938 mode_cmd.width = mode->hdisplay; in intel_framebuffer_create_for_mode()
8966 if (fb->pitches[0] < intel_framebuffer_pitch_for_width(mode->hdisplay, in mode_fits_in_fbdev()
9380 mode->hdisplay = (htot & 0xffff) + 1; in intel_crtc_mode_get()
11601 int vdisplay, hdisplay; in __intel_set_mode() local
11603 drm_crtc_get_hv_timing(mode, &hdisplay, &vdisplay); in __intel_set_mode()
11606 hdisplay, vdisplay, in __intel_set_mode()
[all …]
Dintel_dp.c203 if (mode->hdisplay > fixed_mode->hdisplay) in intel_dp_mode_valid()
Di915_debugfs.c2506 mode->hdisplay, mode->hsync_start, in intel_seq_print_mode()
/linux-4.1.27/drivers/gpu/drm/omapdrm/
Domap_connector.c50 mode->hdisplay = timings->x_res; in copy_timings_omap_to_drm()
51 mode->hsync_start = mode->hdisplay + timings->hfp; in copy_timings_omap_to_drm()
81 timings->x_res = mode->hdisplay; in copy_timings_drm_to_omap()
82 timings->hfp = mode->hsync_start - mode->hdisplay; in copy_timings_drm_to_omap()
246 mode->hdisplay, mode->hsync_start, in omap_connector_mode_valid()
Domap_crtc.c505 mode->hdisplay, mode->hsync_start, in omap_crtc_mode_set()
520 0, 0, mode->hdisplay, mode->vdisplay, in omap_crtc_mode_set()
521 x, y, mode->hdisplay, mode->vdisplay, in omap_crtc_mode_set()
546 0, 0, mode->hdisplay, mode->vdisplay, in omap_crtc_mode_set_base()
547 x, y, mode->hdisplay, mode->vdisplay, in omap_crtc_mode_set_base()
586 0, 0, mode->hdisplay, mode->vdisplay, in page_flip_worker()
587 crtc->x, crtc->y, mode->hdisplay, mode->vdisplay, in page_flip_worker()
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_connector.c617 if (mode->hdisplay < high_w) in nouveau_connector_native_mode()
620 if (mode->hdisplay == high_w && mode->vdisplay < high_h) in nouveau_connector_native_mode()
623 if (mode->hdisplay == high_w && mode->vdisplay == high_h && in nouveau_connector_native_mode()
627 high_w = mode->hdisplay; in nouveau_connector_native_mode()
639 int hdisplay; member
673 while (mode->hdisplay) { in nouveau_connector_scaler_modes_add()
674 if (mode->hdisplay <= native->hdisplay && in nouveau_connector_scaler_modes_add()
676 (mode->hdisplay != native->hdisplay || in nouveau_connector_scaler_modes_add()
678 m = drm_cvt_mode(dev, mode->hdisplay, mode->vdisplay, in nouveau_connector_scaler_modes_add()
842 (mode->hdisplay > nv_connector->native_mode->hdisplay || in nouveau_connector_mode_valid()
Dnv50_display.c746 oX = omode->hdisplay; in nv50_crtc_set_scale()
779 oX = min((u32)umode->hdisplay, oX); in nv50_crtc_set_scale()
784 u32 aspect = (umode->hdisplay << 19) / umode->vdisplay; in nv50_crtc_set_scale()
787 u32 aspect = (umode->vdisplay << 19) / umode->hdisplay; in nv50_crtc_set_scale()
805 evo_data(push, umode->vdisplay << 16 | umode->hdisplay); in nv50_crtc_set_scale()
814 evo_data(push, umode->vdisplay << 16 | umode->hdisplay); in nv50_crtc_set_scale()
1131 hfrontp = mode->hsync_start - mode->hdisplay; in nv50_crtc_mode_set()
1784 max_ac_packet = mode->htotal - mode->hdisplay; in nv50_hdmi_mode_set()
Dnouveau_bios.c466 mode->hdisplay = ROM16(mode_entry[11]) + 1; in nouveau_bios_fp_mode()
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_scrn.c134 cmd->obj.size.width = mode->hdisplay; in vmw_sou_fifo_create()
146 cmd->obj.backingStore.pitch = mode->hdisplay * 4; in vmw_sou_fifo_create()
328 if (set->x + mode->hdisplay > fb->width || in vmw_sou_crtc_set_config()
336 if (mode->hdisplay != crtc->mode.hdisplay || in vmw_sou_crtc_set_config()
352 size_t size = mode->hdisplay * mode->vdisplay * 4; in vmw_sou_crtc_set_config()
Dvmwgfx_ldu.c90 w = max(w, crtc->x + crtc->mode.hdisplay); in vmw_ldu_commit_list()
123 vmw_write(dev_priv, SVGA_REG_DISPLAY_WIDTH, crtc->mode.hdisplay); in vmw_ldu_commit_list()
276 if (set->x + mode->hdisplay > fb->width || in vmw_ldu_crtc_set_config()
Dvmwgfx_kms.c539 if (clip.x1 >= unit->crtc.mode.hdisplay || in do_surface_dirty_sou()
554 clip.x2 = unit->crtc.mode.hdisplay - clip.x1; in do_surface_dirty_sou()
903 if (clip_x1 >= unit->crtc.mode.hdisplay || in do_dmabuf_dirty_sou()
909 clip_x2 = min_t(int, clip_x2, unit->crtc.mode.hdisplay); in do_dmabuf_dirty_sou()
1309 if (clip.x1 >= unit->crtc.mode.hdisplay || in vmw_kms_present()
1324 clip.x2 = unit->crtc.mode.hdisplay - clip.x1; in vmw_kms_present()
1432 clip_x2 = min(clip_x2, units[i]->crtc.mode.hdisplay); in vmw_kms_readback()
1436 if (clip_x1 >= units[i]->crtc.mode.hdisplay || in vmw_kms_readback()
1924 mode->hsync_start = mode->hdisplay + 50; in vmw_guess_mode_timing()
1965 mode->hdisplay = du->pref_width; in vmw_du_connector_fill_modes()
[all …]
/linux-4.1.27/drivers/gpu/drm/mgag200/
Dmgag200_mode.c787 int hdisplay, hsyncstart, hsyncend, htotal; in mga_crtc_mode_set() local
906 hdisplay = mode->hdisplay / 8 - 1; in mga_crtc_mode_set()
931 WREG_CRT(1, hdisplay); in mga_crtc_mode_set()
932 WREG_CRT(2, hdisplay); in mga_crtc_mode_set()
970 ((hdisplay & 0x100) >> 7) | in mga_crtc_mode_set()
1468 active_area = mode->hdisplay * mode->vdisplay; in mga_vga_calculate_mode_bandwidth()
1491 if (mode->hdisplay > 1600) in mga_vga_mode_valid()
1499 if (mode->hdisplay > 1920) in mga_vga_mode_valid()
1508 if (mode->hdisplay > 1280) in mga_vga_mode_valid()
1529 if ((mode->hdisplay % 8) != 0 || (mode->hsync_start % 8) != 0 || in mga_vga_mode_valid()
[all …]
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_display.c164 qdev->monitors_config_width = mode->hdisplay; in qxl_add_monitors_config_modes()
549 mode->hdisplay, mode->vdisplay, in qxl_crtc_mode_fixup()
550 adjusted_mode->hdisplay, in qxl_crtc_mode_fixup()
622 mode->hdisplay, mode->vdisplay, in qxl_crtc_mode_set()
623 adjusted_mode->hdisplay, in qxl_crtc_mode_set()
668 mode->hdisplay, in qxl_crtc_mode_set()
676 crtc->mode.hdisplay, crtc->mode.vdisplay, in qxl_crtc_prepare()
777 head->width = mode->hdisplay; in qxl_write_monitors_config_for_encoder()
841 if(qdev->monitors_config_width == mode->hdisplay && in qxl_conn_mode_valid()
846 if (common_modes[i].w == mode->hdisplay && common_modes[i].h == mode->vdisplay) in qxl_conn_mode_valid()
/linux-4.1.27/drivers/gpu/drm/rcar-du/
Drcar_du_encoder.c85 if (mode->hdisplay != panel_mode->hdisplay || in rcar_du_encoder_atomic_check()
Drcar_du_crtc.c159 mode->hdisplay - 19); in rcar_du_crtc_set_display_timing()
175 rcar_du_crtc_write(rcrtc, DEWR, mode->hdisplay); in rcar_du_crtc_set_display_timing()
/linux-4.1.27/drivers/gpu/drm/imx/
Dipuv3-crtc.c151 mode->hdisplay); in ipu_crtc_mode_set()
186 ipu_crtc->bus_format, mode->hdisplay); in ipu_crtc_mode_set()
203 0, 0, mode->hdisplay, mode->vdisplay, in ipu_crtc_mode_set()
204 x, y, mode->hdisplay, mode->vdisplay, in ipu_crtc_mode_set()
Dipuv3-plane.c128 if (crtc_x + crtc_w > mode->hdisplay) { in ipu_plane_mode_set()
129 if (crtc_x > mode->hdisplay) in ipu_plane_mode_set()
131 crtc_w = mode->hdisplay - crtc_x; in ipu_plane_mode_set()
Dimx-tve.c265 mode->hdisplay, mode->vdisplay); in imx_tve_connector_mode_valid()
/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_hdmi.c1100 mode->hdisplay, mode->vdisplay, mode->vrefresh, in hdmi_mode_valid()
1183 m->hdisplay, m->vdisplay, m->vrefresh); in hdmi_mode_fixup()
1804 hdmi_set_reg(core->h_blank, 2, m->htotal - m->hdisplay); in hdmi_v13_mode_set()
1813 val = (m->hsync_start - m->hdisplay - 2); in hdmi_v13_mode_set()
1814 val |= ((m->hsync_end - m->hdisplay - 2) << 10); in hdmi_v13_mode_set()
1844 val = ((m->htotal / 2) + (m->hsync_start - m->hdisplay)); in hdmi_v13_mode_set()
1846 (m->hsync_start - m->hdisplay)) << 12; in hdmi_v13_mode_set()
1876 hdmi_set_reg(tg->hact_st, 2, m->htotal - m->hdisplay); in hdmi_v13_mode_set()
1877 hdmi_set_reg(tg->hact_sz, 2, m->hdisplay); in hdmi_v13_mode_set()
1901 hdmi_set_reg(core->h_blank, 2, m->htotal - m->hdisplay); in hdmi_v14_mode_set()
[all …]
Dexynos_drm_plane.c98 actual_w = exynos_plane_get_size(crtc_x, crtc_w, crtc->mode.hdisplay); in exynos_plane_mode_set()
135 exynos_plane->mode_width = crtc->mode.hdisplay; in exynos_plane_mode_set()
Dexynos7_drm_decon.c216 VIDTCON4_HOZVAL(mode->hdisplay - 1); in decon_commit()
455 if ((plane->crtc_x + plane->crtc_width) > mode->hdisplay) in decon_win_commit()
456 plane->crtc_x = mode->hdisplay - plane->crtc_width; in decon_win_commit()
Dexynos_drm_fimd.c415 VIDTCON2_HOZVAL(mode->hdisplay - 1) | in fimd_commit()
417 VIDTCON2_HOZVAL_E(mode->hdisplay - 1); in fimd_commit()
Dexynos_mixer.c1118 w = mode->hdisplay; in mixer_check_mode()
1122 mode->hdisplay, mode->vdisplay, mode->vrefresh, in mixer_check_mode()
Dexynos_drm_dsi.c1519 vm->hactive = mode->hdisplay; in exynos_dsi_mode_set()
1524 vm->hfront_porch = mode->hsync_start - mode->hdisplay; in exynos_dsi_mode_set()
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_encoder.c140 mode->hdisplay, 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()
192 display_v_end -= mode->hsync_start - mode->hdisplay; in mdp5_encoder_mode_set()
Dmdp5_crtc.c254 mode->hdisplay, mode->hsync_start, in mdp5_crtc_mode_set_nofb()
262 MDP5_LM_OUT_SIZE_WIDTH(mode->hdisplay) | in mdp5_crtc_mode_set_nofb()
413 uint32_t xres = crtc->mode.hdisplay; in get_roi()
Dmdp5_cmd_encoder.c207 mode->hdisplay, mode->hsync_start, in mdp5_cmd_encoder_mode_set()
/linux-4.1.27/drivers/gpu/drm/bochs/
Dbochs_hw.c155 bochs->xres = mode->hdisplay; in bochs_hw_setmode()
158 bochs->stride = mode->hdisplay * (bochs->bpp / 8); in bochs_hw_setmode()
Dbochs_kms.c218 unsigned long size = mode->hdisplay * mode->vdisplay * 4; in bochs_connector_mode_valid()
/linux-4.1.27/drivers/gpu/drm/ast/
Dast_mode.c798 if ((mode->hdisplay == 1680) && (mode->vdisplay == 1050)) in ast_mode_valid()
800 if ((mode->hdisplay == 1280) && (mode->vdisplay == 800)) in ast_mode_valid()
802 if ((mode->hdisplay == 1440) && (mode->vdisplay == 900)) in ast_mode_valid()
804 if ((mode->hdisplay == 1360) && (mode->vdisplay == 768)) in ast_mode_valid()
806 if ((mode->hdisplay == 1600) && (mode->vdisplay == 900)) in ast_mode_valid()
810 if ((mode->hdisplay == 1920) && (mode->vdisplay == 1080)) in ast_mode_valid()
813 if ((mode->hdisplay == 1920) && (mode->vdisplay == 1200)) { in ast_mode_valid()
822 switch (mode->hdisplay) { in ast_mode_valid()
/linux-4.1.27/drivers/gpu/drm/sti/
Dsti_mixer.c98 xds = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); in sti_mixer_set_background_area()
165 xds = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); in sti_mixer_active_video_area()
Dsti_dvo.c123 timing.active_pixels = mode->hdisplay; in dvo_awg_generate_code()
124 timing.blanking_pixels = mode->hsync_start - mode->hdisplay; in dvo_awg_generate_code()
Dsti_cursor.c153 x = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); in sti_cursor_prepare_layer()
Dsti_drm_crtc.c97 mode->hdisplay, in sti_drm_crtc_mode_set()
Dsti_vtg.c141 tmp |= mode->hdisplay + mode->htotal - mode->hsync_start; in vtg_set_mode()
Dsti_hdmi.c196 xmax = sti_vtg_get_pixel_number(hdmi->mode, hdmi->mode.hdisplay - 1); in hdmi_active_area()
/linux-4.1.27/drivers/gpu/drm/i2c/
Dch7006_mode.c112 .hdisplay = hd, \
185 if (mode->mode.hdisplay != drm_mode->hdisplay || in ch7006_lookup_mode()
352 hpos = round_fixed((norm->hvirtual * aspect - mode->hdisplay * scale) in ch7006_setup_properties()
Dtda998x_drv.c873 hs_pix_e = mode->hsync_end - mode->hdisplay; in tda998x_encoder_mode_set()
874 hs_pix_s = mode->hsync_start - mode->hdisplay; in tda998x_encoder_mode_set()
876 de_pix_s = mode->htotal - mode->hdisplay; in tda998x_encoder_mode_set()
/linux-4.1.27/drivers/gpu/drm/shmobile/
Dshmob_drm_crtc.c108 value = ((mode->hdisplay / 8) << 16) /* HDCN */ in shmob_drm_crtc_setup_geometry()
116 value = ((mode->hdisplay & 7) << 24) | ((mode->htotal & 7) << 16) in shmob_drm_crtc_setup_geometry()
659 mode->hdisplay = sdev->pdata->panel.mode.hdisplay; in shmob_drm_connector_get_modes()
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp4/
Dmdp4_dtv_encoder.c119 mode->hdisplay, 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()
Dmdp4_crtc.c255 mode->hdisplay, mode->hsync_start, in mdp4_crtc_mode_set_nofb()
262 MDP4_DMA_SRC_SIZE_WIDTH(mode->hdisplay) | in mdp4_crtc_mode_set_nofb()
274 MDP4_OVLP_SIZE_WIDTH(mode->hdisplay) | in mdp4_crtc_mode_set_nofb()
Dmdp4_lcdc_encoder.c285 mode->hdisplay, 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()
/linux-4.1.27/drivers/gpu/drm/tegra/
Ddsi.c547 hact = mode->hdisplay * mul / div; in tegra_dsi_configure()
558 hfp = (mode->hsync_start - mode->hdisplay) * mul / div; in tegra_dsi_configure()
577 bytes = 1 + (mode->hdisplay / 2) * mul / div; in tegra_dsi_configure()
580 bytes = 1 + mode->hdisplay * mul / div; in tegra_dsi_configure()
621 tegra_dsi_ganged_enable(dsi, 0, mode->hdisplay / 2); in tegra_dsi_configure()
622 tegra_dsi_ganged_enable(dsi->slave, mode->hdisplay / 2, in tegra_dsi_configure()
623 mode->hdisplay / 2); in tegra_dsi_configure()
Dsor.c410 params.num_clocks = div_u64(link_rate * mode->hdisplay, pclk); in tegra_sor_calc_config()
445 num_syms_per_line = (mode->hdisplay * config->bits_per_pixel) * in tegra_sor_calc_config()
460 num = ((mode->htotal - mode->hdisplay) - 7) * link_rate; in tegra_sor_calc_config()
469 num = (mode->hdisplay - 25) * link_rate; in tegra_sor_calc_config()
1315 hbe = hse + (mode->hsync_start - mode->hdisplay); in tegra_sor_encoder_mode_set()
1321 hbs = hbe + mode->hdisplay; in tegra_sor_encoder_mode_set()
Dhdmi.c852 h_front_porch = mode->hsync_start - mode->hdisplay; in tegra_hdmi_encoder_mode_set()
899 if ((mode->hdisplay == 720) && ((mode->vdisplay == 480) || in tegra_hdmi_encoder_mode_set()
Ddc.c1160 ((mode->hsync_start - mode->hdisplay) << 0); in tegra_dc_set_timings()
1163 value = (mode->vdisplay << 16) | mode->hdisplay; in tegra_dc_set_timings()
/linux-4.1.27/drivers/gpu/drm/msm/edp/
Dedp_bridge.c66 mode->hdisplay, mode->hsync_start, in edp_bridge_mode_set()
Dedp_ctrl.c1332 EDP_ACTIVE_HOR_VER_HORIZ(mode->hdisplay) | in msm_edp_ctrl_timing_cfg()
/linux-4.1.27/drivers/gpu/drm/udl/
Dudl_connector.c90 if (mode->vdisplay * mode->hdisplay > udl->sku_pixel_limit) in udl_mode_valid()
Dudl_modeset.c195 wrptr = udl_set_register_16(wrptr, 0x0F, mode->hdisplay); in udl_set_vid_cmds()
335 wrptr = udl_set_base8bpp(wrptr, 2 * mode->vdisplay * mode->hdisplay); in udl_crtc_mode_set()
/linux-4.1.27/drivers/gpu/drm/msm/dsi/
Ddsi_manager.c154 mode->hdisplay >>= 1; in dsi_dual_connector_fix_modes()
195 connector->tile_h_size = mode->hdisplay; in dsi_dual_connector_tile_init()
421 mode->hdisplay, mode->hsync_start, in dsi_mgr_bridge_mode_set()
Ddsi_host.c804 u32 ha_end = ha_start + mode->hdisplay; in dsi_timing_setup()
831 wc = mode->hdisplay * dsi_get_bpp(msm_host->format) / 8 + 1; in dsi_timing_setup()
841 DSI_CMD_MDP_STREAM_TOTAL_H_TOTAL(mode->hdisplay) | in dsi_timing_setup()
1145 int bllp_len = msm_host->mode->hdisplay * in dsi_cmds2buf_tx()
/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c597 if (state->crtc_x + state->crtc_w > mode->hdisplay) in atmel_hlcdc_plane_atomic_check()
598 patched_crtc_w = mode->hdisplay - state->crtc_x; in atmel_hlcdc_plane_atomic_check()
687 (mode->hdisplay != state->crtc_w || in atmel_hlcdc_plane_atomic_check()
707 if (state->crtc_w + state->crtc_x > mode->hdisplay || in atmel_hlcdc_plane_atomic_check()
Datmel_hlcdc_dc.c149 int hfront_porch = mode->hsync_start - mode->hdisplay; in atmel_hlcdc_dc_mode_valid()
161 mode->hdisplay < 1) in atmel_hlcdc_dc_mode_valid()
/linux-4.1.27/drivers/gpu/drm/armada/
Darmada_crtc.c475 if ((adj->hdisplay == 1280 && adj->vdisplay == 720 && in armada_drm_crtc_calculate_csc()
477 (adj->hdisplay == 1920 && adj->vdisplay == 1080)) { in armada_drm_crtc_calculate_csc()
738 } else if (dcrtc->cursor_x + w > dcrtc->crtc.mode.hdisplay) { in armada_drm_crtc_cursor_update()
741 w = max_t(int, dcrtc->crtc.mode.hdisplay - dcrtc->cursor_x, 0); in armada_drm_crtc_cursor_update()
Darmada_overlay.c112 crtc_w = armada_limit(crtc_x, crtc_w, dcrtc->crtc.mode.hdisplay); in armada_plane_update()
/linux-4.1.27/drivers/gpu/drm/msm/hdmi/
Dhdmi_bridge.c148 hend = mode->htotal - mode->hsync_start + mode->hdisplay; in hdmi_bridge_mode_set()
/linux-4.1.27/drivers/gpu/drm/rockchip/
Drockchip_drm_vop.c606 .x2 = crtc->mode.hdisplay, in vop_update_plane_event()
894 u16 hdisplay = adjusted_mode->hdisplay; in vop_crtc_mode_set() local
897 u16 hact_end = hact_st + hdisplay; in vop_crtc_mode_set()
/linux-4.1.27/drivers/gpu/drm/bridge/
Ddw_hdmi.c1067 hdmi_writeb(hdmi, mode->hdisplay >> 8, HDMI_FC_INHACTV1); in hdmi_av_composer()
1068 hdmi_writeb(hdmi, mode->hdisplay, HDMI_FC_INHACTV0); in hdmi_av_composer()
1075 hblank = mode->htotal - mode->hdisplay; in hdmi_av_composer()
1084 h_de_hs = mode->hsync_start - mode->hdisplay; in hdmi_av_composer()
/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/cirrus/
Dcirrus_mode.c208 hdispend = mode->hdisplay / 8; in cirrus_crtc_mode_set()