Lines Matching refs:handle

77 static int pp_early_init(void *handle)  in pp_early_init()  argument
80 struct amdgpu_device *adev = handle; in pp_early_init()
94 static int pp_sw_init(void *handle) in pp_sw_init() argument
96 struct amdgpu_device *adev = handle; in pp_sw_init()
107 static int pp_sw_fini(void *handle) in pp_sw_fini() argument
109 struct amdgpu_device *adev = handle; in pp_sw_fini()
119 static int pp_hw_init(void *handle) in pp_hw_init() argument
122 struct amdgpu_device *adev = handle; in pp_hw_init()
133 static int pp_hw_fini(void *handle) in pp_hw_fini() argument
135 struct amdgpu_device *adev = handle; in pp_hw_fini()
174 static int pp_late_init(void *handle) in pp_late_init() argument
176 struct amdgpu_device *adev = handle; in pp_late_init()
188 static void pp_late_fini(void *handle) in pp_late_fini() argument
190 struct amdgpu_device *adev = handle; in pp_late_fini()
198 static bool pp_is_idle(void *handle) in pp_is_idle() argument
203 static int pp_wait_for_idle(void *handle) in pp_wait_for_idle() argument
208 static int pp_sw_reset(void *handle) in pp_sw_reset() argument
213 static int pp_set_powergating_state(void *handle, in pp_set_powergating_state() argument
219 static int pp_suspend(void *handle) in pp_suspend() argument
221 struct amdgpu_device *adev = handle; in pp_suspend()
227 static int pp_resume(void *handle) in pp_resume() argument
229 struct amdgpu_device *adev = handle; in pp_resume()
235 static int pp_set_clockgating_state(void *handle, in pp_set_clockgating_state() argument
273 static int pp_dpm_load_fw(void *handle) in pp_dpm_load_fw() argument
275 struct pp_hwmgr *hwmgr = handle; in pp_dpm_load_fw()
288 static int pp_dpm_fw_loading_complete(void *handle) in pp_dpm_fw_loading_complete() argument
293 static int pp_set_clockgating_by_smu(void *handle, uint32_t msg_id) in pp_set_clockgating_by_smu() argument
295 struct pp_hwmgr *hwmgr = handle; in pp_set_clockgating_by_smu()
332 static int pp_dpm_force_performance_level(void *handle, in pp_dpm_force_performance_level() argument
335 struct pp_hwmgr *hwmgr = handle; in pp_dpm_force_performance_level()
351 void *handle) in pp_dpm_get_performance_level() argument
353 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_performance_level()
361 static uint32_t pp_dpm_get_sclk(void *handle, bool low) in pp_dpm_get_sclk() argument
363 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_sclk()
375 static uint32_t pp_dpm_get_mclk(void *handle, bool low) in pp_dpm_get_mclk() argument
377 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_mclk()
389 static void pp_dpm_powergate_vce(void *handle, bool gate) in pp_dpm_powergate_vce() argument
391 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_vce()
403 static void pp_dpm_powergate_uvd(void *handle, bool gate) in pp_dpm_powergate_uvd() argument
405 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_uvd()
417 static int pp_dpm_dispatch_tasks(void *handle, enum amd_pp_task task_id, in pp_dpm_dispatch_tasks() argument
420 struct pp_hwmgr *hwmgr = handle; in pp_dpm_dispatch_tasks()
428 static enum amd_pm_state_type pp_dpm_get_current_power_state(void *handle) in pp_dpm_get_current_power_state() argument
430 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_current_power_state()
460 static int pp_dpm_set_fan_control_mode(void *handle, uint32_t mode) in pp_dpm_set_fan_control_mode() argument
462 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_control_mode()
478 static int pp_dpm_get_fan_control_mode(void *handle, uint32_t *fan_mode) in pp_dpm_get_fan_control_mode() argument
480 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_control_mode()
495 static int pp_dpm_set_fan_speed_pwm(void *handle, uint32_t speed) in pp_dpm_set_fan_speed_pwm() argument
497 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_speed_pwm()
511 static int pp_dpm_get_fan_speed_pwm(void *handle, uint32_t *speed) in pp_dpm_get_fan_speed_pwm() argument
513 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_speed_pwm()
527 static int pp_dpm_get_fan_speed_rpm(void *handle, uint32_t *rpm) in pp_dpm_get_fan_speed_rpm() argument
529 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_speed_rpm()
543 static int pp_dpm_set_fan_speed_rpm(void *handle, uint32_t rpm) in pp_dpm_set_fan_speed_rpm() argument
545 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_speed_rpm()
559 static int pp_dpm_get_pp_num_states(void *handle, in pp_dpm_get_pp_num_states() argument
562 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_pp_num_states()
595 static int pp_dpm_get_pp_table(void *handle, char **table) in pp_dpm_get_pp_table() argument
597 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_pp_table()
606 static int amd_powerplay_reset(void *handle) in amd_powerplay_reset() argument
608 struct pp_hwmgr *hwmgr = handle; in amd_powerplay_reset()
622 static int pp_dpm_set_pp_table(void *handle, const char *buf, size_t size) in pp_dpm_set_pp_table() argument
624 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_pp_table()
642 ret = amd_powerplay_reset(handle); in pp_dpm_set_pp_table()
652 static int pp_dpm_force_clock_level(void *handle, in pp_dpm_force_clock_level() argument
655 struct pp_hwmgr *hwmgr = handle; in pp_dpm_force_clock_level()
673 static int pp_dpm_emit_clock_levels(void *handle, in pp_dpm_emit_clock_levels() argument
678 struct pp_hwmgr *hwmgr = handle; in pp_dpm_emit_clock_levels()
689 static int pp_dpm_print_clock_levels(void *handle, in pp_dpm_print_clock_levels() argument
692 struct pp_hwmgr *hwmgr = handle; in pp_dpm_print_clock_levels()
704 static int pp_dpm_get_sclk_od(void *handle) in pp_dpm_get_sclk_od() argument
706 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_sclk_od()
718 static int pp_dpm_set_sclk_od(void *handle, uint32_t value) in pp_dpm_set_sclk_od() argument
720 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_sclk_od()
733 static int pp_dpm_get_mclk_od(void *handle) in pp_dpm_get_mclk_od() argument
735 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_mclk_od()
747 static int pp_dpm_set_mclk_od(void *handle, uint32_t value) in pp_dpm_set_mclk_od() argument
749 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_mclk_od()
761 static int pp_dpm_read_sensor(void *handle, int idx, in pp_dpm_read_sensor() argument
764 struct pp_hwmgr *hwmgr = handle; in pp_dpm_read_sensor()
794 pp_dpm_get_vce_clock_state(void *handle, unsigned idx) in pp_dpm_get_vce_clock_state() argument
796 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_vce_clock_state()
806 static int pp_get_power_profile_mode(void *handle, char *buf) in pp_get_power_profile_mode() argument
808 struct pp_hwmgr *hwmgr = handle; in pp_get_power_profile_mode()
818 static int pp_set_power_profile_mode(void *handle, long *input, uint32_t size) in pp_set_power_profile_mode() argument
820 struct pp_hwmgr *hwmgr = handle; in pp_set_power_profile_mode()
833 static int pp_set_fine_grain_clk_vol(void *handle, uint32_t type, long *input, uint32_t size) in pp_set_fine_grain_clk_vol() argument
835 struct pp_hwmgr *hwmgr = handle; in pp_set_fine_grain_clk_vol()
846 static int pp_odn_edit_dpm_table(void *handle, enum PP_OD_DPM_TABLE_COMMAND type, in pp_odn_edit_dpm_table() argument
849 struct pp_hwmgr *hwmgr = handle; in pp_odn_edit_dpm_table()
862 static int pp_dpm_set_mp1_state(void *handle, enum pp_mp1_state mp1_state) in pp_dpm_set_mp1_state() argument
864 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_mp1_state()
878 static int pp_dpm_switch_power_profile(void *handle, in pp_dpm_switch_power_profile() argument
881 struct pp_hwmgr *hwmgr = handle; in pp_dpm_switch_power_profile()
920 static int pp_set_power_limit(void *handle, uint32_t limit) in pp_set_power_limit() argument
922 struct pp_hwmgr *hwmgr = handle; in pp_set_power_limit()
950 static int pp_get_power_limit(void *handle, uint32_t *limit, in pp_get_power_limit() argument
954 struct pp_hwmgr *hwmgr = handle; in pp_get_power_limit()
985 static int pp_display_configuration_change(void *handle, in pp_display_configuration_change() argument
988 struct pp_hwmgr *hwmgr = handle; in pp_display_configuration_change()
997 static int pp_get_display_power_level(void *handle, in pp_get_display_power_level() argument
1000 struct pp_hwmgr *hwmgr = handle; in pp_get_display_power_level()
1008 static int pp_get_current_clocks(void *handle, in pp_get_current_clocks() argument
1013 struct pp_hwmgr *hwmgr = handle; in pp_get_current_clocks()
1056 static int pp_get_clock_by_type(void *handle, enum amd_pp_clock_type type, struct amd_pp_clocks *cl… in pp_get_clock_by_type() argument
1058 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type()
1069 static int pp_get_clock_by_type_with_latency(void *handle, in pp_get_clock_by_type_with_latency() argument
1073 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type_with_latency()
1081 static int pp_get_clock_by_type_with_voltage(void *handle, in pp_get_clock_by_type_with_voltage() argument
1085 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type_with_voltage()
1093 static int pp_set_watermarks_for_clocks_ranges(void *handle, in pp_set_watermarks_for_clocks_ranges() argument
1096 struct pp_hwmgr *hwmgr = handle; in pp_set_watermarks_for_clocks_ranges()
1105 static int pp_display_clock_voltage_request(void *handle, in pp_display_clock_voltage_request() argument
1108 struct pp_hwmgr *hwmgr = handle; in pp_display_clock_voltage_request()
1116 static int pp_get_display_mode_validation_clocks(void *handle, in pp_get_display_mode_validation_clocks() argument
1119 struct pp_hwmgr *hwmgr = handle; in pp_get_display_mode_validation_clocks()
1133 static int pp_dpm_powergate_mmhub(void *handle) in pp_dpm_powergate_mmhub() argument
1135 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_mmhub()
1148 static int pp_dpm_powergate_gfx(void *handle, bool gate) in pp_dpm_powergate_gfx() argument
1150 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_gfx()
1163 static void pp_dpm_powergate_acp(void *handle, bool gate) in pp_dpm_powergate_acp() argument
1165 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_acp()
1178 static void pp_dpm_powergate_sdma(void *handle, bool gate) in pp_dpm_powergate_sdma() argument
1180 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_sdma()
1193 static int pp_set_powergating_by_smu(void *handle, in pp_set_powergating_by_smu() argument
1201 pp_dpm_powergate_uvd(handle, gate); in pp_set_powergating_by_smu()
1204 pp_dpm_powergate_vce(handle, gate); in pp_set_powergating_by_smu()
1212 pp_dpm_powergate_mmhub(handle); in pp_set_powergating_by_smu()
1215 ret = pp_dpm_powergate_gfx(handle, gate); in pp_set_powergating_by_smu()
1218 pp_dpm_powergate_acp(handle, gate); in pp_set_powergating_by_smu()
1221 pp_dpm_powergate_sdma(handle, gate); in pp_set_powergating_by_smu()
1229 static int pp_notify_smu_enable_pwe(void *handle) in pp_notify_smu_enable_pwe() argument
1231 struct pp_hwmgr *hwmgr = handle; in pp_notify_smu_enable_pwe()
1246 static int pp_enable_mgpu_fan_boost(void *handle) in pp_enable_mgpu_fan_boost() argument
1248 struct pp_hwmgr *hwmgr = handle; in pp_enable_mgpu_fan_boost()
1262 static int pp_set_min_deep_sleep_dcefclk(void *handle, uint32_t clock) in pp_set_min_deep_sleep_dcefclk() argument
1264 struct pp_hwmgr *hwmgr = handle; in pp_set_min_deep_sleep_dcefclk()
1279 static int pp_set_hard_min_dcefclk_by_freq(void *handle, uint32_t clock) in pp_set_hard_min_dcefclk_by_freq() argument
1281 struct pp_hwmgr *hwmgr = handle; in pp_set_hard_min_dcefclk_by_freq()
1296 static int pp_set_hard_min_fclk_by_freq(void *handle, uint32_t clock) in pp_set_hard_min_fclk_by_freq() argument
1298 struct pp_hwmgr *hwmgr = handle; in pp_set_hard_min_fclk_by_freq()
1313 static int pp_set_active_display_count(void *handle, uint32_t count) in pp_set_active_display_count() argument
1315 struct pp_hwmgr *hwmgr = handle; in pp_set_active_display_count()
1323 static int pp_get_asic_baco_capability(void *handle, bool *cap) in pp_get_asic_baco_capability() argument
1325 struct pp_hwmgr *hwmgr = handle; in pp_get_asic_baco_capability()
1340 static int pp_get_asic_baco_state(void *handle, int *state) in pp_get_asic_baco_state() argument
1342 struct pp_hwmgr *hwmgr = handle; in pp_get_asic_baco_state()
1355 static int pp_set_asic_baco_state(void *handle, int state) in pp_set_asic_baco_state() argument
1357 struct pp_hwmgr *hwmgr = handle; in pp_set_asic_baco_state()
1371 static int pp_get_ppfeature_status(void *handle, char *buf) in pp_get_ppfeature_status() argument
1373 struct pp_hwmgr *hwmgr = handle; in pp_get_ppfeature_status()
1386 static int pp_set_ppfeature_status(void *handle, uint64_t ppfeature_masks) in pp_set_ppfeature_status() argument
1388 struct pp_hwmgr *hwmgr = handle; in pp_set_ppfeature_status()
1401 static int pp_asic_reset_mode_2(void *handle) in pp_asic_reset_mode_2() argument
1403 struct pp_hwmgr *hwmgr = handle; in pp_asic_reset_mode_2()
1416 static int pp_smu_i2c_bus_access(void *handle, bool acquire) in pp_smu_i2c_bus_access() argument
1418 struct pp_hwmgr *hwmgr = handle; in pp_smu_i2c_bus_access()
1431 static int pp_set_df_cstate(void *handle, enum pp_df_cstate state) in pp_set_df_cstate() argument
1433 struct pp_hwmgr *hwmgr = handle; in pp_set_df_cstate()
1446 static int pp_set_xgmi_pstate(void *handle, uint32_t pstate) in pp_set_xgmi_pstate() argument
1448 struct pp_hwmgr *hwmgr = handle; in pp_set_xgmi_pstate()
1461 static ssize_t pp_get_gpu_metrics(void *handle, void **table) in pp_get_gpu_metrics() argument
1463 struct pp_hwmgr *hwmgr = handle; in pp_get_gpu_metrics()
1474 static int pp_gfx_state_change_set(void *handle, uint32_t state) in pp_gfx_state_change_set() argument
1476 struct pp_hwmgr *hwmgr = handle; in pp_gfx_state_change_set()
1490 static int pp_get_prv_buffer_details(void *handle, void **addr, size_t *size) in pp_get_prv_buffer_details() argument
1492 struct pp_hwmgr *hwmgr = handle; in pp_get_prv_buffer_details()
1511 static void pp_pm_compute_clocks(void *handle) in pp_pm_compute_clocks() argument
1513 struct pp_hwmgr *hwmgr = handle; in pp_pm_compute_clocks()
1527 pp_display_configuration_change(handle, in pp_pm_compute_clocks()
1531 pp_dpm_dispatch_tasks(handle, in pp_pm_compute_clocks()