Home
last modified time | relevance | path

Searched full:file (Results 1 – 25 of 10680) sorted by relevance

12345678910>>...428

/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/
Dvivid-vid-cap.h20 int vivid_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
21 int vivid_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
22 int vivid_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
23 int vidioc_g_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
24 int vidioc_try_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
25 int vidioc_s_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
26 int vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
27 int vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
28 int vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
29 int vivid_vid_cap_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
[all …]
Dvivid-vid-out.h15 int vivid_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
16 int vivid_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
17 int vivid_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
18 int vidioc_g_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f);
19 int vidioc_try_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f);
20 int vidioc_s_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f);
21 int vidioc_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
22 int vidioc_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
23 int vidioc_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
24 int vivid_vid_out_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
[all …]
/kernel/linux/linux-6.6/drivers/media/test-drivers/vivid/
Dvivid-vid-cap.h20 int vivid_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
21 int vivid_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
22 int vivid_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
23 int vidioc_g_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
24 int vidioc_try_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
25 int vidioc_s_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
26 int vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
27 int vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
28 int vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
29 int vivid_vid_cap_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
[all …]
Dvivid-vid-out.h15 int vivid_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
16 int vivid_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
17 int vivid_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
18 int vidioc_g_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f);
19 int vidioc_try_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f);
20 int vidioc_s_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f);
21 int vidioc_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
22 int vidioc_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
23 int vidioc_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
24 int vivid_vid_out_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
[all …]
/kernel/linux/linux-5.10/include/media/
Dv4l2-ioctl.h300 int (*vidioc_querycap)(struct file *file, void *fh,
304 int (*vidioc_enum_fmt_vid_cap)(struct file *file, void *fh,
306 int (*vidioc_enum_fmt_vid_overlay)(struct file *file, void *fh,
308 int (*vidioc_enum_fmt_vid_out)(struct file *file, void *fh,
310 int (*vidioc_enum_fmt_sdr_cap)(struct file *file, void *fh,
312 int (*vidioc_enum_fmt_sdr_out)(struct file *file, void *fh,
314 int (*vidioc_enum_fmt_meta_cap)(struct file *file, void *fh,
316 int (*vidioc_enum_fmt_meta_out)(struct file *file, void *fh,
320 int (*vidioc_g_fmt_vid_cap)(struct file *file, void *fh,
322 int (*vidioc_g_fmt_vid_overlay)(struct file *file, void *fh,
[all …]
/kernel/linux/linux-6.6/include/media/
Dv4l2-ioctl.h300 int (*vidioc_querycap)(struct file *file, void *fh,
304 int (*vidioc_enum_fmt_vid_cap)(struct file *file, void *fh,
306 int (*vidioc_enum_fmt_vid_overlay)(struct file *file, void *fh,
308 int (*vidioc_enum_fmt_vid_out)(struct file *file, void *fh,
310 int (*vidioc_enum_fmt_sdr_cap)(struct file *file, void *fh,
312 int (*vidioc_enum_fmt_sdr_out)(struct file *file, void *fh,
314 int (*vidioc_enum_fmt_meta_cap)(struct file *file, void *fh,
316 int (*vidioc_enum_fmt_meta_out)(struct file *file, void *fh,
320 int (*vidioc_g_fmt_vid_cap)(struct file *file, void *fh,
322 int (*vidioc_g_fmt_vid_overlay)(struct file *file, void *fh,
[all …]
/kernel/linux/linux-5.10/fs/overlayfs/
Dfile.c7 #include <linux/file.h>
39 static struct file *ovl_open_realfile(const struct file *file, in ovl_open_realfile() argument
42 struct inode *inode = file_inode(file); in ovl_open_realfile()
43 struct file *realfile; in ovl_open_realfile()
45 int flags = file->f_flags | OVL_OPEN_FLAGS; in ovl_open_realfile()
59 realfile = open_with_fake_path(&file->f_path, flags, realinode, in ovl_open_realfile()
65 file, file, ovl_whatisit(inode, realinode), file->f_flags, in ovl_open_realfile()
73 static int ovl_change_flags(struct file *file, unsigned int flags) in ovl_change_flags() argument
75 struct inode *inode = file_inode(file); in ovl_change_flags()
81 if (WARN_ON((file->f_flags ^ flags) & ~OVL_SETFL_MASK)) in ovl_change_flags()
[all …]
/kernel/linux/linux-6.6/fs/hmdfs/
Dfile_local.c8 #include <linux/file.h>
23 int hmdfs_file_open_local(struct inode *inode, struct file *file) in hmdfs_file_open_local() argument
26 struct file *lower_file = NULL; in hmdfs_file_open_local()
38 hmdfs_get_lower_path(file->f_path.dentry, &lower_path); in hmdfs_file_open_local()
41 lower_file = dentry_open(&lower_path, file->f_flags | O_DIRECT, in hmdfs_file_open_local()
44 lower_file = dentry_open(&lower_path, file->f_flags, cred); in hmdfs_file_open_local()
51 file->private_data = gfi; in hmdfs_file_open_local()
52 hmdfs_update_upper_file(file, lower_file); in hmdfs_file_open_local()
53 if (file->f_flags & (O_RDWR | O_WRONLY)) in hmdfs_file_open_local()
60 int hmdfs_file_release_local(struct inode *inode, struct file *file) in hmdfs_file_release_local() argument
[all …]
/kernel/linux/linux-5.10/fs/hmdfs/
Dfile_local.c8 #include <linux/file.h>
23 int hmdfs_file_open_local(struct inode *inode, struct file *file) in hmdfs_file_open_local() argument
26 struct file *lower_file = NULL; in hmdfs_file_open_local()
38 hmdfs_get_lower_path(file->f_path.dentry, &lower_path); in hmdfs_file_open_local()
41 lower_file = dentry_open(&lower_path, file->f_flags | O_DIRECT, in hmdfs_file_open_local()
44 lower_file = dentry_open(&lower_path, file->f_flags, cred); in hmdfs_file_open_local()
51 file->private_data = gfi; in hmdfs_file_open_local()
52 hmdfs_update_upper_file(file, lower_file); in hmdfs_file_open_local()
53 if (file->f_flags & (O_RDWR | O_WRONLY)) in hmdfs_file_open_local()
60 int hmdfs_file_release_local(struct inode *inode, struct file *file) in hmdfs_file_release_local() argument
[all …]
/kernel/linux/linux-6.6/fs/overlayfs/
Dfile.c7 #include <linux/file.h>
39 static struct file *ovl_open_realfile(const struct file *file, in ovl_open_realfile() argument
43 struct inode *inode = file_inode(file); in ovl_open_realfile()
45 struct file *realfile; in ovl_open_realfile()
47 int flags = file->f_flags | OVL_OPEN_FLAGS; in ovl_open_realfile()
63 realfile = backing_file_open(&file->f_path, flags, realpath, in ovl_open_realfile()
69 file, file, ovl_whatisit(inode, realinode), file->f_flags, in ovl_open_realfile()
77 static int ovl_change_flags(struct file *file, unsigned int flags) in ovl_change_flags() argument
79 struct inode *inode = file_inode(file); in ovl_change_flags()
84 if (((flags ^ file->f_flags) & O_APPEND) && IS_APPEND(inode)) in ovl_change_flags()
[all …]
/kernel/linux/linux-6.6/fs/sharefs/
Dfile.c3 * fs/sharefs/file.c
14 static int sharefs_readdir(struct file *file, struct dir_context *ctx) in sharefs_readdir() argument
17 struct file *lower_file = NULL; in sharefs_readdir()
18 struct dentry *dentry = file->f_path.dentry; in sharefs_readdir()
20 lower_file = sharefs_lower_file(file); in sharefs_readdir()
22 file->f_pos = lower_file->f_pos; in sharefs_readdir()
29 static int sharefs_open(struct inode *inode, struct file *file) in sharefs_open() argument
32 struct file *lower_file = NULL; in sharefs_open()
36 if (d_unhashed(file->f_path.dentry)) { in sharefs_open()
41 file->private_data = in sharefs_open()
[all …]
/kernel/linux/linux-5.10/fs/sharefs/
Dfile.c3 * fs/sharefs/file.c
14 static int sharefs_readdir(struct file *file, struct dir_context *ctx) in sharefs_readdir() argument
17 struct file *lower_file = NULL; in sharefs_readdir()
18 struct dentry *dentry = file->f_path.dentry; in sharefs_readdir()
20 lower_file = sharefs_lower_file(file); in sharefs_readdir()
22 file->f_pos = lower_file->f_pos; in sharefs_readdir()
29 static int sharefs_open(struct inode *inode, struct file *file) in sharefs_open() argument
32 struct file *lower_file = NULL; in sharefs_open()
36 if (d_unhashed(file->f_path.dentry)) { in sharefs_open()
41 file->private_data = in sharefs_open()
[all …]
/kernel/linux/linux-5.10/fs/
Dread_write.c12 #include <linux/file.h>
38 * vfs_setpos - update the file offset for lseek
39 * @file: file structure in question
40 * @offset: file offset to seek to
41 * @maxsize: maximum file size
43 * This is a low-level filesystem helper for updating the file offset to
45 * not equal to the current file offset.
49 loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize) in vfs_setpos() argument
51 if (offset < 0 && !unsigned_offsets(file)) in vfs_setpos()
56 if (offset != file->f_pos) { in vfs_setpos()
[all …]
Dfile_table.c11 #include <linux/file.h>
40 /* SLAB cache for file structures */
47 struct file *f = container_of(head, struct file, f_u.fu_rcuhead); in file_free_rcu()
53 static inline void file_free(struct file *f) in file_free()
96 static struct file *__alloc_file(int flags, const struct cred *cred) in __alloc_file()
98 struct file *f; in __alloc_file()
124 /* Find an unused file structure and return a pointer to it.
125 * Returns an error pointer if some error happend e.g. we over file
134 struct file *alloc_empty_file(int flags, const struct cred *cred) in alloc_empty_file()
137 struct file *f; in alloc_empty_file()
[all …]
/kernel/linux/linux-6.6/fs/
Dfile_table.c11 #include <linux/file.h>
42 /* SLAB cache for file structures */
47 /* Container for backing file with optional real path */
49 struct file file; member
53 static inline struct backing_file *backing_file(struct file *f) in backing_file()
55 return container_of(f, struct backing_file, file); in backing_file()
58 struct path *backing_file_real_path(struct file *f) in backing_file_real_path()
66 struct file *f = container_of(head, struct file, f_rcuhead); in file_free_rcu()
75 static inline void file_free(struct file *f) in file_free()
116 .procname = "file-nr",
[all …]
Dread_write.c12 #include <linux/file.h>
37 static inline bool unsigned_offsets(struct file *file) in unsigned_offsets() argument
39 return file->f_mode & FMODE_UNSIGNED_OFFSET; in unsigned_offsets()
43 * vfs_setpos - update the file offset for lseek
44 * @file: file structure in question
45 * @offset: file offset to seek to
46 * @maxsize: maximum file size
48 * This is a low-level filesystem helper for updating the file offset to
50 * not equal to the current file offset.
54 loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize) in vfs_setpos() argument
[all …]
Dfile.c3 * linux/fs/file.c
17 #include <linux/file.h>
53 * space if any. This does not copy the file pointers. Called with the files
70 * Copy all file descriptors from the old table to the new, expanded table and
79 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
80 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
114 nr /= (1024 / sizeof(struct file *)); in alloc_fdtable()
116 nr *= (1024 / sizeof(struct file *)); in alloc_fdtable()
133 data = kvmalloc_array(nr, sizeof(struct file *), GFP_KERNEL_ACCOUNT); in alloc_fdtable()
160 * Expand the file descriptor table.
[all …]
/kernel/linux/linux-6.6/fs/lockd/
Dsvcsubs.c28 * Global file hash table
46 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) in nlm_debug_print_file() argument
48 struct inode *inode = nlmsvc_file_inode(file); in nlm_debug_print_file()
59 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) in nlm_debug_print_file() argument
80 * Open the file. Note that if we're reexporting, for example,
84 * the file.
87 struct nlm_file *file, int mode) in nlm_do_fopen() argument
89 struct file **fp = &file->f_file[mode]; in nlm_do_fopen()
94 nfserr = nlmsvc_ops->fopen(rqstp, &file->f_handle, fp, mode); in nlm_do_fopen()
101 * Lookup file info. If it doesn't exist, create a file info struct
[all …]
/kernel/linux/linux-5.10/fs/lockd/
Dsvcsubs.c28 * Global file hash table
46 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) in nlm_debug_print_file() argument
48 struct inode *inode = locks_inode(file->f_file); in nlm_debug_print_file()
59 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) in nlm_debug_print_file() argument
75 * Lookup file info. If it doesn't exist, create a file info struct
76 * and open a (VFS) file for the given inode.
79 * Note that we open the file O_RDONLY even when creating write locks.
87 struct nlm_file *file; in nlm_lookup_file() local
95 /* Lock file table */ in nlm_lookup_file()
98 hlist_for_each_entry(file, &nlm_files[hash], f_list) in nlm_lookup_file()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/efivarfs/
Defivarfs.sh56 local file=$efivarfs_mount/$FUNCNAME-$test_guid
58 printf "$attrs\x00" > $file
60 if [ ! -e $file ]; then
61 echo "$file couldn't be created" >&2
65 if [ $(stat -c %s $file) -ne 5 ]; then
66 echo "$file has invalid size" >&2
67 file_cleanup $file
70 file_cleanup $file
75 local file=$efivarfs_mount/$FUNCNAME-$test_guid
77 : > $file
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/efivarfs/
Defivarfs.sh56 local file=$efivarfs_mount/$FUNCNAME-$test_guid
58 printf "$attrs\x00" > $file
60 if [ ! -e $file ]; then
61 echo "$file couldn't be created" >&2
65 if [ $(stat -c %s $file) -ne 5 ]; then
66 echo "$file has invalid size" >&2
67 file_cleanup $file
70 file_cleanup $file
75 local file=$efivarfs_mount/$FUNCNAME-$test_guid
77 : > $file
[all …]
/kernel/linux/linux-5.10/include/linux/
Dfile.h14 struct file;
16 extern void fput(struct file *);
17 extern void fput_many(struct file *, unsigned int);
25 extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *,
27 extern struct file *alloc_file_clone(struct file *, int flags,
30 static inline void fput_light(struct file *file, int fput_needed) in fput_light() argument
33 fput(file); in fput_light()
37 struct file *file; member
46 fput(fd.file); in fdput()
49 extern struct file *fget(unsigned int fd);
[all …]
/kernel/linux/linux-6.6/fs/ecryptfs/
Dfile.c12 #include <linux/file.h>
29 * returns without any errors. This is to be used only for file reads.
37 struct file *file = iocb->ki_filp; in ecryptfs_read_update_atime() local
41 path = ecryptfs_dentry_to_lower_path(file->f_path.dentry); in ecryptfs_read_update_atime()
54 * to be used only for file reads. The function to be used for directory reads
57 static ssize_t ecryptfs_splice_read_update_atime(struct file *in, loff_t *ppos, in ecryptfs_splice_read_update_atime()
123 * @file: The eCryptfs directory file
126 static int ecryptfs_readdir(struct file *file, struct dir_context *ctx) in ecryptfs_readdir() argument
129 struct file *lower_file; in ecryptfs_readdir()
130 struct inode *inode = file_inode(file); in ecryptfs_readdir()
[all …]
/kernel/linux/linux-5.10/fs/ecryptfs/
Dfile.c12 #include <linux/file.h>
29 * returns without any errors. This is to be used only for file reads.
37 struct file *file = iocb->ki_filp; in ecryptfs_read_update_atime() local
41 path = ecryptfs_dentry_to_lower_path(file->f_path.dentry); in ecryptfs_read_update_atime()
98 * @file: The eCryptfs directory file
101 static int ecryptfs_readdir(struct file *file, struct dir_context *ctx) in ecryptfs_readdir() argument
104 struct file *lower_file; in ecryptfs_readdir()
105 struct inode *inode = file_inode(file); in ecryptfs_readdir()
111 lower_file = ecryptfs_file_to_lower(file); in ecryptfs_readdir()
169 static int ecryptfs_mmap(struct file *file, struct vm_area_struct *vma) in ecryptfs_mmap() argument
[all …]
/kernel/linux/linux-6.6/drivers/scsi/fnic/
Dfnic_debugfs.c35 * file system. If not already created, this routine will create the
65 * When Debugfs is configured this routine removes debugfs file system
82 * or fc_trace_clear debugfs file
83 * @filp: The file pointer to read from.
86 * @ppos: The position in the file to start reading from.
92 * It will start reading file at @ppos and
98 static ssize_t fnic_trace_ctrl_read(struct file *filp, in fnic_trace_ctrl_read()
114 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read()
122 * fc_trace_clear debugfs file
123 * @filp: The file pointer to write from.
[all …]

12345678910>>...428