/openbmc/linux/tools/power/cpupower/utils/helpers/ |
H A D | sysfs.c | 57 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u", cpu); in sysfs_is_cpu_online() 66 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/online", cpu); in sysfs_is_cpu_online() 111 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in sysfs_idlestate_file_exists() 131 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in sysfs_idlestate_read_file() 166 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in sysfs_idlestate_write_file() 361 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU "cpuidle"); in sysfs_get_idlestate_count() 365 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU "cpu%u/cpuidle/state0", cpu); in sysfs_get_idlestate_count() 370 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU in sysfs_get_idlestate_count() 389 snprintf(path, sizeof(path), PATH_TO_CPU "cpuidle/%s", fname); in sysfs_cpuidle_read_file()
|
H A D | misc.c | 61 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/power/energy_perf_bias", cpu); in cpupower_intel_get_perf_bias() 81 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/power/energy_perf_bias", cpu); in cpupower_intel_set_perf_bias() 96 PATH_TO_CPU "cpu%u/cpufreq/energy_performance_preference", cpu); in cpupower_set_epp() 114 snprintf(path, sizeof(path), PATH_TO_CPU "amd_pstate/status"); in cpupower_set_amd_pstate_mode() 132 snprintf(path, sizeof(path), PATH_TO_CPU "cpufreq/boost"); in cpupower_set_turbo_boost()
|
H A D | sysfs.h | 5 #define PATH_TO_CPU "/sys/devices/system/cpu/" macro
|
/openbmc/linux/tools/power/cpupower/lib/ |
H A D | cpuidle.c | 37 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in cpuidle_state_file_exists() 60 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in cpuidle_state_read_file() 95 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpuidle/state%u/%s", in cpuidle_state_write_file() 291 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU "cpuidle"); in cpuidle_state_count() 295 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU "cpu%u/cpuidle/state0", cpu); in cpuidle_state_count() 300 snprintf(file, SYSFS_PATH_MAX, PATH_TO_CPU in cpuidle_state_count() 319 snprintf(path, sizeof(path), PATH_TO_CPU "cpuidle/%s", fname); in sysfs_cpuidle_read_file()
|
H A D | cpupower.c | 84 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u", cpu); in cpupower_is_cpu_online() 93 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/online", cpu); in cpupower_is_cpu_online() 123 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/topology/%s", in sysfs_topology_read_file()
|
H A D | cpupower_intern.h | 2 #define PATH_TO_CPU "/sys/devices/system/cpu/" macro
|
H A D | acpi_cppc.c | 22 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/acpi_cppc/%s", in acpi_cppc_read_file()
|
H A D | cpufreq.c | 28 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpufreq/%s", in sysfs_cpufreq_read_file() 43 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/cpufreq/%s", in sysfs_cpufreq_write_file()
|
/openbmc/linux/tools/power/x86/x86_energy_perf_policy/ |
H A D | x86_energy_perf_policy.c | 94 #define PATH_TO_CPU "/sys/devices/system/cpu/" macro 856 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/power/energy_perf_bias", cpu); in get_epb() 878 snprintf(path, sizeof(path), PATH_TO_CPU "cpu%u/power/energy_perf_bias", cpu); in set_epb()
|