Lines Matching full:id

64 int isst_is_punit_valid(struct isst_id *id)  in isst_is_punit_valid()  argument
67 return isst_ops->is_punit_valid(id); in isst_is_punit_valid()
107 int isst_read_pm_config(struct isst_id *id, int *cp_state, int *cp_cap) in isst_read_pm_config() argument
110 return isst_ops->read_pm_config(id, cp_state, cp_cap); in isst_read_pm_config()
113 int isst_get_ctdp_levels(struct isst_id *id, struct isst_pkg_ctdp *pkg_dev) in isst_get_ctdp_levels() argument
116 return isst_ops->get_config_levels(id, pkg_dev); in isst_get_ctdp_levels()
119 int isst_get_ctdp_control(struct isst_id *id, int config_index, in isst_get_ctdp_control() argument
123 return isst_ops->get_ctdp_control(id, config_index, ctdp_level); in isst_get_ctdp_control()
126 int isst_get_tdp_info(struct isst_id *id, int config_index, in isst_get_tdp_info() argument
130 return isst_ops->get_tdp_info(id, config_index, ctdp_level); in isst_get_tdp_info()
133 int isst_get_pwr_info(struct isst_id *id, int config_index, in isst_get_pwr_info() argument
137 return isst_ops->get_pwr_info(id, config_index, ctdp_level); in isst_get_pwr_info()
140 int isst_get_coremask_info(struct isst_id *id, int config_index, in isst_get_coremask_info() argument
144 return isst_ops->get_coremask_info(id, config_index, ctdp_level); in isst_get_coremask_info()
147 int isst_get_get_trl_from_msr(struct isst_id *id, int *trl) in isst_get_get_trl_from_msr() argument
152 ret = isst_send_msr_command(id->cpu, 0x1AD, 0, &msr_trl); in isst_get_get_trl_from_msr()
168 int isst_get_get_trl(struct isst_id *id, int level, int avx_level, int *trl) in isst_get_get_trl() argument
171 return isst_ops->get_get_trl(id, level, avx_level, trl); in isst_get_get_trl()
174 int isst_get_get_trls(struct isst_id *id, int level, struct isst_pkg_ctdp_level_info *ctdp_level) in isst_get_get_trls() argument
177 return isst_ops->get_get_trls(id, level, ctdp_level); in isst_get_get_trls()
180 int isst_get_trl_bucket_info(struct isst_id *id, int level, unsigned long long *buckets_info) in isst_get_trl_bucket_info() argument
183 return isst_ops->get_trl_bucket_info(id, level, buckets_info); in isst_get_trl_bucket_info()
186 int isst_set_tdp_level(struct isst_id *id, int tdp_level) in isst_set_tdp_level() argument
189 return isst_ops->set_tdp_level(id, tdp_level); in isst_set_tdp_level()
192 int isst_get_pbf_info(struct isst_id *id, int level, struct isst_pbf_info *pbf_info) in isst_get_pbf_info() argument
198 ret = isst_get_ctdp_levels(id, &pkg_dev); in isst_get_pbf_info()
209 ret = isst_get_ctdp_control(id, level, &ctdp_level); in isst_get_pbf_info()
221 return isst_ops->get_pbf_info(id, level, pbf_info); in isst_get_pbf_info()
224 int isst_set_pbf_fact_status(struct isst_id *id, int pbf, int enable) in isst_set_pbf_fact_status() argument
227 return isst_ops->set_pbf_fact_status(id, pbf, enable); in isst_set_pbf_fact_status()
232 int isst_get_fact_info(struct isst_id *id, int level, int fact_bucket, struct isst_fact_info *fact_… in isst_get_fact_info() argument
238 ret = isst_get_ctdp_levels(id, &pkg_dev); in isst_get_fact_info()
249 ret = isst_get_ctdp_control(id, level, &ctdp_level); in isst_get_fact_info()
258 return isst_ops->get_fact_info(id, level, fact_bucket, fact_info); in isst_get_fact_info()
261 int isst_get_trl(struct isst_id *id, unsigned long long *trl) in isst_get_trl() argument
265 ret = isst_send_msr_command(id->cpu, 0x1AD, 0, trl); in isst_get_trl()
272 int isst_set_trl(struct isst_id *id, unsigned long long trl) in isst_set_trl() argument
279 ret = isst_send_msr_command(id->cpu, 0x1AD, 1, &trl); in isst_set_trl()
288 int isst_set_trl_from_current_tdp(struct isst_id *id, unsigned long long trl) in isst_set_trl_from_current_tdp() argument
293 if (id->cpu < 0) in isst_set_trl_from_current_tdp()
303 ret = isst_get_ctdp_levels(id, &pkg_dev); in isst_set_trl_from_current_tdp()
307 ret = isst_get_get_trl(id, pkg_dev.current_level, 0, trl); in isst_set_trl_from_current_tdp()
322 ret = isst_send_msr_command(id->cpu, 0x1AD, 1, &msr_trl); in isst_set_trl_from_current_tdp()
330 int isst_get_config_tdp_lock_status(struct isst_id *id) in isst_get_config_tdp_lock_status() argument
335 ret = isst_send_msr_command(id->cpu, 0x64b, 0, &tdp_control); in isst_get_config_tdp_lock_status()
344 void isst_get_process_ctdp_complete(struct isst_id *id, struct isst_pkg_ctdp *pkg_dev) in isst_get_process_ctdp_complete() argument
361 void isst_adjust_uncore_freq(struct isst_id *id, int config_index, in isst_adjust_uncore_freq() argument
365 return isst_ops->adjust_uncore_freq(id, config_index, ctdp_level); in isst_adjust_uncore_freq()
368 int isst_get_process_ctdp(struct isst_id *id, int tdp_level, struct isst_pkg_ctdp *pkg_dev) in isst_get_process_ctdp() argument
375 ret = isst_get_ctdp_levels(id, pkg_dev); in isst_get_process_ctdp()
380 id->cpu, pkg_dev->enabled, pkg_dev->current_level, in isst_get_process_ctdp()
397 debug_printf("cpu:%d Get Information for TDP level:%d\n", id->cpu, in isst_get_process_ctdp()
402 ctdp_level->control_cpu = id->cpu; in isst_get_process_ctdp()
403 ctdp_level->pkg_id = id->pkg; in isst_get_process_ctdp()
404 ctdp_level->die_id = id->die; in isst_get_process_ctdp()
406 ret = isst_get_ctdp_control(id, i, ctdp_level); in isst_get_process_ctdp()
415 ret = isst_get_pbf_info(id, i, &ctdp_level->pbf_info); in isst_get_process_ctdp()
421 ret = isst_get_fact_info(id, i, 0xff, in isst_get_process_ctdp()
430 freq = get_cpufreq_base_freq(id->cpu); in isst_get_process_ctdp()
436 isst_get_get_trl_from_msr(id, ctdp_level->trl_ratios[0]); in isst_get_process_ctdp()
437 isst_get_trl_bucket_info(id, i, &ctdp_level->trl_cores); in isst_get_process_ctdp()
441 ret = isst_get_tdp_info(id, i, ctdp_level); in isst_get_process_ctdp()
445 ret = isst_get_pwr_info(id, i, ctdp_level); in isst_get_process_ctdp()
451 ret = isst_get_coremask_info(id, i, ctdp_level); in isst_get_process_ctdp()
455 ret = isst_get_trl_bucket_info(id, i, &ctdp_level->trl_cores); in isst_get_process_ctdp()
459 ret = isst_get_get_trls(id, i, ctdp_level); in isst_get_process_ctdp()
465 …sage(0, "Invalid level, Can't get TDP control information at specified levels on cpu", 1, id->cpu); in isst_get_process_ctdp()
470 int isst_clos_get_clos_information(struct isst_id *id, int *enable, int *type) in isst_clos_get_clos_information() argument
473 return isst_ops->get_clos_information(id, enable, type); in isst_clos_get_clos_information()
476 int isst_pm_qos_config(struct isst_id *id, int enable_clos, int priority_type) in isst_pm_qos_config() argument
479 return isst_ops->pm_qos_config(id, enable_clos, priority_type); in isst_pm_qos_config()
482 int isst_pm_get_clos(struct isst_id *id, int clos, struct isst_clos_config *clos_config) in isst_pm_get_clos() argument
485 return isst_ops->pm_get_clos(id, clos, clos_config); in isst_pm_get_clos()
488 int isst_set_clos(struct isst_id *id, int clos, struct isst_clos_config *clos_config) in isst_set_clos() argument
491 return isst_ops->set_clos(id, clos, clos_config); in isst_set_clos()
494 int isst_clos_get_assoc_status(struct isst_id *id, int *clos_id) in isst_clos_get_assoc_status() argument
497 return isst_ops->clos_get_assoc_status(id, clos_id); in isst_clos_get_assoc_status()
500 int isst_clos_associate(struct isst_id *id, int clos_id) in isst_clos_associate() argument
503 return isst_ops->clos_associate(id, clos_id); in isst_clos_associate()