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()
120 static int pp_hw_init(void *handle) in pp_hw_init() argument
123 struct amdgpu_device *adev = handle; in pp_hw_init()
134 static int pp_hw_fini(void *handle) in pp_hw_fini() argument
136 struct amdgpu_device *adev = handle; in pp_hw_fini()
175 static int pp_late_init(void *handle) in pp_late_init() argument
177 struct amdgpu_device *adev = handle; in pp_late_init()
192 static void pp_late_fini(void *handle) in pp_late_fini() argument
194 struct amdgpu_device *adev = handle; in pp_late_fini()
202 static bool pp_is_idle(void *handle) in pp_is_idle() argument
207 static int pp_wait_for_idle(void *handle) in pp_wait_for_idle() argument
212 static int pp_sw_reset(void *handle) in pp_sw_reset() argument
217 static int pp_set_powergating_state(void *handle, in pp_set_powergating_state() argument
223 static int pp_suspend(void *handle) in pp_suspend() argument
225 struct amdgpu_device *adev = handle; in pp_suspend()
231 static int pp_resume(void *handle) in pp_resume() argument
233 struct amdgpu_device *adev = handle; in pp_resume()
239 static int pp_set_clockgating_state(void *handle, in pp_set_clockgating_state() argument
277 static int pp_dpm_load_fw(void *handle) in pp_dpm_load_fw() argument
279 struct pp_hwmgr *hwmgr = handle; in pp_dpm_load_fw()
292 static int pp_dpm_fw_loading_complete(void *handle) in pp_dpm_fw_loading_complete() argument
297 static int pp_set_clockgating_by_smu(void *handle, uint32_t msg_id) in pp_set_clockgating_by_smu() argument
299 struct pp_hwmgr *hwmgr = handle; in pp_set_clockgating_by_smu()
348 static int pp_dpm_force_performance_level(void *handle, in pp_dpm_force_performance_level() argument
351 struct pp_hwmgr *hwmgr = handle; in pp_dpm_force_performance_level()
369 void *handle) in pp_dpm_get_performance_level() argument
371 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_performance_level()
383 static uint32_t pp_dpm_get_sclk(void *handle, bool low) in pp_dpm_get_sclk() argument
385 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_sclk()
401 static uint32_t pp_dpm_get_mclk(void *handle, bool low) in pp_dpm_get_mclk() argument
403 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_mclk()
419 static void pp_dpm_powergate_vce(void *handle, bool gate) in pp_dpm_powergate_vce() argument
421 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_vce()
435 static void pp_dpm_powergate_uvd(void *handle, bool gate) in pp_dpm_powergate_uvd() argument
437 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_uvd()
451 static int pp_dpm_dispatch_tasks(void *handle, enum amd_pp_task task_id, in pp_dpm_dispatch_tasks() argument
455 struct pp_hwmgr *hwmgr = handle; in pp_dpm_dispatch_tasks()
467 static enum amd_pm_state_type pp_dpm_get_current_power_state(void *handle) in pp_dpm_get_current_power_state() argument
469 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_current_power_state()
502 static void pp_dpm_set_fan_control_mode(void *handle, uint32_t mode) in pp_dpm_set_fan_control_mode() argument
504 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_control_mode()
518 static uint32_t pp_dpm_get_fan_control_mode(void *handle) in pp_dpm_get_fan_control_mode() argument
520 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_control_mode()
536 static int pp_dpm_set_fan_speed_pwm(void *handle, uint32_t speed) in pp_dpm_set_fan_speed_pwm() argument
538 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_speed_pwm()
554 static int pp_dpm_get_fan_speed_pwm(void *handle, uint32_t *speed) in pp_dpm_get_fan_speed_pwm() argument
556 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_speed_pwm()
573 static int pp_dpm_get_fan_speed_rpm(void *handle, uint32_t *rpm) in pp_dpm_get_fan_speed_rpm() argument
575 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_speed_rpm()
590 static int pp_dpm_set_fan_speed_rpm(void *handle, uint32_t rpm) in pp_dpm_set_fan_speed_rpm() argument
592 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_speed_rpm()
608 static int pp_dpm_get_pp_num_states(void *handle, in pp_dpm_get_pp_num_states() argument
611 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_pp_num_states()
647 static int pp_dpm_get_pp_table(void *handle, char **table) in pp_dpm_get_pp_table() argument
649 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_pp_table()
662 static int amd_powerplay_reset(void *handle) in amd_powerplay_reset() argument
664 struct pp_hwmgr *hwmgr = handle; in amd_powerplay_reset()
678 static int pp_dpm_set_pp_table(void *handle, const char *buf, size_t size) in pp_dpm_set_pp_table() argument
680 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_pp_table()
699 ret = amd_powerplay_reset(handle); in pp_dpm_set_pp_table()
715 static int pp_dpm_force_clock_level(void *handle, in pp_dpm_force_clock_level() argument
718 struct pp_hwmgr *hwmgr = handle; in pp_dpm_force_clock_level()
740 static int pp_dpm_print_clock_levels(void *handle, in pp_dpm_print_clock_levels() argument
743 struct pp_hwmgr *hwmgr = handle; in pp_dpm_print_clock_levels()
759 static int pp_dpm_get_sclk_od(void *handle) in pp_dpm_get_sclk_od() argument
761 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_sclk_od()
777 static int pp_dpm_set_sclk_od(void *handle, uint32_t value) in pp_dpm_set_sclk_od() argument
779 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_sclk_od()
796 static int pp_dpm_get_mclk_od(void *handle) in pp_dpm_get_mclk_od() argument
798 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_mclk_od()
814 static int pp_dpm_set_mclk_od(void *handle, uint32_t value) in pp_dpm_set_mclk_od() argument
816 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_mclk_od()
832 static int pp_dpm_read_sensor(void *handle, int idx, in pp_dpm_read_sensor() argument
835 struct pp_hwmgr *hwmgr = handle; in pp_dpm_read_sensor()
863 pp_dpm_get_vce_clock_state(void *handle, unsigned idx) in pp_dpm_get_vce_clock_state() argument
865 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_vce_clock_state()
875 static int pp_get_power_profile_mode(void *handle, char *buf) in pp_get_power_profile_mode() argument
877 struct pp_hwmgr *hwmgr = handle; in pp_get_power_profile_mode()
891 static int pp_set_power_profile_mode(void *handle, long *input, uint32_t size) in pp_set_power_profile_mode() argument
893 struct pp_hwmgr *hwmgr = handle; in pp_set_power_profile_mode()
910 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
912 struct pp_hwmgr *hwmgr = handle; in pp_set_fine_grain_clk_vol()
923 static int pp_odn_edit_dpm_table(void *handle, uint32_t type, long *input, uint32_t size) in pp_odn_edit_dpm_table() argument
925 struct pp_hwmgr *hwmgr = handle; in pp_odn_edit_dpm_table()
938 static int pp_dpm_set_mp1_state(void *handle, enum pp_mp1_state mp1_state) in pp_dpm_set_mp1_state() argument
940 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_mp1_state()
954 static int pp_dpm_switch_power_profile(void *handle, in pp_dpm_switch_power_profile() argument
957 struct pp_hwmgr *hwmgr = handle; in pp_dpm_switch_power_profile()
1001 static int pp_set_power_limit(void *handle, uint32_t limit) in pp_set_power_limit() argument
1003 struct pp_hwmgr *hwmgr = handle; in pp_set_power_limit()
1033 static int pp_get_power_limit(void *handle, uint32_t *limit, in pp_get_power_limit() argument
1037 struct pp_hwmgr *hwmgr = handle; in pp_get_power_limit()
1072 static int pp_display_configuration_change(void *handle, in pp_display_configuration_change() argument
1075 struct pp_hwmgr *hwmgr = handle; in pp_display_configuration_change()
1086 static int pp_get_display_power_level(void *handle, in pp_get_display_power_level() argument
1089 struct pp_hwmgr *hwmgr = handle; in pp_get_display_power_level()
1101 static int pp_get_current_clocks(void *handle, in pp_get_current_clocks() argument
1106 struct pp_hwmgr *hwmgr = handle; in pp_get_current_clocks()
1153 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
1155 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type()
1170 static int pp_get_clock_by_type_with_latency(void *handle, in pp_get_clock_by_type_with_latency() argument
1174 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type_with_latency()
1186 static int pp_get_clock_by_type_with_voltage(void *handle, in pp_get_clock_by_type_with_voltage() argument
1190 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type_with_voltage()
1204 static int pp_set_watermarks_for_clocks_ranges(void *handle, in pp_set_watermarks_for_clocks_ranges() argument
1207 struct pp_hwmgr *hwmgr = handle; in pp_set_watermarks_for_clocks_ranges()
1221 static int pp_display_clock_voltage_request(void *handle, in pp_display_clock_voltage_request() argument
1224 struct pp_hwmgr *hwmgr = handle; in pp_display_clock_voltage_request()
1237 static int pp_get_display_mode_validation_clocks(void *handle, in pp_get_display_mode_validation_clocks() argument
1240 struct pp_hwmgr *hwmgr = handle; in pp_get_display_mode_validation_clocks()
1257 static int pp_dpm_powergate_mmhub(void *handle) in pp_dpm_powergate_mmhub() argument
1259 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_mmhub()
1272 static int pp_dpm_powergate_gfx(void *handle, bool gate) in pp_dpm_powergate_gfx() argument
1274 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_gfx()
1287 static void pp_dpm_powergate_acp(void *handle, bool gate) in pp_dpm_powergate_acp() argument
1289 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_acp()
1302 static void pp_dpm_powergate_sdma(void *handle, bool gate) in pp_dpm_powergate_sdma() argument
1304 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_sdma()
1317 static int pp_set_powergating_by_smu(void *handle, in pp_set_powergating_by_smu() argument
1325 pp_dpm_powergate_uvd(handle, gate); in pp_set_powergating_by_smu()
1328 pp_dpm_powergate_vce(handle, gate); in pp_set_powergating_by_smu()
1336 pp_dpm_powergate_mmhub(handle); in pp_set_powergating_by_smu()
1339 ret = pp_dpm_powergate_gfx(handle, gate); in pp_set_powergating_by_smu()
1342 pp_dpm_powergate_acp(handle, gate); in pp_set_powergating_by_smu()
1345 pp_dpm_powergate_sdma(handle, gate); in pp_set_powergating_by_smu()
1353 static int pp_notify_smu_enable_pwe(void *handle) in pp_notify_smu_enable_pwe() argument
1355 struct pp_hwmgr *hwmgr = handle; in pp_notify_smu_enable_pwe()
1372 static int pp_enable_mgpu_fan_boost(void *handle) in pp_enable_mgpu_fan_boost() argument
1374 struct pp_hwmgr *hwmgr = handle; in pp_enable_mgpu_fan_boost()
1390 static int pp_set_min_deep_sleep_dcefclk(void *handle, uint32_t clock) in pp_set_min_deep_sleep_dcefclk() argument
1392 struct pp_hwmgr *hwmgr = handle; in pp_set_min_deep_sleep_dcefclk()
1409 static int pp_set_hard_min_dcefclk_by_freq(void *handle, uint32_t clock) in pp_set_hard_min_dcefclk_by_freq() argument
1411 struct pp_hwmgr *hwmgr = handle; in pp_set_hard_min_dcefclk_by_freq()
1428 static int pp_set_hard_min_fclk_by_freq(void *handle, uint32_t clock) in pp_set_hard_min_fclk_by_freq() argument
1430 struct pp_hwmgr *hwmgr = handle; in pp_set_hard_min_fclk_by_freq()
1447 static int pp_set_active_display_count(void *handle, uint32_t count) in pp_set_active_display_count() argument
1449 struct pp_hwmgr *hwmgr = handle; in pp_set_active_display_count()
1462 static int pp_get_asic_baco_capability(void *handle, bool *cap) in pp_get_asic_baco_capability() argument
1464 struct pp_hwmgr *hwmgr = handle; in pp_get_asic_baco_capability()
1481 static int pp_get_asic_baco_state(void *handle, int *state) in pp_get_asic_baco_state() argument
1483 struct pp_hwmgr *hwmgr = handle; in pp_get_asic_baco_state()
1498 static int pp_set_asic_baco_state(void *handle, int state) in pp_set_asic_baco_state() argument
1500 struct pp_hwmgr *hwmgr = handle; in pp_set_asic_baco_state()
1516 static int pp_get_ppfeature_status(void *handle, char *buf) in pp_get_ppfeature_status() argument
1518 struct pp_hwmgr *hwmgr = handle; in pp_get_ppfeature_status()
1536 static int pp_set_ppfeature_status(void *handle, uint64_t ppfeature_masks) in pp_set_ppfeature_status() argument
1538 struct pp_hwmgr *hwmgr = handle; in pp_set_ppfeature_status()
1556 static int pp_asic_reset_mode_2(void *handle) in pp_asic_reset_mode_2() argument
1558 struct pp_hwmgr *hwmgr = handle; in pp_asic_reset_mode_2()
1576 static int pp_smu_i2c_bus_access(void *handle, bool acquire) in pp_smu_i2c_bus_access() argument
1578 struct pp_hwmgr *hwmgr = handle; in pp_smu_i2c_bus_access()
1596 static int pp_set_df_cstate(void *handle, enum pp_df_cstate state) in pp_set_df_cstate() argument
1598 struct pp_hwmgr *hwmgr = handle; in pp_set_df_cstate()
1613 static int pp_set_xgmi_pstate(void *handle, uint32_t pstate) in pp_set_xgmi_pstate() argument
1615 struct pp_hwmgr *hwmgr = handle; in pp_set_xgmi_pstate()
1630 static ssize_t pp_get_gpu_metrics(void *handle, void **table) in pp_get_gpu_metrics() argument
1632 struct pp_hwmgr *hwmgr = handle; in pp_get_gpu_metrics()
1648 static int pp_gfx_state_change_set(void *handle, uint32_t state) in pp_gfx_state_change_set() argument
1650 struct pp_hwmgr *hwmgr = handle; in pp_gfx_state_change_set()
1666 static int pp_get_prv_buffer_details(void *handle, void **addr, size_t *size) in pp_get_prv_buffer_details() argument
1668 struct pp_hwmgr *hwmgr = handle; in pp_get_prv_buffer_details()