Home
last modified time | relevance | path

Searched refs:native_mode (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_encoders.c168 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_panel_mode_fixup() local
169 unsigned int hblank = native_mode->htotal - native_mode->hdisplay; in amdgpu_panel_mode_fixup()
170 unsigned int vblank = native_mode->vtotal - native_mode->vdisplay; in amdgpu_panel_mode_fixup()
171 unsigned int hover = native_mode->hsync_start - native_mode->hdisplay; in amdgpu_panel_mode_fixup()
172 unsigned int vover = native_mode->vsync_start - native_mode->vdisplay; in amdgpu_panel_mode_fixup()
173 unsigned int hsync_width = native_mode->hsync_end - native_mode->hsync_start; in amdgpu_panel_mode_fixup()
174 unsigned int vsync_width = native_mode->vsync_end - native_mode->vsync_start; in amdgpu_panel_mode_fixup()
176 adjusted_mode->clock = native_mode->clock; in amdgpu_panel_mode_fixup()
177 adjusted_mode->flags = native_mode->flags; in amdgpu_panel_mode_fixup()
179 adjusted_mode->hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup()
[all …]
H A Damdgpu_connectors.c349 amdgpu_encoder->native_mode = *preferred_mode; in amdgpu_get_native_mode()
351 amdgpu_encoder->native_mode.clock = 0; in amdgpu_get_native_mode()
361 struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode; in amdgpu_connector_lcd_native_mode() local
363 if (native_mode->hdisplay != 0 && in amdgpu_connector_lcd_native_mode()
364 native_mode->vdisplay != 0 && in amdgpu_connector_lcd_native_mode()
365 native_mode->clock != 0) { in amdgpu_connector_lcd_native_mode()
366 mode = drm_mode_duplicate(dev, native_mode); in amdgpu_connector_lcd_native_mode()
374 } else if (native_mode->hdisplay != 0 && in amdgpu_connector_lcd_native_mode()
375 native_mode->vdisplay != 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()
[all …]
H A Datombios_encoders.c1988 lvds->native_mode.clock = in amdgpu_atombios_encoder_get_lcd_info()
1990 lvds->native_mode.hdisplay = in amdgpu_atombios_encoder_get_lcd_info()
1992 lvds->native_mode.vdisplay = in amdgpu_atombios_encoder_get_lcd_info()
1994 lvds->native_mode.htotal = lvds->native_mode.hdisplay + in amdgpu_atombios_encoder_get_lcd_info()
1996 lvds->native_mode.hsync_start = lvds->native_mode.hdisplay + in amdgpu_atombios_encoder_get_lcd_info()
1998 lvds->native_mode.hsync_end = lvds->native_mode.hsync_start + in amdgpu_atombios_encoder_get_lcd_info()
2000 lvds->native_mode.vtotal = lvds->native_mode.vdisplay + in amdgpu_atombios_encoder_get_lcd_info()
2002 lvds->native_mode.vsync_start = lvds->native_mode.vdisplay + in amdgpu_atombios_encoder_get_lcd_info()
2004 lvds->native_mode.vsync_end = lvds->native_mode.vsync_start + in amdgpu_atombios_encoder_get_lcd_info()
2012 lvds->native_mode.flags |= DRM_MODE_FLAG_NVSYNC; in amdgpu_atombios_encoder_get_lcd_info()
[all …]
H A Damdgpu_mode.h479 struct drm_display_mode native_mode; member
525 struct drm_display_mode native_mode; member
545 struct drm_display_mode native_mode; member
H A Damdgpu_display.c1460 else if (mode->hdisplay < amdgpu_encoder->native_mode.hdisplay || in amdgpu_display_crtc_scaling_mode_fixup()
1461 mode->vdisplay < amdgpu_encoder->native_mode.vdisplay) in amdgpu_display_crtc_scaling_mode_fixup()
1466 memcpy(&amdgpu_crtc->native_mode, in amdgpu_display_crtc_scaling_mode_fixup()
1467 &amdgpu_encoder->native_mode, in amdgpu_display_crtc_scaling_mode_fixup()
1470 dst_v = amdgpu_crtc->native_mode.vdisplay; in amdgpu_display_crtc_scaling_mode_fixup()
1472 dst_h = amdgpu_crtc->native_mode.hdisplay; in amdgpu_display_crtc_scaling_mode_fixup()
/linux/drivers/gpu/drm/radeon/
H A Dradeon_encoders.c326 struct drm_display_mode *native_mode = &radeon_encoder->native_mode; in radeon_panel_mode_fixup() local
327 unsigned int hblank = native_mode->htotal - native_mode->hdisplay; in radeon_panel_mode_fixup()
328 unsigned int vblank = native_mode->vtotal - native_mode->vdisplay; in radeon_panel_mode_fixup()
329 unsigned int hover = native_mode->hsync_start - native_mode->hdisplay; in radeon_panel_mode_fixup()
330 unsigned int vover = native_mode->vsync_start - native_mode->vdisplay; in radeon_panel_mode_fixup()
331 unsigned int hsync_width = native_mode->hsync_end - native_mode->hsync_start; in radeon_panel_mode_fixup()
332 unsigned int vsync_width = native_mode->vsync_end - native_mode->vsync_start; in radeon_panel_mode_fixup()
334 adjusted_mode->clock = native_mode->clock; in radeon_panel_mode_fixup()
335 adjusted_mode->flags = native_mode->flags; in radeon_panel_mode_fixup()
338 adjusted_mode->hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup()
[all …]
H A Dradeon_connectors.c365 radeon_encoder->native_mode = *preferred_mode; in radeon_get_native_mode()
367 radeon_encoder->native_mode.clock = 0; in radeon_get_native_mode()
431 struct drm_display_mode *native_mode = &radeon_encoder->native_mode; in radeon_fp_native_mode() local
433 if (native_mode->hdisplay != 0 && in radeon_fp_native_mode()
434 native_mode->vdisplay != 0 && in radeon_fp_native_mode()
435 native_mode->clock != 0) { in radeon_fp_native_mode()
436 mode = drm_mode_duplicate(dev, native_mode); in radeon_fp_native_mode()
443 } else if (native_mode->hdisplay != 0 && in radeon_fp_native_mode()
444 native_mode->vdisplay != 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()
[all …]
H A Dradeon_legacy_crtc.c66 struct drm_display_mode *native_mode = &radeon_crtc->native_mode; in radeon_legacy_rmx_mode_set() local
113 if (native_mode->hdisplay == 0 || in radeon_legacy_rmx_mode_set()
114 native_mode->vdisplay == 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()
120 if (yres > native_mode->vdisplay) in radeon_legacy_rmx_mode_set()
121 yres = native_mode->vdisplay; in radeon_legacy_rmx_mode_set()
123 if (xres == native_mode->hdisplay) in radeon_legacy_rmx_mode_set()
125 if (yres == native_mode->vdisplay) in radeon_legacy_rmx_mode_set()
137 / native_mode->hdisplay + 1; in radeon_legacy_rmx_mode_set()
[all …]
H A Dradeon_combios.c1110 lvds->native_mode.vdisplay = in radeon_legacy_get_lvds_info_from_regs()
1114 lvds->native_mode.vdisplay = in radeon_legacy_get_lvds_info_from_regs()
1118 lvds->native_mode.hdisplay = in radeon_legacy_get_lvds_info_from_regs()
1122 lvds->native_mode.hdisplay = in radeon_legacy_get_lvds_info_from_regs()
1125 if ((lvds->native_mode.hdisplay < 640) || in radeon_legacy_get_lvds_info_from_regs()
1126 (lvds->native_mode.vdisplay < 480)) { in radeon_legacy_get_lvds_info_from_regs()
1127 lvds->native_mode.hdisplay = 640; in radeon_legacy_get_lvds_info_from_regs()
1128 lvds->native_mode.vdisplay = 480; in radeon_legacy_get_lvds_info_from_regs()
1148 DRM_INFO("Panel Size %dx%d\n", lvds->native_mode.hdisplay, in radeon_legacy_get_lvds_info_from_regs()
1149 lvds->native_mode.vdisplay); in radeon_legacy_get_lvds_info_from_regs()
[all …]
H A Dradeon_atombios.c1640 lvds->native_mode.clock = in radeon_atombios_get_lvds_info()
1642 lvds->native_mode.hdisplay = in radeon_atombios_get_lvds_info()
1644 lvds->native_mode.vdisplay = in radeon_atombios_get_lvds_info()
1646 lvds->native_mode.htotal = lvds->native_mode.hdisplay + in radeon_atombios_get_lvds_info()
1648 lvds->native_mode.hsync_start = lvds->native_mode.hdisplay + in radeon_atombios_get_lvds_info()
1650 lvds->native_mode.hsync_end = lvds->native_mode.hsync_start + in radeon_atombios_get_lvds_info()
1652 lvds->native_mode.vtotal = lvds->native_mode.vdisplay + in radeon_atombios_get_lvds_info()
1654 lvds->native_mode.vsync_start = lvds->native_mode.vdisplay + in radeon_atombios_get_lvds_info()
1656 lvds->native_mode.vsync_end = lvds->native_mode.vsync_start + in radeon_atombios_get_lvds_info()
1664 lvds->native_mode.flags |= DRM_MODE_FLAG_NVSYNC; in radeon_atombios_get_lvds_info()
[all …]
H A Dradeon_mode.h344 struct drm_display_mode native_mode; member
386 struct drm_display_mode native_mode; member
430 struct drm_display_mode native_mode; member
455 struct drm_display_mode native_mode; member
H A Dradeon_display.c1706 else if (mode->hdisplay < radeon_encoder->native_mode.hdisplay || in radeon_crtc_scaling_mode_fixup()
1707 mode->vdisplay < radeon_encoder->native_mode.vdisplay) in radeon_crtc_scaling_mode_fixup()
1712 memcpy(&radeon_crtc->native_mode, in radeon_crtc_scaling_mode_fixup()
1713 &radeon_encoder->native_mode, in radeon_crtc_scaling_mode_fixup()
1716 dst_v = radeon_crtc->native_mode.vdisplay; in radeon_crtc_scaling_mode_fixup()
1718 dst_h = radeon_crtc->native_mode.hdisplay; in radeon_crtc_scaling_mode_fixup()
/linux/drivers/video/
H A Dof_display_timing.c148 struct device_node *native_mode; in of_get_display_timings() local
178 native_mode = entry; in of_get_display_timings()
196 disp->native_mode = 0; in of_get_display_timings()
221 if (native_mode == entry) in of_get_display_timings()
222 disp->native_mode = disp->num_timings; in of_get_display_timings()
232 of_node_put(native_mode); in of_get_display_timings()
236 disp->native_mode + 1); in of_get_display_timings()
241 of_node_put(native_mode); in of_get_display_timings()
H A Dof_videomode.c43 index = disp->native_mode; in of_get_videomode()
/linux/drivers/gpu/drm/nouveau/dispnv04/
H A Ddfp.c190 if (!nv_connector->native_mode || in nv04_dfp_mode_fixup()
192 mode->hdisplay > nv_connector->native_mode->hdisplay || in nv04_dfp_mode_fixup()
193 mode->vdisplay > nv_connector->native_mode->vdisplay) { in nv04_dfp_mode_fixup()
197 nv_encoder->mode = *nv_connector->native_mode; in nv04_dfp_mode_fixup()
198 adjusted_mode->clock = nv_connector->native_mode->clock; in nv04_dfp_mode_fixup()
598 if (connector && connector->native_mode) in nv04_dfp_restore()
601 connector->native_mode->clock); in nv04_dfp_restore()
/linux/include/video/
H A Ddisplay_timing.h87 unsigned int native_mode; member
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_connector.h141 struct drm_display_mode *native_mode; member
/linux/drivers/gpu/drm/nouveau/dispnv50/
H A Ddisp.c324 struct drm_display_mode *native_mode) in nv50_outp_atomic_check_view() argument
334 if (!native_mode) in nv50_outp_atomic_check_view()
345 if (mode->hdisplay == native_mode->hdisplay && in nv50_outp_atomic_check_view()
346 mode->vdisplay == native_mode->vdisplay && in nv50_outp_atomic_check_view()
349 mode = native_mode; in nv50_outp_atomic_check_view()
356 mode = native_mode; in nv50_outp_atomic_check_view()
407 nv_connector->native_mode); in nv50_outp_atomic_check()
/linux/drivers/gpu/drm/tilcdc/
H A Dtilcdc_panel.c156 if (timings->native_mode == i) in panel_connector_get_modes()