Home
last modified time | relevance | path

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

/netbsd-src/sys/external/bsd/drm2/dist/drm/radeon/
H A Dradeon_atombios.c4074 uint32_t bios_2_scratch, bios_6_scratch; in radeon_atom_initialize_bios_scratch_regs() local
4077 bios_2_scratch = RREG32(R600_BIOS_2_SCRATCH); in radeon_atom_initialize_bios_scratch_regs()
4080 bios_2_scratch = RREG32(RADEON_BIOS_2_SCRATCH); in radeon_atom_initialize_bios_scratch_regs()
4085 bios_2_scratch &= ~ATOM_S2_VRI_BRIGHT_ENABLE; in radeon_atom_initialize_bios_scratch_regs()
4092 bios_2_scratch &= ~ATOM_S2_DEVICE_DPMS_STATE; in radeon_atom_initialize_bios_scratch_regs()
4095 WREG32(R600_BIOS_2_SCRATCH, bios_2_scratch); in radeon_atom_initialize_bios_scratch_regs()
4098 WREG32(RADEON_BIOS_2_SCRATCH, bios_2_scratch); in radeon_atom_initialize_bios_scratch_regs()
4405 uint32_t bios_2_scratch; in radeon_atombios_encoder_dpms_scratch_regs() local
4411 bios_2_scratch = RREG32(R600_BIOS_2_SCRATCH); in radeon_atombios_encoder_dpms_scratch_regs()
4413 bios_2_scratch = RREG32(RADEON_BIOS_2_SCRATCH); in radeon_atombios_encoder_dpms_scratch_regs()
[all …]
H A Dradeon_atombios_encoders.c51 u32 bios_2_scratch; in radeon_atom_get_backlight_level_from_reg() local
54 bios_2_scratch = RREG32(R600_BIOS_2_SCRATCH); in radeon_atom_get_backlight_level_from_reg()
56 bios_2_scratch = RREG32(RADEON_BIOS_2_SCRATCH); in radeon_atom_get_backlight_level_from_reg()
58 backlight_level = ((bios_2_scratch & ATOM_S2_CURRENT_BL_LEVEL_MASK) >> in radeon_atom_get_backlight_level_from_reg()
68 u32 bios_2_scratch; in radeon_atom_set_backlight_level_to_reg() local
71 bios_2_scratch = RREG32(R600_BIOS_2_SCRATCH); in radeon_atom_set_backlight_level_to_reg()
73 bios_2_scratch = RREG32(RADEON_BIOS_2_SCRATCH); in radeon_atom_set_backlight_level_to_reg()
75 bios_2_scratch &= ~ATOM_S2_CURRENT_BL_LEVEL_MASK; in radeon_atom_set_backlight_level_to_reg()
76 bios_2_scratch |= ((backlight_level << ATOM_S2_CURRENT_BL_LEVEL_SHIFT) & in radeon_atom_set_backlight_level_to_reg()
80 WREG32(R600_BIOS_2_SCRATCH, bios_2_scratch); in radeon_atom_set_backlight_level_to_reg()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_atombios_encoders.c49 u32 bios_2_scratch; in amdgpu_atombios_encoder_get_backlight_level_from_reg() local
51 bios_2_scratch = RREG32(mmBIOS_SCRATCH_2); in amdgpu_atombios_encoder_get_backlight_level_from_reg()
53 backlight_level = ((bios_2_scratch & ATOM_S2_CURRENT_BL_LEVEL_MASK) >> in amdgpu_atombios_encoder_get_backlight_level_from_reg()
63 u32 bios_2_scratch; in amdgpu_atombios_encoder_set_backlight_level_to_reg() local
65 bios_2_scratch = RREG32(mmBIOS_SCRATCH_2); in amdgpu_atombios_encoder_set_backlight_level_to_reg()
67 bios_2_scratch &= ~ATOM_S2_CURRENT_BL_LEVEL_MASK; in amdgpu_atombios_encoder_set_backlight_level_to_reg()
68 bios_2_scratch |= ((backlight_level << ATOM_S2_CURRENT_BL_LEVEL_SHIFT) & in amdgpu_atombios_encoder_set_backlight_level_to_reg()
71 WREG32(mmBIOS_SCRATCH_2, bios_2_scratch); in amdgpu_atombios_encoder_set_backlight_level_to_reg()
H A Damdgpu_atombios.c1697 uint32_t bios_2_scratch, bios_6_scratch; in amdgpu_atombios_scratch_regs_init() local
1701 bios_2_scratch = RREG32(adev->bios_scratch_reg_offset + 2); in amdgpu_atombios_scratch_regs_init()
1705 bios_2_scratch &= ~ATOM_S2_VRI_BRIGHT_ENABLE; in amdgpu_atombios_scratch_regs_init()
1711 bios_2_scratch &= ~ATOM_S2_DEVICE_DPMS_STATE; in amdgpu_atombios_scratch_regs_init()
1713 WREG32(adev->bios_scratch_reg_offset + 2, bios_2_scratch); in amdgpu_atombios_scratch_regs_init()