Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/gpu/drm/radeon/
Dradeon_atombios.c4073 uint32_t bios_2_scratch, bios_6_scratch; in radeon_atom_initialize_bios_scratch_regs() local
4076 bios_2_scratch = RREG32(R600_BIOS_2_SCRATCH); in radeon_atom_initialize_bios_scratch_regs()
4079 bios_2_scratch = RREG32(RADEON_BIOS_2_SCRATCH); in radeon_atom_initialize_bios_scratch_regs()
4084 bios_2_scratch &= ~ATOM_S2_VRI_BRIGHT_ENABLE; in radeon_atom_initialize_bios_scratch_regs()
4091 bios_2_scratch &= ~ATOM_S2_DEVICE_DPMS_STATE; in radeon_atom_initialize_bios_scratch_regs()
4094 WREG32(R600_BIOS_2_SCRATCH, bios_2_scratch); in radeon_atom_initialize_bios_scratch_regs()
4097 WREG32(RADEON_BIOS_2_SCRATCH, bios_2_scratch); in radeon_atom_initialize_bios_scratch_regs()
4404 uint32_t bios_2_scratch; in radeon_atombios_encoder_dpms_scratch_regs() local
4410 bios_2_scratch = RREG32(R600_BIOS_2_SCRATCH); in radeon_atombios_encoder_dpms_scratch_regs()
4412 bios_2_scratch = RREG32(RADEON_BIOS_2_SCRATCH); in radeon_atombios_encoder_dpms_scratch_regs()
[all …]
Datombios_encoders.c47 u32 bios_2_scratch; in radeon_atom_get_backlight_level_from_reg() local
50 bios_2_scratch = RREG32(R600_BIOS_2_SCRATCH); in radeon_atom_get_backlight_level_from_reg()
52 bios_2_scratch = RREG32(RADEON_BIOS_2_SCRATCH); in radeon_atom_get_backlight_level_from_reg()
54 backlight_level = ((bios_2_scratch & ATOM_S2_CURRENT_BL_LEVEL_MASK) >> in radeon_atom_get_backlight_level_from_reg()
64 u32 bios_2_scratch; in radeon_atom_set_backlight_level_to_reg() local
67 bios_2_scratch = RREG32(R600_BIOS_2_SCRATCH); in radeon_atom_set_backlight_level_to_reg()
69 bios_2_scratch = RREG32(RADEON_BIOS_2_SCRATCH); in radeon_atom_set_backlight_level_to_reg()
71 bios_2_scratch &= ~ATOM_S2_CURRENT_BL_LEVEL_MASK; in radeon_atom_set_backlight_level_to_reg()
72 bios_2_scratch |= ((backlight_level << ATOM_S2_CURRENT_BL_LEVEL_SHIFT) & in radeon_atom_set_backlight_level_to_reg()
76 WREG32(R600_BIOS_2_SCRATCH, bios_2_scratch); in radeon_atom_set_backlight_level_to_reg()
[all …]
/linux-5.19.10/drivers/gpu/drm/amd/amdgpu/
Datombios_encoders.c44 u32 bios_2_scratch; in amdgpu_atombios_encoder_get_backlight_level_from_reg() local
46 bios_2_scratch = RREG32(mmBIOS_SCRATCH_2); in amdgpu_atombios_encoder_get_backlight_level_from_reg()
48 backlight_level = ((bios_2_scratch & ATOM_S2_CURRENT_BL_LEVEL_MASK) >> in amdgpu_atombios_encoder_get_backlight_level_from_reg()
58 u32 bios_2_scratch; in amdgpu_atombios_encoder_set_backlight_level_to_reg() local
60 bios_2_scratch = RREG32(mmBIOS_SCRATCH_2); in amdgpu_atombios_encoder_set_backlight_level_to_reg()
62 bios_2_scratch &= ~ATOM_S2_CURRENT_BL_LEVEL_MASK; in amdgpu_atombios_encoder_set_backlight_level_to_reg()
63 bios_2_scratch |= ((backlight_level << ATOM_S2_CURRENT_BL_LEVEL_SHIFT) & in amdgpu_atombios_encoder_set_backlight_level_to_reg()
66 WREG32(mmBIOS_SCRATCH_2, bios_2_scratch); in amdgpu_atombios_encoder_set_backlight_level_to_reg()
Damdgpu_atombios.c1541 uint32_t bios_2_scratch, bios_6_scratch; in amdgpu_atombios_scratch_regs_init() local
1545 bios_2_scratch = RREG32(adev->bios_scratch_reg_offset + 2); in amdgpu_atombios_scratch_regs_init()
1549 bios_2_scratch &= ~ATOM_S2_VRI_BRIGHT_ENABLE; in amdgpu_atombios_scratch_regs_init()
1555 bios_2_scratch &= ~ATOM_S2_DEVICE_DPMS_STATE; in amdgpu_atombios_scratch_regs_init()
1557 WREG32(adev->bios_scratch_reg_offset + 2, bios_2_scratch); in amdgpu_atombios_scratch_regs_init()