Searched refs:file (Results 151 - 175 of 3466) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Ddebugfs.c19 static int type_show(struct seq_file *file, void *priv) argument
21 struct mlx5_core_dev *dev = file->private;
32 seq_printf(file, "%s\n", mode);
37 static int port_sel_mode_show(struct seq_file *file, void *priv) argument
39 struct mlx5_core_dev *dev = file->private;
54 seq_printf(file, "%s\n", mode);
58 static int state_show(struct seq_file *file, void *priv) argument
60 struct mlx5_core_dev *dev = file->private;
68 seq_printf(file, "%s\n", active ? "active" : "disabled");
72 static int flags_show(struct seq_file *file, voi argument
101 mapping_show(struct seq_file *file, void *priv) argument
139 members_show(struct seq_file *file, void *priv) argument
[all...]
/linux-master/arch/loongarch/include/asm/
H A Dbug.h9 #define _BUGVERBOSE_LOCATION(file, line)
11 #define __BUGVERBOSE_LOCATION(file, line) \
13 10002: .string file; \
18 #define _BUGVERBOSE_LOCATION(file, line) __BUGVERBOSE_LOCATION(file, line)
/linux-master/fs/ceph/
H A Dioctl.c16 * get and set the file layout
18 static long ceph_ioctl_get_layout(struct file *file, void __user *arg) argument
20 struct ceph_inode_info *ci = ceph_inode(file_inode(file));
24 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false);
65 static long ceph_ioctl_set_layout(struct file *file, void __user *arg) argument
67 struct inode *inode = file_inode(file);
71 struct ceph_inode_info *ci = ceph_inode(file_inode(file));
79 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOU
137 ceph_ioctl_set_layout_policy(struct file *file, void __user *arg) argument
180 ceph_ioctl_get_dataloc(struct file *file, void __user *arg) argument
242 ceph_ioctl_lazyio(struct file *file) argument
267 ceph_ioctl_syncio(struct file *file) argument
275 vet_mds_for_fscrypt(struct file *file) argument
294 ceph_set_encryption_policy(struct file *file, unsigned long arg) argument
359 ceph_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
[all...]
/linux-master/tools/perf/util/
H A Ddata.c51 struct perf_data_file *file = &files[i]; local
53 ret = asprintf(&file->path, "%s/data.%d", data->path, i);
60 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR);
75 file->fd = ret;
97 * Directory containing a single regular perf data file which is already
115 struct perf_data_file *file; local
128 file = realloc(files, (nr + 1) * sizeof(*files));
129 if (!file)
132 files = file;
133 file
169 struct perf_data_file *file = &data->dir.files[i]; local
409 perf_data_file__write(struct perf_data_file *file, void *buf, size_t size) argument
473 struct perf_data_file *file = &data->dir.files[i]; local
555 FILE *file; local
[all...]
/linux-master/drivers/parisc/
H A Deisa_eeprom.c20 static loff_t eisa_eeprom_llseek(struct file *file, loff_t offset, int origin) argument
22 return fixed_size_llseek(file, offset, origin, HPEE_MAX_LENGTH);
25 static ssize_t eisa_eeprom_read(struct file * file, argument
52 static int eisa_eeprom_open(struct inode *inode, struct file *file) argument
54 if (file->f_mode & FMODE_WRITE)
60 static int eisa_eeprom_release(struct inode *inode, struct file *file) argument
[all...]
/linux-master/arch/mips/tools/
H A Delf-entry.c36 FILE *file; local
43 die("Usage: elf-entry <elf-file>\n");
45 file = fopen(argv[1], "r");
46 if (!file) {
47 perror("Unable to open input file");
51 nread = fread(&hdr, 1, sizeof(hdr), file);
53 perror("Unable to read input file");
54 fclose(file);
59 fclose(file);
73 fclose(file);
[all...]
/linux-master/drivers/media/usb/uvc/
H A Duvc_debugfs.c27 static int uvc_debugfs_stats_open(struct inode *inode, struct file *file) argument
38 file->private_data = buf;
42 static ssize_t uvc_debugfs_stats_read(struct file *file, char __user *user_buf, argument
45 struct uvc_debugfs_buffer *buf = file->private_data;
51 static int uvc_debugfs_stats_release(struct inode *inode, struct file *file) argument
53 kfree(file->private_data);
54 file
[all...]
/linux-master/tools/lib/api/fs/
H A Dtracing_path.c70 char *file; local
72 if (asprintf(&file, "%s/%s", tracing_path_mount(), name) < 0)
75 return file;
78 void put_tracing_file(char *file) argument
80 free(file);
85 char *file; local
87 if (asprintf(&file, "%s/events/%s", tracing_path_mount(), name) < 0)
90 return file;
93 void put_events_file(char *file) argument
95 free(file);
[all...]
/linux-master/include/linux/
H A Dfilelock.h12 #define FL_LEASE 32 /* lease held on this file */
17 #define FL_OFDLCK 1024 /* lock is "owned" by struct file */
76 * struct file_lock represents a generic "file lock". It's used to represent
109 struct file *flc_file;
150 int fcntl_getlk(struct file *, unsigned int, struct flock *);
151 int fcntl_setlk(unsigned int, struct file *, unsigned int,
155 int fcntl_getlk64(struct file *, unsigned int, struct flock64 *);
156 int fcntl_setlk64(unsigned int, struct file *, unsigned int,
160 int fcntl_setlease(unsigned int fd, struct file *filp, int arg);
161 int fcntl_getlease(struct file *fil
229 fcntl_getlk(struct file *file, unsigned int cmd, struct flock __user *user) argument
235 fcntl_setlk(unsigned int fd, struct file *file, unsigned int cmd, struct flock __user *user) argument
242 fcntl_getlk64(struct file *file, unsigned int cmd, struct flock64 *user) argument
248 fcntl_setlk64(unsigned int fd, struct file *file, unsigned int cmd, struct flock64 *user) argument
[all...]
H A Dfs.h110 * flags in file.f_mode. Note that FMODE_READ and FMODE_WRITE must correspond
114 /* file is open for reading */
116 /* file is open for writing */
118 /* file is seekable */
120 /* file can be accessed using pread */
122 /* file can be accessed using pwrite */
261 struct file *ia_file;
363 struct file *ki_filp;
395 int (*read_folio)(struct file *, struct folio *);
405 int (*write_begin)(struct file *, struc
987 struct file { struct
1086 file_dentry(const struct file *file) argument
1712 file_write_started(const struct file *file) argument
1727 file_write_not_started(const struct file *file) argument
2105 call_read_iter(struct file *file, struct kiocb *kio, struct iov_iter *iter) argument
2111 call_write_iter(struct file *file, struct kiocb *kio, struct iov_iter *iter) argument
2117 call_mmap(struct file *file, struct vm_area_struct *vma) argument
2467 file_accessed(struct file *file) argument
2629 file_mnt_idmap(const struct file *file) argument
2694 file_clone_open(struct file *file) argument
2711 finish_open_simple(struct file *file, int error) argument
2780 file_write_and_wait(struct file *file) argument
2832 file_permission(struct file *file, int mask) argument
2862 file_start_write(struct file *file) argument
2869 file_start_write_trylock(struct file *file) argument
2882 file_end_write(struct file *file) argument
2950 deny_write_access(struct file *file) argument
2959 allow_write_access(struct file *file) argument
3404 iocb_flags(struct file *file) argument
3581 dir_emit_dot(struct file *file, struct dir_context *ctx) argument
3586 dir_emit_dotdot(struct file *file, struct dir_context *ctx) argument
3591 dir_emit_dots(struct file *file, struct dir_context *ctx) argument
[all...]
H A Dfsnotify.h104 * is on a file/dentry.
111 static inline int fsnotify_file(struct file *file, __u32 mask) argument
115 if (file->f_mode & FMODE_NONOTIFY)
118 path = &file->f_path;
130 * fsnotify_file_area_perm - permission hook before access to file range
132 static inline int fsnotify_file_area_perm(struct file *file, int perm_mask, argument
139 * (e.g. by HSM filling a file on access), so sb freeze protection
142 lockdep_assert_once(file_write_not_started(file));
153 fsnotify_file_perm(struct file *file, int perm_mask) argument
161 fsnotify_open_perm(struct file *file) argument
175 fsnotify_file_area_perm(struct file *file, int perm_mask, const loff_t *ppos, size_t count) argument
181 fsnotify_file_perm(struct file *file, int perm_mask) argument
186 fsnotify_open_perm(struct file *file) argument
372 fsnotify_access(struct file *file) argument
380 fsnotify_modify(struct file *file) argument
388 fsnotify_open(struct file *file) argument
401 fsnotify_close(struct file *file) argument
[all...]
/linux-master/scripts/
H A Dleaking_addresses.pl8 # - Walks directory tree and parses each file (for each directory in @DIRS).
39 # Timer for parsing each file, in seconds.
50 my $output_raw = ""; # Write raw results to file.
51 my $input_raw = ""; # Read raw results from file instead of scanning.
55 my $kallsyms_file = ""; # Kernel symbols file.
56 my $kernel_config_file = ""; # Kernel configuration file.
95 -o, --output-raw=<file> Save results for future processing.
96 -i, --input-raw=<file> Read results from file instead of scanning.
101 --kernel-config-file
[all...]
/linux-master/arch/um/drivers/
H A Dhostaudio_kern.c68 /* /dev/dsp file operations */
70 static ssize_t hostaudio_read(struct file *file, char __user *buffer, argument
73 struct hostaudio_state *state = file->private_data;
97 static ssize_t hostaudio_write(struct file *file, const char __user *buffer, argument
100 struct hostaudio_state *state = file->private_data;
122 static __poll_t hostaudio_poll(struct file *file, argument
132 static long hostaudio_ioctl(struct file *fil argument
175 hostaudio_open(struct inode *inode, struct file *file) argument
211 hostaudio_release(struct inode *inode, struct file *file) argument
226 hostmixer_ioctl_mixdev(struct file *file, unsigned int cmd, unsigned long arg) argument
238 hostmixer_open_mixdev(struct inode *inode, struct file *file) argument
276 hostmixer_release(struct inode *inode, struct file *file) argument
[all...]
/linux-master/virt/kvm/
H A Dvfio.c10 #include <linux/file.h>
26 struct file *file; member in struct:kvm_vfio_file
38 static void kvm_vfio_file_set_kvm(struct file *file, struct kvm *kvm) argument
40 void (*fn)(struct file *file, struct kvm *kvm);
46 fn(file, kvm);
51 static bool kvm_vfio_file_enforced_coherent(struct file *file) argument
67 kvm_vfio_file_is_valid(struct file *file) argument
84 kvm_vfio_file_iommu_group(struct file *file) argument
[all...]
/linux-master/tools/testing/selftests/cpufreq/
H A Dcpufreq.sh52 for file in $files; do
53 if [ -f $1/$file ]; then
54 printf "$file:"
55 cat $1/$file
58 read_cpufreq_files_in_dir "$1/$file"
84 for file in $files; do
85 if [ -f $1/$file ]; then
86 # file is writable ?
87 local wfile=$(ls -l $1/$file | awk '$1 ~ /^.*w.*/ { print $NF; }')
90 # scaling_setspeed is a special file an
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_module_attach.c58 struct file *file, struct kobject *kobj,
69 struct file *file, struct kobject *kobj,
80 struct file *file, struct kobject *kobj,
92 struct file *file, struct kobject *kobj,
104 struct file *file, struc
57 BPF_PROG(handle_fentry, struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) argument
68 BPF_PROG(handle_fentry_manual, struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) argument
79 BPF_PROG(handle_fentry_explicit, struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) argument
91 BPF_PROG(handle_fentry_explicit_manual, struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) argument
103 BPF_PROG(handle_fexit, struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len, int ret) argument
128 BPF_PROG(handle_fmod_ret, struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t len) argument
[all...]
H A Dbpf_iter_task_vmas.c31 struct file *file; local
37 file = vma->vm_file;
49 if (file) {
50 __u32 dev = file->f_inode->i_sb->s_dev;
52 bpf_d_path(&file->f_path, d_path_buf, D_PATH_BUF_SIZE);
56 file->f_inode->i_ino);
/linux-master/fs/
H A Deventfd.c9 #include <linux/file.h>
109 static int eventfd_release(struct inode *inode, struct file *file) argument
111 struct eventfd_ctx *ctx = file->private_data;
118 static __poll_t eventfd_poll(struct file *file, poll_table *wait) argument
120 struct eventfd_ctx *ctx = file->private_data;
124 poll_wait(file, &ctx->wqh, wait);
216 struct file *file local
247 eventfd_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
325 struct file *file; local
369 eventfd_ctx_fileget(struct file *file) argument
385 struct file *file; local
[all...]
H A Dinternal.h67 struct file *file, umode_t mode);
79 int mnt_get_write_access_file(struct file *file);
80 void mnt_put_write_access_file(struct file *file);
99 struct file *alloc_empty_file(int flags, const struct cred *cred);
100 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred); argument
101 struct file *alloc_empty_backing_file(int flags, const struct cred *cred);
103 static inline void file_put_write_access(struct file *fil
108 put_file_access(struct file *file) argument
[all...]
/linux-master/drivers/scsi/cxlflash/
H A Dbackend.h40 struct file * (*get_fd)(void *ctx_cookie, struct file_operations *fops,
42 void * (*fops_get_context)(struct file *file);
44 int (*fd_mmap)(struct file *file, struct vm_area_struct *vm);
45 int (*fd_release)(struct inode *inode, struct file *file);
/linux-master/drivers/char/tpm/
H A Dtpmrm-dev.c13 static int tpmrm_open(struct inode *inode, struct file *file) argument
30 tpm_common_open(file, chip, &priv->priv, &priv->space);
35 static int tpmrm_release(struct inode *inode, struct file *file) argument
37 struct file_priv *fpriv = file->private_data;
40 tpm_common_release(file, fpriv);
/linux-master/arch/sh/mm/
H A Dcache-debugfs.c6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
25 static int cache_debugfs_show(struct seq_file *file, void *iter) argument
27 unsigned int cache_type = (unsigned int)file->private;
43 seq_printf(file, "disabled\n");
70 seq_printf(file, "-----------------------------------------\n");
71 seq_printf(file, "Way %d\n", way);
72 seq_printf(file, "-----------------------------------------\n");
84 seq_printf(file, "%3d: %c 0x%lx\n",
/linux-master/drivers/gpu/drm/i915/gt/
H A Dintel_gt_debugfs.h9 #include <linux/file.h>
23 static int __name ## _open(struct inode *inode, struct file *file) \
25 return single_open(file, __name ## _show, inode->i_private); \
30 static int __name ## _open(struct inode *inode, struct file *file) \
32 return single_open_size(file, __name ## _show, inode->i_private, \
/linux-master/drivers/crypto/caam/
H A Ddpseci-debugfs.c9 static int dpseci_dbg_fqs_show(struct seq_file *file, void *offset) argument
11 struct dpaa2_caam_priv *priv = file->private;
15 seq_printf(file, "FQ stats for %s:\n", dev_name(priv->dev));
16 seq_printf(file, "%s%16s%16s\n",
27 seq_printf(file, "%5d%16u%16u\n", fqid, fcnt, bcnt);
30 seq_printf(file, "%s%16s%16s\n",
41 seq_printf(file, "%5d%16u%16u\n", fqid, fcnt, bcnt);
/linux-master/drivers/media/pci/cx23885/
H A Dcx23885-ioctl.c14 int cx23885_g_chip_info(struct file *file, void *fh, argument
17 struct cx23885_dev *dev = video_drvdata(file);
50 int cx23885_g_register(struct file *file, void *fh, argument
53 struct cx23885_dev *dev = video_drvdata(file);
82 int cx23885_s_register(struct file *file, void *fh, argument
85 struct cx23885_dev *dev = video_drvdata(file);

Completed in 233 milliseconds

1234567891011>>