Lines Matching refs:lvds_priv
258 struct psb_intel_lvds_priv *lvds_priv = in psb_intel_lvds_save() local
261 lvds_priv->savePP_ON = REG_READ(LVDSPP_ON); in psb_intel_lvds_save()
262 lvds_priv->savePP_OFF = REG_READ(LVDSPP_OFF); in psb_intel_lvds_save()
263 lvds_priv->saveLVDS = REG_READ(LVDS); in psb_intel_lvds_save()
264 lvds_priv->savePP_CONTROL = REG_READ(PP_CONTROL); in psb_intel_lvds_save()
265 lvds_priv->savePP_CYCLE = REG_READ(PP_CYCLE); in psb_intel_lvds_save()
267 lvds_priv->saveBLC_PWM_CTL = REG_READ(BLC_PWM_CTL); in psb_intel_lvds_save()
268 lvds_priv->savePFIT_CONTROL = REG_READ(PFIT_CONTROL); in psb_intel_lvds_save()
269 lvds_priv->savePFIT_PGM_RATIOS = REG_READ(PFIT_PGM_RATIOS); in psb_intel_lvds_save()
284 lvds_priv->savePP_ON, in psb_intel_lvds_save()
285 lvds_priv->savePP_OFF, in psb_intel_lvds_save()
286 lvds_priv->saveLVDS, in psb_intel_lvds_save()
287 lvds_priv->savePP_CONTROL, in psb_intel_lvds_save()
288 lvds_priv->savePP_CYCLE, in psb_intel_lvds_save()
289 lvds_priv->saveBLC_PWM_CTL); in psb_intel_lvds_save()
297 struct psb_intel_lvds_priv *lvds_priv = in psb_intel_lvds_restore() local
301 lvds_priv->savePP_ON, in psb_intel_lvds_restore()
302 lvds_priv->savePP_OFF, in psb_intel_lvds_restore()
303 lvds_priv->saveLVDS, in psb_intel_lvds_restore()
304 lvds_priv->savePP_CONTROL, in psb_intel_lvds_restore()
305 lvds_priv->savePP_CYCLE, in psb_intel_lvds_restore()
306 lvds_priv->saveBLC_PWM_CTL); in psb_intel_lvds_restore()
308 REG_WRITE(BLC_PWM_CTL, lvds_priv->saveBLC_PWM_CTL); in psb_intel_lvds_restore()
309 REG_WRITE(PFIT_CONTROL, lvds_priv->savePFIT_CONTROL); in psb_intel_lvds_restore()
310 REG_WRITE(PFIT_PGM_RATIOS, lvds_priv->savePFIT_PGM_RATIOS); in psb_intel_lvds_restore()
311 REG_WRITE(LVDSPP_ON, lvds_priv->savePP_ON); in psb_intel_lvds_restore()
312 REG_WRITE(LVDSPP_OFF, lvds_priv->savePP_OFF); in psb_intel_lvds_restore()
314 REG_WRITE(PP_CYCLE, lvds_priv->savePP_CYCLE); in psb_intel_lvds_restore()
315 REG_WRITE(PP_CONTROL, lvds_priv->savePP_CONTROL); in psb_intel_lvds_restore()
316 REG_WRITE(LVDS, lvds_priv->saveLVDS); in psb_intel_lvds_restore()
318 if (lvds_priv->savePP_CONTROL & POWER_TARGET_ON) { in psb_intel_lvds_restore()
497 struct psb_intel_lvds_priv *lvds_priv = gma_encoder->dev_priv; in psb_intel_lvds_get_modes() local
501 ret = psb_intel_ddc_get_modes(connector, &lvds_priv->i2c_bus->adapter); in psb_intel_lvds_get_modes()
526 struct psb_intel_lvds_priv *lvds_priv = gma_encoder->dev_priv; in psb_intel_lvds_destroy() local
528 psb_intel_i2c_destroy(lvds_priv->ddc_bus); in psb_intel_lvds_destroy()
648 struct psb_intel_lvds_priv *lvds_priv; in psb_intel_lvds_init() local
669 lvds_priv = kzalloc(sizeof(struct psb_intel_lvds_priv), GFP_KERNEL); in psb_intel_lvds_init()
670 if (!lvds_priv) { in psb_intel_lvds_init()
675 gma_encoder->dev_priv = lvds_priv; in psb_intel_lvds_init()
712 lvds_priv->i2c_bus = psb_intel_i2c_create(dev, GPIOB, "LVDSBLC_B"); in psb_intel_lvds_init()
713 if (!lvds_priv->i2c_bus) { in psb_intel_lvds_init()
718 lvds_priv->i2c_bus->slave_addr = 0x2C; in psb_intel_lvds_init()
719 dev_priv->lvds_i2c_bus = lvds_priv->i2c_bus; in psb_intel_lvds_init()
732 lvds_priv->ddc_bus = psb_intel_i2c_create(dev, GPIOC, "LVDSDDC_C"); in psb_intel_lvds_init()
733 if (!lvds_priv->ddc_bus) { in psb_intel_lvds_init()
744 psb_intel_ddc_get_modes(connector, &lvds_priv->ddc_bus->adapter); in psb_intel_lvds_init()
804 psb_intel_i2c_destroy(lvds_priv->ddc_bus); in psb_intel_lvds_init()
806 psb_intel_i2c_destroy(lvds_priv->i2c_bus); in psb_intel_lvds_init()