Home
last modified time | relevance | path

Searched refs:radeon_device (Results 1 – 25 of 129) sorted by relevance

123456

/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_asic.h34 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 …]
H A Dr600_dpm.h135 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 …]
H A Drv770_dpm.h180 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 …]
H A Devergreen.h31 struct radeon_device;
33 bool evergreen_is_display_hung(struct radeon_device *rdev);
34 void evergreen_print_gpu_status_regs(struct radeon_device *rdev);
35 void evergreen_mc_stop(struct radeon_device *rdev, struct evergreen_mc_save *save);
36 void evergreen_mc_resume(struct radeon_device *rdev, struct evergreen_mc_save *save);
37 int evergreen_mc_wait_for_idle(struct radeon_device *rdev);
38 void evergreen_mc_program(struct radeon_device *rdev);
39 void evergreen_irq_suspend(struct radeon_device *rdev);
40 int evergreen_mc_init(struct radeon_device *rdev);
41 void evergreen_fix_pci_max_read_req_size(struct radeon_device *rdev);
[all …]
H A Dradeon.h243 struct radeon_device;
249 bool radeon_get_bios(struct radeon_device *rdev);
259 int radeon_dummy_page_init(struct radeon_device *rdev);
260 void radeon_dummy_page_fini(struct radeon_device *rdev);
285 int radeon_pm_init(struct radeon_device *rdev);
286 int radeon_pm_late_init(struct radeon_device *rdev);
287 void radeon_pm_fini(struct radeon_device *rdev);
288 void radeon_pm_compute_clocks(struct radeon_device *rdev);
289 void radeon_pm_suspend(struct radeon_device *rdev);
290 void radeon_pm_resume(struct radeon_device *rdev);
[all …]
H A Dcypress_dpm.h113 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 …]
H A Dcik.h26 struct radeon_device;
28 void cik_enter_rlc_safe_mode(struct radeon_device *rdev);
29 void cik_exit_rlc_safe_mode(struct radeon_device *rdev);
30 int ci_mc_load_microcode(struct radeon_device *rdev);
31 void cik_update_cg(struct radeon_device *rdev, u32 block, bool enable);
32 u32 cik_gpu_check_soft_reset(struct radeon_device *rdev);
33 void cik_init_cp_pg_table(struct radeon_device *rdev);
34 u32 cik_get_csb_size(struct radeon_device *rdev);
35 void cik_get_csb_buffer(struct radeon_device *rdev, volatile u32 *buffer);
37 int cik_sdma_resume(struct radeon_device *rdev);
[all …]
H A Dsumo_dpm.h192 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,
210 struct sumo_power_info *sumo_get_pi(struct radeon_device *rdev);
[all …]
H A Dtrinity_smc.c29 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 …]
H A Dsi.h27 struct radeon_device;
30 int si_mc_load_microcode(struct radeon_device *rdev);
31 u32 si_gpu_check_soft_reset(struct radeon_device *rdev);
32 void si_vram_gtt_location(struct radeon_device *rdev, struct radeon_mc *mc);
33 void si_rlc_reset(struct radeon_device *rdev);
34 void si_init_uvd_internal_cg(struct radeon_device *rdev);
35 u32 si_get_csb_size(struct radeon_device *rdev);
36 void si_get_csb_buffer(struct radeon_device *rdev, volatile u32 *buffer);
H A Drv6xx_dpm.c33 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 …]
H A Dsumo_dpm.c81 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 …]
H A Dbtc_dpm.h41 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,
H A Dtrinity_dpm.c297 static void trinity_program_clk_gating_hw_sequence(struct radeon_device *rdev,
299 static void trinity_override_dynamic_mg_powergating(struct radeon_device *rdev);
300 static void trinity_apply_state_adjust_rules(struct radeon_device *rdev,
311 static struct trinity_power_info *trinity_get_pi(struct radeon_device *rdev) in trinity_get_pi()
318 static void trinity_gfx_powergating_initialize(struct radeon_device *rdev) in trinity_gfx_powergating_initialize()
358 static void trinity_mg_clockgating_enable(struct radeon_device *rdev, in trinity_mg_clockgating_enable()
387 static void trinity_mg_clockgating_initialize(struct radeon_device *rdev) in trinity_mg_clockgating_initialize()
398 static void trinity_gfx_clockgating_enable(struct radeon_device *rdev, in trinity_gfx_clockgating_enable()
411 static void trinity_program_clk_gating_hw_sequence(struct radeon_device *rdev, in trinity_program_clk_gating_hw_sequence()
420 static void trinity_program_override_mgpg_sequences(struct radeon_device *rdev, in trinity_program_override_mgpg_sequences()
[all …]
H A Dradeon_irq_kms.c56 struct radeon_device *rdev = dev->dev_private; in radeon_driver_irq_handler_kms()
81 struct radeon_device *rdev = container_of(work, struct radeon_device, in radeon_hotplug_work_func()
102 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()
198 static int radeon_irq_install(struct radeon_device *rdev, int irq) in radeon_irq_install()
219 static void radeon_irq_uninstall(struct radeon_device *rdev) in radeon_irq_uninstall()
238 static bool radeon_msi_ok(struct radeon_device *rdev) in radeon_msi_ok()
318 int radeon_irq_kms_init(struct radeon_device *rdev) in radeon_irq_kms_init()
[all …]
H A Dkv_dpm.c37 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 …]
H A Dradeon_audio.h37 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);
[all …]
H A Dtrinity_dpm.h122 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);
H A Dr600.h35 struct radeon_device;
38 u32 r600_gpu_check_soft_reset(struct radeon_device *rdev);
39 int r600_ih_ring_alloc(struct radeon_device *rdev);
40 void r600_ih_ring_fini(struct radeon_device *rdev);
42 void r600_audio_enable(struct radeon_device *rdev, struct r600_audio_pin *pin,
46 void r600_hdmi_audio_set_dto(struct radeon_device *rdev,
48 void r600_set_avi_packet(struct radeon_device *rdev, u32 offset,
H A Drv770_smc.h190 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 …]
H A Dr600_dpm.c143 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 …]
H A Dradeon_object.h93 struct radeon_device *rdev; in radeon_bo_gpu_offset()
136 extern int radeon_bo_create(struct radeon_device *rdev,
150 extern int radeon_bo_evict_vram(struct radeon_device *rdev);
151 extern void radeon_bo_force_delete(struct radeon_device *rdev);
152 extern int radeon_bo_init(struct radeon_device *rdev);
153 extern void radeon_bo_fini(struct radeon_device *rdev);
154 extern int radeon_bo_list_validate(struct radeon_device *rdev,
190 extern int radeon_sa_bo_manager_init(struct radeon_device *rdev,
194 extern void radeon_sa_bo_manager_fini(struct radeon_device *rdev,
196 extern int radeon_sa_bo_manager_start(struct radeon_device *rdev,
[all …]
H A Drv770_dpm.c56 struct rv7xx_power_info *rv770_get_pi(struct radeon_device *rdev) in rv770_get_pi()
63 struct evergreen_power_info *evergreen_get_pi(struct radeon_device *rdev) in evergreen_get_pi()
70 static void rv770_enable_bif_dynamic_pcie_gen2(struct radeon_device *rdev, in rv770_enable_bif_dynamic_pcie_gen2()
93 static void rv770_enable_l0s(struct radeon_device *rdev) in rv770_enable_l0s()
102 static void rv770_enable_l1(struct radeon_device *rdev) in rv770_enable_l1()
114 static void rv770_enable_pll_sleep_in_l1(struct radeon_device *rdev) in rv770_enable_pll_sleep_in_l1()
131 static void rv770_gfx_clock_gating_enable(struct radeon_device *rdev, in rv770_gfx_clock_gating_enable()
144 static void rv770_mg_clock_gating_enable(struct radeon_device *rdev, in rv770_mg_clock_gating_enable()
168 void rv770_restore_cgcg(struct radeon_device *rdev) in rv770_restore_cgcg()
181 static void rv770_start_dpm(struct radeon_device *rdev) in rv770_start_dpm()
[all …]
H A Dci_smc.c33 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 …]
H A Drs400.c40 static void rs400_debugfs_pcie_gart_info_init(struct radeon_device *rdev);
42 void rs400_gart_adjust_size(struct radeon_device *rdev) in rs400_gart_adjust_size()
64 void rs400_gart_tlb_flush(struct radeon_device *rdev) in rs400_gart_tlb_flush()
80 int rs400_gart_init(struct radeon_device *rdev) in rs400_gart_init()
110 int rs400_gart_enable(struct radeon_device *rdev) in rs400_gart_enable()
197 void rs400_gart_disable(struct radeon_device *rdev) in rs400_gart_disable()
207 void rs400_gart_fini(struct radeon_device *rdev) in rs400_gart_fini()
233 void rs400_gart_set_page(struct radeon_device *rdev, unsigned i, in rs400_gart_set_page()
240 int rs400_mc_wait_for_idle(struct radeon_device *rdev) in rs400_mc_wait_for_idle()
256 static void rs400_gpu_init(struct radeon_device *rdev) in rs400_gpu_init()
[all …]

123456