Home
last modified time | relevance | path

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

/tools/power/x86/intel-speed-select/
Disst-core.c47 int isst_get_ctdp_levels(int cpu, struct isst_pkg_ctdp *pkg_dev) in isst_get_ctdp_levels() argument
55 pkg_dev->levels = 0; in isst_get_ctdp_levels()
56 pkg_dev->locked = 1; in isst_get_ctdp_levels()
57 pkg_dev->current_level = 0; in isst_get_ctdp_levels()
58 pkg_dev->version = 0; in isst_get_ctdp_levels()
59 pkg_dev->enabled = 0; in isst_get_ctdp_levels()
65 pkg_dev->version = resp & 0xff; in isst_get_ctdp_levels()
66 pkg_dev->levels = (resp >> 8) & 0xff; in isst_get_ctdp_levels()
67 pkg_dev->current_level = (resp >> 16) & 0xff; in isst_get_ctdp_levels()
68 pkg_dev->locked = !!(resp & BIT(24)); in isst_get_ctdp_levels()
[all …]
Disst.h200 extern int isst_get_ctdp_levels(int cpu, struct isst_pkg_ctdp *pkg_dev);
206 struct isst_pkg_ctdp *pkg_dev);
208 struct isst_pkg_ctdp *pkg_dev);
210 struct isst_pkg_ctdp *pkg_dev);
Disst-config.c932 struct isst_pkg_ctdp pkg_dev; in isst_print_extended_platform_info() local
951 ret = isst_get_ctdp_levels(i, &pkg_dev); in isst_print_extended_platform_info()
955 if (pkg_dev.enabled) { in isst_print_extended_platform_info()
962 if (pkg_dev.locked) in isst_print_extended_platform_info()
965 fprintf(outf, "TDP level change control is unlocked, max level: %d \n", pkg_dev.levels); in isst_print_extended_platform_info()
967 for (j = 0; j <= pkg_dev.levels; ++j) { in isst_print_extended_platform_info()
1239 struct isst_pkg_ctdp pkg_dev; in dump_isst_config_for_cpu() local
1242 memset(&pkg_dev, 0, sizeof(pkg_dev)); in dump_isst_config_for_cpu()
1243 ret = isst_get_process_ctdp(cpu, tdp_level, &pkg_dev); in dump_isst_config_for_cpu()
1249 isst_ctdp_display_information(cpu, outf, tdp_level, &pkg_dev); in dump_isst_config_for_cpu()
[all …]
Disst-display.c357 struct isst_pkg_ctdp *pkg_dev) in isst_ctdp_display_information() argument
364 if (pkg_dev->processed) in isst_ctdp_display_information()
367 for (i = 0; i <= pkg_dev->levels; ++i) { in isst_ctdp_display_information()
371 ctdp_level = &pkg_dev->ctdp_level[i]; in isst_ctdp_display_information()