Lines Matching refs:hwmgr
57 int smum_thermal_avfs_enable(struct pp_hwmgr *hwmgr) in smum_thermal_avfs_enable() argument
59 if (NULL != hwmgr->smumgr_funcs->thermal_avfs_enable) in smum_thermal_avfs_enable()
60 return hwmgr->smumgr_funcs->thermal_avfs_enable(hwmgr); in smum_thermal_avfs_enable()
65 int smum_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) in smum_thermal_setup_fan_table() argument
67 if (NULL != hwmgr->smumgr_funcs->thermal_setup_fan_table) in smum_thermal_setup_fan_table()
68 return hwmgr->smumgr_funcs->thermal_setup_fan_table(hwmgr); in smum_thermal_setup_fan_table()
73 int smum_update_sclk_threshold(struct pp_hwmgr *hwmgr) in smum_update_sclk_threshold() argument
76 if (NULL != hwmgr->smumgr_funcs->update_sclk_threshold) in smum_update_sclk_threshold()
77 return hwmgr->smumgr_funcs->update_sclk_threshold(hwmgr); in smum_update_sclk_threshold()
82 int smum_update_smc_table(struct pp_hwmgr *hwmgr, uint32_t type) in smum_update_smc_table() argument
85 if (NULL != hwmgr->smumgr_funcs->update_smc_table) in smum_update_smc_table()
86 return hwmgr->smumgr_funcs->update_smc_table(hwmgr, type); in smum_update_smc_table()
91 uint32_t smum_get_offsetof(struct pp_hwmgr *hwmgr, uint32_t type, uint32_t member) in smum_get_offsetof() argument
93 if (NULL != hwmgr->smumgr_funcs->get_offsetof) in smum_get_offsetof()
94 return hwmgr->smumgr_funcs->get_offsetof(type, member); in smum_get_offsetof()
99 int smum_process_firmware_header(struct pp_hwmgr *hwmgr) in smum_process_firmware_header() argument
101 if (NULL != hwmgr->smumgr_funcs->process_firmware_header) in smum_process_firmware_header()
102 return hwmgr->smumgr_funcs->process_firmware_header(hwmgr); in smum_process_firmware_header()
106 uint32_t smum_get_mac_definition(struct pp_hwmgr *hwmgr, uint32_t value) in smum_get_mac_definition() argument
108 if (NULL != hwmgr->smumgr_funcs->get_mac_definition) in smum_get_mac_definition()
109 return hwmgr->smumgr_funcs->get_mac_definition(value); in smum_get_mac_definition()
114 int smum_download_powerplay_table(struct pp_hwmgr *hwmgr, void **table) in smum_download_powerplay_table() argument
116 if (NULL != hwmgr->smumgr_funcs->download_pptable_settings) in smum_download_powerplay_table()
117 return hwmgr->smumgr_funcs->download_pptable_settings(hwmgr, in smum_download_powerplay_table()
122 int smum_upload_powerplay_table(struct pp_hwmgr *hwmgr) in smum_upload_powerplay_table() argument
124 if (NULL != hwmgr->smumgr_funcs->upload_pptable_settings) in smum_upload_powerplay_table()
125 return hwmgr->smumgr_funcs->upload_pptable_settings(hwmgr); in smum_upload_powerplay_table()
130 int smum_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg, uint32_t *resp) in smum_send_msg_to_smc() argument
134 if (hwmgr == NULL || in smum_send_msg_to_smc()
135 hwmgr->smumgr_funcs->send_msg_to_smc == NULL || in smum_send_msg_to_smc()
136 (resp && !hwmgr->smumgr_funcs->get_argument)) in smum_send_msg_to_smc()
139 mutex_lock(&hwmgr->msg_lock); in smum_send_msg_to_smc()
141 ret = hwmgr->smumgr_funcs->send_msg_to_smc(hwmgr, msg); in smum_send_msg_to_smc()
143 mutex_unlock(&hwmgr->msg_lock); in smum_send_msg_to_smc()
148 *resp = hwmgr->smumgr_funcs->get_argument(hwmgr); in smum_send_msg_to_smc()
150 mutex_unlock(&hwmgr->msg_lock); in smum_send_msg_to_smc()
155 int smum_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, in smum_send_msg_to_smc_with_parameter() argument
162 if (hwmgr == NULL || in smum_send_msg_to_smc_with_parameter()
163 hwmgr->smumgr_funcs->send_msg_to_smc_with_parameter == NULL || in smum_send_msg_to_smc_with_parameter()
164 (resp && !hwmgr->smumgr_funcs->get_argument)) in smum_send_msg_to_smc_with_parameter()
167 mutex_lock(&hwmgr->msg_lock); in smum_send_msg_to_smc_with_parameter()
169 ret = hwmgr->smumgr_funcs->send_msg_to_smc_with_parameter( in smum_send_msg_to_smc_with_parameter()
170 hwmgr, msg, parameter); in smum_send_msg_to_smc_with_parameter()
172 mutex_unlock(&hwmgr->msg_lock); in smum_send_msg_to_smc_with_parameter()
177 *resp = hwmgr->smumgr_funcs->get_argument(hwmgr); in smum_send_msg_to_smc_with_parameter()
179 mutex_unlock(&hwmgr->msg_lock); in smum_send_msg_to_smc_with_parameter()
184 int smum_init_smc_table(struct pp_hwmgr *hwmgr) in smum_init_smc_table() argument
186 if (NULL != hwmgr->smumgr_funcs->init_smc_table) in smum_init_smc_table()
187 return hwmgr->smumgr_funcs->init_smc_table(hwmgr); in smum_init_smc_table()
192 int smum_populate_all_graphic_levels(struct pp_hwmgr *hwmgr) in smum_populate_all_graphic_levels() argument
194 if (NULL != hwmgr->smumgr_funcs->populate_all_graphic_levels) in smum_populate_all_graphic_levels()
195 return hwmgr->smumgr_funcs->populate_all_graphic_levels(hwmgr); in smum_populate_all_graphic_levels()
200 int smum_populate_all_memory_levels(struct pp_hwmgr *hwmgr) in smum_populate_all_memory_levels() argument
202 if (NULL != hwmgr->smumgr_funcs->populate_all_memory_levels) in smum_populate_all_memory_levels()
203 return hwmgr->smumgr_funcs->populate_all_memory_levels(hwmgr); in smum_populate_all_memory_levels()
209 int smum_initialize_mc_reg_table(struct pp_hwmgr *hwmgr) in smum_initialize_mc_reg_table() argument
211 if (NULL != hwmgr->smumgr_funcs->initialize_mc_reg_table) in smum_initialize_mc_reg_table()
212 return hwmgr->smumgr_funcs->initialize_mc_reg_table(hwmgr); in smum_initialize_mc_reg_table()
217 bool smum_is_dpm_running(struct pp_hwmgr *hwmgr) in smum_is_dpm_running() argument
219 if (NULL != hwmgr->smumgr_funcs->is_dpm_running) in smum_is_dpm_running()
220 return hwmgr->smumgr_funcs->is_dpm_running(hwmgr); in smum_is_dpm_running()
225 bool smum_is_hw_avfs_present(struct pp_hwmgr *hwmgr) in smum_is_hw_avfs_present() argument
227 if (hwmgr->smumgr_funcs->is_hw_avfs_present) in smum_is_hw_avfs_present()
228 return hwmgr->smumgr_funcs->is_hw_avfs_present(hwmgr); in smum_is_hw_avfs_present()
233 int smum_update_dpm_settings(struct pp_hwmgr *hwmgr, void *profile_setting) in smum_update_dpm_settings() argument
235 if (hwmgr->smumgr_funcs->update_dpm_settings) in smum_update_dpm_settings()
236 return hwmgr->smumgr_funcs->update_dpm_settings(hwmgr, profile_setting); in smum_update_dpm_settings()
241 int smum_smc_table_manager(struct pp_hwmgr *hwmgr, uint8_t *table, uint16_t table_id, bool rw) in smum_smc_table_manager() argument
243 if (hwmgr->smumgr_funcs->smc_table_manager) in smum_smc_table_manager()
244 return hwmgr->smumgr_funcs->smc_table_manager(hwmgr, table, table_id, rw); in smum_smc_table_manager()
249 int smum_stop_smc(struct pp_hwmgr *hwmgr) in smum_stop_smc() argument
251 if (hwmgr->smumgr_funcs->stop_smc) in smum_stop_smc()
252 return hwmgr->smumgr_funcs->stop_smc(hwmgr); in smum_stop_smc()