/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | radeon_asic.h | 34 uint32_t radeon_legacy_get_engine_clock(struct radeon_device *rdev); 35 void radeon_legacy_set_engine_clock(struct radeon_device *rdev, uint32_t eng_clock); 36 uint32_t radeon_legacy_get_memory_clock(struct radeon_device *rdev); 37 void radeon_legacy_set_clock_gating(struct radeon_device *rdev, int enable); 39 uint32_t radeon_atom_get_engine_clock(struct radeon_device *rdev); 40 void radeon_atom_set_engine_clock(struct radeon_device *rdev, uint32_t eng_clock); 41 uint32_t radeon_atom_get_memory_clock(struct radeon_device *rdev); 42 void radeon_atom_set_memory_clock(struct radeon_device *rdev, uint32_t mem_clock); 43 void radeon_atom_set_clock_gating(struct radeon_device *rdev, int enable); 61 int r100_init(struct radeon_device *rdev); [all …]
|
D | r600_dpm.h | 135 void r600_dpm_print_ps_status(struct radeon_device *rdev, 137 u32 r600_dpm_get_vblank_time(struct radeon_device *rdev); 138 u32 r600_dpm_get_vrefresh(struct radeon_device *rdev); 143 void r600_gfx_clockgating_enable(struct radeon_device *rdev, bool enable); 144 void r600_dynamicpm_enable(struct radeon_device *rdev, bool enable); 145 void r600_enable_thermal_protection(struct radeon_device *rdev, bool enable); 146 void r600_enable_acpi_pm(struct radeon_device *rdev); 147 void r600_enable_dynamic_pcie_gen2(struct radeon_device *rdev, bool enable); 148 bool r600_dynamicpm_enabled(struct radeon_device *rdev); 149 void r600_enable_sclk_control(struct radeon_device *rdev, bool enable); [all …]
|
D | rv770_dpm.h | 180 int rv730_populate_sclk_value(struct radeon_device *rdev, 183 int rv730_populate_mclk_value(struct radeon_device *rdev, 186 void rv730_read_clock_registers(struct radeon_device *rdev); 187 int rv730_populate_smc_acpi_state(struct radeon_device *rdev, 189 int rv730_populate_smc_initial_state(struct radeon_device *rdev, 192 void rv730_program_memory_timing_parameters(struct radeon_device *rdev, 194 void rv730_power_gating_enable(struct radeon_device *rdev, 196 void rv730_start_dpm(struct radeon_device *rdev); 197 void rv730_stop_dpm(struct radeon_device *rdev); 198 void rv730_program_dcodt(struct radeon_device *rdev, bool use_dcodt); [all …]
|
D | radeon.h | 244 struct radeon_device; 250 bool radeon_get_bios(struct radeon_device *rdev); 260 int radeon_dummy_page_init(struct radeon_device *rdev); 261 void radeon_dummy_page_fini(struct radeon_device *rdev); 286 int radeon_pm_init(struct radeon_device *rdev); 287 int radeon_pm_late_init(struct radeon_device *rdev); 288 void radeon_pm_fini(struct radeon_device *rdev); 289 void radeon_pm_compute_clocks(struct radeon_device *rdev); 290 void radeon_pm_suspend(struct radeon_device *rdev); 291 void radeon_pm_resume(struct radeon_device *rdev); [all …]
|
D | cypress_dpm.h | 113 int cypress_convert_power_level_to_smc(struct radeon_device *rdev, 117 int cypress_populate_smc_acpi_state(struct radeon_device *rdev, 119 int cypress_populate_smc_voltage_tables(struct radeon_device *rdev, 121 int cypress_populate_smc_initial_state(struct radeon_device *rdev, 124 u32 cypress_calculate_burst_time(struct radeon_device *rdev, 126 void cypress_notify_link_speed_change_before_state_change(struct radeon_device *rdev, 129 int cypress_upload_sw_state(struct radeon_device *rdev, 131 int cypress_upload_mc_reg_table(struct radeon_device *rdev, 133 void cypress_program_memory_timing_parameters(struct radeon_device *rdev, 135 void cypress_notify_link_speed_change_after_state_change(struct radeon_device *rdev, [all …]
|
D | trinity_smc.c | 29 static int trinity_notify_message_to_smu(struct radeon_device *rdev, u32 id) in trinity_notify_message_to_smu() 55 int trinity_dpm_bapm_enable(struct radeon_device *rdev, bool enable) in trinity_dpm_bapm_enable() 63 int trinity_dpm_config(struct radeon_device *rdev, bool enable) in trinity_dpm_config() 73 int trinity_dpm_force_state(struct radeon_device *rdev, u32 n) in trinity_dpm_force_state() 80 int trinity_dpm_n_levels_disabled(struct radeon_device *rdev, u32 n) in trinity_dpm_n_levels_disabled() 87 int trinity_uvd_dpm_config(struct radeon_device *rdev) in trinity_uvd_dpm_config() 92 int trinity_dpm_no_forced_level(struct radeon_device *rdev) in trinity_dpm_no_forced_level() 97 int trinity_dce_enable_voltage_adjustment(struct radeon_device *rdev, in trinity_dce_enable_voltage_adjustment() 106 int trinity_gfx_dynamic_mgpg_config(struct radeon_device *rdev) in trinity_gfx_dynamic_mgpg_config() 111 void trinity_acquire_mutex(struct radeon_device *rdev) in trinity_acquire_mutex() [all …]
|
D | sumo_dpm.h | 192 void sumo_gfx_clockgating_initialize(struct radeon_device *rdev); 193 void sumo_program_vc(struct radeon_device *rdev, u32 vrc); 194 void sumo_clear_vc(struct radeon_device *rdev); 195 void sumo_program_sstp(struct radeon_device *rdev); 196 void sumo_take_smu_control(struct radeon_device *rdev, bool enable); 197 void sumo_construct_sclk_voltage_mapping_table(struct radeon_device *rdev, 200 void sumo_construct_vid_mapping_table(struct radeon_device *rdev, 203 u32 sumo_convert_vid2_to_vid7(struct radeon_device *rdev, 207 u32 sumo_get_sleep_divider_id_from_clock(struct radeon_device *rdev, 212 void sumo_initialize_m3_arb(struct radeon_device *rdev); [all …]
|
D | rv6xx_dpm.c | 33 static u32 rv6xx_scale_count_given_unit(struct radeon_device *rdev, 43 static struct rv6xx_power_info *rv6xx_get_pi(struct radeon_device *rdev) in rv6xx_get_pi() 50 static void rv6xx_force_pcie_gen1(struct radeon_device *rdev) in rv6xx_force_pcie_gen1() 74 static void rv6xx_enable_pcie_gen2_support(struct radeon_device *rdev) in rv6xx_enable_pcie_gen2_support() 87 static void rv6xx_enable_bif_dynamic_pcie_gen2(struct radeon_device *rdev, in rv6xx_enable_bif_dynamic_pcie_gen2() 100 static void rv6xx_enable_l0s(struct radeon_device *rdev) in rv6xx_enable_l0s() 109 static void rv6xx_enable_l1(struct radeon_device *rdev) in rv6xx_enable_l1() 121 static void rv6xx_enable_pll_sleep_in_l1(struct radeon_device *rdev) in rv6xx_enable_pll_sleep_in_l1() 138 static int rv6xx_convert_clock_to_stepping(struct radeon_device *rdev, in rv6xx_convert_clock_to_stepping() 159 static void rv6xx_output_stepping(struct radeon_device *rdev, in rv6xx_output_stepping() [all …]
|
D | btc_dpm.h | 41 void btc_read_arb_registers(struct radeon_device *rdev); 42 void btc_program_mgcg_hw_sequence(struct radeon_device *rdev, 44 void btc_skip_blacklist_clocks(struct radeon_device *rdev, 47 void btc_adjust_clock_combinations(struct radeon_device *rdev, 54 void btc_apply_voltage_delta_rules(struct radeon_device *rdev, 57 bool btc_dpm_enabled(struct radeon_device *rdev); 58 int btc_reset_to_default(struct radeon_device *rdev); 59 void btc_notify_uvd_to_smc(struct radeon_device *rdev,
|
D | radeon_audio.h | 37 u32 (*endpoint_rreg)(struct radeon_device *rdev, u32 offset, u32 reg); 38 void (*endpoint_wreg)(struct radeon_device *rdev, 40 void (*enable)(struct radeon_device *rdev, 47 struct r600_audio_pin* (*get_pin)(struct radeon_device *rdev); 54 void (*set_dto)(struct radeon_device *rdev, 60 void (*set_avi_packet)(struct radeon_device *rdev, u32 offset, 69 int radeon_audio_init(struct radeon_device *rdev); 73 u32 radeon_audio_endpoint_rreg(struct radeon_device *rdev, 75 void radeon_audio_endpoint_wreg(struct radeon_device *rdev, 78 void radeon_audio_fini(struct radeon_device *rdev);
|
D | radeon_object.h | 93 struct radeon_device *rdev; in radeon_bo_gpu_offset() 139 extern int radeon_bo_create(struct radeon_device *rdev, 153 extern int radeon_bo_evict_vram(struct radeon_device *rdev); 154 extern void radeon_bo_force_delete(struct radeon_device *rdev); 155 extern int radeon_bo_init(struct radeon_device *rdev); 156 extern void radeon_bo_fini(struct radeon_device *rdev); 157 extern int radeon_bo_list_validate(struct radeon_device *rdev, 188 extern int radeon_sa_bo_manager_init(struct radeon_device *rdev, 192 extern void radeon_sa_bo_manager_fini(struct radeon_device *rdev, 194 extern int radeon_sa_bo_manager_start(struct radeon_device *rdev, [all …]
|
D | trinity_dpm.h | 122 int trinity_dpm_bapm_enable(struct radeon_device *rdev, bool enable); 123 int trinity_dpm_config(struct radeon_device *rdev, bool enable); 124 int trinity_uvd_dpm_config(struct radeon_device *rdev); 125 int trinity_dpm_force_state(struct radeon_device *rdev, u32 n); 126 int trinity_dpm_n_levels_disabled(struct radeon_device *rdev, u32 n); 127 int trinity_dpm_no_forced_level(struct radeon_device *rdev); 128 int trinity_dce_enable_voltage_adjustment(struct radeon_device *rdev, 130 int trinity_gfx_dynamic_mgpg_config(struct radeon_device *rdev); 131 void trinity_acquire_mutex(struct radeon_device *rdev); 132 void trinity_release_mutex(struct radeon_device *rdev);
|
D | trinity_dpm.c | 340 extern void vce_v1_0_enable_mgcg(struct radeon_device *rdev, bool enable); 341 static void trinity_program_clk_gating_hw_sequence(struct radeon_device *rdev, 343 static void trinity_override_dynamic_mg_powergating(struct radeon_device *rdev); 344 static void trinity_apply_state_adjust_rules(struct radeon_device *rdev, 355 static struct trinity_power_info *trinity_get_pi(struct radeon_device *rdev) in trinity_get_pi() 362 static void trinity_gfx_powergating_initialize(struct radeon_device *rdev) in trinity_gfx_powergating_initialize() 402 static void trinity_mg_clockgating_enable(struct radeon_device *rdev, in trinity_mg_clockgating_enable() 431 static void trinity_mg_clockgating_initialize(struct radeon_device *rdev) in trinity_mg_clockgating_initialize() 442 static void trinity_gfx_clockgating_enable(struct radeon_device *rdev, in trinity_gfx_clockgating_enable() 455 static void trinity_program_clk_gating_hw_sequence(struct radeon_device *rdev, in trinity_program_clk_gating_hw_sequence() [all …]
|
D | radeon_irq_kms.c | 58 struct radeon_device *rdev = dev->dev_private; in radeon_driver_irq_handler_kms() 83 struct radeon_device *rdev = container_of(work, struct radeon_device, in radeon_hotplug_work_func() 104 struct radeon_device *rdev = container_of(work, struct radeon_device, in radeon_dp_work_func() 124 struct radeon_device *rdev = dev->dev_private; in radeon_driver_irq_preinstall_kms() 156 struct radeon_device *rdev = dev->dev_private; in radeon_driver_irq_postinstall_kms() 175 struct radeon_device *rdev = dev->dev_private; in radeon_driver_irq_uninstall_kms() 208 static bool radeon_msi_ok(struct radeon_device *rdev) in radeon_msi_ok() 288 int radeon_irq_kms_init(struct radeon_device *rdev) in radeon_irq_kms_init() 336 void radeon_irq_kms_fini(struct radeon_device *rdev) in radeon_irq_kms_fini() 357 void radeon_irq_kms_sw_irq_get(struct radeon_device *rdev, int ring) in radeon_irq_kms_sw_irq_get() [all …]
|
D | sumo_dpm.c | 81 struct sumo_power_info *sumo_get_pi(struct radeon_device *rdev) in sumo_get_pi() 88 static void sumo_gfx_clockgating_enable(struct radeon_device *rdev, bool enable) in sumo_gfx_clockgating_enable() 103 static void sumo_mg_clockgating_enable(struct radeon_device *rdev, bool enable) in sumo_mg_clockgating_enable() 120 static void sumo_program_git(struct radeon_device *rdev) in sumo_program_git() 131 static void sumo_program_grsd(struct radeon_device *rdev) in sumo_program_grsd() 142 void sumo_gfx_clockgating_initialize(struct radeon_device *rdev) in sumo_gfx_clockgating_initialize() 148 static void sumo_gfx_powergating_initialize(struct radeon_device *rdev) in sumo_gfx_powergating_initialize() 274 static void sumo_gfx_powergating_enable(struct radeon_device *rdev, bool enable) in sumo_gfx_powergating_enable() 284 static int sumo_enable_clock_power_gating(struct radeon_device *rdev) in sumo_enable_clock_power_gating() 302 static void sumo_disable_clock_power_gating(struct radeon_device *rdev) in sumo_disable_clock_power_gating() [all …]
|
D | kv_dpm.c | 37 static int kv_enable_nb_dpm(struct radeon_device *rdev, 39 static void kv_init_graphics_levels(struct radeon_device *rdev); 40 static int kv_calculate_ds_divider(struct radeon_device *rdev); 41 static int kv_calculate_nbps_level_settings(struct radeon_device *rdev); 42 static int kv_calculate_dpm_settings(struct radeon_device *rdev); 43 static void kv_enable_new_levels(struct radeon_device *rdev); 44 static void kv_program_nbps_index_settings(struct radeon_device *rdev, 46 static int kv_set_enabled_level(struct radeon_device *rdev, u32 level); 47 static int kv_set_enabled_levels(struct radeon_device *rdev); 48 static int kv_force_dpm_highest(struct radeon_device *rdev); [all …]
|
D | rv770_smc.h | 190 int rv770_copy_bytes_to_smc(struct radeon_device *rdev, 193 void rv770_start_smc(struct radeon_device *rdev); 194 void rv770_reset_smc(struct radeon_device *rdev); 195 void rv770_stop_smc_clock(struct radeon_device *rdev); 196 void rv770_start_smc_clock(struct radeon_device *rdev); 197 bool rv770_is_smc_running(struct radeon_device *rdev); 198 PPSMC_Result rv770_send_msg_to_smc(struct radeon_device *rdev, PPSMC_Msg msg); 199 PPSMC_Result rv770_wait_for_smc_inactive(struct radeon_device *rdev); 200 int rv770_read_smc_sram_dword(struct radeon_device *rdev, 202 int rv770_write_smc_sram_dword(struct radeon_device *rdev, [all …]
|
D | r600_dpm.c | 143 void r600_dpm_print_ps_status(struct radeon_device *rdev, in r600_dpm_print_ps_status() 156 u32 r600_dpm_get_vblank_time(struct radeon_device *rdev) in r600_dpm_get_vblank_time() 183 u32 r600_dpm_get_vrefresh(struct radeon_device *rdev) in r600_dpm_get_vrefresh() 242 void r600_gfx_clockgating_enable(struct radeon_device *rdev, bool enable) in r600_gfx_clockgating_enable() 266 void r600_dynamicpm_enable(struct radeon_device *rdev, bool enable) in r600_dynamicpm_enable() 274 void r600_enable_thermal_protection(struct radeon_device *rdev, bool enable) in r600_enable_thermal_protection() 282 void r600_enable_acpi_pm(struct radeon_device *rdev) in r600_enable_acpi_pm() 287 void r600_enable_dynamic_pcie_gen2(struct radeon_device *rdev, bool enable) in r600_enable_dynamic_pcie_gen2() 295 bool r600_dynamicpm_enabled(struct radeon_device *rdev) in r600_dynamicpm_enabled() 303 void r600_enable_sclk_control(struct radeon_device *rdev, bool enable) in r600_enable_sclk_control() [all …]
|
D | ci_smc.c | 33 static int ci_set_smc_sram_address(struct radeon_device *rdev, in ci_set_smc_sram_address() 47 int ci_copy_bytes_to_smc(struct radeon_device *rdev, in ci_copy_bytes_to_smc() 114 void ci_start_smc(struct radeon_device *rdev) in ci_start_smc() 122 void ci_reset_smc(struct radeon_device *rdev) in ci_reset_smc() 130 int ci_program_jump_on_start(struct radeon_device *rdev) in ci_program_jump_on_start() 137 void ci_stop_smc_clock(struct radeon_device *rdev) in ci_stop_smc_clock() 146 void ci_start_smc_clock(struct radeon_device *rdev) in ci_start_smc_clock() 155 bool ci_is_smc_running(struct radeon_device *rdev) in ci_is_smc_running() 167 PPSMC_Result ci_wait_for_smc_inactive(struct radeon_device *rdev) 186 int ci_load_smc_ucode(struct radeon_device *rdev, u32 limit) in ci_load_smc_ucode() [all …]
|
D | rv770_dpm.c | 54 struct rv7xx_power_info *rv770_get_pi(struct radeon_device *rdev) in rv770_get_pi() 61 struct evergreen_power_info *evergreen_get_pi(struct radeon_device *rdev) in evergreen_get_pi() 68 static void rv770_enable_bif_dynamic_pcie_gen2(struct radeon_device *rdev, in rv770_enable_bif_dynamic_pcie_gen2() 91 static void rv770_enable_l0s(struct radeon_device *rdev) in rv770_enable_l0s() 100 static void rv770_enable_l1(struct radeon_device *rdev) in rv770_enable_l1() 112 static void rv770_enable_pll_sleep_in_l1(struct radeon_device *rdev) in rv770_enable_pll_sleep_in_l1() 129 static void rv770_gfx_clock_gating_enable(struct radeon_device *rdev, in rv770_gfx_clock_gating_enable() 142 static void rv770_mg_clock_gating_enable(struct radeon_device *rdev, in rv770_mg_clock_gating_enable() 166 void rv770_restore_cgcg(struct radeon_device *rdev) in rv770_restore_cgcg() 179 static void rv770_start_dpm(struct radeon_device *rdev) in rv770_start_dpm() [all …]
|
D | si_smc.c | 33 static int si_set_smc_sram_address(struct radeon_device *rdev, in si_set_smc_sram_address() 47 int si_copy_bytes_to_smc(struct radeon_device *rdev, in si_copy_bytes_to_smc() 113 void si_start_smc(struct radeon_device *rdev) in si_start_smc() 122 void si_reset_smc(struct radeon_device *rdev) in si_reset_smc() 136 int si_program_jump_on_start(struct radeon_device *rdev) in si_program_jump_on_start() 143 void si_stop_smc_clock(struct radeon_device *rdev) in si_stop_smc_clock() 152 void si_start_smc_clock(struct radeon_device *rdev) in si_start_smc_clock() 161 bool si_is_smc_running(struct radeon_device *rdev) in si_is_smc_running() 172 PPSMC_Result si_send_msg_to_smc(struct radeon_device *rdev, PPSMC_Msg msg) in si_send_msg_to_smc() 193 PPSMC_Result si_wait_for_smc_inactive(struct radeon_device *rdev) in si_wait_for_smc_inactive() [all …]
|
D | rs400.c | 41 static int rs400_debugfs_pcie_gart_info_init(struct radeon_device *rdev); 43 void rs400_gart_adjust_size(struct radeon_device *rdev) in rs400_gart_adjust_size() 65 void rs400_gart_tlb_flush(struct radeon_device *rdev) in rs400_gart_tlb_flush() 81 int rs400_gart_init(struct radeon_device *rdev) in rs400_gart_init() 112 int rs400_gart_enable(struct radeon_device *rdev) in rs400_gart_enable() 199 void rs400_gart_disable(struct radeon_device *rdev) in rs400_gart_disable() 209 void rs400_gart_fini(struct radeon_device *rdev) in rs400_gart_fini() 235 void rs400_gart_set_page(struct radeon_device *rdev, unsigned i, in rs400_gart_set_page() 242 int rs400_mc_wait_for_idle(struct radeon_device *rdev) in rs400_mc_wait_for_idle() 258 static void rs400_gpu_init(struct radeon_device *rdev) in rs400_gpu_init() [all …]
|
D | sumo_smc.c | 33 struct sumo_power_info *sumo_get_pi(struct radeon_device *rdev); 35 static void sumo_send_msg_to_smu(struct radeon_device *rdev, u32 id) in sumo_send_msg_to_smu() 71 void sumo_initialize_m3_arb(struct radeon_device *rdev) in sumo_initialize_m3_arb() 92 static bool sumo_is_alt_vddnb_supported(struct radeon_device *rdev) in sumo_is_alt_vddnb_supported() 108 void sumo_smu_notify_alt_vddnb_change(struct radeon_device *rdev, in sumo_smu_notify_alt_vddnb_change() 127 void sumo_smu_pg_init(struct radeon_device *rdev) in sumo_smu_pg_init() 143 void sumo_enable_boost_timer(struct radeon_device *rdev) in sumo_enable_boost_timer() 165 void sumo_set_tdp_limit(struct radeon_device *rdev, u32 index, u32 tdp_limit) in sumo_set_tdp_limit() 207 void sumo_boost_state_enable(struct radeon_device *rdev, bool enable) in sumo_boost_state_enable() 216 u32 sumo_get_running_fw_version(struct radeon_device *rdev) in sumo_get_running_fw_version()
|
D | rs600.c | 52 static void rs600_gpu_init(struct radeon_device *rdev); 53 int rs600_mc_wait_for_idle(struct radeon_device *rdev); 61 static bool avivo_is_in_vblank(struct radeon_device *rdev, int crtc) in avivo_is_in_vblank() 69 static bool avivo_is_counter_moving(struct radeon_device *rdev, int crtc) in avivo_is_counter_moving() 90 void avivo_wait_for_vblank(struct radeon_device *rdev, int crtc) in avivo_wait_for_vblank() 118 void rs600_page_flip(struct radeon_device *rdev, int crtc_id, u64 crtc_base, bool async) in rs600_page_flip() 149 bool rs600_page_flip_pending(struct radeon_device *rdev, int crtc_id) in rs600_page_flip_pending() 161 struct radeon_device *rdev = dev->dev_private; in avivo_program_fmt() 222 void rs600_pm_misc(struct radeon_device *rdev) in rs600_pm_misc() 316 void rs600_pm_prepare(struct radeon_device *rdev) in rs600_pm_prepare() [all …]
|
D | rs780_dpm.c | 42 static struct igp_power_info *rs780_get_pi(struct radeon_device *rdev) in rs780_get_pi() 49 static void rs780_get_pm_mode_parameters(struct radeon_device *rdev) in rs780_get_pm_mode_parameters() 73 static void rs780_voltage_scaling_enable(struct radeon_device *rdev, bool enable); 75 static int rs780_initialize_dpm_power_state(struct radeon_device *rdev, in rs780_initialize_dpm_power_state() 109 static int rs780_initialize_dpm_parameters(struct radeon_device *rdev, in rs780_initialize_dpm_parameters() 176 static void rs780_start_dpm(struct radeon_device *rdev) in rs780_start_dpm() 200 static void rs780_preset_ranges_slow_clk_fbdiv_en(struct radeon_device *rdev) in rs780_preset_ranges_slow_clk_fbdiv_en() 210 static void rs780_preset_starting_fbdiv(struct radeon_device *rdev) in rs780_preset_starting_fbdiv() 223 static void rs780_voltage_scaling_init(struct radeon_device *rdev) in rs780_voltage_scaling_init() 304 static void rs780_clk_scaling_enable(struct radeon_device *rdev, bool enable) in rs780_clk_scaling_enable() [all …]
|