Lines Matching full:handle

247 static bool pp_is_idle(void *handle)  in pp_is_idle()  argument
311 static int pp_dpm_load_fw(void *handle) in pp_dpm_load_fw() argument
313 struct pp_hwmgr *hwmgr = handle; in pp_dpm_load_fw()
326 static int pp_dpm_fw_loading_complete(void *handle) in pp_dpm_fw_loading_complete() argument
331 static int pp_set_clockgating_by_smu(void *handle, uint32_t msg_id) in pp_set_clockgating_by_smu() argument
333 struct pp_hwmgr *hwmgr = handle; in pp_set_clockgating_by_smu()
370 static int pp_dpm_force_performance_level(void *handle, in pp_dpm_force_performance_level() argument
373 struct pp_hwmgr *hwmgr = handle; in pp_dpm_force_performance_level()
389 void *handle) in pp_dpm_get_performance_level() argument
391 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_performance_level()
399 static uint32_t pp_dpm_get_sclk(void *handle, bool low) in pp_dpm_get_sclk() argument
401 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_sclk()
413 static uint32_t pp_dpm_get_mclk(void *handle, bool low) in pp_dpm_get_mclk() argument
415 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_mclk()
427 static void pp_dpm_powergate_vce(void *handle, bool gate) in pp_dpm_powergate_vce() argument
429 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_vce()
441 static void pp_dpm_powergate_uvd(void *handle, bool gate) in pp_dpm_powergate_uvd() argument
443 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_uvd()
455 static int pp_dpm_dispatch_tasks(void *handle, enum amd_pp_task task_id, in pp_dpm_dispatch_tasks() argument
458 struct pp_hwmgr *hwmgr = handle; in pp_dpm_dispatch_tasks()
466 static enum amd_pm_state_type pp_dpm_get_current_power_state(void *handle) in pp_dpm_get_current_power_state() argument
468 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_current_power_state()
498 static int pp_dpm_set_fan_control_mode(void *handle, uint32_t mode) in pp_dpm_set_fan_control_mode() argument
500 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_control_mode()
516 static int pp_dpm_get_fan_control_mode(void *handle, uint32_t *fan_mode) in pp_dpm_get_fan_control_mode() argument
518 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_control_mode()
533 static int pp_dpm_set_fan_speed_pwm(void *handle, uint32_t speed) in pp_dpm_set_fan_speed_pwm() argument
535 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_speed_pwm()
549 static int pp_dpm_get_fan_speed_pwm(void *handle, uint32_t *speed) in pp_dpm_get_fan_speed_pwm() argument
551 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_speed_pwm()
565 static int pp_dpm_get_fan_speed_rpm(void *handle, uint32_t *rpm) in pp_dpm_get_fan_speed_rpm() argument
567 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_fan_speed_rpm()
581 static int pp_dpm_set_fan_speed_rpm(void *handle, uint32_t rpm) in pp_dpm_set_fan_speed_rpm() argument
583 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_fan_speed_rpm()
597 static int pp_dpm_get_pp_num_states(void *handle, in pp_dpm_get_pp_num_states() argument
600 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_pp_num_states()
633 static int pp_dpm_get_pp_table(void *handle, char **table) in pp_dpm_get_pp_table() argument
635 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_pp_table()
644 static int amd_powerplay_reset(void *handle) in amd_powerplay_reset() argument
646 struct pp_hwmgr *hwmgr = handle; in amd_powerplay_reset()
660 static int pp_dpm_set_pp_table(void *handle, const char *buf, size_t size) in pp_dpm_set_pp_table() argument
662 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_pp_table()
680 ret = amd_powerplay_reset(handle); in pp_dpm_set_pp_table()
690 static int pp_dpm_force_clock_level(void *handle, in pp_dpm_force_clock_level() argument
693 struct pp_hwmgr *hwmgr = handle; in pp_dpm_force_clock_level()
711 static int pp_dpm_emit_clock_levels(void *handle, in pp_dpm_emit_clock_levels() argument
716 struct pp_hwmgr *hwmgr = handle; in pp_dpm_emit_clock_levels()
727 static int pp_dpm_print_clock_levels(void *handle, in pp_dpm_print_clock_levels() argument
730 struct pp_hwmgr *hwmgr = handle; in pp_dpm_print_clock_levels()
742 static int pp_dpm_get_sclk_od(void *handle) in pp_dpm_get_sclk_od() argument
744 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_sclk_od()
756 static int pp_dpm_set_sclk_od(void *handle, uint32_t value) in pp_dpm_set_sclk_od() argument
758 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_sclk_od()
771 static int pp_dpm_get_mclk_od(void *handle) in pp_dpm_get_mclk_od() argument
773 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_mclk_od()
785 static int pp_dpm_set_mclk_od(void *handle, uint32_t value) in pp_dpm_set_mclk_od() argument
787 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_mclk_od()
799 static int pp_dpm_read_sensor(void *handle, int idx, in pp_dpm_read_sensor() argument
802 struct pp_hwmgr *hwmgr = handle; in pp_dpm_read_sensor()
832 pp_dpm_get_vce_clock_state(void *handle, unsigned idx) in pp_dpm_get_vce_clock_state() argument
834 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_vce_clock_state()
844 static int pp_get_power_profile_mode(void *handle, char *buf) in pp_get_power_profile_mode() argument
846 struct pp_hwmgr *hwmgr = handle; in pp_get_power_profile_mode()
856 static int pp_set_power_profile_mode(void *handle, long *input, uint32_t size) in pp_set_power_profile_mode() argument
858 struct pp_hwmgr *hwmgr = handle; in pp_set_power_profile_mode()
871 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
873 struct pp_hwmgr *hwmgr = handle; in pp_set_fine_grain_clk_vol()
884 static int pp_odn_edit_dpm_table(void *handle, enum PP_OD_DPM_TABLE_COMMAND type, in pp_odn_edit_dpm_table() argument
887 struct pp_hwmgr *hwmgr = handle; in pp_odn_edit_dpm_table()
900 static int pp_dpm_set_mp1_state(void *handle, enum pp_mp1_state mp1_state) in pp_dpm_set_mp1_state() argument
902 struct pp_hwmgr *hwmgr = handle; in pp_dpm_set_mp1_state()
916 static int pp_dpm_switch_power_profile(void *handle, in pp_dpm_switch_power_profile() argument
919 struct pp_hwmgr *hwmgr = handle; in pp_dpm_switch_power_profile()
958 static int pp_set_power_limit(void *handle, uint32_t limit) in pp_set_power_limit() argument
960 struct pp_hwmgr *hwmgr = handle; in pp_set_power_limit()
988 static int pp_get_power_limit(void *handle, uint32_t *limit, in pp_get_power_limit() argument
992 struct pp_hwmgr *hwmgr = handle; in pp_get_power_limit()
1026 static int pp_display_configuration_change(void *handle, in pp_display_configuration_change() argument
1029 struct pp_hwmgr *hwmgr = handle; in pp_display_configuration_change()
1038 static int pp_get_display_power_level(void *handle, in pp_get_display_power_level() argument
1041 struct pp_hwmgr *hwmgr = handle; in pp_get_display_power_level()
1049 static int pp_get_current_clocks(void *handle, in pp_get_current_clocks() argument
1054 struct pp_hwmgr *hwmgr = handle; in pp_get_current_clocks()
1097 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
1099 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type()
1110 static int pp_get_clock_by_type_with_latency(void *handle, in pp_get_clock_by_type_with_latency() argument
1114 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type_with_latency()
1122 static int pp_get_clock_by_type_with_voltage(void *handle, in pp_get_clock_by_type_with_voltage() argument
1126 struct pp_hwmgr *hwmgr = handle; in pp_get_clock_by_type_with_voltage()
1134 static int pp_set_watermarks_for_clocks_ranges(void *handle, in pp_set_watermarks_for_clocks_ranges() argument
1137 struct pp_hwmgr *hwmgr = handle; in pp_set_watermarks_for_clocks_ranges()
1146 static int pp_display_clock_voltage_request(void *handle, in pp_display_clock_voltage_request() argument
1149 struct pp_hwmgr *hwmgr = handle; in pp_display_clock_voltage_request()
1157 static int pp_get_display_mode_validation_clocks(void *handle, in pp_get_display_mode_validation_clocks() argument
1160 struct pp_hwmgr *hwmgr = handle; in pp_get_display_mode_validation_clocks()
1174 static int pp_dpm_powergate_mmhub(void *handle) in pp_dpm_powergate_mmhub() argument
1176 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_mmhub()
1189 static int pp_dpm_powergate_gfx(void *handle, bool gate) in pp_dpm_powergate_gfx() argument
1191 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_gfx()
1204 static void pp_dpm_powergate_acp(void *handle, bool gate) in pp_dpm_powergate_acp() argument
1206 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_acp()
1219 static void pp_dpm_powergate_sdma(void *handle, bool gate) in pp_dpm_powergate_sdma() argument
1221 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_sdma()
1234 static int pp_set_powergating_by_smu(void *handle, in pp_set_powergating_by_smu() argument
1244 pp_dpm_powergate_uvd(handle, gate); in pp_set_powergating_by_smu()
1247 pp_dpm_powergate_vce(handle, gate); in pp_set_powergating_by_smu()
1255 pp_dpm_powergate_mmhub(handle); in pp_set_powergating_by_smu()
1258 ret = pp_dpm_powergate_gfx(handle, gate); in pp_set_powergating_by_smu()
1261 pp_dpm_powergate_acp(handle, gate); in pp_set_powergating_by_smu()
1264 pp_dpm_powergate_sdma(handle, gate); in pp_set_powergating_by_smu()
1272 static int pp_notify_smu_enable_pwe(void *handle) in pp_notify_smu_enable_pwe() argument
1274 struct pp_hwmgr *hwmgr = handle; in pp_notify_smu_enable_pwe()
1289 static int pp_enable_mgpu_fan_boost(void *handle) in pp_enable_mgpu_fan_boost() argument
1291 struct pp_hwmgr *hwmgr = handle; in pp_enable_mgpu_fan_boost()
1305 static int pp_set_min_deep_sleep_dcefclk(void *handle, uint32_t clock) in pp_set_min_deep_sleep_dcefclk() argument
1307 struct pp_hwmgr *hwmgr = handle; in pp_set_min_deep_sleep_dcefclk()
1322 static int pp_set_hard_min_dcefclk_by_freq(void *handle, uint32_t clock) in pp_set_hard_min_dcefclk_by_freq() argument
1324 struct pp_hwmgr *hwmgr = handle; in pp_set_hard_min_dcefclk_by_freq()
1339 static int pp_set_hard_min_fclk_by_freq(void *handle, uint32_t clock) in pp_set_hard_min_fclk_by_freq() argument
1341 struct pp_hwmgr *hwmgr = handle; in pp_set_hard_min_fclk_by_freq()
1356 static int pp_set_active_display_count(void *handle, uint32_t count) in pp_set_active_display_count() argument
1358 struct pp_hwmgr *hwmgr = handle; in pp_set_active_display_count()
1366 static int pp_get_asic_baco_capability(void *handle) in pp_get_asic_baco_capability() argument
1368 struct pp_hwmgr *hwmgr = handle; in pp_get_asic_baco_capability()
1380 static int pp_get_asic_baco_state(void *handle, int *state) in pp_get_asic_baco_state() argument
1382 struct pp_hwmgr *hwmgr = handle; in pp_get_asic_baco_state()
1395 static int pp_set_asic_baco_state(void *handle, int state) in pp_set_asic_baco_state() argument
1397 struct pp_hwmgr *hwmgr = handle; in pp_set_asic_baco_state()
1411 static int pp_get_ppfeature_status(void *handle, char *buf) in pp_get_ppfeature_status() argument
1413 struct pp_hwmgr *hwmgr = handle; in pp_get_ppfeature_status()
1426 static int pp_set_ppfeature_status(void *handle, uint64_t ppfeature_masks) in pp_set_ppfeature_status() argument
1428 struct pp_hwmgr *hwmgr = handle; in pp_set_ppfeature_status()
1441 static int pp_asic_reset_mode_2(void *handle) in pp_asic_reset_mode_2() argument
1443 struct pp_hwmgr *hwmgr = handle; in pp_asic_reset_mode_2()
1456 static int pp_smu_i2c_bus_access(void *handle, bool acquire) in pp_smu_i2c_bus_access() argument
1458 struct pp_hwmgr *hwmgr = handle; in pp_smu_i2c_bus_access()
1471 static int pp_set_df_cstate(void *handle, enum pp_df_cstate state) in pp_set_df_cstate() argument
1473 struct pp_hwmgr *hwmgr = handle; in pp_set_df_cstate()
1486 static int pp_set_xgmi_pstate(void *handle, uint32_t pstate) in pp_set_xgmi_pstate() argument
1488 struct pp_hwmgr *hwmgr = handle; in pp_set_xgmi_pstate()
1501 static ssize_t pp_get_gpu_metrics(void *handle, void **table) in pp_get_gpu_metrics() argument
1503 struct pp_hwmgr *hwmgr = handle; in pp_get_gpu_metrics()
1514 static int pp_gfx_state_change_set(void *handle, uint32_t state) in pp_gfx_state_change_set() argument
1516 struct pp_hwmgr *hwmgr = handle; in pp_gfx_state_change_set()
1530 static int pp_get_prv_buffer_details(void *handle, void **addr, size_t *size) in pp_get_prv_buffer_details() argument
1532 struct pp_hwmgr *hwmgr = handle; in pp_get_prv_buffer_details()
1551 static void pp_pm_compute_clocks(void *handle) in pp_pm_compute_clocks() argument
1553 struct pp_hwmgr *hwmgr = handle; in pp_pm_compute_clocks()
1567 pp_display_configuration_change(handle, in pp_pm_compute_clocks()
1571 pp_dpm_dispatch_tasks(handle, in pp_pm_compute_clocks()