Lines Matching refs:bios_2_scratch
49 u32 bios_2_scratch; in radeon_atom_get_backlight_level_from_reg() local
52 bios_2_scratch = RREG32(R600_BIOS_2_SCRATCH); in radeon_atom_get_backlight_level_from_reg()
54 bios_2_scratch = RREG32(RADEON_BIOS_2_SCRATCH); in radeon_atom_get_backlight_level_from_reg()
56 backlight_level = ((bios_2_scratch & ATOM_S2_CURRENT_BL_LEVEL_MASK) >> in radeon_atom_get_backlight_level_from_reg()
66 u32 bios_2_scratch; in radeon_atom_set_backlight_level_to_reg() local
69 bios_2_scratch = RREG32(R600_BIOS_2_SCRATCH); in radeon_atom_set_backlight_level_to_reg()
71 bios_2_scratch = RREG32(RADEON_BIOS_2_SCRATCH); in radeon_atom_set_backlight_level_to_reg()
73 bios_2_scratch &= ~ATOM_S2_CURRENT_BL_LEVEL_MASK; in radeon_atom_set_backlight_level_to_reg()
74 bios_2_scratch |= ((backlight_level << ATOM_S2_CURRENT_BL_LEVEL_SHIFT) & in radeon_atom_set_backlight_level_to_reg()
78 WREG32(R600_BIOS_2_SCRATCH, bios_2_scratch); in radeon_atom_set_backlight_level_to_reg()
80 WREG32(RADEON_BIOS_2_SCRATCH, bios_2_scratch); in radeon_atom_set_backlight_level_to_reg()