Lines Matching full:handle
75 static int pp_early_init(void *handle) in pp_early_init() argument
78 struct amdgpu_device *adev = handle; in pp_early_init()
92 static int pp_sw_init(void *handle) in pp_sw_init() argument
94 struct amdgpu_device *adev = handle; in pp_sw_init()
105 static int pp_sw_fini(void *handle) in pp_sw_fini() argument
107 struct amdgpu_device *adev = handle; in pp_sw_fini()
118 static int pp_hw_init(void *handle) in pp_hw_init() argument
121 struct amdgpu_device *adev = handle; in pp_hw_init()
132 static int pp_hw_fini(void *handle) in pp_hw_fini() argument
134 struct amdgpu_device *adev = handle; in pp_hw_fini()
173 static int pp_late_init(void *handle) in pp_late_init() argument
175 struct amdgpu_device *adev = handle; in pp_late_init()
190 static void pp_late_fini(void *handle) in pp_late_fini() argument
192 struct amdgpu_device *adev = handle; in pp_late_fini()
200 static bool pp_is_idle(void *handle) in pp_is_idle() argument
205 static int pp_wait_for_idle(void *handle) in pp_wait_for_idle() argument
210 static int pp_sw_reset(void *handle) in pp_sw_reset() argument
215 static int pp_set_powergating_state(void *handle, in pp_set_powergating_state() argument
221 static int pp_suspend(void *handle) in pp_suspend() argument
223 struct amdgpu_device *adev = handle; in pp_suspend()
229 static int pp_resume(void *handle) in pp_resume() argument
231 struct amdgpu_device *adev = handle; in pp_resume()
237 static int pp_set_clockgating_state(void *handle, in pp_set_clockgating_state() argument
275 static int pp_dpm_load_fw(void *handle) in pp_dpm_load_fw() argument
277 struct pp_hwmgr *hwmgr = handle; in pp_dpm_load_fw()
290 static int pp_dpm_fw_loading_complete(void *handle) in pp_dpm_fw_loading_complete() argument
295 static int pp_set_clockgating_by_smu(void *handle, uint32_t msg_id) in pp_set_clockgating_by_smu() argument
297 struct pp_hwmgr *hwmgr = handle; in pp_set_clockgating_by_smu()
346 static int pp_dpm_force_performance_level(void *handle, in pp_dpm_force_performance_level() argument
349 struct pp_hwmgr *hwmgr = handle; in pp_dpm_force_performance_level()
367 void *handle) in pp_dpm_get_performance_level() argument
369 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_performance_level()
381 static uint32_t pp_dpm_get_sclk(void *handle, bool low) in pp_dpm_get_sclk() argument
383 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_sclk()
399 static uint32_t pp_dpm_get_mclk(void *handle, bool low) in pp_dpm_get_mclk() argument
401 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_mclk()
417 static void pp_dpm_powergate_vce(void *handle, bool gate) in pp_dpm_powergate_vce() argument
419 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_vce()
433 static void pp_dpm_powergate_uvd(void *handle, bool gate) in pp_dpm_powergate_uvd() argument
435 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_uvd()
449 static int pp_dpm_dispatch_tasks(void *handle, enum amd_pp_task task_id, in pp_dpm_dispatch_tasks() argument
453 struct pp_hwmgr *hwmgr = handle; in pp_dpm_dispatch_tasks()
465 static enum amd_pm_state_type pp_dpm_get_current_power_state(void *handle) in pp_dpm_get_current_power_state() argument
467 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_current_power_state()
500 static void pp_dpm_set_fan_control_mode(void *handle, uint32_t mode) in pp_dpm_set_fan_control_mode() argument
502 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_control_mode()
516 static uint32_t pp_dpm_get_fan_control_mode(void *handle) in pp_dpm_get_fan_control_mode() argument
518 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_control_mode()
534 static int pp_dpm_set_fan_speed_percent(void *handle, uint32_t percent) in pp_dpm_set_fan_speed_percent() argument
536 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_speed_percent()
552 static int pp_dpm_get_fan_speed_percent(void *handle, uint32_t *speed) in pp_dpm_get_fan_speed_percent() argument
554 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_speed_percent()
571 static int pp_dpm_get_fan_speed_rpm(void *handle, uint32_t *rpm) in pp_dpm_get_fan_speed_rpm() argument
573 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_speed_rpm()
588 static int pp_dpm_set_fan_speed_rpm(void *handle, uint32_t rpm) in pp_dpm_set_fan_speed_rpm() argument
590 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_speed_rpm()
606 static int pp_dpm_get_pp_num_states(void *handle, in pp_dpm_get_pp_num_states() argument
609 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_pp_num_states()
645 static int pp_dpm_get_pp_table(void *handle, char **table) in pp_dpm_get_pp_table() argument
647 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_pp_table()
660 static int amd_powerplay_reset(void *handle) in amd_powerplay_reset() argument
662 struct pp_hwmgr *hwmgr = handle; in amd_powerplay_reset()
676 static int pp_dpm_set_pp_table(void *handle, const char *buf, size_t size) in pp_dpm_set_pp_table() argument
678 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_pp_table()
697 ret = amd_powerplay_reset(handle); in pp_dpm_set_pp_table()
713 static int pp_dpm_force_clock_level(void *handle, in pp_dpm_force_clock_level() argument
716 struct pp_hwmgr *hwmgr = handle; in pp_dpm_force_clock_level()
738 static int pp_dpm_print_clock_levels(void *handle, in pp_dpm_print_clock_levels() argument
741 struct pp_hwmgr *hwmgr = handle; in pp_dpm_print_clock_levels()
757 static int pp_dpm_get_sclk_od(void *handle) in pp_dpm_get_sclk_od() argument
759 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_sclk_od()
775 static int pp_dpm_set_sclk_od(void *handle, uint32_t value) in pp_dpm_set_sclk_od() argument
777 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_sclk_od()
794 static int pp_dpm_get_mclk_od(void *handle) in pp_dpm_get_mclk_od() argument
796 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_mclk_od()
812 static int pp_dpm_set_mclk_od(void *handle, uint32_t value) in pp_dpm_set_mclk_od() argument
814 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_mclk_od()
830 static int pp_dpm_read_sensor(void *handle, int idx, in pp_dpm_read_sensor() argument
833 struct pp_hwmgr *hwmgr = handle; in pp_dpm_read_sensor()
861 pp_dpm_get_vce_clock_state(void *handle, unsigned idx) in pp_dpm_get_vce_clock_state() argument
863 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_vce_clock_state()
873 static int pp_get_power_profile_mode(void *handle, char *buf) in pp_get_power_profile_mode() argument
875 struct pp_hwmgr *hwmgr = handle; in pp_get_power_profile_mode()
888 static int pp_set_power_profile_mode(void *handle, long *input, uint32_t size) in pp_set_power_profile_mode() argument
890 struct pp_hwmgr *hwmgr = handle; in pp_set_power_profile_mode()
912 static int pp_odn_edit_dpm_table(void *handle, uint32_t type, long *input, uint32_t size) in pp_odn_edit_dpm_table() argument
914 struct pp_hwmgr *hwmgr = handle; in pp_odn_edit_dpm_table()
927 static int pp_dpm_set_mp1_state(void *handle, enum pp_mp1_state mp1_state) in pp_dpm_set_mp1_state() argument
929 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_mp1_state()
940 static int pp_dpm_switch_power_profile(void *handle, in pp_dpm_switch_power_profile() argument
943 struct pp_hwmgr *hwmgr = handle; in pp_dpm_switch_power_profile()
979 static int pp_set_power_limit(void *handle, uint32_t limit) in pp_set_power_limit() argument
981 struct pp_hwmgr *hwmgr = handle; in pp_set_power_limit()
1011 static int pp_get_power_limit(void *handle, uint32_t *limit, bool default_limit) in pp_get_power_limit() argument
1013 struct pp_hwmgr *hwmgr = handle; in pp_get_power_limit()
1035 static int pp_display_configuration_change(void *handle, in pp_display_configuration_change() argument
1038 struct pp_hwmgr *hwmgr = handle; in pp_display_configuration_change()
1049 static int pp_get_display_power_level(void *handle, in pp_get_display_power_level() argument
1052 struct pp_hwmgr *hwmgr = handle; in pp_get_display_power_level()
1064 static int pp_get_current_clocks(void *handle, in pp_get_current_clocks() argument
1069 struct pp_hwmgr *hwmgr = handle; in pp_get_current_clocks()
1116 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
1118 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type()
1133 static int pp_get_clock_by_type_with_latency(void *handle, in pp_get_clock_by_type_with_latency() argument
1137 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type_with_latency()
1149 static int pp_get_clock_by_type_with_voltage(void *handle, in pp_get_clock_by_type_with_voltage() argument
1153 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type_with_voltage()
1167 static int pp_set_watermarks_for_clocks_ranges(void *handle, in pp_set_watermarks_for_clocks_ranges() argument
1170 struct pp_hwmgr *hwmgr = handle; in pp_set_watermarks_for_clocks_ranges()
1184 static int pp_display_clock_voltage_request(void *handle, in pp_display_clock_voltage_request() argument
1187 struct pp_hwmgr *hwmgr = handle; in pp_display_clock_voltage_request()
1200 static int pp_get_display_mode_validation_clocks(void *handle, in pp_get_display_mode_validation_clocks() argument
1203 struct pp_hwmgr *hwmgr = handle; in pp_get_display_mode_validation_clocks()
1220 static int pp_dpm_powergate_mmhub(void *handle) in pp_dpm_powergate_mmhub() argument
1222 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_mmhub()
1235 static int pp_dpm_powergate_gfx(void *handle, bool gate) in pp_dpm_powergate_gfx() argument
1237 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_gfx()
1250 static void pp_dpm_powergate_acp(void *handle, bool gate) in pp_dpm_powergate_acp() argument
1252 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_acp()
1265 static void pp_dpm_powergate_sdma(void *handle, bool gate) in pp_dpm_powergate_sdma() argument
1267 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_sdma()
1280 static int pp_set_powergating_by_smu(void *handle, in pp_set_powergating_by_smu() argument
1288 pp_dpm_powergate_uvd(handle, gate); in pp_set_powergating_by_smu()
1291 pp_dpm_powergate_vce(handle, gate); in pp_set_powergating_by_smu()
1294 pp_dpm_powergate_mmhub(handle); in pp_set_powergating_by_smu()
1297 ret = pp_dpm_powergate_gfx(handle, gate); in pp_set_powergating_by_smu()
1300 pp_dpm_powergate_acp(handle, gate); in pp_set_powergating_by_smu()
1303 pp_dpm_powergate_sdma(handle, gate); in pp_set_powergating_by_smu()
1311 static int pp_notify_smu_enable_pwe(void *handle) in pp_notify_smu_enable_pwe() argument
1313 struct pp_hwmgr *hwmgr = handle; in pp_notify_smu_enable_pwe()
1330 static int pp_enable_mgpu_fan_boost(void *handle) in pp_enable_mgpu_fan_boost() argument
1332 struct pp_hwmgr *hwmgr = handle; in pp_enable_mgpu_fan_boost()
1348 static int pp_set_min_deep_sleep_dcefclk(void *handle, uint32_t clock) in pp_set_min_deep_sleep_dcefclk() argument
1350 struct pp_hwmgr *hwmgr = handle; in pp_set_min_deep_sleep_dcefclk()
1367 static int pp_set_hard_min_dcefclk_by_freq(void *handle, uint32_t clock) in pp_set_hard_min_dcefclk_by_freq() argument
1369 struct pp_hwmgr *hwmgr = handle; in pp_set_hard_min_dcefclk_by_freq()
1386 static int pp_set_hard_min_fclk_by_freq(void *handle, uint32_t clock) in pp_set_hard_min_fclk_by_freq() argument
1388 struct pp_hwmgr *hwmgr = handle; in pp_set_hard_min_fclk_by_freq()
1405 static int pp_set_active_display_count(void *handle, uint32_t count) in pp_set_active_display_count() argument
1407 struct pp_hwmgr *hwmgr = handle; in pp_set_active_display_count()
1420 static int pp_get_asic_baco_capability(void *handle, bool *cap) in pp_get_asic_baco_capability() argument
1422 struct pp_hwmgr *hwmgr = handle; in pp_get_asic_baco_capability()
1437 static int pp_get_asic_baco_state(void *handle, int *state) in pp_get_asic_baco_state() argument
1439 struct pp_hwmgr *hwmgr = handle; in pp_get_asic_baco_state()
1454 static int pp_set_asic_baco_state(void *handle, int state) in pp_set_asic_baco_state() argument
1456 struct pp_hwmgr *hwmgr = handle; in pp_set_asic_baco_state()
1471 static int pp_get_ppfeature_status(void *handle, char *buf) in pp_get_ppfeature_status() argument
1473 struct pp_hwmgr *hwmgr = handle; in pp_get_ppfeature_status()
1491 static int pp_set_ppfeature_status(void *handle, uint64_t ppfeature_masks) in pp_set_ppfeature_status() argument
1493 struct pp_hwmgr *hwmgr = handle; in pp_set_ppfeature_status()
1511 static int pp_asic_reset_mode_2(void *handle) in pp_asic_reset_mode_2() argument
1513 struct pp_hwmgr *hwmgr = handle; in pp_asic_reset_mode_2()
1531 static int pp_smu_i2c_bus_access(void *handle, bool acquire) in pp_smu_i2c_bus_access() argument
1533 struct pp_hwmgr *hwmgr = handle; in pp_smu_i2c_bus_access()