Home
last modified time | relevance | path

Searched refs:clos_config (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/tools/power/x86/intel-speed-select/
H A Disst-core-tpmi.c673 struct isst_clos_config *clos_config) in tpmi_pm_get_clos() argument
687 clos_config->epp = 0; in tpmi_pm_get_clos()
688 clos_config->clos_prop_prio = info.prop_prio; in tpmi_pm_get_clos()
689 clos_config->clos_min = info.min_freq_mhz; in tpmi_pm_get_clos()
690 clos_config->clos_max = info.max_freq_mhz; in tpmi_pm_get_clos()
691 clos_config->clos_desired = 0; in tpmi_pm_get_clos()
694 clos_config->clos_min, clos_config->clos_max); in tpmi_pm_get_clos()
700 struct isst_clos_config *clos_config) in tpmi_set_clos() argument
711 info.min_freq_mhz = clos_config->clos_min; in tpmi_set_clos()
712 info.max_freq_mhz = clos_config->clos_max; in tpmi_set_clos()
[all …]
H A Disst.h208 int (*pm_get_clos)(struct isst_id *id, int clos, struct isst_clos_config *clos_config);
209 int (*set_clos)(struct isst_id *id, int clos, struct isst_clos_config *clos_config);
279 struct isst_clos_config *clos_config);
281 struct isst_clos_config *clos_config);
285 struct isst_clos_config *clos_config);
H A Disst-core-mbox.c960 clos_config->epp = resp & 0x0f; in mbox_pm_get_clos()
961 clos_config->clos_prop_prio = (resp >> 4) & 0x0f; in mbox_pm_get_clos()
962 clos_config->clos_min = (resp >> 8) & 0xff; in mbox_pm_get_clos()
963 clos_config->clos_max = (resp >> 16) & 0xff; in mbox_pm_get_clos()
964 clos_config->clos_desired = (resp >> 24) & 0xff; in mbox_pm_get_clos()
969 static int mbox_set_clos(struct isst_id *id, int clos, struct isst_clos_config *clos_config) in mbox_set_clos() argument
975 req = clos_config->epp & 0x0f; in mbox_set_clos()
976 req |= (clos_config->clos_prop_prio & 0x0f) << 4; in mbox_set_clos()
977 req |= (clos_config->clos_min & 0xff) << 8; in mbox_set_clos()
978 req |= (clos_config->clos_max & 0xff) << 16; in mbox_set_clos()
[all …]
H A Disst-core.c475 int isst_pm_get_clos(struct isst_id *id, int clos, struct isst_clos_config *clos_config) in isst_pm_get_clos() argument
478 return isst_ops->pm_get_clos(id, clos, clos_config); in isst_pm_get_clos()
481 int isst_set_clos(struct isst_id *id, int clos, struct isst_clos_config *clos_config) in isst_set_clos() argument
484 return isst_ops->set_clos(id, clos, clos_config); in isst_set_clos()
H A Disst-display.c584 struct isst_clos_config *clos_config) in isst_clos_display_information() argument
600 snprintf(value, sizeof(value), "%d", clos_config->epp); in isst_clos_display_information()
604 snprintf(value, sizeof(value), "%d", clos_config->clos_prop_prio); in isst_clos_display_information()
608 snprintf(value, sizeof(value), "%d MHz", clos_config->clos_min * isst_get_disp_freq_multiplier()); in isst_clos_display_information()
612 if ((clos_config->clos_max * isst_get_disp_freq_multiplier()) == 25500) in isst_clos_display_information()
615 snprintf(value, sizeof(value), "%d MHz", clos_config->clos_max * isst_get_disp_freq_multiplier()); in isst_clos_display_information()
619 …snprintf(value, sizeof(value), "%d MHz", clos_config->clos_desired * isst_get_disp_freq_multiplier… in isst_clos_display_information()
H A Disst-config.c1586 struct isst_clos_config clos_config; in set_clos_param() local
1594 clos_config.clos_min = min; in set_clos_param()
1595 clos_config.clos_max = max; in set_clos_param()
1596 clos_config.epp = epp; in set_clos_param()
1597 clos_config.clos_prop_prio = wt; in set_clos_param()
2298 struct isst_clos_config clos_config; in dump_clos_config_for_cpu() local
2306 &clos_config); in dump_clos_config_for_cpu()
2374 struct isst_clos_config clos_config; in set_clos_config_for_cpu() local
2380 clos_config.epp = clos_epp; in set_clos_config_for_cpu()
2382 clos_config.clos_min = clos_min; in set_clos_config_for_cpu()
[all …]