Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 1055) sorted by relevance

12345678910>>...43

/linux-4.19.296/include/media/
Dv4l2-ioctl.h301 int (*vidioc_querycap)(struct file *file, void *fh,
305 int (*vidioc_enum_fmt_vid_cap)(struct file *file, void *fh,
307 int (*vidioc_enum_fmt_vid_overlay)(struct file *file, void *fh,
309 int (*vidioc_enum_fmt_vid_out)(struct file *file, void *fh,
311 int (*vidioc_enum_fmt_vid_cap_mplane)(struct file *file, void *fh,
313 int (*vidioc_enum_fmt_vid_out_mplane)(struct file *file, void *fh,
315 int (*vidioc_enum_fmt_sdr_cap)(struct file *file, void *fh,
317 int (*vidioc_enum_fmt_sdr_out)(struct file *file, void *fh,
319 int (*vidioc_enum_fmt_meta_cap)(struct file *file, void *fh,
323 int (*vidioc_g_fmt_vid_cap)(struct file *file, void *fh,
[all …]
Dvideobuf2-v4l2.h235 __poll_t vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait);
247 int vb2_ioctl_reqbufs(struct file *file, void *priv,
249 int vb2_ioctl_create_bufs(struct file *file, void *priv,
251 int vb2_ioctl_prepare_buf(struct file *file, void *priv,
253 int vb2_ioctl_querybuf(struct file *file, void *priv, struct v4l2_buffer *p);
254 int vb2_ioctl_qbuf(struct file *file, void *priv, struct v4l2_buffer *p);
255 int vb2_ioctl_dqbuf(struct file *file, void *priv, struct v4l2_buffer *p);
256 int vb2_ioctl_streamon(struct file *file, void *priv, enum v4l2_buf_type i);
257 int vb2_ioctl_streamoff(struct file *file, void *priv, enum v4l2_buf_type i);
258 int vb2_ioctl_expbuf(struct file *file, void *priv,
[all …]
Dv4l2-mem2mem.h193 int v4l2_m2m_reqbufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
205 int v4l2_m2m_querybuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
216 int v4l2_m2m_qbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
227 int v4l2_m2m_dqbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
238 int v4l2_m2m_prepare_buf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
249 int v4l2_m2m_create_bufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
260 int v4l2_m2m_expbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
270 int v4l2_m2m_streamon(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
280 int v4l2_m2m_streamoff(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
295 __poll_t v4l2_m2m_poll(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
[all …]
/linux-4.19.296/fs/overlayfs/
Dfile.c30 static struct file *ovl_open_realfile(const struct file *file, in ovl_open_realfile() argument
33 struct inode *inode = file_inode(file); in ovl_open_realfile()
34 struct file *realfile; in ovl_open_realfile()
36 int flags = file->f_flags | OVL_OPEN_FLAGS; in ovl_open_realfile()
39 realfile = open_with_fake_path(&file->f_path, flags, realinode, in ovl_open_realfile()
44 file, file, ovl_whatisit(inode, realinode), file->f_flags, in ovl_open_realfile()
52 static int ovl_change_flags(struct file *file, unsigned int flags) in ovl_change_flags() argument
54 struct inode *inode = file_inode(file); in ovl_change_flags()
60 if (WARN_ON((file->f_flags ^ flags) & ~OVL_SETFL_MASK)) in ovl_change_flags()
65 if (((flags ^ file->f_flags) & O_APPEND) && IS_APPEND(inode)) in ovl_change_flags()
[all …]
/linux-4.19.296/fs/
Dfile_table.c46 struct file *f = container_of(head, struct file, f_u.fu_rcuhead); in file_free_rcu()
52 static inline void file_free(struct file *f) in file_free()
95 static struct file *__alloc_file(int flags, const struct cred *cred) in __alloc_file()
97 struct file *f; in __alloc_file()
133 struct file *alloc_empty_file(int flags, const struct cred *cred) in alloc_empty_file()
136 struct file *f; in alloc_empty_file()
170 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred) in alloc_empty_file_noaccount()
172 struct file *f = __alloc_file(flags, cred); in alloc_empty_file_noaccount()
187 static struct file *alloc_file(const struct path *path, int flags, in alloc_file()
190 struct file *file; in alloc_file() local
[all …]
Dread_write.c37 static inline bool unsigned_offsets(struct file *file) in unsigned_offsets() argument
39 return file->f_mode & FMODE_UNSIGNED_OFFSET; in unsigned_offsets()
54 loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize) in vfs_setpos() argument
56 if (offset < 0 && !unsigned_offsets(file)) in vfs_setpos()
61 if (offset != file->f_pos) { in vfs_setpos()
62 file->f_pos = offset; in vfs_setpos()
63 file->f_version = 0; in vfs_setpos()
86 generic_file_llseek_size(struct file *file, loff_t offset, int whence, in generic_file_llseek_size() argument
101 return file->f_pos; in generic_file_llseek_size()
107 spin_lock(&file->f_lock); in generic_file_llseek_size()
[all …]
Dfile.c77 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
78 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
97 nr /= (1024 / sizeof(struct file *)); in alloc_fdtable()
99 nr *= (1024 / sizeof(struct file *)); in alloc_fdtable()
115 data = kvmalloc_array(nr, sizeof(struct file *), GFP_KERNEL_ACCOUNT); in alloc_fdtable()
275 struct file **old_fds, **new_fds; in dup_fd()
339 struct file *f = *old_fds++; in dup_fd()
356 memset(new_fds, 0, (new_fdt->max_fds - open_files) * sizeof(struct file *)); in dup_fd()
386 struct file * file = xchg(&fdt->fd[i], NULL); in close_files() local
387 if (file) { in close_files()
[all …]
Danon_inodes.c70 struct file *anon_inode_getfile(const char *name, in anon_inode_getfile()
74 struct file *file; in anon_inode_getfile() local
87 file = alloc_file_pseudo(anon_inode_inode, anon_inode_mnt, name, in anon_inode_getfile()
89 if (IS_ERR(file)) in anon_inode_getfile()
92 file->f_mapping = anon_inode_inode->i_mapping; in anon_inode_getfile()
94 file->private_data = priv; in anon_inode_getfile()
96 return file; in anon_inode_getfile()
101 return file; in anon_inode_getfile()
125 struct file *file; in anon_inode_getfd() local
132 file = anon_inode_getfile(name, fops, priv, flags); in anon_inode_getfd()
[all …]
/linux-4.19.296/fs/lockd/
Dsvcsubs.c45 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) in nlm_debug_print_file() argument
47 struct inode *inode = locks_inode(file->f_file); in nlm_debug_print_file()
58 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) in nlm_debug_print_file() argument
86 struct nlm_file *file; in nlm_lookup_file() local
97 hlist_for_each_entry(file, &nlm_files[hash], f_list) in nlm_lookup_file()
98 if (!nfs_compare_fh(&file->f_handle, f)) in nlm_lookup_file()
104 file = kzalloc(sizeof(*file), GFP_KERNEL); in nlm_lookup_file()
105 if (!file) in nlm_lookup_file()
108 memcpy(&file->f_handle, f, sizeof(struct nfs_fh)); in nlm_lookup_file()
109 mutex_init(&file->f_mutex); in nlm_lookup_file()
[all …]
/linux-4.19.296/fs/ecryptfs/
Dfile.c51 struct file *file = iocb->ki_filp; in ecryptfs_read_update_atime() local
55 path = ecryptfs_dentry_to_lower_path(file->f_path.dentry); in ecryptfs_read_update_atime()
115 static int ecryptfs_readdir(struct file *file, struct dir_context *ctx) in ecryptfs_readdir() argument
118 struct file *lower_file; in ecryptfs_readdir()
119 struct inode *inode = file_inode(file); in ecryptfs_readdir()
125 lower_file = ecryptfs_file_to_lower(file); in ecryptfs_readdir()
183 static int ecryptfs_mmap(struct file *file, struct vm_area_struct *vma) in ecryptfs_mmap() argument
185 struct file *lower_file = ecryptfs_file_to_lower(file); in ecryptfs_mmap()
193 return generic_file_mmap(file, vma); in ecryptfs_mmap()
205 static int ecryptfs_open(struct inode *inode, struct file *file) in ecryptfs_open() argument
[all …]
/linux-4.19.296/include/linux/
Dfile.h13 struct file;
15 extern void fput(struct file *);
16 extern void fput_many(struct file *, unsigned int);
23 extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *,
25 extern struct file *alloc_file_clone(struct file *, int flags,
28 static inline void fput_light(struct file *file, int fput_needed) in fput_light() argument
31 fput(file); in fput_light()
35 struct file *file; member
44 fput(fd.file); in fdput()
47 extern struct file *fget(unsigned int fd);
[all …]
Deventpoll.h21 struct file;
27 struct file *get_epoll_tfile_raw_ptr(struct file *file, int tfd, unsigned long toff);
31 static inline void eventpoll_init_file(struct file *file) in eventpoll_init_file() argument
33 INIT_LIST_HEAD(&file->f_ep_links); in eventpoll_init_file()
34 INIT_LIST_HEAD(&file->f_tfile_llink); in eventpoll_init_file()
39 void eventpoll_release_file(struct file *file);
47 static inline void eventpoll_release(struct file *file) in eventpoll_release() argument
58 if (likely(list_empty(&file->f_ep_links))) in eventpoll_release()
66 eventpoll_release_file(file); in eventpoll_release()
71 static inline void eventpoll_init_file(struct file *file) {} in eventpoll_init_file() argument
[all …]
Dima.h20 extern int ima_file_check(struct file *file, int mask);
21 extern void ima_file_free(struct file *file);
22 extern int ima_file_mmap(struct file *file, unsigned long reqprot,
25 extern int ima_read_file(struct file *file, enum kernel_read_file_id id);
26 extern int ima_post_read_file(struct file *file, void *buf, loff_t size,
40 static inline int ima_file_check(struct file *file, int mask) in ima_file_check() argument
45 static inline void ima_file_free(struct file *file) in ima_file_free() argument
50 static inline int ima_file_mmap(struct file *file, unsigned long reqprot, in ima_file_mmap() argument
61 static inline int ima_read_file(struct file *file, enum kernel_read_file_id id) in ima_read_file() argument
66 static inline int ima_post_read_file(struct file *file, void *buf, loff_t size, in ima_post_read_file() argument
Dfs.h229 struct file *ia_file;
309 struct file *ki_filp;
353 int (*readpage)(struct file *, struct page *);
365 int (*readpages)(struct file *filp, struct address_space *mapping,
368 int (*write_begin)(struct file *, struct address_space *mapping,
371 int (*write_end)(struct file *, struct address_space *mapping,
396 int (*swap_activate)(struct swap_info_struct *sis, struct file *file,
398 void (*swap_deactivate)(struct file *file);
407 int pagecache_write_begin(struct file *, struct address_space *mapping,
411 int pagecache_write_end(struct file *, struct address_space *mapping,
[all …]
/linux-4.19.296/fs/ocfs2/
Dlocks.c38 static int ocfs2_do_flock(struct file *file, struct inode *inode, in ocfs2_do_flock() argument
42 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_flock()
69 locks_lock_file_wait(file, in ocfs2_do_flock()
75 ocfs2_file_unlock(file); in ocfs2_do_flock()
78 ret = ocfs2_file_lock(file, level, trylock); in ocfs2_do_flock()
87 ret = locks_lock_file_wait(file, fl); in ocfs2_do_flock()
89 ocfs2_file_unlock(file); in ocfs2_do_flock()
97 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument
100 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_funlock()
103 ocfs2_file_unlock(file); in ocfs2_do_funlock()
[all …]
/linux-4.19.296/fs/nfsd/
Dnfsctl.c60 static ssize_t write_filehandle(struct file *file, char *buf, size_t size);
61 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size);
62 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size);
63 static ssize_t write_threads(struct file *file, char *buf, size_t size);
64 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size);
65 static ssize_t write_versions(struct file *file, char *buf, size_t size);
66 static ssize_t write_ports(struct file *file, char *buf, size_t size);
67 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size);
68 static ssize_t write_maxconn(struct file *file, char *buf, size_t size);
70 static ssize_t write_leasetime(struct file *file, char *buf, size_t size);
[all …]
/linux-4.19.296/drivers/xen/xenfs/
Dxenstored.c12 static ssize_t xsd_read(struct file *file, char __user *buf, in xsd_read() argument
15 const char *str = (const char *)file->private_data; in xsd_read()
19 static int xsd_release(struct inode *inode, struct file *file) in xsd_release() argument
21 kfree(file->private_data); in xsd_release()
25 static int xsd_kva_open(struct inode *inode, struct file *file) in xsd_kva_open() argument
27 file->private_data = (void *)kasprintf(GFP_KERNEL, "0x%p", in xsd_kva_open()
29 if (!file->private_data) in xsd_kva_open()
34 static int xsd_kva_mmap(struct file *file, struct vm_area_struct *vma) in xsd_kva_mmap() argument
56 static int xsd_port_open(struct inode *inode, struct file *file) in xsd_port_open() argument
58 file->private_data = (void *)kasprintf(GFP_KERNEL, "%d", in xsd_port_open()
[all …]
/linux-4.19.296/fs/proc/
Dinode.c170 struct file *file; in close_pdeo() local
175 file = pdeo->file; in close_pdeo()
176 pde->proc_fops->release(file_inode(file), file); in close_pdeo()
208 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek() argument
210 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_llseek()
213 loff_t (*llseek)(struct file *, loff_t, int); in proc_reg_llseek()
217 rv = llseek(file, offset, whence); in proc_reg_llseek()
223 static ssize_t proc_reg_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in proc_reg_read() argument
225 ssize_t (*read)(struct file *, char __user *, size_t, loff_t *); in proc_reg_read()
226 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_read()
[all …]
Dfd.c24 struct file *file = NULL; in seq_show() local
38 file = fcheck_files(files, fd); in seq_show()
39 if (file) { in seq_show()
42 f_flags = file->f_flags; in seq_show()
46 get_file(file); in seq_show()
57 (long long)file->f_pos, f_flags, in seq_show()
58 real_mount(file->f_path.mnt)->mnt_id); in seq_show()
60 show_fd_locks(m, file, files); in seq_show()
64 if (file->f_op->show_fdinfo) in seq_show()
65 file->f_op->show_fdinfo(m, file); in seq_show()
[all …]
/linux-4.19.296/drivers/isdn/hardware/eicon/
Ddivasi.c73 static ssize_t um_idi_read(struct file *file, char __user *buf, size_t count,
75 static ssize_t um_idi_write(struct file *file, const char __user *buf,
77 static __poll_t um_idi_poll(struct file *file, poll_table *wait);
78 static int um_idi_open(struct inode *inode, struct file *file);
79 static int um_idi_release(struct inode *inode, struct file *file);
218 um_idi_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in um_idi_read() argument
224 if (!file->private_data) { in um_idi_read()
230 (diva_um_idi_os_context_t *) diva_um_id_get_os_context(file-> in um_idi_read()
243 ret = diva_um_idi_read(file->private_data, in um_idi_read()
244 file, data, count, in um_idi_read()
[all …]
/linux-4.19.296/fs/nfs/
Dfile.c64 nfs_file_open(struct inode *inode, struct file *filp) in nfs_file_open()
80 nfs_file_release(struct inode *inode, struct file *filp) in nfs_file_release()
101 static int nfs_revalidate_file_size(struct inode *inode, struct file *filp) in nfs_revalidate_file_size()
114 loff_t nfs_file_llseek(struct file *filp, loff_t offset, int whence) in nfs_file_llseek()
139 nfs_file_flush(struct file *file, fl_owner_t id) in nfs_file_flush() argument
141 struct inode *inode = file_inode(file); in nfs_file_flush()
143 dprintk("NFS: flush(%pD2)\n", file); in nfs_file_flush()
146 if ((file->f_mode & FMODE_WRITE) == 0) in nfs_file_flush()
150 return vfs_fsync(file, 0); in nfs_file_flush()
179 nfs_file_mmap(struct file * file, struct vm_area_struct * vma) in nfs_file_mmap() argument
[all …]
/linux-4.19.296/fs/efivarfs/
Dfile.c18 static ssize_t efivarfs_file_write(struct file *file, in efivarfs_file_write() argument
21 struct efivar_entry *var = file->private_data; in efivarfs_file_write()
24 struct inode *inode = file->f_mapping->host; in efivarfs_file_write()
52 d_delete(file->f_path.dentry); in efivarfs_file_write()
53 dput(file->f_path.dentry); in efivarfs_file_write()
68 static ssize_t efivarfs_file_read(struct file *file, char __user *userbuf, in efivarfs_file_read() argument
71 struct efivar_entry *var = file->private_data; in efivarfs_file_read()
78 while (!__ratelimit(&file->f_cred->user->ratelimit)) { in efivarfs_file_read()
114 efivarfs_ioc_getxflags(struct file *file, void __user *arg) in efivarfs_ioc_getxflags() argument
116 struct inode *inode = file->f_mapping->host; in efivarfs_ioc_getxflags()
[all …]
/linux-4.19.296/fs/cifs/
Dcifsfs.h68 struct file *, unsigned, umode_t);
78 extern int cifs_revalidate_file_attr(struct file *filp);
80 extern int cifs_revalidate_file(struct file *filp);
100 extern int cifs_open(struct inode *inode, struct file *file);
101 extern int cifs_close(struct inode *inode, struct file *file);
102 extern int cifs_closedir(struct inode *inode, struct file *file);
107 extern int cifs_lock(struct file *, int, struct file_lock *);
108 extern int cifs_fsync(struct file *, loff_t, loff_t, int);
109 extern int cifs_strict_fsync(struct file *, loff_t, loff_t, int);
110 extern int cifs_flush(struct file *, fl_owner_t id);
[all …]
/linux-4.19.296/include/sound/
Dhwdep.h32 long long (*llseek)(struct snd_hwdep *hw, struct file *file,
38 int (*open)(struct snd_hwdep *hw, struct file * file);
39 int (*release)(struct snd_hwdep *hw, struct file * file);
40 __poll_t (*poll)(struct snd_hwdep *hw, struct file *file,
42 int (*ioctl)(struct snd_hwdep *hw, struct file *file,
44 int (*ioctl_compat)(struct snd_hwdep *hw, struct file *file,
46 int (*mmap)(struct snd_hwdep *hw, struct file *file,
/linux-4.19.296/drivers/media/radio/wl128x/
Dfmdrv_v4l2.c41 static ssize_t fm_v4l2_fops_read(struct file *file, char __user * buf, in fm_v4l2_fops_read() argument
48 fmdev = video_drvdata(file); in fm_v4l2_fops_read()
74 ret = fmc_transfer_rds_from_internal_buff(fmdev, file, buf, count); in fm_v4l2_fops_read()
81 static ssize_t fm_v4l2_fops_write(struct file *file, const char __user * buf, in fm_v4l2_fops_write() argument
95 fmdev = video_drvdata(file); in fm_v4l2_fops_write()
105 static __poll_t fm_v4l2_fops_poll(struct file *file, struct poll_table_struct *pts) in fm_v4l2_fops_poll() argument
110 fmdev = video_drvdata(file); in fm_v4l2_fops_poll()
112 ret = fmc_is_rds_data_available(fmdev, file, pts); in fm_v4l2_fops_poll()
124 static int fm_v4l2_fops_open(struct file *file) in fm_v4l2_fops_open() argument
135 fmdev = video_drvdata(file); in fm_v4l2_fops_open()
[all …]

12345678910>>...43