/freebsd/sys/dev/videomode/ |
H A D | pickmode.c | 52 if ((this->hdisplay != width) || (this->vdisplay != height) || in pick_mode_by_dotclock() 79 if ((this->hdisplay != width) || (this->vdisplay != height)) in pick_mode_by_ref() 128 aspect = (*preferred)->hdisplay * 100 / (*preferred)->vdisplay; in sort_modes() 144 if (modes[i].hdisplay > hbest) { in sort_modes() 145 hbest = modes[i].hdisplay; in sort_modes() 148 } else if (modes[i].hdisplay == hbest && in sort_modes() 154 aspect = mtemp->hdisplay * 100 / mtemp->vdisplay; in sort_modes() 171 atemp = (modes[i].hdisplay * 100 / modes[i].vdisplay); in sort_modes() 185 if (modes[i].hdisplay > hbest) { in sort_modes() 186 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 | 619 vmp->hdisplay = h_pixels; in vesagtf_mode_params() 668 vmp->hdisplay, vmp->vdisplay, vf, hf, vmp->dot_clock / 1000.0); in print_xf86_mode() 674 vmp->hdisplay, vmp->vdisplay, vf, (vmp->dot_clock / 1000.0), in print_xf86_mode() 675 vmp->hdisplay, vmp->hsync_start, vmp->hsync_end, vmp->htotal, in print_xf86_mode()
|
H A D | edid.c | 261 edid->edid_modes[i].hdisplay, in edid_print() 281 edid->edid_preferred_mode->hdisplay, in edid_print() 309 if (mode->hdisplay == edid->edid_modes[i].hdisplay && in edid_search_mode() 393 vmp->hdisplay = hactive; in edid_det_timing()
|
H A D | videomode.h | 35 int hdisplay; member
|
/freebsd/sys/dev/drm2/ |
H A D | drm_modes.c | 52 mode->hdisplay, mode->hsync_start, in drm_mode_debug_printmodeline() 83 struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, in drm_cvt_mode() argument 120 hdisplay_rnd = hdisplay - (hdisplay % CVT_H_GRANULARITY); in drm_cvt_mode() 129 drm_mode->hdisplay = hdisplay_rnd + 2 * hmargin; in drm_cvt_mode() 151 if (!(vdisplay % 3) && ((vdisplay * 4 / 3) == hdisplay)) in drm_cvt_mode() 153 else if (!(vdisplay % 9) && ((vdisplay * 16 / 9) == hdisplay)) in drm_cvt_mode() 155 else if (!(vdisplay % 10) && ((vdisplay * 16 / 10) == hdisplay)) in drm_cvt_mode() 157 else if (!(vdisplay % 4) && ((vdisplay * 5 / 4) == hdisplay)) in drm_cvt_mode() 159 else if (!(vdisplay % 9) && ((vdisplay * 15 / 9) == hdisplay)) in drm_cvt_mode() 209 hblank = drm_mode->hdisplay * hblank_percentage / in drm_cvt_mode() [all …]
|
H A D | drm_edid.c | 485 #define MODE_SIZE(m) ((m)->hdisplay * (m)->vdisplay) 537 return (mode->htotal - mode->hdisplay == 160) && in mode_is_rb() 538 (mode->hsync_end - mode->hdisplay == 80) && in mode_is_rb() 562 if (hsize != ptr->hdisplay) in drm_mode_find_dmt() 788 if (m->hdisplay == hsize && m->vdisplay == vsize && in drm_mode_std() 796 mode->hdisplay = 1366; in drm_mode_std() 876 if ((mode->hdisplay == cea_interlaced[i].w) && in drm_mode_do_interlace_quirk() 951 mode->hdisplay = hactive; in drm_mode_detailed() 952 mode->hsync_start = mode->hdisplay + hsync_offset; in drm_mode_detailed() 954 mode->htotal = mode->hdisplay + hblank; in drm_mode_detailed() [all …]
|
H A D | drm_crtc.h | 114 .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \ 134 int hdisplay; member 1043 int hdisplay, int vdisplay, int vrefresh, 1046 int hdisplay, int vdisplay, int vrefresh, 1049 int hdisplay, int vdisplay, int vrefresh, 1053 int hdisplay, int vdisplay);
|
H A D | drm_crtc.c | 1114 if (in->hdisplay > USHRT_MAX || in->hsync_start > USHRT_MAX || in drm_crtc_convert_to_umode() 1122 out->hdisplay = in->hdisplay; in drm_crtc_convert_to_umode() 1160 out->hdisplay = in->hdisplay; in drm_crtc_convert_umode() 1904 int hdisplay, vdisplay; in drm_mode_setcrtc() local 1940 hdisplay = mode->hdisplay; in drm_mode_setcrtc() 1946 vdisplay = hdisplay; in drm_mode_setcrtc() 1947 hdisplay = tmp; in drm_mode_setcrtc() 1950 if (hdisplay > fb->width || in drm_mode_setcrtc() 1952 crtc_req->x > fb->width - hdisplay || in drm_mode_setcrtc() 1956 hdisplay, vdisplay, crtc_req->x, crtc_req->y, in drm_mode_setcrtc() [all …]
|
H A D | drm_fb_helper.c | 899 if (desired_mode->hdisplay < sizes.fb_width) in drm_fb_helper_single_fb_probe() 900 sizes.fb_width = desired_mode->hdisplay; in drm_fb_helper_single_fb_probe() 903 if (desired_mode->hdisplay > sizes.surface_width) in drm_fb_helper_single_fb_probe() 904 sizes.surface_width = desired_mode->hdisplay; in drm_fb_helper_single_fb_probe() 1077 if (mode->hdisplay != cmdline_mode->xres || in drm_pick_cmdline_mode()
|
H A D | drm_mode.h | 88 __u16 hdisplay, hsync_start, hsync_end, htotal, hskew; member
|
/freebsd/sys/dev/usb/video/ |
H A D | udl.c | 242 return ((uint32_t)udl_modes[i].hdisplay * in udl_get_fb_size() 251 return (udl_modes[i].hdisplay); in udl_get_fb_width() 746 udl_lookup_mode(uint16_t hdisplay, uint16_t vdisplay, uint8_t hz, in udl_lookup_mode() argument 755 if ((udl_modes[idx].hdisplay == hdisplay) && in udl_lookup_mode() 767 if ((udl_modes[idx].hdisplay == hdisplay) && in udl_lookup_mode() 1073 mode.hdisplay = in udl_select_mode() 1074 sc->sc_edid_info.edid_preferred_mode->hdisplay; in udl_select_mode() 1077 index = udl_lookup_mode(mode.hdisplay, mode.vdisplay, mode.hz, in udl_select_mode() 1095 mode.hdisplay = in udl_select_mode() 1096 sc->sc_edid_info.edid_modes[i].hdisplay; in udl_select_mode() [all …]
|
H A D | udl.h | 275 uint16_t hdisplay; member
|
/freebsd/sys/arm/freescale/imx/ |
H A D | imx6_ipu.c | 64 #define MODE_HFP(mode) ((mode)->hsync_start - (mode)->hdisplay) 717 sc->sc_mode->hdisplay, DI_SYNC_COUNTER(DI_COUNTER_AD_0), in ipu_config_timing() 757 IPU_WRITE4(sc, DC_DISP_CONF2(di), sc->sc_mode->hdisplay); in ipu_config_timing() 872 stride = sc->sc_mode->hdisplay * MODE_BPP / 8; in ipu_init_buffer() 877 CH_PARAM_SET_FW(¶m, sc->sc_mode->hdisplay - 1); in ipu_init_buffer() 985 dma_size = round_page(sc->sc_mode->hdisplay * sc->sc_mode->vdisplay * (MODE_BPP / 8)); in ipu_init() 1020 sc->sc_fb_size = sc->sc_mode->hdisplay * sc->sc_mode->vdisplay * MODE_BPP / 8; in ipu_init() 1044 sc->sc_fb_info.fb_stride = sc->sc_mode->hdisplay * MODE_BPP / 8; in ipu_init() 1045 sc->sc_fb_info.fb_width = sc->sc_mode->hdisplay; in ipu_init() 1146 videomode->hdisplay, videomode->vdisplay); in ipu_hdmi_event()
|
/freebsd/sys/arm/ti/am335x/ |
H A D | am335x_lcd.c | 191 #define MODE_HFP(mode) ((mode)->hsync_start - (mode)->hdisplay) 314 if (mode->hdisplay & 0xf) in am335x_mode_is_valid() 341 if (mode->vdisplay*mode->hdisplay*am335x_mode_vrefresh(mode) in am335x_mode_is_valid() 894 device_printf(sc->sc_dev, "detected videomode: %dx%d @ %dKHz\n", videomode->hdisplay, in am335x_lcd_hdmi_event() 897 sc->sc_panel.panel_width = videomode->hdisplay; in am335x_lcd_hdmi_event() 899 sc->sc_panel.panel_hfp = videomode->hsync_start - videomode->hdisplay; in am335x_lcd_hdmi_event()
|
H A D | tda19988.c | 439 hs_pix_stop = mode->hsync_end - mode->hdisplay; in tda19988_init_encoder() 440 hs_pix_start = mode->hsync_start - mode->hdisplay; in tda19988_init_encoder() 443 de_start = mode->htotal - mode->hdisplay; in tda19988_init_encoder()
|
/freebsd/sys/dev/hdmi/ |
H A D | dwc_hdmi.c | 147 WR1(sc, HDMI_FC_INHACTV1, sc->sc_mode.hdisplay >> 8); in dwc_hdmi_av_composer() 148 WR1(sc, HDMI_FC_INHACTV0, sc->sc_mode.hdisplay); in dwc_hdmi_av_composer() 155 hblank = sc->sc_mode.htotal - sc->sc_mode.hdisplay; in dwc_hdmi_av_composer() 164 hfp = sc->sc_mode.hsync_start - sc->sc_mode.hdisplay; in dwc_hdmi_av_composer()
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | fsl_diu.c | 391 sc->sc_panel.panel_width = videomode->hdisplay; in diu_attach() 393 sc->sc_panel.panel_hbp = videomode->hsync_start - videomode->hdisplay; in diu_attach()
|
/freebsd/sys/arm/nvidia/drm2/ |
H A D | tegra_dc.c | 678 ((mode->hsync_start - mode->hdisplay) << 0)); in dc_crtc_mode_set() 681 (mode->vdisplay << 16) | mode->hdisplay); in dc_crtc_mode_set() 691 win.src_w = mode->hdisplay; in dc_crtc_mode_set() 695 win.dst_w = mode->hdisplay; in dc_crtc_mode_set()
|
H A D | tegra_hdmi.c | 766 h_front_porch = mode->hsync_start - mode->hdisplay; in hdmi_enable() 808 if ((mode->hdisplay != 640) || (mode->vdisplay != 480)) in hdmi_enable()
|