/linux/tools/testing/selftests/cpufreq/ |
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 | 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 | cpufreq.sh | 144 local filepath="$CPUFREQROOT/$1" 156 local freqs=$(cat $filepath/scaling_available_frequencies)
|
/linux/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 '/' */ in sysfs_get_string() local 82 snprintf(filepath, sizeof(filepath), "%s/%s", path, filename); in sysfs_get_string() [all …]
|
/linux/fs/ |
H A D | file_attr.c | 386 struct path filepath __free(path_put) = {}; in SYSCALL_DEFINE5() 417 filepath = fd_file(f)->f_path; in SYSCALL_DEFINE5() 418 path_get(&filepath); in SYSCALL_DEFINE5() 420 error = filename_lookup(dfd, name, lookup_flags, &filepath, in SYSCALL_DEFINE5() 426 error = vfs_fileattr_get(filepath.dentry, &fa); in SYSCALL_DEFINE5() 441 struct path filepath __free(path_put) = {}; in SYSCALL_DEFINE5() 481 filepath = fd_file(f)->f_path; in SYSCALL_DEFINE5() 482 path_get(&filepath); in SYSCALL_DEFINE5() 484 error = filename_lookup(dfd, name, lookup_flags, &filepath, in SYSCALL_DEFINE5() 490 error = mnt_want_write(filepath.mnt); in SYSCALL_DEFINE5() [all …]
|
/linux/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()
|
/linux/tools/testing/selftests/net/ |
H A D | tfo.c | 106 static void usage(const char *filepath) in usage() argument 108 error(1, 0, "Usage: %s (-s|-c) -h<server_ip> -p<port> -o<outfile> ", filepath); in usage()
|
H A D | io_uring_zerocopy_tx.c | 221 static void usage(const char *filepath) in usage() argument 224 "[-t<time s>] [-n<batch>] [-p<port>] [-m<mode>]", filepath); in usage()
|
H A D | udpgso_bench_rx.c | 285 static void usage(const char *filepath) in usage() argument 289 filepath); in usage()
|
H A D | udpgso_bench_tx.c | 430 static void usage(const char *filepath) in usage() argument 434 filepath); in usage()
|
H A D | msg_zerocopy.c | 704 static void usage(const char *filepath) in usage() argument 706 error(1, 0, "Usage: %s [options] <test>", filepath); in usage()
|
H A D | txtimestamp.c | 687 static void __attribute__((noreturn)) usage(const char *filepath) in usage() argument 716 filepath); in usage()
|
/linux/tools/crypto/tcrypt/ |
H A D | tcrypt_speed_compare.py | 92 def parse(filepath): argument 95 with open(filepath, 'r') as file:
|
/linux/drivers/gpu/drm/msm/registers/ |
H A D | gen_header.py | 581 filepath = os.path.abspath(filename) 582 if filepath in self.xml_files: 584 self.xml_files.append(filepath) 880 for filepath in p.xml_files: 881 new_filepath = re.sub("^.+drivers","drivers",filepath) 883 for filepath in p.xml_files: 885 filesize = str(os.path.getsize(filepath)) 887 filetime = time.ctime(os.path.getmtime(filepath))
|
/linux/drivers/net/wireless/ath/ath11k/ |
H A D | core.c | 1595 char *filename, filepath[100]; in ath11k_core_fetch_board_data_api_n() local 1612 filepath, sizeof(filepath)); in ath11k_core_fetch_board_data_api_n() 1618 filepath, len); in ath11k_core_fetch_board_data_api_n() 1633 filepath, len); in ath11k_core_fetch_board_data_api_n() 1685 boardname, filepath); in ath11k_core_fetch_board_data_api_n() 1716 char *filename, filepath[100]; in ath11k_core_fetch_bdf() local 1786 filepath, sizeof(filepath)); in ath11k_core_fetch_bdf() 1788 boardname, filepath); in ath11k_core_fetch_bdf() 1791 fallback_boardname, filepath); in ath11k_core_fetch_bdf() 1794 chip_id_boardname, filepath); in ath11k_core_fetch_bdf()
|
/linux/drivers/net/wireless/ath/ath12k/ |
H A D | core.c | 402 char *filename, filepath[100]; in ath12k_core_fetch_board_data_api_n() local 419 filepath, sizeof(filepath)); in ath12k_core_fetch_board_data_api_n() 425 filepath, len); in ath12k_core_fetch_board_data_api_n() 440 filepath, len); in ath12k_core_fetch_board_data_api_n() 492 boardname, filepath); in ath12k_core_fetch_board_data_api_n() 522 char *filename, filepath[100]; in ath12k_core_fetch_bdf() local 560 filepath, sizeof(filepath)); in ath12k_core_fetch_bdf() 562 boardname, filepath); in ath12k_core_fetch_bdf() 565 fallback_boardname, filepath); in ath12k_core_fetch_bdf()
|
/linux/tools/testing/selftests/amd-pstate/ |
H A D | run.sh | 107 filepath=$CPUFREQROOT/$policy/scaling_available_governors 110 if [ ! -f $filepath ]; then
|
/linux/fs/smb/server/ |
H A D | vfs.c | 1208 int __ksmbd_vfs_kern_path(struct ksmbd_work *work, char *filepath, in __ksmbd_vfs_kern_path() argument 1218 err = ksmbd_vfs_path_lookup(share_conf, filepath, flags, path, do_lock); in __ksmbd_vfs_kern_path() 1222 path_len = strlen(filepath); in __ksmbd_vfs_kern_path() 1229 char *filename = filepath + path_len - remain_len; in __ksmbd_vfs_kern_path() 1251 filepath, in __ksmbd_vfs_kern_path() 1280 int ksmbd_vfs_kern_path(struct ksmbd_work *work, char *filepath, in ksmbd_vfs_kern_path() argument 1284 return __ksmbd_vfs_kern_path(work, filepath, flags, path, in ksmbd_vfs_kern_path() 1301 int ksmbd_vfs_kern_path_locked(struct ksmbd_work *work, char *filepath, in ksmbd_vfs_kern_path_locked() argument 1305 return __ksmbd_vfs_kern_path(work, filepath, flags, path, in ksmbd_vfs_kern_path_locked()
|
/linux/tools/bpf/bpftool/ |
H A D | prog.c | 702 char *filepath, bool opcodes, bool visual, bool linum) in prog_dump() argument 747 if (filepath) { in prog_dump() 748 fd = open(filepath, O_WRONLY | O_CREAT | O_TRUNC, 0600); in prog_dump() 750 p_err("can't open file %s: %s", filepath, in prog_dump() 886 char *filepath = NULL; in do_dump() local 931 filepath = *argv; in do_dump() 953 if (filepath && (opcodes || visual || linum)) { in do_dump() 993 err = prog_dump(&info, mode, filepath, opcodes, visual, linum); in do_dump()
|
/linux/security/ipe/ |
H A D | Kconfig | 28 This option specifies a filepath to an IPE policy that is compiled
|