Lines Matching refs:mode
66 const struct drm_display_mode *mode = &crtc->mode; in shmob_drm_crtc_setup_geometry() local
70 | ((mode->flags & DRM_MODE_FLAG_PVSYNC) ? 0 : LDMT1R_VPOL) in shmob_drm_crtc_setup_geometry()
71 | ((mode->flags & DRM_MODE_FLAG_PHSYNC) ? 0 : LDMT1R_HPOL) in shmob_drm_crtc_setup_geometry()
97 value = ((mode->hdisplay / 8) << 16) /* HDCN */ in shmob_drm_crtc_setup_geometry()
98 | (mode->htotal / 8); /* HTCN */ in shmob_drm_crtc_setup_geometry()
101 value = (((mode->hsync_end - mode->hsync_start) / 8) << 16) /* HSYNW */ in shmob_drm_crtc_setup_geometry()
102 | (mode->hsync_start / 8); /* HSYNP */ in shmob_drm_crtc_setup_geometry()
105 value = ((mode->hdisplay & 7) << 24) | ((mode->htotal & 7) << 16) in shmob_drm_crtc_setup_geometry()
106 | (((mode->hsync_end - mode->hsync_start) & 7) << 8) in shmob_drm_crtc_setup_geometry()
107 | (mode->hsync_start & 7); in shmob_drm_crtc_setup_geometry()
110 value = ((mode->vdisplay) << 16) /* VDLN */ in shmob_drm_crtc_setup_geometry()
111 | mode->vtotal; /* VTLN */ in shmob_drm_crtc_setup_geometry()
114 value = ((mode->vsync_end - mode->vsync_start) << 16) /* VSYNW */ in shmob_drm_crtc_setup_geometry()
115 | mode->vsync_start; /* VSYNP */ in shmob_drm_crtc_setup_geometry()
324 static void shmob_drm_crtc_dpms(struct drm_crtc *crtc, int mode) in shmob_drm_crtc_dpms() argument
328 if (scrtc->dpms == mode) in shmob_drm_crtc_dpms()
331 if (mode == DRM_MODE_DPMS_ON) in shmob_drm_crtc_dpms()
336 scrtc->dpms = mode; in shmob_drm_crtc_dpms()
345 struct drm_display_mode *mode, in shmob_drm_crtc_mode_set() argument
501 static void shmob_drm_encoder_dpms(struct drm_encoder *encoder, int mode) in shmob_drm_encoder_dpms() argument
507 if (senc->dpms == mode) in shmob_drm_encoder_dpms()
510 shmob_drm_backlight_dpms(scon, mode); in shmob_drm_encoder_dpms()
512 senc->dpms = mode; in shmob_drm_encoder_dpms()
516 const struct drm_display_mode *mode, in shmob_drm_encoder_mode_fixup() argument
543 struct drm_display_mode *mode, in shmob_drm_encoder_mode_set() argument
591 struct drm_display_mode *mode; in shmob_drm_connector_get_modes() local
593 mode = drm_mode_create(connector->dev); in shmob_drm_connector_get_modes()
594 if (mode == NULL) in shmob_drm_connector_get_modes()
597 mode->type = DRM_MODE_TYPE_PREFERRED | DRM_MODE_TYPE_DRIVER; in shmob_drm_connector_get_modes()
598 mode->clock = sdev->pdata->panel.mode.clock; in shmob_drm_connector_get_modes()
599 mode->hdisplay = sdev->pdata->panel.mode.hdisplay; in shmob_drm_connector_get_modes()
600 mode->hsync_start = sdev->pdata->panel.mode.hsync_start; in shmob_drm_connector_get_modes()
601 mode->hsync_end = sdev->pdata->panel.mode.hsync_end; in shmob_drm_connector_get_modes()
602 mode->htotal = sdev->pdata->panel.mode.htotal; in shmob_drm_connector_get_modes()
603 mode->vdisplay = sdev->pdata->panel.mode.vdisplay; in shmob_drm_connector_get_modes()
604 mode->vsync_start = sdev->pdata->panel.mode.vsync_start; in shmob_drm_connector_get_modes()
605 mode->vsync_end = sdev->pdata->panel.mode.vsync_end; in shmob_drm_connector_get_modes()
606 mode->vtotal = sdev->pdata->panel.mode.vtotal; in shmob_drm_connector_get_modes()
607 mode->flags = sdev->pdata->panel.mode.flags; in shmob_drm_connector_get_modes()
609 drm_mode_set_name(mode); in shmob_drm_connector_get_modes()
610 drm_mode_probed_add(connector, mode); in shmob_drm_connector_get_modes()