Home
last modified time | relevance | path

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

12345678910>>...224

/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 …]
Dv4l2-mem2mem.h336 int v4l2_m2m_reqbufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
348 int v4l2_m2m_querybuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
359 int v4l2_m2m_qbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
370 int v4l2_m2m_dqbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
381 int v4l2_m2m_prepare_buf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
392 int v4l2_m2m_create_bufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
403 int v4l2_m2m_expbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
413 int v4l2_m2m_streamon(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
423 int v4l2_m2m_streamoff(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
453 int v4l2_m2m_encoder_cmd(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
[all …]
Dvideobuf2-v4l2.h283 __poll_t vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait);
295 int vb2_ioctl_reqbufs(struct file *file, void *priv,
297 int vb2_ioctl_create_bufs(struct file *file, void *priv,
299 int vb2_ioctl_prepare_buf(struct file *file, void *priv,
301 int vb2_ioctl_querybuf(struct file *file, void *priv, struct v4l2_buffer *p);
302 int vb2_ioctl_qbuf(struct file *file, void *priv, struct v4l2_buffer *p);
303 int vb2_ioctl_dqbuf(struct file *file, void *priv, struct v4l2_buffer *p);
304 int vb2_ioctl_streamon(struct file *file, void *priv, enum v4l2_buf_type i);
305 int vb2_ioctl_streamoff(struct file *file, void *priv, enum v4l2_buf_type i);
306 int vb2_ioctl_expbuf(struct file *file, void *priv,
[all …]
/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 …]
Dvivid-sdr-cap.h11 int vivid_sdr_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band);
12 int vivid_sdr_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf);
13 int vivid_sdr_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
14 int vivid_sdr_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt);
15 int vivid_sdr_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt);
16 int vidioc_enum_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f);
17 int vidioc_g_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f);
18 int vidioc_s_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f);
19 int vidioc_try_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f);
/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/fs/overlayfs/
Dfile.c40 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()
44 struct file *realfile; in ovl_open_realfile()
46 int flags = file->f_flags | OVL_OPEN_FLAGS; in ovl_open_realfile()
60 realfile = open_with_fake_path(&file->f_path, flags, realinode, in ovl_open_realfile()
66 file, file, ovl_whatisit(inode, realinode), file->f_flags, in ovl_open_realfile()
74 static int ovl_change_flags(struct file *file, unsigned int flags) in ovl_change_flags() argument
76 struct inode *inode = file_inode(file); in ovl_change_flags()
82 if (WARN_ON((file->f_flags ^ flags) & ~OVL_SETFL_MASK)) in ovl_change_flags()
87 if (((flags ^ file->f_flags) & O_APPEND) && IS_APPEND(inode)) in ovl_change_flags()
[all …]
/kernel/linux/linux-5.10/fs/
Dfile_table.c47 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()
134 struct file *alloc_empty_file(int flags, const struct cred *cred) in alloc_empty_file()
137 struct file *f; in alloc_empty_file()
171 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred) in alloc_empty_file_noaccount()
173 struct file *f = __alloc_file(flags, cred); in alloc_empty_file_noaccount()
188 static struct file *alloc_file(const struct path *path, int flags, in alloc_file()
191 struct file *file; in alloc_file() local
[all …]
Dread_write.c49 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()
57 file->f_pos = offset; in vfs_setpos()
58 file->f_version = 0; in vfs_setpos()
81 generic_file_llseek_size(struct file *file, loff_t offset, int whence, in generic_file_llseek_size() argument
96 return file->f_pos; in generic_file_llseek_size()
102 spin_lock(&file->f_lock); in generic_file_llseek_size()
103 offset = vfs_setpos(file, file->f_pos + offset, maxsize); in generic_file_llseek_size()
104 spin_unlock(&file->f_lock); in generic_file_llseek_size()
[all …]
Dfile.c82 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
83 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
117 nr /= (1024 / sizeof(struct file *)); in alloc_fdtable()
119 nr *= (1024 / sizeof(struct file *)); in alloc_fdtable()
136 data = kvmalloc_array(nr, sizeof(struct file *), GFP_KERNEL_ACCOUNT); in alloc_fdtable()
319 struct file **old_fds, **new_fds; in dup_fd()
383 struct file *f = *old_fds++; in dup_fd()
400 memset(new_fds, 0, (new_fdt->max_fds - open_files) * sizeof(struct file *)); in dup_fd()
430 struct file * file = xchg(&fdt->fd[i], NULL); in close_files() local
431 if (file) { in close_files()
[all …]
/kernel/linux/linux-5.10/fs/hmdfs/
Dfile_local.c23 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()
39 lower_file = dentry_open(&lower_path, file->f_flags, cred); in hmdfs_file_open_local()
46 file->private_data = gfi; in hmdfs_file_open_local()
47 if (file->f_flags & (O_RDWR | O_WRONLY)) in hmdfs_file_open_local()
54 int hmdfs_file_release_local(struct inode *inode, struct file *file) in hmdfs_file_release_local() argument
56 struct hmdfs_file_info *gfi = hmdfs_f(file); in hmdfs_file_release_local()
59 if (file->f_flags & (O_RDWR | O_WRONLY)) in hmdfs_file_release_local()
61 file->private_data = NULL; in hmdfs_file_release_local()
[all …]
Dfile_cloud.c38 struct file *filp = iocb->ki_filp; in hmdfs_file_read_iter_cloud()
40 struct file *lower_file = NULL; in hmdfs_file_read_iter_cloud()
53 int hmdfs_file_open_cloud(struct inode *inode, struct file *file) in hmdfs_file_open_cloud() argument
58 struct file *lower_file; in hmdfs_file_open_cloud()
78 dir_path = hmdfs_get_dentry_relative_path(file->f_path.dentry); in hmdfs_file_open_cloud()
86 file->f_flags, file->f_mode); in hmdfs_file_open_cloud()
94 file->private_data = gfi; in hmdfs_file_open_cloud()
100 int hmdfs_file_release_cloud(struct inode *inode, struct file *file) in hmdfs_file_release_cloud() argument
102 struct hmdfs_file_info *gfi = hmdfs_f(file); in hmdfs_file_release_cloud()
104 file->private_data = NULL; in hmdfs_file_release_cloud()
[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 …]
Deventpoll.h16 struct file;
22 struct file *get_epoll_tfile_raw_ptr(struct file *file, int tfd, unsigned long toff);
26 static inline void eventpoll_init_file(struct file *file) in eventpoll_init_file() argument
28 INIT_LIST_HEAD(&file->f_ep_links); in eventpoll_init_file()
29 INIT_LIST_HEAD(&file->f_tfile_llink); in eventpoll_init_file()
34 void eventpoll_release_file(struct file *file);
42 static inline void eventpoll_release(struct file *file) in eventpoll_release() argument
53 if (likely(list_empty(&file->f_ep_links))) in eventpoll_release()
61 eventpoll_release_file(file); in eventpoll_release()
75 static inline void eventpoll_init_file(struct file *file) {} in eventpoll_init_file() argument
[all …]
Dfs.h235 struct file *ia_file;
322 struct file *ki_filp;
370 int (*readpage)(struct file *, struct page *);
382 int (*readpages)(struct file *filp, struct address_space *mapping,
386 int (*write_begin)(struct file *, struct address_space *mapping,
389 int (*write_end)(struct file *, struct address_space *mapping,
414 int (*swap_activate)(struct swap_info_struct *sis, struct file *file,
416 void (*swap_deactivate)(struct file *file);
425 int pagecache_write_begin(struct file *, struct address_space *mapping,
429 int pagecache_write_end(struct file *, struct address_space *mapping,
[all …]
/kernel/linux/linux-5.10/fs/sharefs/
Dfile.c14 static int sharefs_open(struct inode *inode, struct file *file) in sharefs_open() argument
17 struct file *lower_file = NULL; in sharefs_open()
21 if (d_unhashed(file->f_path.dentry)) { in sharefs_open()
26 file->private_data = in sharefs_open()
28 if (!SHAREFS_F(file)) { in sharefs_open()
34 sharefs_get_lower_path(file->f_path.dentry, &lower_path); in sharefs_open()
35 lower_file = dentry_open(&lower_path, file->f_flags, current_cred()); in sharefs_open()
39 lower_file = sharefs_lower_file(file); in sharefs_open()
41 sharefs_set_lower_file(file, NULL); in sharefs_open()
45 sharefs_set_lower_file(file, lower_file); in sharefs_open()
[all …]
/kernel/linux/linux-5.10/fs/lockd/
Dsvcsubs.c46 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
87 struct nlm_file *file; in nlm_lookup_file() local
98 hlist_for_each_entry(file, &nlm_files[hash], f_list) in nlm_lookup_file()
99 if (!nfs_compare_fh(&file->f_handle, f)) in nlm_lookup_file()
105 file = kzalloc(sizeof(*file), GFP_KERNEL); in nlm_lookup_file()
106 if (!file) in nlm_lookup_file()
109 memcpy(&file->f_handle, f, sizeof(struct nfs_fh)); in nlm_lookup_file()
110 mutex_init(&file->f_mutex); in nlm_lookup_file()
[all …]
/kernel/linux/linux-5.10/fs/ecryptfs/
Dfile.c37 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()
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
171 struct file *lower_file = ecryptfs_file_to_lower(file); in ecryptfs_mmap()
179 return generic_file_mmap(file, vma); in ecryptfs_mmap()
191 static int ecryptfs_open(struct inode *inode, struct file *file) in ecryptfs_open() argument
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dshmem_utils.c13 struct file *shmem_create_from_data(const char *name, void *data, size_t len) in shmem_create_from_data()
15 struct file *file; in shmem_create_from_data() local
18 file = shmem_file_setup(name, PAGE_ALIGN(len), VM_NORESERVE); in shmem_create_from_data()
19 if (IS_ERR(file)) in shmem_create_from_data()
20 return file; in shmem_create_from_data()
22 err = shmem_write(file, 0, data, len); in shmem_create_from_data()
24 fput(file); in shmem_create_from_data()
28 return file; in shmem_create_from_data()
31 struct file *shmem_create_from_object(struct drm_i915_gem_object *obj) in shmem_create_from_object()
33 struct file *file; in shmem_create_from_object() local
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/rcutorture/bin/
Dparse-console.sh15 file="$1"
23 if test -f "$file" -a -r "$file"
27 echo $title unreadable console output file: $file
30 if grep -Pq '\x00' < $file
34 cat /dev/null > $file.diags
41 if grep -q FAILURE $file || grep -q -e '-torture.*!!!' $file
43 nerrs=`grep --binary-files=text '!!!' $file |
67 grep --binary-files=text 'torture:.*ver:' $file |
96 if grep -q SUCCESS $file
101 echo " " $file
[all …]
/kernel/linux/common_modules/qos_auth/auth_ctl/
Dauth_qos_debug.c35 static void print_auth_id(struct seq_file *file, in print_auth_id() argument
38 seq_printf_auth(file, "AUTH_ID :%d\n", uid); in print_auth_id()
41 static void print_auth_info(struct seq_file *file, in print_auth_info() argument
44 seq_printf_auth(file, "AUTH_STATUS :%d\n", auth->status); in print_auth_info()
46 seq_printf_auth(file, "RTG_FLAG :%04x\n", auth->rtg_auth_flag); in print_auth_info()
49 seq_printf_auth(file, "QOS_FLAG :%04x\n", auth->qos_auth_flag); in print_auth_info()
53 static void print_qos_count(struct seq_file *file, in print_qos_count() argument
59 seq_printf_auth(file, "QOS level %d thread nr :%d\n", i, auth->num[i]); in print_qos_count()
62 static void print_qos_thread(struct seq_file *file, in print_qos_thread() argument
70 seq_printf_auth(file, "QOS level %d threads:", i); in print_qos_thread()
[all …]
/kernel/linux/linux-5.10/net/batman-adv/
Ddebugfs.c44 void batadv_debugfs_deprecated(struct file *file, const char *alt) in batadv_debugfs_deprecated() argument
46 struct dentry *dentry = file_dentry(file); in batadv_debugfs_deprecated()
53 static int batadv_algorithms_open(struct inode *inode, struct file *file) in batadv_algorithms_open() argument
55 batadv_debugfs_deprecated(file, in batadv_algorithms_open()
57 return single_open(file, batadv_algo_seq_print_text, NULL); in batadv_algorithms_open()
60 static int neighbors_open(struct inode *inode, struct file *file) in neighbors_open() argument
64 batadv_debugfs_deprecated(file, in neighbors_open()
66 return single_open(file, batadv_hardif_neigh_seq_print_text, net_dev); in neighbors_open()
69 static int batadv_originators_open(struct inode *inode, struct file *file) in batadv_originators_open() argument
73 batadv_debugfs_deprecated(file, in batadv_originators_open()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dmt76x02_debugfs.c10 mt76x02_ampdu_stat_show(struct seq_file *file, void *data) in mt76x02_ampdu_stat_show() argument
12 struct mt76x02_dev *dev = file->private; in mt76x02_ampdu_stat_show()
16 seq_puts(file, "Length: "); in mt76x02_ampdu_stat_show()
18 seq_printf(file, "%8d | ", i * 8 + j + 1); in mt76x02_ampdu_stat_show()
19 seq_puts(file, "\n"); in mt76x02_ampdu_stat_show()
20 seq_puts(file, "Count: "); in mt76x02_ampdu_stat_show()
22 seq_printf(file, "%8d | ", in mt76x02_ampdu_stat_show()
24 seq_puts(file, "\n"); in mt76x02_ampdu_stat_show()
25 seq_puts(file, "--------"); in mt76x02_ampdu_stat_show()
27 seq_puts(file, "-----------"); in mt76x02_ampdu_stat_show()
[all …]
/kernel/linux/linux-5.10/sound/core/seq/oss/
Dseq_oss.c44 static int odev_open(struct inode *inode, struct file *file);
45 static int odev_release(struct inode *inode, struct file *file);
46 static ssize_t odev_read(struct file *file, char __user *buf, size_t count, loff_t *offset);
47 static ssize_t odev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset);
48 static long odev_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
49 static __poll_t odev_poll(struct file *file, poll_table * wait);
115 odev_open(struct inode *inode, struct file *file) in odev_open() argument
125 rc = snd_seq_oss_open(file, level); in odev_open()
132 odev_release(struct inode *inode, struct file *file) in odev_release() argument
136 if ((dp = file->private_data) == NULL) in odev_release()
[all …]

12345678910>>...224