Home
last modified time | relevance | path

Searched refs:bios_2_scratch (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/drivers/gpu/drm/radeon/
Dradeon_atombios.c4076 uint32_t bios_2_scratch, bios_6_scratch; in radeon_atom_initialize_bios_scratch_regs() local
4079 bios_2_scratch = RREG32(R600_BIOS_2_SCRATCH); in radeon_atom_initialize_bios_scratch_regs()
4082 bios_2_scratch = RREG32(RADEON_BIOS_2_SCRATCH); in radeon_atom_initialize_bios_scratch_regs()
4087 bios_2_scratch &= ~ATOM_S2_VRI_BRIGHT_ENABLE; in radeon_atom_initialize_bios_scratch_regs()
4094 bios_2_scratch &= ~ATOM_S2_DEVICE_DPMS_STATE; in radeon_atom_initialize_bios_scratch_regs()
4097 WREG32(R600_BIOS_2_SCRATCH, bios_2_scratch); in radeon_atom_initialize_bios_scratch_regs()
4100 WREG32(RADEON_BIOS_2_SCRATCH, bios_2_scratch); in radeon_atom_initialize_bios_scratch_regs()
4407 uint32_t bios_2_scratch; in radeon_atombios_encoder_dpms_scratch_regs() local
4413 bios_2_scratch = RREG32(R600_BIOS_2_SCRATCH); in radeon_atombios_encoder_dpms_scratch_regs()
4415 bios_2_scratch = RREG32(RADEON_BIOS_2_SCRATCH); in radeon_atombios_encoder_dpms_scratch_regs()
[all …]
Datombios_encoders.c42 u32 bios_2_scratch; in radeon_atom_get_backlight_level_from_reg() local
45 bios_2_scratch = RREG32(R600_BIOS_2_SCRATCH); in radeon_atom_get_backlight_level_from_reg()
47 bios_2_scratch = RREG32(RADEON_BIOS_2_SCRATCH); in radeon_atom_get_backlight_level_from_reg()
49 backlight_level = ((bios_2_scratch & ATOM_S2_CURRENT_BL_LEVEL_MASK) >> in radeon_atom_get_backlight_level_from_reg()
59 u32 bios_2_scratch; in radeon_atom_set_backlight_level_to_reg() local
62 bios_2_scratch = RREG32(R600_BIOS_2_SCRATCH); in radeon_atom_set_backlight_level_to_reg()
64 bios_2_scratch = RREG32(RADEON_BIOS_2_SCRATCH); in radeon_atom_set_backlight_level_to_reg()
66 bios_2_scratch &= ~ATOM_S2_CURRENT_BL_LEVEL_MASK; in radeon_atom_set_backlight_level_to_reg()
67 bios_2_scratch |= ((backlight_level << ATOM_S2_CURRENT_BL_LEVEL_SHIFT) & in radeon_atom_set_backlight_level_to_reg()
71 WREG32(R600_BIOS_2_SCRATCH, bios_2_scratch); in radeon_atom_set_backlight_level_to_reg()
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Datombios_encoders.c41 u32 bios_2_scratch; in amdgpu_atombios_encoder_get_backlight_level_from_reg() local
43 bios_2_scratch = RREG32(mmBIOS_SCRATCH_2); in amdgpu_atombios_encoder_get_backlight_level_from_reg()
45 backlight_level = ((bios_2_scratch & ATOM_S2_CURRENT_BL_LEVEL_MASK) >> in amdgpu_atombios_encoder_get_backlight_level_from_reg()
55 u32 bios_2_scratch; in amdgpu_atombios_encoder_set_backlight_level_to_reg() local
57 bios_2_scratch = RREG32(mmBIOS_SCRATCH_2); in amdgpu_atombios_encoder_set_backlight_level_to_reg()
59 bios_2_scratch &= ~ATOM_S2_CURRENT_BL_LEVEL_MASK; in amdgpu_atombios_encoder_set_backlight_level_to_reg()
60 bios_2_scratch |= ((backlight_level << ATOM_S2_CURRENT_BL_LEVEL_SHIFT) & in amdgpu_atombios_encoder_set_backlight_level_to_reg()
63 WREG32(mmBIOS_SCRATCH_2, bios_2_scratch); in amdgpu_atombios_encoder_set_backlight_level_to_reg()
Damdgpu_atombios.c1705 uint32_t bios_2_scratch, bios_6_scratch; in amdgpu_atombios_scratch_regs_init() local
1709 bios_2_scratch = RREG32(adev->bios_scratch_reg_offset + 2); in amdgpu_atombios_scratch_regs_init()
1713 bios_2_scratch &= ~ATOM_S2_VRI_BRIGHT_ENABLE; in amdgpu_atombios_scratch_regs_init()
1719 bios_2_scratch &= ~ATOM_S2_DEVICE_DPMS_STATE; in amdgpu_atombios_scratch_regs_init()
1721 WREG32(adev->bios_scratch_reg_offset + 2, bios_2_scratch); in amdgpu_atombios_scratch_regs_init()