Home
last modified time | relevance | path

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

12345678910>>...144

/linux-6.1.9/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.h293 __poll_t vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait);
317 static inline bool vb2_queue_is_busy(struct vb2_queue *q, struct file *file) in vb2_queue_is_busy() argument
319 return q->owner && q->owner != file->private_data; in vb2_queue_is_busy()
324 int vb2_ioctl_reqbufs(struct file *file, void *priv,
326 int vb2_ioctl_create_bufs(struct file *file, void *priv,
328 int vb2_ioctl_prepare_buf(struct file *file, void *priv,
330 int vb2_ioctl_querybuf(struct file *file, void *priv, struct v4l2_buffer *p);
331 int vb2_ioctl_qbuf(struct file *file, void *priv, struct v4l2_buffer *p);
332 int vb2_ioctl_dqbuf(struct file *file, void *priv, struct v4l2_buffer *p);
333 int vb2_ioctl_streamon(struct file *file, void *priv, enum v4l2_buf_type i);
[all …]
/linux-6.1.9/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);
/linux-6.1.9/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 …]
/linux-6.1.9/fs/overlayfs/
Dfile.c40 static struct file *ovl_open_realfile(const struct file *file, in ovl_open_realfile() argument
44 struct inode *inode = file_inode(file); in ovl_open_realfile()
46 struct file *realfile; in ovl_open_realfile()
48 int flags = file->f_flags | OVL_OPEN_FLAGS; in ovl_open_realfile()
64 realfile = open_with_fake_path(&file->f_path, flags, realinode, in ovl_open_realfile()
70 file, file, ovl_whatisit(inode, realinode), file->f_flags, in ovl_open_realfile()
78 static int ovl_change_flags(struct file *file, unsigned int flags) in ovl_change_flags() argument
80 struct inode *inode = file_inode(file); in ovl_change_flags()
85 if (((flags ^ file->f_flags) & O_APPEND) && IS_APPEND(inode)) in ovl_change_flags()
88 if ((flags & O_DIRECT) && !(file->f_mode & FMODE_CAN_ODIRECT)) in ovl_change_flags()
[all …]
/linux-6.1.9/fs/
Dfile_table.c48 struct file *f = container_of(head, struct file, f_rcuhead); in file_free_rcu()
54 static inline void file_free(struct file *f) in file_free()
133 static struct file *__alloc_file(int flags, const struct cred *cred) in __alloc_file()
135 struct file *f; in __alloc_file()
170 struct file *alloc_empty_file(int flags, const struct cred *cred) in alloc_empty_file()
173 struct file *f; in alloc_empty_file()
207 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred) in alloc_empty_file_noaccount()
209 struct file *f = __alloc_file(flags, cred); in alloc_empty_file_noaccount()
224 static struct file *alloc_file(const struct path *path, int flags, in alloc_file()
227 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.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 …]
/linux-6.1.9/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 = 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
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()
108 struct nlm_file *file; in nlm_lookup_file() local
121 hlist_for_each_entry(file, &nlm_files[hash], f_list) in nlm_lookup_file()
122 if (!nfs_compare_fh(&file->f_handle, &lock->fh)) { in nlm_lookup_file()
123 mutex_lock(&file->f_mutex); in nlm_lookup_file()
[all …]
/linux-6.1.9/include/linux/
Dfile.h14 struct file;
16 extern void fput(struct file *);
24 extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *,
26 extern struct file *alloc_file_clone(struct file *, int flags,
29 static inline void fput_light(struct file *file, int fput_needed) in fput_light() argument
32 fput(file); in fput_light()
36 struct file *file; member
45 fput(fd.file); in fdput()
48 extern struct file *fget(unsigned int fd);
49 extern struct file *fget_raw(unsigned int fd);
[all …]
Dfs.h258 struct file *ia_file;
342 struct file *ki_filp;
358 int (*read_folio)(struct file *, struct folio *);
368 int (*write_begin)(struct file *, struct address_space *mapping,
371 int (*write_end)(struct file *, struct address_space *mapping,
394 int (*swap_activate)(struct swap_info_struct *sis, struct file *file,
396 void (*swap_deactivate)(struct file *file);
940 struct file { struct
988 static inline struct file *get_file(struct file *f) in get_file()
1103 struct file *fl_file;
[all …]
/linux-6.1.9/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()
163 static int ecryptfs_mmap(struct file *file, struct vm_area_struct *vma) in ecryptfs_mmap() argument
165 struct file *lower_file = ecryptfs_file_to_lower(file); in ecryptfs_mmap()
173 return generic_file_mmap(file, vma); in ecryptfs_mmap()
185 static int ecryptfs_open(struct inode *inode, struct file *file) in ecryptfs_open() argument
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/gpu/drm/i915/gt/
Dshmem_utils.c15 struct file *shmem_create_from_data(const char *name, void *data, size_t len) in shmem_create_from_data()
17 struct file *file; in shmem_create_from_data() local
20 file = shmem_file_setup(name, PAGE_ALIGN(len), VM_NORESERVE); in shmem_create_from_data()
21 if (IS_ERR(file)) in shmem_create_from_data()
22 return file; in shmem_create_from_data()
24 err = shmem_write(file, 0, data, len); in shmem_create_from_data()
26 fput(file); in shmem_create_from_data()
30 return file; in shmem_create_from_data()
33 struct file *shmem_create_from_object(struct drm_i915_gem_object *obj) in shmem_create_from_object()
35 struct file *file; in shmem_create_from_object() local
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_dbg.c105 dr_dump_rule_action_mem(struct seq_file *file, const u64 rule_id, in dr_dump_rule_action_mem() argument
113 seq_printf(file, "%d,0x%llx,0x%llx\n", in dr_dump_rule_action_mem()
118 seq_printf(file, "%d,0x%llx,0x%llx,0x%x,0x%x\n", in dr_dump_rule_action_mem()
123 seq_printf(file, "%d,0x%llx,0x%llx,0x%x,0x%llx\n", in dr_dump_rule_action_mem()
130 seq_printf(file, "%d,0x%llx,0x%llx,0x%x\n", in dr_dump_rule_action_mem()
135 seq_printf(file, "%d,0x%llx,0x%llx,0x%x\n", in dr_dump_rule_action_mem()
140 seq_printf(file, "%d,0x%llx,0x%llx,0x%x\n", in dr_dump_rule_action_mem()
145 seq_printf(file, "%d,0x%llx,0x%llx,0x%x\n", in dr_dump_rule_action_mem()
150 seq_printf(file, "%d,0x%llx,0x%llx\n", in dr_dump_rule_action_mem()
155 seq_printf(file, "%d,0x%llx,0x%llx,0x%x\n", in dr_dump_rule_action_mem()
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/infiniband/core/
Duser_mad.c166 static int hdr_size(struct ib_umad_file *file) in hdr_size() argument
168 return file->use_pkey_index ? sizeof(struct ib_user_mad_hdr) : in hdr_size()
173 static struct ib_mad_agent *__get_agent(struct ib_umad_file *file, int id) in __get_agent() argument
175 return file->agents_dead ? NULL : file->agent[id]; in __get_agent()
178 static int queue_packet(struct ib_umad_file *file, in queue_packet() argument
184 mutex_lock(&file->mutex); in queue_packet()
189 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet()
190 list_add_tail(&packet->list, &file->recv_list); in queue_packet()
191 wake_up_interruptible(&file->recv_wait); in queue_packet()
196 mutex_unlock(&file->mutex); in queue_packet()
[all …]
/linux-6.1.9/fs/ocfs2/
Dlocks.c22 static int ocfs2_do_flock(struct file *file, struct inode *inode, in ocfs2_do_flock() argument
26 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_flock()
57 locks_lock_file_wait(file, &request); in ocfs2_do_flock()
59 ocfs2_file_unlock(file); in ocfs2_do_flock()
62 ret = ocfs2_file_lock(file, level, trylock); in ocfs2_do_flock()
71 ret = locks_lock_file_wait(file, fl); in ocfs2_do_flock()
73 ocfs2_file_unlock(file); in ocfs2_do_flock()
81 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument
84 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_funlock()
87 ocfs2_file_unlock(file); in ocfs2_do_funlock()
[all …]
/linux-6.1.9/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);
118 odev_open(struct inode *inode, struct file *file) in odev_open() argument
128 rc = snd_seq_oss_open(file, level); in odev_open()
135 odev_release(struct inode *inode, struct file *file) in odev_release() argument
139 dp = file->private_data; in odev_release()
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/gem/
Di915_gem_ioctls.h14 struct drm_file *file);
16 struct drm_file *file);
18 struct drm_file *file);
20 struct drm_file *file);
22 struct drm_file *file);
24 struct drm_file *file);
26 struct drm_file *file);
28 struct drm_file *file);
30 struct drm_file *file);
32 struct drm_file *file);
[all …]
/linux-6.1.9/fs/proc/
Dinode.c241 struct file *file; in close_pdeo() local
247 file = pdeo->file; in close_pdeo()
248 pde->proc_ops->proc_release(file_inode(file), file); in close_pdeo()
281 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek() argument
283 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_llseek()
287 return pde->proc_ops->proc_lseek(file, offset, whence); in proc_reg_llseek()
289 rv = pde->proc_ops->proc_lseek(file, offset, whence); in proc_reg_llseek()
310 static ssize_t pde_read(struct proc_dir_entry *pde, struct file *file, char __user *buf, size_t cou… in pde_read() argument
316 return read(file, buf, count, ppos); in pde_read()
320 static ssize_t proc_reg_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in proc_reg_read() argument
[all …]
/linux-6.1.9/tools/objtool/
Dcheck.c37 struct instruction *find_insn(struct objtool_file *file, in find_insn() argument
42 hash_for_each_possible(file->insn_hash, insn, hash, sec_offset_hash(sec, offset)) { in find_insn()
50 static struct instruction *next_insn_same_sec(struct objtool_file *file, in next_insn_same_sec() argument
55 if (!next || &next->list == &file->insn_list || next->sec != insn->sec) in next_insn_same_sec()
61 static struct instruction *next_insn_same_func(struct objtool_file *file, in next_insn_same_func() argument
70 if (&next->list != &file->insn_list && next->func == func) in next_insn_same_func()
78 return find_insn(file, func->cfunc->sec, func->cfunc->offset); in next_insn_same_func()
81 static struct instruction *prev_insn_same_sym(struct objtool_file *file, in prev_insn_same_sym() argument
86 if (&prev->list != &file->insn_list && prev->func == insn->func) in prev_insn_same_sym()
92 #define func_for_each_insn(file, func, insn) \ argument
[all …]

12345678910>>...144