Lines Matching refs:hwmgr
50 int smum_thermal_avfs_enable(struct pp_hwmgr *hwmgr) in smum_thermal_avfs_enable() argument
52 if (NULL != hwmgr->smumgr_funcs->thermal_avfs_enable) in smum_thermal_avfs_enable()
53 return hwmgr->smumgr_funcs->thermal_avfs_enable(hwmgr); in smum_thermal_avfs_enable()
58 int smum_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) in smum_thermal_setup_fan_table() argument
60 if (NULL != hwmgr->smumgr_funcs->thermal_setup_fan_table) in smum_thermal_setup_fan_table()
61 return hwmgr->smumgr_funcs->thermal_setup_fan_table(hwmgr); in smum_thermal_setup_fan_table()
66 int smum_update_sclk_threshold(struct pp_hwmgr *hwmgr) in smum_update_sclk_threshold() argument
69 if (NULL != hwmgr->smumgr_funcs->update_sclk_threshold) in smum_update_sclk_threshold()
70 return hwmgr->smumgr_funcs->update_sclk_threshold(hwmgr); in smum_update_sclk_threshold()
75 int smum_update_smc_table(struct pp_hwmgr *hwmgr, uint32_t type) in smum_update_smc_table() argument
78 if (NULL != hwmgr->smumgr_funcs->update_smc_table) in smum_update_smc_table()
79 return hwmgr->smumgr_funcs->update_smc_table(hwmgr, type); in smum_update_smc_table()
84 uint32_t smum_get_offsetof(struct pp_hwmgr *hwmgr, uint32_t type, uint32_t member) in smum_get_offsetof() argument
86 if (NULL != hwmgr->smumgr_funcs->get_offsetof) in smum_get_offsetof()
87 return hwmgr->smumgr_funcs->get_offsetof(type, member); in smum_get_offsetof()
92 int smum_process_firmware_header(struct pp_hwmgr *hwmgr) in smum_process_firmware_header() argument
94 if (NULL != hwmgr->smumgr_funcs->process_firmware_header) in smum_process_firmware_header()
95 return hwmgr->smumgr_funcs->process_firmware_header(hwmgr); in smum_process_firmware_header()
99 uint32_t smum_get_argument(struct pp_hwmgr *hwmgr) in smum_get_argument() argument
101 if (NULL != hwmgr->smumgr_funcs->get_argument) in smum_get_argument()
102 return hwmgr->smumgr_funcs->get_argument(hwmgr); in smum_get_argument()
107 uint32_t smum_get_mac_definition(struct pp_hwmgr *hwmgr, uint32_t value) in smum_get_mac_definition() argument
109 if (NULL != hwmgr->smumgr_funcs->get_mac_definition) in smum_get_mac_definition()
110 return hwmgr->smumgr_funcs->get_mac_definition(value); in smum_get_mac_definition()
115 int smum_download_powerplay_table(struct pp_hwmgr *hwmgr, void **table) in smum_download_powerplay_table() argument
117 if (NULL != hwmgr->smumgr_funcs->download_pptable_settings) in smum_download_powerplay_table()
118 return hwmgr->smumgr_funcs->download_pptable_settings(hwmgr, in smum_download_powerplay_table()
123 int smum_upload_powerplay_table(struct pp_hwmgr *hwmgr) in smum_upload_powerplay_table() argument
125 if (NULL != hwmgr->smumgr_funcs->upload_pptable_settings) in smum_upload_powerplay_table()
126 return hwmgr->smumgr_funcs->upload_pptable_settings(hwmgr); in smum_upload_powerplay_table()
131 int smum_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) in smum_send_msg_to_smc() argument
133 if (hwmgr == NULL || hwmgr->smumgr_funcs->send_msg_to_smc == NULL) in smum_send_msg_to_smc()
136 return hwmgr->smumgr_funcs->send_msg_to_smc(hwmgr, msg); in smum_send_msg_to_smc()
139 int smum_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, in smum_send_msg_to_smc_with_parameter() argument
142 if (hwmgr == NULL || in smum_send_msg_to_smc_with_parameter()
143 hwmgr->smumgr_funcs->send_msg_to_smc_with_parameter == NULL) in smum_send_msg_to_smc_with_parameter()
145 return hwmgr->smumgr_funcs->send_msg_to_smc_with_parameter( in smum_send_msg_to_smc_with_parameter()
146 hwmgr, msg, parameter); in smum_send_msg_to_smc_with_parameter()
149 int smum_init_smc_table(struct pp_hwmgr *hwmgr) in smum_init_smc_table() argument
151 if (NULL != hwmgr->smumgr_funcs->init_smc_table) in smum_init_smc_table()
152 return hwmgr->smumgr_funcs->init_smc_table(hwmgr); in smum_init_smc_table()
157 int smum_populate_all_graphic_levels(struct pp_hwmgr *hwmgr) in smum_populate_all_graphic_levels() argument
159 if (NULL != hwmgr->smumgr_funcs->populate_all_graphic_levels) in smum_populate_all_graphic_levels()
160 return hwmgr->smumgr_funcs->populate_all_graphic_levels(hwmgr); in smum_populate_all_graphic_levels()
165 int smum_populate_all_memory_levels(struct pp_hwmgr *hwmgr) in smum_populate_all_memory_levels() argument
167 if (NULL != hwmgr->smumgr_funcs->populate_all_memory_levels) in smum_populate_all_memory_levels()
168 return hwmgr->smumgr_funcs->populate_all_memory_levels(hwmgr); in smum_populate_all_memory_levels()
174 int smum_initialize_mc_reg_table(struct pp_hwmgr *hwmgr) in smum_initialize_mc_reg_table() argument
176 if (NULL != hwmgr->smumgr_funcs->initialize_mc_reg_table) in smum_initialize_mc_reg_table()
177 return hwmgr->smumgr_funcs->initialize_mc_reg_table(hwmgr); in smum_initialize_mc_reg_table()
182 bool smum_is_dpm_running(struct pp_hwmgr *hwmgr) in smum_is_dpm_running() argument
184 if (NULL != hwmgr->smumgr_funcs->is_dpm_running) in smum_is_dpm_running()
185 return hwmgr->smumgr_funcs->is_dpm_running(hwmgr); in smum_is_dpm_running()
190 bool smum_is_hw_avfs_present(struct pp_hwmgr *hwmgr) in smum_is_hw_avfs_present() argument
192 if (hwmgr->smumgr_funcs->is_hw_avfs_present) in smum_is_hw_avfs_present()
193 return hwmgr->smumgr_funcs->is_hw_avfs_present(hwmgr); in smum_is_hw_avfs_present()
198 int smum_update_dpm_settings(struct pp_hwmgr *hwmgr, void *profile_setting) in smum_update_dpm_settings() argument
200 if (hwmgr->smumgr_funcs->update_dpm_settings) in smum_update_dpm_settings()
201 return hwmgr->smumgr_funcs->update_dpm_settings(hwmgr, profile_setting); in smum_update_dpm_settings()
206 int smum_smc_table_manager(struct pp_hwmgr *hwmgr, uint8_t *table, uint16_t table_id, bool rw) in smum_smc_table_manager() argument
208 if (hwmgr->smumgr_funcs->smc_table_manager) in smum_smc_table_manager()
209 return hwmgr->smumgr_funcs->smc_table_manager(hwmgr, table, table_id, rw); in smum_smc_table_manager()