Lines Matching refs:mode_dev

87 	struct psb_intel_mode_device *mode_dev = &dev_priv->mode_dev;  in oaktrail_lvds_mode_set()  local
109 if (mode_dev->panel_wants_dither || dev_priv->lvds_dither) in oaktrail_lvds_mode_set()
161 struct psb_intel_mode_device *mode_dev = &dev_priv->mode_dev; in oaktrail_lvds_prepare() local
166 mode_dev->saveBLC_PWM_CTL = REG_READ(BLC_PWM_CTL); in oaktrail_lvds_prepare()
167 mode_dev->backlight_duty_cycle = (mode_dev->saveBLC_PWM_CTL & in oaktrail_lvds_prepare()
197 struct psb_intel_mode_device *mode_dev = &dev_priv->mode_dev; in oaktrail_lvds_commit() local
199 if (mode_dev->backlight_duty_cycle == 0) in oaktrail_lvds_commit()
200 mode_dev->backlight_duty_cycle = in oaktrail_lvds_commit()
216 struct psb_intel_mode_device *mode_dev) in oaktrail_lvds_get_configuration_mode() argument
222 mode_dev->panel_fixed_mode = NULL; in oaktrail_lvds_get_configuration_mode()
260 mode_dev->panel_fixed_mode = mode; in oaktrail_lvds_get_configuration_mode()
264 if (mode_dev->panel_fixed_mode == NULL && mode_dev->vbt_mode) in oaktrail_lvds_get_configuration_mode()
265 mode_dev->panel_fixed_mode = drm_mode_duplicate(dev, in oaktrail_lvds_get_configuration_mode()
266 mode_dev->vbt_mode); in oaktrail_lvds_get_configuration_mode()
269 if (mode_dev->panel_fixed_mode == NULL) in oaktrail_lvds_get_configuration_mode()
271 mode_dev->panel_fixed_mode = in oaktrail_lvds_get_configuration_mode()
276 if (mode_dev->panel_fixed_mode == NULL) in oaktrail_lvds_get_configuration_mode()
279 drm_mode_set_name(mode_dev->panel_fixed_mode); in oaktrail_lvds_get_configuration_mode()
280 drm_mode_set_crtcinfo(mode_dev->panel_fixed_mode, 0); in oaktrail_lvds_get_configuration_mode()
292 struct psb_intel_mode_device *mode_dev) in oaktrail_lvds_init() argument
343 mode_dev->panel_wants_dither = false; in oaktrail_lvds_init()
345 mode_dev->panel_wants_dither = (dev_priv->gct_data. in oaktrail_lvds_init()
348 mode_dev->panel_wants_dither = 1; in oaktrail_lvds_init()
393 mode_dev->panel_fixed_mode = in oaktrail_lvds_init()
404 oaktrail_lvds_get_configuration_mode(dev, mode_dev); in oaktrail_lvds_init()
406 if (mode_dev->panel_fixed_mode) { in oaktrail_lvds_init()
407 mode_dev->panel_fixed_mode->type |= DRM_MODE_TYPE_PREFERRED; in oaktrail_lvds_init()
412 if (!mode_dev->panel_fixed_mode) { in oaktrail_lvds_init()