Lines Matching refs:lvds_gen_cntl
50 u32 lvds_gen_cntl, tmpPixclksCntl; in radeon_bl_update_status() local
69 lvds_gen_cntl = INREG(LVDS_GEN_CNTL); in radeon_bl_update_status()
71 lvds_gen_cntl &= ~LVDS_DISPLAY_DIS; in radeon_bl_update_status()
72 if (!(lvds_gen_cntl & LVDS_BLON) || !(lvds_gen_cntl & LVDS_ON)) { in radeon_bl_update_status()
73 lvds_gen_cntl |= (rinfo->init_state.lvds_gen_cntl & LVDS_DIGON); in radeon_bl_update_status()
74 lvds_gen_cntl |= LVDS_BLON | LVDS_EN; in radeon_bl_update_status()
75 OUTREG(LVDS_GEN_CNTL, lvds_gen_cntl); in radeon_bl_update_status()
76 lvds_gen_cntl &= ~LVDS_BL_MOD_LEVEL_MASK; in radeon_bl_update_status()
77 lvds_gen_cntl |= in radeon_bl_update_status()
80 lvds_gen_cntl |= LVDS_ON; in radeon_bl_update_status()
81 lvds_gen_cntl |= (rinfo->init_state.lvds_gen_cntl & LVDS_BL_MOD_EN); in radeon_bl_update_status()
82 rinfo->pending_lvds_gen_cntl = lvds_gen_cntl; in radeon_bl_update_status()
86 lvds_gen_cntl &= ~LVDS_BL_MOD_LEVEL_MASK; in radeon_bl_update_status()
87 lvds_gen_cntl |= in radeon_bl_update_status()
90 OUTREG(LVDS_GEN_CNTL, lvds_gen_cntl); in radeon_bl_update_status()
92 rinfo->init_state.lvds_gen_cntl &= ~LVDS_STATE_MASK; in radeon_bl_update_status()
93 rinfo->init_state.lvds_gen_cntl |= rinfo->pending_lvds_gen_cntl in radeon_bl_update_status()
102 lvds_gen_cntl &= ~(LVDS_BL_MOD_LEVEL_MASK | LVDS_BL_MOD_EN); in radeon_bl_update_status()
103 lvds_gen_cntl |= (radeon_bl_get_level_brightness(pdata, 0) << in radeon_bl_update_status()
105 lvds_gen_cntl |= LVDS_DISPLAY_DIS; in radeon_bl_update_status()
106 OUTREG(LVDS_GEN_CNTL, lvds_gen_cntl); in radeon_bl_update_status()
108 lvds_gen_cntl &= ~(LVDS_ON | LVDS_EN); in radeon_bl_update_status()
109 OUTREG(LVDS_GEN_CNTL, lvds_gen_cntl); in radeon_bl_update_status()
110 lvds_gen_cntl &= ~(LVDS_DIGON); in radeon_bl_update_status()
111 rinfo->pending_lvds_gen_cntl = lvds_gen_cntl; in radeon_bl_update_status()
117 rinfo->init_state.lvds_gen_cntl &= ~LVDS_STATE_MASK; in radeon_bl_update_status()
118 rinfo->init_state.lvds_gen_cntl |= (lvds_gen_cntl & LVDS_STATE_MASK); in radeon_bl_update_status()