• Home
  • Raw
  • Download

Lines Matching refs:mode

68 static void oaktrail_lvds_dpms(struct drm_encoder *encoder, int mode)  in oaktrail_lvds_dpms()  argument
73 if (mode == DRM_MODE_DPMS_ON) in oaktrail_lvds_dpms()
82 struct drm_display_mode *mode, in oaktrail_lvds_mode_set() argument
135 if ((mode->vdisplay != adjusted_mode->crtc_vdisplay) || in oaktrail_lvds_mode_set()
136 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { in oaktrail_lvds_mode_set()
137 if ((adjusted_mode->crtc_hdisplay * mode->vdisplay) == in oaktrail_lvds_mode_set()
138 (mode->hdisplay * adjusted_mode->crtc_vdisplay)) in oaktrail_lvds_mode_set()
141 mode->vdisplay) > (mode->hdisplay * in oaktrail_lvds_mode_set()
218 struct drm_display_mode *mode = NULL; in oaktrail_lvds_get_configuration_mode() local
226 mode = kzalloc(sizeof(*mode), GFP_KERNEL); in oaktrail_lvds_get_configuration_mode()
227 if (!mode) in oaktrail_lvds_get_configuration_mode()
230 mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; in oaktrail_lvds_get_configuration_mode()
231 mode->vdisplay = (ti->vactive_hi << 8) | ti->vactive_lo; in oaktrail_lvds_get_configuration_mode()
232 mode->hsync_start = mode->hdisplay + \ in oaktrail_lvds_get_configuration_mode()
235 mode->hsync_end = mode->hsync_start + \ in oaktrail_lvds_get_configuration_mode()
238 mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ in oaktrail_lvds_get_configuration_mode()
240 mode->vsync_start = \ in oaktrail_lvds_get_configuration_mode()
241 mode->vdisplay + ((ti->vsync_offset_hi << 4) | \ in oaktrail_lvds_get_configuration_mode()
243 mode->vsync_end = \ in oaktrail_lvds_get_configuration_mode()
244 mode->vsync_start + ((ti->vsync_pulse_width_hi << 4) | \ in oaktrail_lvds_get_configuration_mode()
246 mode->vtotal = mode->vdisplay + \ in oaktrail_lvds_get_configuration_mode()
248 mode->clock = ti->pixel_clock * 10; in oaktrail_lvds_get_configuration_mode()
250 pr_info("hdisplay is %d\n", mode->hdisplay); in oaktrail_lvds_get_configuration_mode()
251 pr_info("vdisplay is %d\n", mode->vdisplay); in oaktrail_lvds_get_configuration_mode()
252 pr_info("HSS is %d\n", mode->hsync_start); in oaktrail_lvds_get_configuration_mode()
253 pr_info("HSE is %d\n", mode->hsync_end); in oaktrail_lvds_get_configuration_mode()
254 pr_info("htotal is %d\n", mode->htotal); in oaktrail_lvds_get_configuration_mode()
255 pr_info("VSS is %d\n", mode->vsync_start); in oaktrail_lvds_get_configuration_mode()
256 pr_info("VSE is %d\n", mode->vsync_end); in oaktrail_lvds_get_configuration_mode()
257 pr_info("vtotal is %d\n", mode->vtotal); in oaktrail_lvds_get_configuration_mode()
258 pr_info("clock is %d\n", mode->clock); in oaktrail_lvds_get_configuration_mode()
260 mode_dev->panel_fixed_mode = mode; in oaktrail_lvds_get_configuration_mode()