Lines Matching refs:handle
78 static int pp_early_init(void *handle) in pp_early_init() argument
81 struct amdgpu_device *adev = handle; in pp_early_init()
134 static int pp_sw_init(void *handle) in pp_sw_init() argument
136 struct amdgpu_device *adev = handle; in pp_sw_init()
151 static int pp_sw_fini(void *handle) in pp_sw_fini() argument
153 struct amdgpu_device *adev = handle; in pp_sw_fini()
163 static int pp_hw_init(void *handle) in pp_hw_init() argument
166 struct amdgpu_device *adev = handle; in pp_hw_init()
177 static int pp_hw_fini(void *handle) in pp_hw_fini() argument
179 struct amdgpu_device *adev = handle; in pp_hw_fini()
220 static int pp_late_init(void *handle) in pp_late_init() argument
222 struct amdgpu_device *adev = handle; in pp_late_init()
234 static void pp_late_fini(void *handle) in pp_late_fini() argument
236 struct amdgpu_device *adev = handle; in pp_late_fini()
244 static bool pp_is_idle(void *handle) in pp_is_idle() argument
249 static int pp_wait_for_idle(void *handle) in pp_wait_for_idle() argument
254 static int pp_sw_reset(void *handle) in pp_sw_reset() argument
259 static int pp_set_powergating_state(void *handle, in pp_set_powergating_state() argument
265 static int pp_suspend(void *handle) in pp_suspend() argument
267 struct amdgpu_device *adev = handle; in pp_suspend()
275 static int pp_resume(void *handle) in pp_resume() argument
277 struct amdgpu_device *adev = handle; in pp_resume()
283 static int pp_set_clockgating_state(void *handle, in pp_set_clockgating_state() argument
321 static int pp_dpm_load_fw(void *handle) in pp_dpm_load_fw() argument
323 struct pp_hwmgr *hwmgr = handle; in pp_dpm_load_fw()
336 static int pp_dpm_fw_loading_complete(void *handle) in pp_dpm_fw_loading_complete() argument
341 static int pp_set_clockgating_by_smu(void *handle, uint32_t msg_id) in pp_set_clockgating_by_smu() argument
343 struct pp_hwmgr *hwmgr = handle; in pp_set_clockgating_by_smu()
380 static int pp_dpm_force_performance_level(void *handle, in pp_dpm_force_performance_level() argument
383 struct pp_hwmgr *hwmgr = handle; in pp_dpm_force_performance_level()
399 void *handle) in pp_dpm_get_performance_level() argument
401 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_performance_level()
409 static uint32_t pp_dpm_get_sclk(void *handle, bool low) in pp_dpm_get_sclk() argument
411 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_sclk()
423 static uint32_t pp_dpm_get_mclk(void *handle, bool low) in pp_dpm_get_mclk() argument
425 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_mclk()
437 static void pp_dpm_powergate_vce(void *handle, bool gate) in pp_dpm_powergate_vce() argument
439 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_vce()
451 static void pp_dpm_powergate_uvd(void *handle, bool gate) in pp_dpm_powergate_uvd() argument
453 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_uvd()
465 static int pp_dpm_dispatch_tasks(void *handle, enum amd_pp_task task_id, in pp_dpm_dispatch_tasks() argument
468 struct pp_hwmgr *hwmgr = handle; in pp_dpm_dispatch_tasks()
476 static enum amd_pm_state_type pp_dpm_get_current_power_state(void *handle) in pp_dpm_get_current_power_state() argument
478 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_current_power_state()
508 static int pp_dpm_set_fan_control_mode(void *handle, uint32_t mode) in pp_dpm_set_fan_control_mode() argument
510 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_control_mode()
526 static int pp_dpm_get_fan_control_mode(void *handle, uint32_t *fan_mode) in pp_dpm_get_fan_control_mode() argument
528 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_control_mode()
543 static int pp_dpm_set_fan_speed_pwm(void *handle, uint32_t speed) in pp_dpm_set_fan_speed_pwm() argument
545 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_speed_pwm()
559 static int pp_dpm_get_fan_speed_pwm(void *handle, uint32_t *speed) in pp_dpm_get_fan_speed_pwm() argument
561 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_speed_pwm()
575 static int pp_dpm_get_fan_speed_rpm(void *handle, uint32_t *rpm) in pp_dpm_get_fan_speed_rpm() argument
577 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_speed_rpm()
591 static int pp_dpm_set_fan_speed_rpm(void *handle, uint32_t rpm) in pp_dpm_set_fan_speed_rpm() argument
593 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_speed_rpm()
607 static int pp_dpm_get_pp_num_states(void *handle, in pp_dpm_get_pp_num_states() argument
610 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_pp_num_states()
643 static int pp_dpm_get_pp_table(void *handle, char **table) in pp_dpm_get_pp_table() argument
645 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_pp_table()
654 static int amd_powerplay_reset(void *handle) in amd_powerplay_reset() argument
656 struct pp_hwmgr *hwmgr = handle; in amd_powerplay_reset()
670 static int pp_dpm_set_pp_table(void *handle, const char *buf, size_t size) in pp_dpm_set_pp_table() argument
672 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_pp_table()
690 ret = amd_powerplay_reset(handle); in pp_dpm_set_pp_table()
700 static int pp_dpm_force_clock_level(void *handle, in pp_dpm_force_clock_level() argument
703 struct pp_hwmgr *hwmgr = handle; in pp_dpm_force_clock_level()
721 static int pp_dpm_emit_clock_levels(void *handle, in pp_dpm_emit_clock_levels() argument
726 struct pp_hwmgr *hwmgr = handle; in pp_dpm_emit_clock_levels()
737 static int pp_dpm_print_clock_levels(void *handle, in pp_dpm_print_clock_levels() argument
740 struct pp_hwmgr *hwmgr = handle; in pp_dpm_print_clock_levels()
752 static int pp_dpm_get_sclk_od(void *handle) in pp_dpm_get_sclk_od() argument
754 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_sclk_od()
766 static int pp_dpm_set_sclk_od(void *handle, uint32_t value) in pp_dpm_set_sclk_od() argument
768 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_sclk_od()
781 static int pp_dpm_get_mclk_od(void *handle) in pp_dpm_get_mclk_od() argument
783 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_mclk_od()
795 static int pp_dpm_set_mclk_od(void *handle, uint32_t value) in pp_dpm_set_mclk_od() argument
797 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_mclk_od()
809 static int pp_dpm_read_sensor(void *handle, int idx, in pp_dpm_read_sensor() argument
812 struct pp_hwmgr *hwmgr = handle; in pp_dpm_read_sensor()
842 pp_dpm_get_vce_clock_state(void *handle, unsigned idx) in pp_dpm_get_vce_clock_state() argument
844 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_vce_clock_state()
854 static int pp_get_power_profile_mode(void *handle, char *buf) in pp_get_power_profile_mode() argument
856 struct pp_hwmgr *hwmgr = handle; in pp_get_power_profile_mode()
866 static int pp_set_power_profile_mode(void *handle, long *input, uint32_t size) in pp_set_power_profile_mode() argument
868 struct pp_hwmgr *hwmgr = handle; in pp_set_power_profile_mode()
881 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
883 struct pp_hwmgr *hwmgr = handle; in pp_set_fine_grain_clk_vol()
894 static int pp_odn_edit_dpm_table(void *handle, enum PP_OD_DPM_TABLE_COMMAND type, in pp_odn_edit_dpm_table() argument
897 struct pp_hwmgr *hwmgr = handle; in pp_odn_edit_dpm_table()
910 static int pp_dpm_set_mp1_state(void *handle, enum pp_mp1_state mp1_state) in pp_dpm_set_mp1_state() argument
912 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_mp1_state()
926 static int pp_dpm_switch_power_profile(void *handle, in pp_dpm_switch_power_profile() argument
929 struct pp_hwmgr *hwmgr = handle; in pp_dpm_switch_power_profile()
968 static int pp_set_power_limit(void *handle, uint32_t limit) in pp_set_power_limit() argument
970 struct pp_hwmgr *hwmgr = handle; in pp_set_power_limit()
998 static int pp_get_power_limit(void *handle, uint32_t *limit, in pp_get_power_limit() argument
1002 struct pp_hwmgr *hwmgr = handle; in pp_get_power_limit()
1033 static int pp_display_configuration_change(void *handle, in pp_display_configuration_change() argument
1036 struct pp_hwmgr *hwmgr = handle; in pp_display_configuration_change()
1045 static int pp_get_display_power_level(void *handle, in pp_get_display_power_level() argument
1048 struct pp_hwmgr *hwmgr = handle; in pp_get_display_power_level()
1056 static int pp_get_current_clocks(void *handle, in pp_get_current_clocks() argument
1061 struct pp_hwmgr *hwmgr = handle; in pp_get_current_clocks()
1104 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
1106 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type()
1117 static int pp_get_clock_by_type_with_latency(void *handle, in pp_get_clock_by_type_with_latency() argument
1121 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type_with_latency()
1129 static int pp_get_clock_by_type_with_voltage(void *handle, in pp_get_clock_by_type_with_voltage() argument
1133 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type_with_voltage()
1141 static int pp_set_watermarks_for_clocks_ranges(void *handle, in pp_set_watermarks_for_clocks_ranges() argument
1144 struct pp_hwmgr *hwmgr = handle; in pp_set_watermarks_for_clocks_ranges()
1153 static int pp_display_clock_voltage_request(void *handle, in pp_display_clock_voltage_request() argument
1156 struct pp_hwmgr *hwmgr = handle; in pp_display_clock_voltage_request()
1164 static int pp_get_display_mode_validation_clocks(void *handle, in pp_get_display_mode_validation_clocks() argument
1167 struct pp_hwmgr *hwmgr = handle; in pp_get_display_mode_validation_clocks()
1181 static int pp_dpm_powergate_mmhub(void *handle) in pp_dpm_powergate_mmhub() argument
1183 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_mmhub()
1196 static int pp_dpm_powergate_gfx(void *handle, bool gate) in pp_dpm_powergate_gfx() argument
1198 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_gfx()
1211 static void pp_dpm_powergate_acp(void *handle, bool gate) in pp_dpm_powergate_acp() argument
1213 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_acp()
1226 static void pp_dpm_powergate_sdma(void *handle, bool gate) in pp_dpm_powergate_sdma() argument
1228 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_sdma()
1241 static int pp_set_powergating_by_smu(void *handle, in pp_set_powergating_by_smu() argument
1249 pp_dpm_powergate_uvd(handle, gate); in pp_set_powergating_by_smu()
1252 pp_dpm_powergate_vce(handle, gate); in pp_set_powergating_by_smu()
1260 pp_dpm_powergate_mmhub(handle); in pp_set_powergating_by_smu()
1263 ret = pp_dpm_powergate_gfx(handle, gate); in pp_set_powergating_by_smu()
1266 pp_dpm_powergate_acp(handle, gate); in pp_set_powergating_by_smu()
1269 pp_dpm_powergate_sdma(handle, gate); in pp_set_powergating_by_smu()
1277 static int pp_notify_smu_enable_pwe(void *handle) in pp_notify_smu_enable_pwe() argument
1279 struct pp_hwmgr *hwmgr = handle; in pp_notify_smu_enable_pwe()
1294 static int pp_enable_mgpu_fan_boost(void *handle) in pp_enable_mgpu_fan_boost() argument
1296 struct pp_hwmgr *hwmgr = handle; in pp_enable_mgpu_fan_boost()
1310 static int pp_set_min_deep_sleep_dcefclk(void *handle, uint32_t clock) in pp_set_min_deep_sleep_dcefclk() argument
1312 struct pp_hwmgr *hwmgr = handle; in pp_set_min_deep_sleep_dcefclk()
1327 static int pp_set_hard_min_dcefclk_by_freq(void *handle, uint32_t clock) in pp_set_hard_min_dcefclk_by_freq() argument
1329 struct pp_hwmgr *hwmgr = handle; in pp_set_hard_min_dcefclk_by_freq()
1344 static int pp_set_hard_min_fclk_by_freq(void *handle, uint32_t clock) in pp_set_hard_min_fclk_by_freq() argument
1346 struct pp_hwmgr *hwmgr = handle; in pp_set_hard_min_fclk_by_freq()
1361 static int pp_set_active_display_count(void *handle, uint32_t count) in pp_set_active_display_count() argument
1363 struct pp_hwmgr *hwmgr = handle; in pp_set_active_display_count()
1371 static int pp_get_asic_baco_capability(void *handle, bool *cap) in pp_get_asic_baco_capability() argument
1373 struct pp_hwmgr *hwmgr = handle; in pp_get_asic_baco_capability()
1388 static int pp_get_asic_baco_state(void *handle, int *state) in pp_get_asic_baco_state() argument
1390 struct pp_hwmgr *hwmgr = handle; in pp_get_asic_baco_state()
1403 static int pp_set_asic_baco_state(void *handle, int state) in pp_set_asic_baco_state() argument
1405 struct pp_hwmgr *hwmgr = handle; in pp_set_asic_baco_state()
1419 static int pp_get_ppfeature_status(void *handle, char *buf) in pp_get_ppfeature_status() argument
1421 struct pp_hwmgr *hwmgr = handle; in pp_get_ppfeature_status()
1434 static int pp_set_ppfeature_status(void *handle, uint64_t ppfeature_masks) in pp_set_ppfeature_status() argument
1436 struct pp_hwmgr *hwmgr = handle; in pp_set_ppfeature_status()
1449 static int pp_asic_reset_mode_2(void *handle) in pp_asic_reset_mode_2() argument
1451 struct pp_hwmgr *hwmgr = handle; in pp_asic_reset_mode_2()
1464 static int pp_smu_i2c_bus_access(void *handle, bool acquire) in pp_smu_i2c_bus_access() argument
1466 struct pp_hwmgr *hwmgr = handle; in pp_smu_i2c_bus_access()
1479 static int pp_set_df_cstate(void *handle, enum pp_df_cstate state) in pp_set_df_cstate() argument
1481 struct pp_hwmgr *hwmgr = handle; in pp_set_df_cstate()
1494 static int pp_set_xgmi_pstate(void *handle, uint32_t pstate) in pp_set_xgmi_pstate() argument
1496 struct pp_hwmgr *hwmgr = handle; in pp_set_xgmi_pstate()
1509 static ssize_t pp_get_gpu_metrics(void *handle, void **table) in pp_get_gpu_metrics() argument
1511 struct pp_hwmgr *hwmgr = handle; in pp_get_gpu_metrics()
1522 static int pp_gfx_state_change_set(void *handle, uint32_t state) in pp_gfx_state_change_set() argument
1524 struct pp_hwmgr *hwmgr = handle; in pp_gfx_state_change_set()
1538 static int pp_get_prv_buffer_details(void *handle, void **addr, size_t *size) in pp_get_prv_buffer_details() argument
1540 struct pp_hwmgr *hwmgr = handle; in pp_get_prv_buffer_details()
1559 static void pp_pm_compute_clocks(void *handle) in pp_pm_compute_clocks() argument
1561 struct pp_hwmgr *hwmgr = handle; in pp_pm_compute_clocks()
1575 pp_display_configuration_change(handle, in pp_pm_compute_clocks()
1579 pp_dpm_dispatch_tasks(handle, in pp_pm_compute_clocks()