| /netbsd-src/sys/dev/videomode/ |
| H A D | pickmode.c | 54 if ((this->hdisplay != width) || (this->vdisplay != height) || in pick_mode_by_dotclock() 82 if ((this->hdisplay != width) || (this->vdisplay != height)) in pick_mode_by_ref() 131 aspect = (*preferred)->hdisplay * 100 / (*preferred)->vdisplay; in sort_modes() 147 if (modes[i].hdisplay > hbest) { in sort_modes() 148 hbest = modes[i].hdisplay; in sort_modes() 151 } else if (modes[i].hdisplay == hbest && in sort_modes() 157 aspect = mtemp->hdisplay * 100 / mtemp->vdisplay; in sort_modes() 174 atemp = (modes[i].hdisplay * 100 / modes[i].vdisplay); in sort_modes() 188 if (modes[i].hdisplay > hbest) { in sort_modes() 189 hbest = modes[i].hdisplay; in sort_modes() [all …]
|
| H A 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,
|
| H A D | vesagtf.c | 621 vmp->hdisplay = h_pixels; in vesagtf_mode_params() 671 vmp->hdisplay, vmp->vdisplay, vf, hf, vmp->dot_clock / 1000.0); 677 vmp->hdisplay, vmp->vdisplay, vf, (vmp->dot_clock / 1000.0), 678 vmp->hdisplay, vmp->hsync_start, vmp->hsync_end, vmp->htotal,
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/ |
| H A D | drm_modes.c | 150 struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, in drm_cvt_mode() argument 171 if (!hdisplay || !vdisplay) in drm_cvt_mode() 192 hdisplay_rnd = hdisplay - (hdisplay % CVT_H_GRANULARITY); in drm_cvt_mode() 201 drm_mode->hdisplay = hdisplay_rnd + 2 * hmargin; in drm_cvt_mode() 223 if (!(vdisplay % 3) && ((vdisplay * 4 / 3) == hdisplay)) in drm_cvt_mode() 225 else if (!(vdisplay % 9) && ((vdisplay * 16 / 9) == hdisplay)) in drm_cvt_mode() 227 else if (!(vdisplay % 10) && ((vdisplay * 16 / 10) == hdisplay)) in drm_cvt_mode() 229 else if (!(vdisplay % 4) && ((vdisplay * 5 / 4) == hdisplay)) in drm_cvt_mode() 231 else if (!(vdisplay % 9) && ((vdisplay * 15 / 9) == hdisplay)) in drm_cvt_mode() 283 hblank = drm_mode->hdisplay * hblank_percentage / in drm_cvt_mode() [all …]
|
| H A D | drm_edid.c | 2114 #define MODE_SIZE(m) ((m)->hdisplay * (m)->vdisplay) 2171 return (mode->htotal - mode->hdisplay == 160) && in mode_is_rb() 2172 (mode->hsync_end - mode->hdisplay == 80) && in mode_is_rb() 2197 if (hsize != ptr->hdisplay) in drm_mode_find_dmt() 2425 if (m->hdisplay == hsize && m->vdisplay == vsize && in drm_mode_std() 2435 mode->hdisplay = 1366; in drm_mode_std() 2515 if ((mode->hdisplay == cea_interlaced[i].w) && in drm_mode_do_interlace_quirk() 2590 mode->hdisplay = hactive; in drm_mode_detailed() 2591 mode->hsync_start = mode->hdisplay + hsync_offset; in drm_mode_detailed() 2593 mode->htotal = mode->hdisplay + hblank; in drm_mode_detailed() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/include/drm/ |
| H A D | drm_modes.h | 139 .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \ 156 .hdisplay = (hd), .hsync_start = (hd), .hsync_end = (hd), \ 284 int hdisplay; member 445 (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \ 484 int hdisplay, int vdisplay, int vrefresh, 488 int hdisplay, int vdisplay, int vrefresh, 491 int hdisplay, int vdisplay, 509 int *hdisplay, int *vdisplay);
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/dispnv04/ |
| H A D | nouveau_dispnv04_tvnv17.c | 212 for (tv_mode = nv17_tv_modes; tv_mode->hdisplay; tv_mode++) { in nv17_tv_get_ld_modes() 224 if (mode->hdisplay == tv_norm->tv_enc_mode.hdisplay && in nv17_tv_get_ld_modes() 242 int hdisplay; in nv17_tv_get_hd_modes() member 258 if (modes[i].hdisplay > output_mode->hdisplay || in nv17_tv_get_hd_modes() 262 if (modes[i].hdisplay == output_mode->hdisplay && in nv17_tv_get_hd_modes() 268 mode = drm_cvt_mode(encoder->dev, modes[i].hdisplay, in nv17_tv_get_hd_modes() 275 if (output_mode->hdisplay <= 720 in nv17_tv_get_hd_modes() 276 || output_mode->hdisplay >= 1920) { in nv17_tv_get_hd_modes() 278 mode->hsync_start = (mode->hdisplay + (mode->htotal in nv17_tv_get_hd_modes() 279 - mode->hdisplay) * 9 / 10) & ~7; in nv17_tv_get_hd_modes() [all …]
|
| H A D | nouveau_dispnv04_dfp.c | 196 mode->hdisplay > nv_connector->native_mode->hdisplay || in nv04_dfp_mode_fixup() 305 regp->fp_horiz_regs[FP_DISPLAY_END] = output_mode->hdisplay - 1; in nv04_dfp_mode_set() 308 (output_mode->hsync_start - output_mode->hdisplay) >= in nv04_dfp_mode_set() 310 regp->fp_horiz_regs[FP_CRTC] = output_mode->hdisplay; in nv04_dfp_mode_set() 316 regp->fp_horiz_regs[FP_VALID_END] = output_mode->hdisplay - 1; in nv04_dfp_mode_set() 339 else if (adjusted_mode->hdisplay == output_mode->hdisplay && in nv04_dfp_mode_set() 379 mode_ratio = (1 << 12) * adjusted_mode->hdisplay / adjusted_mode->vdisplay; in nv04_dfp_mode_set() 380 panel_ratio = (1 << 12) * output_mode->hdisplay / output_mode->vdisplay; in nv04_dfp_mode_set() 398 diff = output_mode->hdisplay - in nv04_dfp_mode_set() 409 scale = (1 << 12) * adjusted_mode->hdisplay / output_mode->hdisplay; in nv04_dfp_mode_set() [all …]
|
| H A D | nouveau_dispnv04_tvmodesnv17.c | 330 uint64_t rs[] = {mode->hdisplay * id3, in tv_setup_filter() 333 do_div(rs[0], overscan * tv_norm->tv_enc_mode.hdisplay); in tv_setup_filter() 564 hmargin = (output_mode->hdisplay - crtc_mode->hdisplay) / 2; in nv17_ctv_update_rescaler() 567 hmargin = interpolate(0, min(hmargin, output_mode->hdisplay/20), in nv17_ctv_update_rescaler() 572 hratio = crtc_mode->hdisplay * 0x800 / in nv17_ctv_update_rescaler() 573 (output_mode->hdisplay - 2*hmargin); in nv17_ctv_update_rescaler() 578 regs->fp_horiz_regs[FP_VALID_END] = output_mode->hdisplay - hmargin - 1; in nv17_ctv_update_rescaler()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
| H A D | amdgpu_encoders.c | 174 unsigned hblank = native_mode->htotal - native_mode->hdisplay; in amdgpu_panel_mode_fixup() 176 unsigned hover = native_mode->hsync_start - native_mode->hdisplay; in amdgpu_panel_mode_fixup() 184 adjusted_mode->hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup() 187 adjusted_mode->htotal = native_mode->hdisplay + hblank; in amdgpu_panel_mode_fixup() 188 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in amdgpu_panel_mode_fixup() 197 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup()
|
| H A D | amdgpu_connectors.c | 390 if (native_mode->hdisplay != 0 && in amdgpu_connector_lcd_native_mode() 398 } else if (native_mode->hdisplay != 0 && in amdgpu_connector_lcd_native_mode() 407 mode = drm_cvt_mode(dev, native_mode->hdisplay, native_mode->vdisplay, 60, true, false, false); in amdgpu_connector_lcd_native_mode() 452 if (common_modes[i].w > native_mode->hdisplay || in amdgpu_connector_add_common_modes() 454 (common_modes[i].w == native_mode->hdisplay && in amdgpu_connector_add_common_modes() 622 if (mode->hdisplay != native_mode->hdisplay || in amdgpu_connector_fixup_lcd_native_mode() 631 if (mode->hdisplay == native_mode->hdisplay && in amdgpu_connector_fixup_lcd_native_mode() 689 if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) in amdgpu_connector_lvds_mode_valid() 699 if ((mode->hdisplay > native_mode->hdisplay) || in amdgpu_connector_lvds_mode_valid() 705 if ((mode->hdisplay != native_mode->hdisplay) || in amdgpu_connector_lvds_mode_valid() [all …]
|
| H A D | amdgpu_display.c | 690 if ((mode->vdisplay == 480 && mode->hdisplay == 720) || /* 480p */ in amdgpu_display_is_hdtv_mode() 723 else if (mode->hdisplay < amdgpu_encoder->native_mode.hdisplay || in amdgpu_display_crtc_scaling_mode_fixup() 734 src_h = crtc->mode.hdisplay; in amdgpu_display_crtc_scaling_mode_fixup() 735 dst_h = amdgpu_crtc->native_mode.hdisplay; in amdgpu_display_crtc_scaling_mode_fixup() 746 amdgpu_crtc->h_border = (mode->hdisplay >> 5) + 16; in amdgpu_display_crtc_scaling_mode_fixup() 754 src_h = crtc->mode.hdisplay; in amdgpu_display_crtc_scaling_mode_fixup() 755 dst_h = crtc->mode.hdisplay - (amdgpu_crtc->h_border * 2); in amdgpu_display_crtc_scaling_mode_fixup()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/radeon/ |
| H A D | radeon_encoders.c | 335 unsigned hblank = native_mode->htotal - native_mode->hdisplay; in radeon_panel_mode_fixup() 337 unsigned hover = native_mode->hsync_start - native_mode->hdisplay; in radeon_panel_mode_fixup() 346 adjusted_mode->hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup() 350 adjusted_mode->htotal = native_mode->hdisplay + hblank; in radeon_panel_mode_fixup() 351 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in radeon_panel_mode_fixup() 361 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup()
|
| H A D | radeon_connectors.c | 477 if (native_mode->hdisplay != 0 && in radeon_fp_native_mode() 485 } else if (native_mode->hdisplay != 0 && in radeon_fp_native_mode() 494 mode = drm_cvt_mode(dev, native_mode->hdisplay, native_mode->vdisplay, 60, true, false, false); in radeon_fp_native_mode() 538 if (common_modes[i].w > native_mode->hdisplay || in radeon_add_common_modes() 540 (common_modes[i].w == native_mode->hdisplay && in radeon_add_common_modes() 783 if (mode->hdisplay != native_mode->hdisplay || in radeon_fixup_lvds_native_mode() 792 if (mode->hdisplay == native_mode->hdisplay && in radeon_fixup_lvds_native_mode() 850 if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) in radeon_lvds_mode_valid() 860 if ((mode->hdisplay > native_mode->hdisplay) || in radeon_lvds_mode_valid() 866 if ((mode->hdisplay != native_mode->hdisplay) || in radeon_lvds_mode_valid() [all …]
|
| H A D | radeon_legacy_crtc.c | 60 int xres = mode->hdisplay; in radeon_legacy_rmx_mode_set() 118 if (native_mode->hdisplay == 0 || in radeon_legacy_rmx_mode_set() 123 if (xres > native_mode->hdisplay) in radeon_legacy_rmx_mode_set() 124 xres = native_mode->hdisplay; in radeon_legacy_rmx_mode_set() 128 if (xres == native_mode->hdisplay) in radeon_legacy_rmx_mode_set() 142 / native_mode->hdisplay + 1; in radeon_legacy_rmx_mode_set() 146 ((native_mode->hdisplay/8-1) << 16)); in radeon_legacy_rmx_mode_set() 199 (((native_mode->hdisplay / 8) & 0x1ff) << 16)); in radeon_legacy_rmx_mode_set()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/display/ |
| H A D | intel_tv.c | 1002 mode->hdisplay = in intel_tv_mode_to_mode() 1004 mode->hsync_start = mode->hdisplay + in intel_tv_mode_to_mode() 1048 mode->hdisplay, mode->vdisplay, in intel_tv_mode_to_mode() 1054 int hdisplay, int left_margin, in intel_tv_scale_mode_horiz() argument 1057 int hsync_start = mode->hsync_start - mode->hdisplay + right_margin; in intel_tv_scale_mode_horiz() 1058 int hsync_end = mode->hsync_end - mode->hdisplay + right_margin; in intel_tv_scale_mode_horiz() 1059 int new_htotal = mode->htotal * hdisplay / in intel_tv_scale_mode_horiz() 1060 (mode->hdisplay - left_margin - right_margin); in intel_tv_scale_mode_horiz() 1064 mode->hdisplay = hdisplay; in intel_tv_scale_mode_horiz() 1065 mode->hsync_start = hdisplay + hsync_start * new_htotal / mode->htotal; in intel_tv_scale_mode_horiz() [all …]
|
| H A D | dvo_ns2501.c | 537 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_valid() 545 if ((mode->hdisplay == 640 && mode->vdisplay == 480 && mode->clock == 25175) || in ns2501_mode_valid() 546 (mode->hdisplay == 800 && mode->vdisplay == 600 && mode->clock == 40000) || in ns2501_mode_valid() 547 (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 65000)) { in ns2501_mode_valid() 564 mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); in ns2501_mode_set() 596 if (mode->hdisplay == 640 && mode->vdisplay == 480) in ns2501_mode_set() 598 else if (mode->hdisplay == 800 && mode->vdisplay == 600) in ns2501_mode_set() 600 else if (mode->hdisplay == 1024 && mode->vdisplay == 768) in ns2501_mode_set()
|
| H A D | dvo_ch7017.c | 307 horizontal_active_pixel_input = mode->hdisplay & 0x00ff; in ch7017_mode_set() 310 horizontal_active_pixel_output = mode->hdisplay & 0x00ff; in ch7017_mode_set() 312 active_input_line_output = ((mode->hdisplay & 0x0700) >> 8) | in ch7017_mode_set() 316 (mode->hdisplay & 0x0700) >> 8; in ch7017_mode_set()
|
| H A D | intel_dsi.c | 74 if (mode->hdisplay > fixed_mode->hdisplay) in intel_dsi_mode_valid()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/virtio/ |
| H A D | virtgpu_display.c | 97 crtc->mode.hdisplay, in virtio_gpu_crtc_mode_set_nofb() 205 if (mode->hdisplay == XRES_DEF && mode->vdisplay == YRES_DEF) in virtio_gpu_conn_mode_valid() 207 if (mode->hdisplay <= width && mode->hdisplay >= width - 16 && in virtio_gpu_conn_mode_valid() 211 DRM_DEBUG("del mode: %dx%d\n", mode->hdisplay, mode->vdisplay); in virtio_gpu_conn_mode_valid()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/ |
| H A D | nouveau_connector.c | 81 if (mode->hdisplay < high_w) in nouveau_conn_native_mode() 84 if (mode->hdisplay == high_w && mode->vdisplay < high_h) in nouveau_conn_native_mode() 87 if (mode->hdisplay == high_w && mode->vdisplay == high_h && in nouveau_conn_native_mode() 91 high_w = mode->hdisplay; in nouveau_conn_native_mode() 814 int hdisplay; member 848 while (mode->hdisplay) { in nouveau_connector_scaler_modes_add() 849 if (mode->hdisplay <= native->hdisplay && in nouveau_connector_scaler_modes_add() 851 (mode->hdisplay != native->hdisplay || in nouveau_connector_scaler_modes_add() 853 m = drm_cvt_mode(dev, mode->hdisplay, mode->vdisplay, in nouveau_connector_scaler_modes_add() 1061 (mode->hdisplay > nv_connector->native_mode->hdisplay || in nouveau_connector_mode_valid()
|
| /netbsd-src/sys/dev/ic/ |
| H A D | igsfb_subr.c | 445 size = videomode_list[i].hdisplay * videomode_list[i].vdisplay; in igsfb_hw_setup() 448 (videomode_list[i].hdisplay <= 2048) && in igsfb_hw_setup() 449 (videomode_list[i].hdisplay >= 320) && in igsfb_hw_setup() 515 hoffset = (mode->hdisplay >> 3) * bytes_per_pixel; in igsfb_set_mode() 545 hblank_start = uimin(mode->hsync_start, mode->hdisplay); in igsfb_set_mode() 561 igs_crtc_write(iot, ioh, 0x01, (mode->hdisplay >> 3) - 1); in igsfb_set_mode() 659 dc->dc_width = mode->hdisplay; in igsfb_set_mode()
|
| /netbsd-src/sys/arch/macppc/dev/ |
| H A D | valkyriefb.c | 280 (modetab[i].width != mode->hdisplay) && in valkyriefb_set_mode() 291 if ((mode->hdisplay * mode->vdisplay * (depth >> 3)) > 0x100000) { in valkyriefb_set_mode() 345 sc->sc_width = mode->hdisplay; in valkyriefb_set_mode() 347 sc->sc_linebytes = mode->hdisplay * (sc->sc_depth >> 3); in valkyriefb_set_mode()
|
| /netbsd-src/sys/dev/pci/ |
| H A D | machfb.c | 519 default_mode.hdisplay = width; in mach64_attach() 625 ((m)->hdisplay <= 1280)) in mach64_attach() 642 "(%d x %d)\n", m->hdisplay, m->vdisplay); in mach64_attach() 676 default_mode.hdisplay = width; in mach64_attach() 693 if ((width == sc->sc_my_mode->hdisplay) && in mach64_attach() 698 sc->virt_x = sc->sc_my_mode->hdisplay; in mach64_attach() 714 sc->sc_my_mode->hdisplay, sc->sc_my_mode->vdisplay, in mach64_attach() 829 ri->ri_width = sc->sc_my_mode->hdisplay; in mach64_init_screen() 846 sc->sc_my_mode->hdisplay / ri->ri_font->fontwidth); in mach64_init_screen() 932 int htotal, hdisplay, hsync_start, hsync_end; in mach64_get_mode() local [all …]
|
| /netbsd-src/sys/arch/arm/iomd/ |
| H A D | vidc20config.c | 353 if (modes[i].hdisplay == bootconfig.width + 1 in vidcvideo_coldinit() 488 (vm->htotal - vm->hsync_start + vm->hdisplay - 18) & ~1); in vidcvideo_setmode() 490 (vm->htotal - vm->hsync_start + vm->hdisplay - 12) & ~1); in vidcvideo_setmode() 506 vidcvideo_write(VIDC_DCTL, vm->hdisplay>>2 | 1<<16 | 1<<12); in vidcvideo_setmode() 508 vidcvideo_write(VIDC_DCTL, vm->hdisplay>>2 | 3<<16 | 1<<12); in vidcvideo_setmode()
|