/openbmc/linux/tools/power/cpupower/lib/ |
H A D | cpufreq.c | 26 char path[SYSFS_PATH_MAX]; in sysfs_cpufreq_read_file() 39 char path[SYSFS_PATH_MAX]; in sysfs_cpufreq_write_file() 349 char one_value[SYSFS_PATH_MAX]; in cpufreq_get_available_frequencies() 405 char one_value[SYSFS_PATH_MAX]; in cpufreq_get_boost_frequencies() 600 char min[SYSFS_PATH_MAX]; in cpufreq_set_policy() 601 char max[SYSFS_PATH_MAX]; in cpufreq_set_policy() 602 char gov[SYSFS_PATH_MAX]; in cpufreq_set_policy() 648 char value[SYSFS_PATH_MAX]; in cpufreq_modify_policy_min() 659 char value[SYSFS_PATH_MAX]; in cpufreq_modify_policy_max() 669 char new_gov[SYSFS_PATH_MAX]; in cpufreq_modify_policy_governor() [all …]
|
H A D | cpuidle.c | 33 char path[SYSFS_PATH_MAX]; in cpuidle_state_file_exists() 56 char path[SYSFS_PATH_MAX]; in cpuidle_state_read_file() 91 char path[SYSFS_PATH_MAX]; in cpuidle_state_write_file() 232 char value[SYSFS_PATH_MAX]; in cpuidle_state_disable() 242 snprintf(value, SYSFS_PATH_MAX, "%u", disable); in cpuidle_state_disable() 286 char file[SYSFS_PATH_MAX]; in cpuidle_state_count() 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() 317 char path[SYSFS_PATH_MAX]; in sysfs_cpuidle_read_file()
|
H A D | powercap.c | 75 char path[SYSFS_PATH_MAX] = PATH_TO_POWERCAP "/intel-rapl/enabled"; in powercap_get_enabled() 95 char file[SYSFS_PATH_MAX] = PATH_TO_RAPL; in powercap_get_driver() 128 char file[SYSFS_PATH_MAX] = PATH_TO_POWERCAP "/"; in sysfs_powercap_get64_val() 168 char path[SYSFS_PATH_MAX] = PATH_TO_POWERCAP; in powercap_zone_get_enabled() 171 strlen("/enabled") + 1 >= SYSFS_PATH_MAX) in powercap_zone_get_enabled() 192 char sysfs_dir[SYSFS_PATH_MAX] = PATH_TO_POWERCAP; in powercap_read_zone() 194 char file[SYSFS_PATH_MAX] = PATH_TO_POWERCAP; in powercap_read_zone() 267 char file[SYSFS_PATH_MAX] = PATH_TO_RAPL "/enabled"; in powercap_init_zones()
|
H A D | powercap.h | 18 #define SYSFS_PATH_MAX 255 macro 28 char sys_name[SYSFS_PATH_MAX];
|
H A D | cpupower_intern.h | 8 #define SYSFS_PATH_MAX 255 macro
|
H A D | cpupower.c | 76 char path[SYSFS_PATH_MAX]; in cpupower_is_cpu_online() 121 char path[SYSFS_PATH_MAX]; in sysfs_topology_read_file()
|
H A D | acpi_cppc.c | 20 char path[SYSFS_PATH_MAX]; in acpi_cppc_read_file()
|
/openbmc/linux/tools/power/cpupower/utils/helpers/ |
H A D | sysfs.c | 49 char path[SYSFS_PATH_MAX]; in sysfs_is_cpu_online() 107 char path[SYSFS_PATH_MAX]; in sysfs_idlestate_file_exists() 127 char path[SYSFS_PATH_MAX]; in sysfs_idlestate_read_file() 162 char path[SYSFS_PATH_MAX]; in sysfs_idlestate_write_file() 302 char value[SYSFS_PATH_MAX]; in sysfs_idlestate_disable() 312 snprintf(value, SYSFS_PATH_MAX, "%u", disable); in sysfs_idlestate_disable() 356 char file[SYSFS_PATH_MAX]; in sysfs_get_idlestate_count() 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() [all …]
|
H A D | misc.c | 54 char path[SYSFS_PATH_MAX]; in cpupower_intel_get_perf_bias() 75 char path[SYSFS_PATH_MAX]; in cpupower_intel_set_perf_bias() 92 char path[SYSFS_PATH_MAX]; in cpupower_set_epp() 111 char path[SYSFS_PATH_MAX]; in cpupower_set_amd_pstate_mode() 129 char path[SYSFS_PATH_MAX]; in cpupower_set_turbo_boost()
|
H A D | sysfs.h | 7 #define SYSFS_PATH_MAX 255 macro
|
/openbmc/linux/tools/usb/usbip/libsrc/ |
H A D | usbip_device_driver.c | 66 char filepath[SYSFS_PATH_MAX]; in read_usb_vudc_device() 76 snprintf(filepath, SYSFS_PATH_MAX, "%s/%s", in read_usb_vudc_device() 96 strncpy(dev->path, path, SYSFS_PATH_MAX - 1); in read_usb_vudc_device() 97 dev->path[SYSFS_PATH_MAX - 1] = '\0'; in read_usb_vudc_device()
|
H A D | usbip_common.h | 43 #define SYSFS_PATH_MAX 256 macro 112 char path[SYSFS_PATH_MAX];
|
H A D | usbip_host_common.c | 30 char status_attr_path[SYSFS_PATH_MAX]; in read_attr_usbip_status() 215 char sockfd_attr_path[SYSFS_PATH_MAX]; in usbip_export_device()
|
H A D | usbip_common.c | 229 strncpy(udev->path, path, SYSFS_PATH_MAX - 1); in read_usb_device() 230 udev->path[SYSFS_PATH_MAX - 1] = '\0'; in read_usb_device()
|
H A D | vhci_driver.c | 360 char attach_attr_path[SYSFS_PATH_MAX]; in usbip_vhci_attach_device2() 401 char detach_attr_path[SYSFS_PATH_MAX]; in usbip_vhci_detach_device()
|
/openbmc/linux/tools/usb/usbip/src/ |
H A D | usbip_unbind.c | 36 char unbind_attr_path[SYSFS_PATH_MAX]; in unbind_device() 38 char rebind_attr_path[SYSFS_PATH_MAX]; in unbind_device()
|
H A D | usbip_bind.c | 41 char bind_attr_path[SYSFS_PATH_MAX]; in bind_usbip() 64 char unbind_attr_path[SYSFS_PATH_MAX]; in unbind_other()
|
H A D | utils.c | 19 char match_busid_attr_path[SYSFS_PATH_MAX]; in modify_match_busid()
|
/openbmc/linux/tools/testing/selftests/ir/ |
H A D | ir_loopback.c | 29 #define SYSFS_PATH_MAX 256 macro 74 char buf[SYSFS_PATH_MAX + DNAME_PATH_MAX]; in lirc_open()
|
/openbmc/linux/tools/power/x86/x86_energy_perf_policy/ |
H A D | x86_energy_perf_policy.c | 95 #define SYSFS_PATH_MAX 255 macro 848 char path[SYSFS_PATH_MAX]; in get_epb() 870 char path[SYSFS_PATH_MAX]; in set_epb()
|