/kernel/linux/linux-5.10/tools/testing/selftests/cpufreq/ |
H A D | governor.sh | 87 local filepath=$CPUFREQROOT/$1/scaling_available_governors 90 local found=$(cat $filepath | grep $2 | wc -l) 126 local filepath=$CPUFREQROOT/$2/scaling_available_governors 129 if [ ! -f $filepath ]; then 135 local governors=$(cat $filepath)
|
H A D | special-tests.sh | 88 local filepath="$CPUROOT/$1/cpufreq" 98 local freqs=$(cat $filepath/scaling_available_frequencies) 99 local oldfreq=$(cat $filepath/scaling_min_freq) 105 echo $freq > $filepath/scaling_min_freq 110 echo $oldfreq > $filepath/scaling_min_freq
|
H A D | cpufreq.sh | 137 local filepath="$CPUFREQROOT/$1" 149 local freqs=$(cat $filepath/scaling_available_frequencies)
|
/kernel/linux/linux-6.6/tools/testing/selftests/cpufreq/ |
H A D | governor.sh | 87 local filepath=$CPUFREQROOT/$1/scaling_available_governors 90 local found=$(cat $filepath | grep $2 | wc -l) 126 local filepath=$CPUFREQROOT/$2/scaling_available_governors 129 if [ ! -f $filepath ]; then 135 local governors=$(cat $filepath)
|
H A D | special-tests.sh | 88 local filepath="$CPUROOT/$1/cpufreq" 98 local freqs=$(cat $filepath/scaling_available_frequencies) 99 local oldfreq=$(cat $filepath/scaling_min_freq) 105 echo $freq > $filepath/scaling_min_freq 110 echo $oldfreq > $filepath/scaling_min_freq
|
H A D | cpufreq.sh | 137 local filepath="$CPUFREQROOT/$1" 149 local freqs=$(cat $filepath/scaling_available_frequencies)
|
/kernel/linux/linux-5.10/tools/thermal/tmon/ |
H A D | sysfs.c | 37 char filepath[PATH_MAX + 2]; /* NUL and '/' */ in sysfs_set_ulong() local 39 snprintf(filepath, sizeof(filepath), "%s/%s", path, filename); in sysfs_set_ulong() 41 fd = fopen(filepath, "w"); in sysfs_set_ulong() 43 syslog(LOG_ERR, "Err: open %s: %s\n", __func__, filepath); in sysfs_set_ulong() 61 char filepath[PATH_MAX + 2]; /* NUL and '/' */ in sysfs_get_ulong() local 63 snprintf(filepath, sizeof(filepath), "%s/%s", path, filename); in sysfs_get_ulong() 65 fd = fopen(filepath, "r"); in sysfs_get_ulong() 67 syslog(LOG_ERR, "Err: open %s: %s\n", __func__, filepath); in sysfs_get_ulong() 80 char filepath[PATH_MAX + 2]; /* NUL and '/' */ sysfs_get_string() local [all...] |
/kernel/linux/linux-6.6/tools/thermal/tmon/ |
H A D | sysfs.c | 37 char filepath[PATH_MAX + 2]; /* NUL and '/' */ in sysfs_set_ulong() local 39 snprintf(filepath, sizeof(filepath), "%s/%s", path, filename); in sysfs_set_ulong() 41 fd = fopen(filepath, "w"); in sysfs_set_ulong() 43 syslog(LOG_ERR, "Err: open %s: %s\n", __func__, filepath); in sysfs_set_ulong() 61 char filepath[PATH_MAX + 2]; /* NUL and '/' */ in sysfs_get_ulong() local 63 snprintf(filepath, sizeof(filepath), "%s/%s", path, filename); in sysfs_get_ulong() 65 fd = fopen(filepath, "r"); in sysfs_get_ulong() 67 syslog(LOG_ERR, "Err: open %s: %s\n", __func__, filepath); in sysfs_get_ulong() 80 char filepath[PATH_MAX + 2]; /* NUL and '/' */ sysfs_get_string() local [all...] |
/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/ |
H A D | It_process_plimits_pid_001.cpp | 43 static int PidWrite(const char *filepath, char *buf) in PidWrite() argument 45 int fd = open(filepath, O_WRONLY); in PidWrite() 51 printf("filepath: %s buf: %s, errno=%d\n", filepath, buf, errno); in PidWrite() 57 static int PidFork(const char *filepath, int index) in PidFork() argument
|
H A D | It_process_plimits_pid_005.cpp | 48 std::string filepath = "/proc/plimits/test/plimits.procs"; in ItProcessPlimitsPid005() local 57 int fd = open(filepath.c_str(), O_WRONLY); in ItProcessPlimitsPid005()
|
H A D | It_process_plimits_memory_002.cpp | 35 static int limitWrite(const char *filepath, const char *buf) in limitWrite() argument 37 int fd = open(filepath, O_WRONLY); in limitWrite()
|
H A D | It_process_plimits_memory_001.cpp | 35 static int limitWrite(const char *filepath, const char *buf) in limitWrite() argument 37 int fd = open(filepath, O_WRONLY); in limitWrite()
|
H A D | It_process_plimits_pid_002.cpp | 43 static int PidWrite(const char *filepath, char *buf) in PidWrite() argument 45 int fd = open(filepath, O_WRONLY); in PidWrite()
|
H A D | It_process_plimits_pid_003.cpp | 39 static int PidWrite(const char *filepath, char *buf) in PidWrite() argument 41 int fd = open(filepath, O_WRONLY); in PidWrite()
|
/kernel/linux/linux-5.10/tools/usb/usbip/libsrc/ |
H A D | usbip_device_driver.c | 66 char filepath[SYSFS_PATH_MAX]; in read_usb_vudc_device() local 76 snprintf(filepath, SYSFS_PATH_MAX, "%s/%s", in read_usb_vudc_device() 78 fd = fopen(filepath, "r"); in read_usb_vudc_device()
|
/kernel/linux/linux-6.6/tools/usb/usbip/libsrc/ |
H A D | usbip_device_driver.c | 66 char filepath[SYSFS_PATH_MAX]; in read_usb_vudc_device() local 76 snprintf(filepath, SYSFS_PATH_MAX, "%s/%s", in read_usb_vudc_device() 78 fd = fopen(filepath, "r"); in read_usb_vudc_device()
|
/kernel/linux/linux-5.10/scripts/ |
H A D | get_abi.pl | 84 $data{$nametag}->{filepath} = $file; 165 $data{$what}->{filepath} = $file; 169 $data{$what}->{filepath} .= " " . $file; 299 my @filepath = split / /, $data{$what}->{filepath}; 345 for (my $i = 0; $i < scalar(@filepath); $i++) { 346 my $path = $filepath[$i]; 461 my $file = $data{$what}->{filepath};
|
/kernel/liteos_a/testsuites/unittest/process/plimits/ |
H A D | It_process_plimits.h | 73 int WriteFile(const char *filepath, const char *buf); 76 int ReadFile(const char *filepath, char *buf);
|
H A D | process_plimits_test.cpp | 560 int ReadFile(const char *filepath, char *buf) in ReadFile() argument 563 fpid = fopen(filepath, "r"); in ReadFile() 572 int WriteFile(const char *filepath, const char *buf) in WriteFile() argument 574 int fd = open(filepath, O_WRONLY); in WriteFile()
|
/kernel/liteos_a/testsuites/unittest/container/ |
H A D | It_container_test.h | 94 int WriteFile(const char *filepath, const char *buf); 95 int ReadFile(const char *filepath, char *buf);
|
H A D | It_container_test.cpp | 97 int ReadFile(const char *filepath, char *buf) in ReadFile() argument 100 fpid = fopen(filepath, "r"); in ReadFile() 109 int WriteFile(const char *filepath, const char *buf) in WriteFile() argument 111 int fd = open(filepath, O_WRONLY); in WriteFile()
|
/kernel/linux/linux-6.6/scripts/ |
H A D | get_abi.pl | 107 $data{$nametag}->{filepath} = $file; 188 $data{$what}->{filepath} = $file; 193 $data{$what}->{filepath} .= " " . $file; 327 my @filepath = split / /, $data{$what}->{filepath}; 373 for (my $i = 0; $i < scalar(@filepath); $i++) { 374 my $path = $filepath[$i]; 517 my $file = $data{$what}->{filepath};
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/ |
H A D | core.c | 275 char *filename, filepath[100]; in ath11k_core_fetch_board_data_api_n() local 292 filepath, sizeof(filepath)); in ath11k_core_fetch_board_data_api_n() 298 filepath, len); in ath11k_core_fetch_board_data_api_n() 313 filepath, len); in ath11k_core_fetch_board_data_api_n() 363 boardname, filepath); in ath11k_core_fetch_board_data_api_n()
|
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath12k/ |
H A D | core.c | 224 char *filename, filepath[100]; in ath12k_core_fetch_board_data_api_n() local 241 filepath, sizeof(filepath)); in ath12k_core_fetch_board_data_api_n() 247 filepath, len); in ath12k_core_fetch_board_data_api_n() 262 filepath, len); in ath12k_core_fetch_board_data_api_n() 312 boardname, filepath); in ath12k_core_fetch_board_data_api_n()
|
/kernel/linux/linux-6.6/tools/testing/selftests/amd-pstate/ |
H A D | run.sh | 103 filepath=$CPUFREQROOT/$policy/scaling_available_governors 106 if [ ! -f $filepath ]; then
|