Home
last modified time | relevance | path

Searched refs:pkg_dev (Results 1 – 7 of 7) sorted by relevance

/openbmc/linux/tools/power/x86/intel-speed-select/
H A Disst-core.c112 int isst_get_ctdp_levels(struct isst_id *id, struct isst_pkg_ctdp *pkg_dev) in isst_get_ctdp_levels() argument
115 return isst_ops->get_config_levels(id, pkg_dev); in isst_get_ctdp_levels()
194 struct isst_pkg_ctdp pkg_dev; in isst_get_pbf_info() local
197 ret = isst_get_ctdp_levels(id, &pkg_dev); in isst_get_pbf_info()
203 if (level > pkg_dev.levels) { in isst_get_pbf_info()
234 struct isst_pkg_ctdp pkg_dev; in isst_get_fact_info() local
237 ret = isst_get_ctdp_levels(id, &pkg_dev); in isst_get_fact_info()
243 if (level > pkg_dev.levels) { in isst_get_fact_info()
296 struct isst_pkg_ctdp pkg_dev; in isst_set_trl_from_current_tdp() local
300 ret = isst_get_ctdp_levels(id, &pkg_dev); in isst_set_trl_from_current_tdp()
[all …]
H A Disst-daemon.c39 struct isst_pkg_ctdp pkg_dev; in process_level_change() local
54 ret = isst_get_ctdp_levels(id, &pkg_dev); in process_level_change()
61 id->pkg, id->die, pkg_dev.current_level); in process_level_change()
63 if (pkg_dev.locked) { in process_level_change()
68 if (per_package_levels_info[id->pkg][id->die][id->punit] == pkg_dev.current_level) in process_level_change()
73 pkg_dev.current_level); in process_level_change()
75 per_package_levels_info[id->pkg][id->die][id->punit] = pkg_dev.current_level; in process_level_change()
79 ret = isst_get_coremask_info(id, pkg_dev.current_level, &ctdp_level); in process_level_change()
93 isolate_cpus(id, ctdp_level.core_cpumask_size, ctdp_level.core_cpumask, pkg_dev.current_level); in process_level_change()
H A Disst-core-mbox.c237 static int mbox_get_config_levels(struct isst_id *id, struct isst_pkg_ctdp *pkg_dev) in mbox_get_config_levels() argument
245 pkg_dev->levels = 0; in mbox_get_config_levels()
246 pkg_dev->locked = 1; in mbox_get_config_levels()
247 pkg_dev->current_level = 0; in mbox_get_config_levels()
248 pkg_dev->version = 0; in mbox_get_config_levels()
249 pkg_dev->enabled = 0; in mbox_get_config_levels()
255 pkg_dev->version = resp & 0xff; in mbox_get_config_levels()
256 pkg_dev->levels = (resp >> 8) & 0xff; in mbox_get_config_levels()
257 pkg_dev->current_level = (resp >> 16) & 0xff; in mbox_get_config_levels()
258 pkg_dev->locked = !!(resp & BIT(24)); in mbox_get_config_levels()
[all …]
H A Disst-config.c1051 struct isst_pkg_ctdp pkg_dev; in get_isst_status() local
1061 ret = isst_get_ctdp_levels(id, &pkg_dev); in get_isst_status()
1065 if (pkg_dev.enabled) in get_isst_status()
1068 if (pkg_dev.locked) in get_isst_status()
1071 if (*max_level < pkg_dev.levels) in get_isst_status()
1072 *max_level = pkg_dev.levels; in get_isst_status()
1074 for (j = 0; j <= pkg_dev.levels; ++j) { in get_isst_status()
1360 struct isst_pkg_ctdp pkg_dev; in dump_isst_config_for_cpu() local
1363 memset(&pkg_dev, 0, sizeof(pkg_dev)); in dump_isst_config_for_cpu()
1364 ret = isst_get_process_ctdp(id, tdp_level, &pkg_dev); in dump_isst_config_for_cpu()
[all …]
H A Disst-core-tpmi.c152 int tpmi_get_config_levels(struct isst_id *id, struct isst_pkg_ctdp *pkg_dev) in tpmi_get_config_levels() argument
164 pkg_dev->version = info.feature_rev; in tpmi_get_config_levels()
165 pkg_dev->levels = info.max_level; in tpmi_get_config_levels()
166 pkg_dev->locked = info.locked; in tpmi_get_config_levels()
167 pkg_dev->current_level = info.current_level; in tpmi_get_config_levels()
168 pkg_dev->locked = info.locked; in tpmi_get_config_levels()
169 pkg_dev->enabled = info.enabled; in tpmi_get_config_levels()
439 struct isst_pkg_ctdp pkg_dev; in tpmi_set_pbf_fact_status() local
445 ret = isst_get_ctdp_levels(id, &pkg_dev); in tpmi_set_pbf_fact_status()
449 current_level = pkg_dev.current_level; in tpmi_set_pbf_fact_status()
H A Disst.h244 extern int isst_get_ctdp_levels(struct isst_id *id, struct isst_pkg_ctdp *pkg_dev);
252 struct isst_pkg_ctdp *pkg_dev);
254 struct isst_pkg_ctdp *pkg_dev);
256 struct isst_pkg_ctdp *pkg_dev);
H A Disst-display.c339 struct isst_pkg_ctdp *pkg_dev) in isst_ctdp_display_information() argument
347 if (pkg_dev->processed) in isst_ctdp_display_information()
350 for (i = 0; i <= pkg_dev->levels; ++i) { in isst_ctdp_display_information()
354 ctdp_level = &pkg_dev->ctdp_level[i]; in isst_ctdp_display_information()