Home
last modified time | relevance | path

Searched refs:filepath (Results 1 - 25 of 40) sorted by relevance

12

/kernel/linux/linux-5.10/tools/testing/selftests/cpufreq/
H A Dgovernor.sh87 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 Dspecial-tests.sh88 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 Dcpufreq.sh137 local filepath="$CPUFREQROOT/$1"
149 local freqs=$(cat $filepath/scaling_available_frequencies)
/kernel/linux/linux-6.6/tools/testing/selftests/cpufreq/
H A Dgovernor.sh87 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 Dspecial-tests.sh88 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 Dcpufreq.sh137 local filepath="$CPUFREQROOT/$1"
149 local freqs=$(cat $filepath/scaling_available_frequencies)
/kernel/linux/linux-5.10/tools/thermal/tmon/
H A Dsysfs.c37 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 Dsysfs.c37 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 DIt_process_plimits_pid_001.cpp43 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 DIt_process_plimits_pid_005.cpp48 std::string filepath = "/proc/plimits/test/plimits.procs"; in ItProcessPlimitsPid005() local
57 int fd = open(filepath.c_str(), O_WRONLY); in ItProcessPlimitsPid005()
H A DIt_process_plimits_memory_002.cpp35 static int limitWrite(const char *filepath, const char *buf) in limitWrite() argument
37 int fd = open(filepath, O_WRONLY); in limitWrite()
H A DIt_process_plimits_memory_001.cpp35 static int limitWrite(const char *filepath, const char *buf) in limitWrite() argument
37 int fd = open(filepath, O_WRONLY); in limitWrite()
H A DIt_process_plimits_pid_002.cpp43 static int PidWrite(const char *filepath, char *buf) in PidWrite() argument
45 int fd = open(filepath, O_WRONLY); in PidWrite()
H A DIt_process_plimits_pid_003.cpp39 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 Dusbip_device_driver.c66 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 Dusbip_device_driver.c66 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 Dget_abi.pl84 $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 DIt_process_plimits.h73 int WriteFile(const char *filepath, const char *buf);
76 int ReadFile(const char *filepath, char *buf);
H A Dprocess_plimits_test.cpp560 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 DIt_container_test.h94 int WriteFile(const char *filepath, const char *buf);
95 int ReadFile(const char *filepath, char *buf);
H A DIt_container_test.cpp97 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 Dget_abi.pl107 $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 Dcore.c275 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 Dcore.c224 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 Drun.sh103 filepath=$CPUFREQROOT/$policy/scaling_available_governors
106 if [ ! -f $filepath ]; then

Completed in 12 milliseconds

12