Home
last modified time | relevance | path

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

12345678910>>...186

/Linux-v4.19/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-v4.19/drivers/media/platform/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-vid-common.h11 typedef int (*fmtfunc)(struct file *file, void *priv, struct v4l2_format *f);
18 int fmt_sp2mp_func(struct file *file, void *priv,
30 int vivid_enum_fmt_vid(struct file *file, void *priv, struct v4l2_fmtdesc *f);
31 int vidioc_enum_fmt_vid_mplane(struct file *file, void *priv, struct v4l2_fmtdesc *f);
32 int vidioc_enum_fmt_vid(struct file *file, void *priv, struct v4l2_fmtdesc *f);
33 int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *id);
34 int vidioc_g_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings);
35 int vidioc_enum_dv_timings(struct file *file, void *_fh, struct v4l2_enum_dv_timings *timings);
36 int vidioc_dv_timings_cap(struct file *file, void *_fh, struct v4l2_dv_timings_cap *cap);
37 int vidioc_g_edid(struct file *file, void *_fh, struct v4l2_edid *edid);
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);
/Linux-v4.19/fs/overlayfs/
Dfile.c26 static struct file *ovl_open_realfile(const struct file *file, in ovl_open_realfile() argument
29 struct inode *inode = file_inode(file); in ovl_open_realfile()
30 struct file *realfile; in ovl_open_realfile()
34 realfile = open_with_fake_path(&file->f_path, file->f_flags | O_NOATIME, in ovl_open_realfile()
39 file, file, ovl_whatisit(inode, realinode), file->f_flags, in ovl_open_realfile()
47 static int ovl_change_flags(struct file *file, unsigned int flags) in ovl_change_flags() argument
49 struct inode *inode = file_inode(file); in ovl_change_flags()
56 if (WARN_ON((file->f_flags ^ flags) & ~OVL_SETFL_MASK)) in ovl_change_flags()
61 if (((flags ^ file->f_flags) & O_APPEND) && IS_APPEND(inode)) in ovl_change_flags()
65 if (!file->f_mapping->a_ops || in ovl_change_flags()
[all …]
/Linux-v4.19/tools/testing/selftests/efivarfs/
Defivarfs.sh50 local file=$efivarfs_mount/$FUNCNAME-$test_guid
52 printf "$attrs\x00" > $file
54 if [ ! -e $file ]; then
55 echo "$file couldn't be created" >&2
59 if [ $(stat -c %s $file) -ne 5 ]; then
60 echo "$file has invalid size" >&2
67 local file=$efivarfs_mount/$FUNCNAME-$test_guid
69 : > $file
71 if [ ! -e $file ]; then
72 echo "$file can not be created without writing" >&2
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/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-v4.19/drivers/net/wireless/mediatek/mt76/
Dmt76x2_debugfs.c21 mt76x2_ampdu_stat_read(struct seq_file *file, void *data) in mt76x2_ampdu_stat_read() argument
23 struct mt76x2_dev *dev = file->private; in mt76x2_ampdu_stat_read()
27 seq_puts(file, "Length: "); in mt76x2_ampdu_stat_read()
29 seq_printf(file, "%8d | ", i * 8 + j + 1); in mt76x2_ampdu_stat_read()
30 seq_puts(file, "\n"); in mt76x2_ampdu_stat_read()
31 seq_puts(file, "Count: "); in mt76x2_ampdu_stat_read()
33 seq_printf(file, "%8d | ", dev->aggr_stats[i * 8 + j]); in mt76x2_ampdu_stat_read()
34 seq_puts(file, "\n"); in mt76x2_ampdu_stat_read()
35 seq_puts(file, "--------"); in mt76x2_ampdu_stat_read()
37 seq_puts(file, "-----------"); in mt76x2_ampdu_stat_read()
[all …]
/Linux-v4.19/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-v4.19/tools/testing/selftests/rcutorture/bin/
Dparse-console.sh28 file="$1"
36 if test -f "$file" -a -r "$file"
40 echo $title unreadable console output file: $file
43 if grep -Pq '\x00' < $file
47 cat /dev/null > $file.diags
54 if grep -q FAILURE $file || grep -q -e '-torture.*!!!' $file
56 nerrs=`grep --binary-files=text '!!!' $file |
68 grep --binary-files=text 'torture:.*ver:' $file |
96 if grep -q SUCCESS $file
101 echo " " $file
[all …]
/Linux-v4.19/include/linux/
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 …]
Dfile.h13 struct file;
15 extern void fput(struct file *);
22 extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *,
24 extern struct file *alloc_file_clone(struct file *, int flags,
27 static inline void fput_light(struct file *file, int fput_needed) in fput_light() argument
30 fput(file); in fput_light()
34 struct file *file; member
43 fput(fd.file); in fdput()
46 extern struct file *fget(unsigned int fd);
47 extern struct file *fget_raw(unsigned int fd);
[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 prot);
24 extern int ima_read_file(struct file *file, enum kernel_read_file_id id);
25 extern int ima_post_read_file(struct file *file, void *buf, loff_t size,
39 static inline int ima_file_check(struct file *file, int mask) in ima_file_check() argument
44 static inline void ima_file_free(struct file *file) in ima_file_free() argument
49 static inline int ima_file_mmap(struct file *file, unsigned long prot) in ima_file_mmap() argument
59 static inline int ima_read_file(struct file *file, enum kernel_read_file_id id) in ima_read_file() argument
64 static inline int ima_post_read_file(struct file *file, void *buf, loff_t size, in ima_post_read_file() argument
Dfs.h226 struct file *ia_file;
306 struct file *ki_filp;
344 int (*readpage)(struct file *, struct page *);
356 int (*readpages)(struct file *filp, struct address_space *mapping,
359 int (*write_begin)(struct file *, struct address_space *mapping,
362 int (*write_end)(struct file *, struct address_space *mapping,
387 int (*swap_activate)(struct swap_info_struct *sis, struct file *file,
389 void (*swap_deactivate)(struct file *file);
398 int pagecache_write_begin(struct file *, struct address_space *mapping,
402 int pagecache_write_end(struct file *, struct address_space *mapping,
[all …]
/Linux-v4.19/drivers/infiniband/core/
Duser_mad.c158 static int hdr_size(struct ib_umad_file *file) in hdr_size() argument
160 return file->use_pkey_index ? sizeof (struct ib_user_mad_hdr) : in hdr_size()
165 static struct ib_mad_agent *__get_agent(struct ib_umad_file *file, int id) in __get_agent() argument
167 return file->agents_dead ? NULL : file->agent[id]; in __get_agent()
170 static int queue_packet(struct ib_umad_file *file, in queue_packet() argument
176 mutex_lock(&file->mutex); in queue_packet()
181 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet()
182 list_add_tail(&packet->list, &file->recv_list); in queue_packet()
183 wake_up_interruptible(&file->recv_wait); in queue_packet()
188 mutex_unlock(&file->mutex); in queue_packet()
[all …]
/Linux-v4.19/sound/core/seq/oss/
Dseq_oss.c57 static int odev_open(struct inode *inode, struct file *file);
58 static int odev_release(struct inode *inode, struct file *file);
59 static ssize_t odev_read(struct file *file, char __user *buf, size_t count, loff_t *offset);
60 static ssize_t odev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset);
61 static long odev_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
62 static __poll_t odev_poll(struct file *file, poll_table * wait);
128 odev_open(struct inode *inode, struct file *file) in odev_open() argument
138 rc = snd_seq_oss_open(file, level); in odev_open()
145 odev_release(struct inode *inode, struct file *file) in odev_release() argument
149 if ((dp = file->private_data) == NULL) in odev_release()
[all …]
/Linux-v4.19/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-v4.19/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-v4.19/net/batman-adv/
Ddebugfs.c50 static int batadv_algorithms_open(struct inode *inode, struct file *file) in batadv_algorithms_open() argument
52 return single_open(file, batadv_algo_seq_print_text, NULL); in batadv_algorithms_open()
55 static int neighbors_open(struct inode *inode, struct file *file) in neighbors_open() argument
59 return single_open(file, batadv_hardif_neigh_seq_print_text, net_dev); in neighbors_open()
62 static int batadv_originators_open(struct inode *inode, struct file *file) in batadv_originators_open() argument
66 return single_open(file, batadv_orig_seq_print_text, net_dev); in batadv_originators_open()
78 struct file *file) in batadv_originators_hardif_open() argument
82 return single_open(file, batadv_orig_hardif_seq_print_text, net_dev); in batadv_originators_hardif_open()
85 static int batadv_gateways_open(struct inode *inode, struct file *file) in batadv_gateways_open() argument
89 return single_open(file, batadv_gw_client_seq_print_text, net_dev); in batadv_gateways_open()
[all …]
/Linux-v4.19/kernel/trace/
Dtrace_events.c61 #define do_for_each_event_file(tr, file) \ argument
63 list_for_each_entry(file, &tr->events, list)
65 #define do_for_each_event_file_safe(tr, file) \ argument
68 list_for_each_entry_safe(file, ___n, &tr->events, list)
290 struct trace_event_file *file = data; in trace_event_reg() local
297 file); in trace_event_reg()
301 file); in trace_event_reg()
327 struct trace_event_file *file; in trace_event_enable_cmd_record() local
331 do_for_each_event_file(tr, file) { in trace_event_enable_cmd_record()
333 if (!(file->flags & EVENT_FILE_FL_ENABLED)) in trace_event_enable_cmd_record()
[all …]

12345678910>>...186