| /openbsd/src/sys/dev/videomode/ |
| D | modelines2c.awk | 78 hdisplay = $4; 114 modestr = sprintf("%dx%dx%d%s", hdisplay, vdisplay, vrefresh, iflag); 120 hdisplay, vdisplay, dotclock * 1000, 125 hdisplay/2 , vdisplay/2, vrefresh, iflag); 129 hdisplay/2, vdisplay/2, dotclock * 1000 / 2,
|
| D | vesagtf.c | 620 vmp->hdisplay = h_pixels; in vesagtf_mode_params() 669 vmp->hdisplay, vmp->vdisplay, vf, hf, vmp->dot_clock / 1000.0); in print_xf86_mode() 675 vmp->hdisplay, vmp->vdisplay, vf, (vmp->dot_clock / 1000.0), in print_xf86_mode() 676 vmp->hdisplay, vmp->hsync_start, vmp->hsync_end, vmp->htotal, in print_xf86_mode()
|
| D | edid.c | 274 edid->edid_modes[i].hdisplay, in edid_print() 295 edid->edid_preferred_mode->hdisplay, in edid_print() 324 if (mode->hdisplay == edid->edid_modes[i].hdisplay && in edid_search_mode() 409 vmp->hdisplay = hactive; in edid_det_timing()
|
| D | videomode.h | 35 int hdisplay; member
|
| /openbsd/src/sys/dev/pci/drm/ |
| D | drm_modes.c | 456 mode->hdisplay = hactive; in fill_analog_mode() 457 mode->hsync_start = mode->hdisplay + hfp; in fill_analog_mode() 548 unsigned int hdisplay, in drm_analog_tv_mode() argument 587 pixel_clock_hz, hdisplay, vdisplay, interlace); in drm_analog_tv_mode() 623 struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, in drm_cvt_mode() argument 644 if (!hdisplay || !vdisplay) in drm_cvt_mode() 665 hdisplay_rnd = hdisplay - (hdisplay % CVT_H_GRANULARITY); in drm_cvt_mode() 674 drm_mode->hdisplay = hdisplay_rnd + 2 * hmargin; in drm_cvt_mode() 696 if (!(vdisplay % 3) && ((vdisplay * 4 / 3) == hdisplay)) in drm_cvt_mode() 698 else if (!(vdisplay % 9) && ((vdisplay * 16 / 9) == hdisplay)) in drm_cvt_mode() [all …]
|
| D | drm_probe_helper.c | 156 if (mode->hdisplay != cmdline_mode->xres || in drm_helper_probe_add_cmdline_mode() 1135 if (mode->hdisplay != fixed_mode->hdisplay && mode->vdisplay != fixed_mode->vdisplay) in drm_crtc_helper_mode_valid_fixed() 1137 else if (mode->hdisplay != fixed_mode->hdisplay) in drm_crtc_helper_mode_valid_fixed()
|
| D | drm_client_modeset.c | 126 if (mode->hdisplay == connector->tile_h_size && in drm_connector_get_tiled_mode() 139 if (mode->hdisplay == connector->tile_h_size && in drm_connector_fallback_non_tiled_mode() 153 if (mode->hdisplay > width || in drm_connector_has_preferred_mode() 192 if (mode->hdisplay != cmdline_mode->xres || in drm_connector_pick_cmdline_mode() 369 hoffset += modes[i]->hdisplay; in drm_client_get_tile_offsets() 734 modes[i]->hdisplay, modes[i]->vdisplay, in drm_client_firmware_config()
|
| D | drm_edid.c | 3000 #define MODE_SIZE(m) ((m)->hdisplay * (m)->vdisplay) 3051 return (mode->htotal - mode->hdisplay == 160) && in mode_is_rb() 3052 (mode->hsync_end - mode->hdisplay == 80) && in mode_is_rb() 3078 if (hsize != ptr->hdisplay) in drm_mode_find_dmt() 3427 if (m->hdisplay == hsize && m->vdisplay == vsize && in drm_mode_std() 3437 mode->hdisplay = 1366; in drm_mode_std() 3501 if ((mode->hdisplay == cea_interlaced[i].w) && in drm_mode_do_interlace_quirk() 3574 mode->hdisplay = hactive; in drm_mode_detailed() 3575 mode->hsync_start = mode->hdisplay + hsync_offset; in drm_mode_detailed() 3577 mode->htotal = mode->hdisplay + hblank; in drm_mode_detailed() [all …]
|
| D | drm_crtc.c | 665 int hdisplay, vdisplay; in drm_crtc_check_viewport() local 667 drm_mode_get_hv_timing(mode, &hdisplay, &vdisplay); in drm_crtc_check_viewport() 671 swap(hdisplay, vdisplay); in drm_crtc_check_viewport() 674 hdisplay << 16, vdisplay << 16, in drm_crtc_check_viewport()
|
| /openbsd/src/sys/dev/pci/drm/include/drm/ |
| D | drm_modes.h | 136 .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \ 151 .hdisplay = (hd), .hsync_start = (hd), .hsync_end = (hd), \ 259 u16 hdisplay; member 433 (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \ 476 unsigned int hdisplay, 491 int hdisplay, int vdisplay, int vrefresh, 495 int hdisplay, int vdisplay, int vrefresh, 498 int hdisplay, int vdisplay, 533 int *hdisplay, int *vdisplay);
|
| /openbsd/src/sys/dev/pci/drm/amd/amdgpu/ |
| D | amdgpu_encoders.c | 169 unsigned int hblank = native_mode->htotal - native_mode->hdisplay; in amdgpu_panel_mode_fixup() 171 unsigned int hover = native_mode->hsync_start - native_mode->hdisplay; in amdgpu_panel_mode_fixup() 179 adjusted_mode->hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup() 182 adjusted_mode->htotal = native_mode->hdisplay + hblank; in amdgpu_panel_mode_fixup() 183 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in amdgpu_panel_mode_fixup() 192 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup()
|
| D | amdgpu_connectors.c | 363 if (native_mode->hdisplay != 0 && in amdgpu_connector_lcd_native_mode() 374 } else if (native_mode->hdisplay != 0 && in amdgpu_connector_lcd_native_mode() 383 mode = drm_cvt_mode(dev, native_mode->hdisplay, native_mode->vdisplay, 60, true, false, false); in amdgpu_connector_lcd_native_mode() 431 if (common_modes[i].w > native_mode->hdisplay || in amdgpu_connector_add_common_modes() 433 (common_modes[i].w == native_mode->hdisplay && in amdgpu_connector_add_common_modes() 614 if (mode->hdisplay != native_mode->hdisplay || in amdgpu_connector_fixup_lcd_native_mode() 623 if (mode->hdisplay == native_mode->hdisplay && in amdgpu_connector_fixup_lcd_native_mode() 681 if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) in amdgpu_connector_lvds_mode_valid() 691 if ((mode->hdisplay > native_mode->hdisplay) || in amdgpu_connector_lvds_mode_valid() 697 if ((mode->hdisplay != native_mode->hdisplay) || in amdgpu_connector_lvds_mode_valid() [all …]
|
| D | amdgpu_display.c | 1427 if ((mode->vdisplay == 480 && mode->hdisplay == 720) || /* 480p */ in amdgpu_display_is_hdtv_mode() 1460 else if (mode->hdisplay < amdgpu_encoder->native_mode.hdisplay || in amdgpu_display_crtc_scaling_mode_fixup() 1471 src_h = crtc->mode.hdisplay; in amdgpu_display_crtc_scaling_mode_fixup() 1472 dst_h = amdgpu_crtc->native_mode.hdisplay; in amdgpu_display_crtc_scaling_mode_fixup() 1483 amdgpu_crtc->h_border = (mode->hdisplay >> 5) + 16; in amdgpu_display_crtc_scaling_mode_fixup() 1491 src_h = crtc->mode.hdisplay; in amdgpu_display_crtc_scaling_mode_fixup() 1492 dst_h = crtc->mode.hdisplay - (amdgpu_crtc->h_border * 2); in amdgpu_display_crtc_scaling_mode_fixup()
|
| /openbsd/src/sys/dev/pci/drm/radeon/ |
| D | radeon_encoders.c | 327 unsigned int hblank = native_mode->htotal - native_mode->hdisplay; in radeon_panel_mode_fixup() 329 unsigned int hover = native_mode->hsync_start - native_mode->hdisplay; in radeon_panel_mode_fixup() 338 adjusted_mode->hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup() 342 adjusted_mode->htotal = native_mode->hdisplay + hblank; in radeon_panel_mode_fixup() 343 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in radeon_panel_mode_fixup() 353 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup()
|
| D | radeon_connectors.c | 433 if (native_mode->hdisplay != 0 && in radeon_fp_native_mode() 443 } else if (native_mode->hdisplay != 0 && in radeon_fp_native_mode() 452 mode = drm_cvt_mode(dev, native_mode->hdisplay, native_mode->vdisplay, 60, true, false, false); in radeon_fp_native_mode() 498 if (common_modes[i].w > native_mode->hdisplay || in radeon_add_common_modes() 500 (common_modes[i].w == native_mode->hdisplay && in radeon_add_common_modes() 746 if (mode->hdisplay != native_mode->hdisplay || in radeon_fixup_lvds_native_mode() 755 if (mode->hdisplay == native_mode->hdisplay && in radeon_fixup_lvds_native_mode() 813 if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) in radeon_lvds_mode_valid() 823 if ((mode->hdisplay > native_mode->hdisplay) || in radeon_lvds_mode_valid() 829 if ((mode->hdisplay != native_mode->hdisplay) || in radeon_lvds_mode_valid() [all …]
|
| D | radeon_legacy_crtc.c | 55 int xres = mode->hdisplay; in radeon_legacy_rmx_mode_set() 113 if (native_mode->hdisplay == 0 || in radeon_legacy_rmx_mode_set() 118 if (xres > native_mode->hdisplay) in radeon_legacy_rmx_mode_set() 119 xres = native_mode->hdisplay; in radeon_legacy_rmx_mode_set() 123 if (xres == native_mode->hdisplay) in radeon_legacy_rmx_mode_set() 137 / native_mode->hdisplay + 1; in radeon_legacy_rmx_mode_set() 141 ((native_mode->hdisplay/8-1) << 16)); in radeon_legacy_rmx_mode_set() 194 (((native_mode->hdisplay / 8) & 0x1ff) << 16)); in radeon_legacy_rmx_mode_set()
|
| D | rs690.c | 232 if (mode1->hdisplay > mode2->hdisplay) { in rs690_line_buffer_adjust() 233 if (mode1->hdisplay > 2560) in rs690_line_buffer_adjust() 237 } else if (mode2->hdisplay > mode1->hdisplay) { in rs690_line_buffer_adjust() 238 if (mode2->hdisplay > 2560) in rs690_line_buffer_adjust()
|
| D | radeon_display.c | 1670 if ((mode->vdisplay == 480 && mode->hdisplay == 720) || /* 480p */ in is_hdtv_mode() 1706 else if (mode->hdisplay < radeon_encoder->native_mode.hdisplay || in radeon_crtc_scaling_mode_fixup() 1717 src_h = crtc->mode.hdisplay; in radeon_crtc_scaling_mode_fixup() 1718 dst_h = radeon_crtc->native_mode.hdisplay; in radeon_crtc_scaling_mode_fixup() 1730 radeon_crtc->h_border = (mode->hdisplay >> 5) + 16; in radeon_crtc_scaling_mode_fixup() 1738 src_h = crtc->mode.hdisplay; in radeon_crtc_scaling_mode_fixup() 1739 dst_h = crtc->mode.hdisplay - (radeon_crtc->h_border * 2); in radeon_crtc_scaling_mode_fixup()
|
| /openbsd/src/sys/dev/pci/drm/i915/display/ |
| D | dvo_ns2501.c | 531 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_valid() 539 if ((mode->hdisplay == 640 && mode->vdisplay == 480 && mode->clock == 25175) || in ns2501_mode_valid() 540 (mode->hdisplay == 800 && mode->vdisplay == 600 && mode->clock == 40000) || in ns2501_mode_valid() 541 (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 65000)) { in ns2501_mode_valid() 558 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_set() 590 if (mode->hdisplay == 640 && mode->vdisplay == 480) in ns2501_mode_set() 592 else if (mode->hdisplay == 800 && mode->vdisplay == 600) in ns2501_mode_set() 594 else if (mode->hdisplay == 1024 && mode->vdisplay == 768) in ns2501_mode_set()
|
| D | intel_tv.c | 1008 mode->hdisplay = in intel_tv_mode_to_mode() 1010 mode->hsync_start = mode->hdisplay + in intel_tv_mode_to_mode() 1051 mode->hdisplay, mode->vdisplay, in intel_tv_mode_to_mode() 1057 int hdisplay, int left_margin, in intel_tv_scale_mode_horiz() argument 1060 int hsync_start = mode->hsync_start - mode->hdisplay + right_margin; in intel_tv_scale_mode_horiz() 1061 int hsync_end = mode->hsync_end - mode->hdisplay + right_margin; in intel_tv_scale_mode_horiz() 1062 int new_htotal = mode->htotal * hdisplay / in intel_tv_scale_mode_horiz() 1063 (mode->hdisplay - left_margin - right_margin); in intel_tv_scale_mode_horiz() 1067 mode->hdisplay = hdisplay; in intel_tv_scale_mode_horiz() 1068 mode->hsync_start = hdisplay + hsync_start * new_htotal / mode->htotal; in intel_tv_scale_mode_horiz() [all …]
|
| D | dvo_ch7017.c | 302 horizontal_active_pixel_input = mode->hdisplay & 0x00ff; in ch7017_mode_set() 305 horizontal_active_pixel_output = mode->hdisplay & 0x00ff; in ch7017_mode_set() 307 active_input_line_output = ((mode->hdisplay & 0x0700) >> 8) | in ch7017_mode_set() 311 (mode->hdisplay & 0x0700) >> 8; in ch7017_mode_set()
|
| D | intel_panel.c | 123 mode->hdisplay == preferred_mode->hdisplay && in is_alt_fixed_mode() 705 if (mode->hdisplay != fixed_mode->hdisplay) in intel_panel_mode_valid()
|
| D | dvo_ivch.c | 418 if (mode->hdisplay != adjusted_mode->crtc_hdisplay || in ivch_mode_set() 424 x_ratio = (((mode->hdisplay - 1) << 16) / in ivch_mode_set()
|
| /openbsd/src/sys/arch/armv7/omap/ |
| D | amdisplay.c | 253 stride = sc->sc_active_mode->hdisplay * sc->sc_active_depth / 8; in amdisplay_attach() 256 sc->sc_ro.ri_width = sc->sc_active_mode->hdisplay; in amdisplay_attach() 463 bsize = (sc->sc_active_mode->hdisplay * sc->sc_active_mode->vdisplay in amdisplay_setup_dma() 507 hfp = (m->hsync_start - m->hdisplay) - 1; in amdisplay_conf_crt_timings() 515 width = m->hdisplay - 1; in amdisplay_conf_crt_timings()
|
| /openbsd/src/sys/dev/usb/ |
| D | udl.c | 379 sc->sc_width = udl_modes[i].hdisplay; in udl_attach() 1266 udl_lookup_mode(uint16_t hdisplay, uint16_t vdisplay, uint8_t freq, in udl_lookup_mode() argument 1275 if ((udl_modes[idx].hdisplay == hdisplay) && in udl_lookup_mode() 1289 if ((udl_modes[idx].hdisplay == hdisplay) && in udl_lookup_mode() 2058 mode.hdisplay = in udl_select_mode() 2059 sc->sc_edid_info.edid_preferred_mode->hdisplay; in udl_select_mode() 2062 index = udl_lookup_mode(mode.hdisplay, mode.vdisplay, mode.freq, in udl_select_mode() 2071 DN(sc), FUNC, mode.hdisplay, mode.vdisplay, mode.freq); in udl_select_mode() 2081 mode.hdisplay = in udl_select_mode() 2082 sc->sc_edid_info.edid_modes[i].hdisplay; in udl_select_mode() [all …]
|