| /linux-6.15/include/media/ |
| H A D | v4l2-ioctl.h | 406 int (*vidioc_reqbufs)(struct file *file, void *fh, 410 int (*vidioc_qbuf)(struct file *file, void *fh, 412 int (*vidioc_expbuf)(struct file *file, void *fh, 414 int (*vidioc_dqbuf)(struct file *file, void *fh, 425 int (*vidioc_g_fbuf)(struct file *file, void *fh, 427 int (*vidioc_s_fbuf)(struct file *file, void *fh, 512 int (*vidioc_g_parm)(struct file *file, void *fh, 514 int (*vidioc_s_parm)(struct file *file, void *fh, 567 int (*vidioc_g_edid)(struct file *file, void *fh, 569 int (*vidioc_s_edid)(struct file *file, void *fh, [all …]
|
| H A D | videobuf2-v4l2.h | 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, 335 int vb2_ioctl_expbuf(struct file *file, void *priv, 337 int vb2_ioctl_remove_bufs(struct file *file, void *priv, 342 int vb2_fop_mmap(struct file *file, struct vm_area_struct *vma); 343 int vb2_fop_release(struct file *file); 344 int _vb2_fop_release(struct file *file, struct mutex *lock); 345 ssize_t vb2_fop_write(struct file *file, const char __user *buf, 347 ssize_t vb2_fop_read(struct file *file, char __user *buf, [all …]
|
| H A D | v4l2-mem2mem.h | 866 int v4l2_m2m_ioctl_reqbufs(struct file *file, void *priv, 868 int v4l2_m2m_ioctl_create_bufs(struct file *file, void *fh, 872 int v4l2_m2m_ioctl_querybuf(struct file *file, void *fh, 874 int v4l2_m2m_ioctl_expbuf(struct file *file, void *fh, 876 int v4l2_m2m_ioctl_qbuf(struct file *file, void *fh, 878 int v4l2_m2m_ioctl_dqbuf(struct file *file, void *fh, 880 int v4l2_m2m_ioctl_prepare_buf(struct file *file, void *fh, 882 int v4l2_m2m_ioctl_streamon(struct file *file, void *fh, 884 int v4l2_m2m_ioctl_streamoff(struct file *file, void *fh, 886 int v4l2_m2m_ioctl_encoder_cmd(struct file *file, void *fh, [all …]
|
| /linux-6.15/drivers/media/test-drivers/vivid/ |
| H A D | vivid-vid-cap.h | 22 int vivid_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 23 int vivid_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 24 int vivid_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 28 int vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 39 int vidioc_g_input(struct file *file, void *priv, unsigned *i); 40 int vidioc_s_input(struct file *file, void *priv, unsigned i); 41 int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin); 42 int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *vin); 48 int vidioc_querystd(struct file *file, void *priv, v4l2_std_id *id); 49 int vivid_vid_cap_s_std(struct file *file, void *priv, v4l2_std_id id); [all …]
|
| H A D | vivid-vid-out.h | 15 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); 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); 31 int vivid_vid_out_overlay(struct file *file, void *fh, unsigned i); 35 int vidioc_g_output(struct file *file, void *priv, unsigned *i); 36 int vidioc_s_output(struct file *file, void *priv, unsigned i); 38 int vidioc_g_audout(struct file *file, void *fh, struct v4l2_audioout *vout); [all …]
|
| H A D | vivid-sdr-cap.h | 11 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.15/fs/ |
| H A D | file_table.c | 48 struct file file; member 332 file->f_iocb_flags = iocb_flags(file); in file_init_path() 349 struct file *file; in alloc_file() local 374 struct file *file; in alloc_file_pseudo() local 402 struct file *file; in alloc_file_pseudo_noaccount() local 439 static void __fput(struct file *file) in __fput() argument 462 file->f_op->fasync(-1, file, 0); in __fput() 465 file->f_op->release(inode, file); in __fput() 539 void fput(struct file *file) in fput() argument 554 void __fput_sync(struct file *file) in __fput_sync() argument [all …]
|
| H A D | file.c | 680 struct file *file; in file_close_fd_locked() local 699 struct file *file; in close_fd() local 741 struct file *file; in __range_close() local 838 struct file *file; in file_close_fd() local 865 struct file *file; in do_close_on_exec() local 885 struct file __rcu *file; in __get_file_rcu() local 978 struct file *file; in __fget_files_rcu() local 1053 struct file *file; in __fget_files() local 1141 struct file *file; in __fget_light() local 1380 struct file *file; in ksys_dup3() local [all …]
|
| H A D | read_write.c | 37 static inline bool unsigned_offsets(struct file *file) in unsigned_offsets() argument 55 static loff_t vfs_setpos_cookie(struct file *file, loff_t offset, in vfs_setpos_cookie() argument 180 return vfs_setpos(file, file->f_pos + offset, maxsize); in generic_file_llseek_size() 182 return vfs_setpos(file, file->f_pos + offset, maxsize); in generic_file_llseek_size() 387 return file->f_op->llseek(file, offset, whence); in vfs_llseek() 522 if (unlikely(!file->f_op->read_iter || file->f_op->read)) in __kernel_read() 568 ret = file->f_op->read(file, buf, count, pos); in vfs_read() 682 ret = file->f_op->write(file, buf, count, pos); in vfs_write() 697 static inline loff_t *file_ppos(struct file *file) in file_ppos() argument 699 return file->f_mode & FMODE_STREAM ? NULL : &file->f_pos; in file_ppos() [all …]
|
| /linux-6.15/tools/testing/selftests/efivarfs/ |
| H A D | efivarfs.sh | 67 file_cleanup $file 70 file_cleanup $file 77 : > $file 81 file_cleanup $file 89 ./create-read $file 113 file_cleanup $file 136 chattr -i $file 215 [ -e $file -a -s $file ] || exit 1 216 chattr -i $file 217 : > $file [all …]
|
| /linux-6.15/fs/lockd/ |
| H A D | svcsubs.c | 89 struct file **fp = &file->f_file[mode]; in nlm_do_fopen() 131 file = kzalloc(sizeof(*file), GFP_KERNEL); in nlm_lookup_file() 132 if (!file) in nlm_lookup_file() 148 *result = file; in nlm_lookup_file() 156 kfree(file); in nlm_lookup_file() 173 kfree(file); in nlm_delete_file() 270 if (file->f_count || !list_empty(&file->f_blocks) || file->f_shares) in nlm_file_inuse() 322 if (list_empty(&file->f_blocks) && !file->f_locks in nlm_traverse_files() 323 && !file->f_shares && !file->f_count) { in nlm_traverse_files() 347 file, file->f_count); in nlm_release_file() [all …]
|
| /linux-6.15/fs/overlayfs/ |
| H A D | file.c | 27 static struct file *ovl_open_realfile(const struct file *file, in ovl_open_realfile() argument 57 file, file, ovl_whatisit(inode, realinode), file->f_flags, in ovl_open_realfile() 85 file->f_flags = (file->f_flags & ~OVL_SETFL_MASK) | flags; in ovl_change_flags() 86 file->f_iocb_flags = iocb_flags(file); in ovl_change_flags() 122 static struct file *ovl_real_file_path(const struct file *file, in ovl_real_file_path() argument 174 static struct file *ovl_real_file(const struct file *file) in ovl_real_file() argument 181 struct file *f = ovl_dir_real_file(file, false); in ovl_real_file() 286 static void ovl_file_modified(struct file *file) in ovl_file_modified() argument 297 static void ovl_file_accessed(struct file *file) in ovl_file_accessed() argument 327 struct file *file = iocb->ki_filp; in ovl_read_iter() local [all …]
|
| /linux-6.15/tools/testing/selftests/rcutorture/bin/ |
| H A D | parse-console.sh | 15 file="$1" 23 if test -f "$file" -a -r "$file" 27 echo $title unreadable console output file: $file 30 if grep -Pq '\x00' < $file 41 if grep -q FAILURE $file || grep -q -e '-torture.*!!!' $file 101 echo " " $file 108 echo " " $file 174 for i in $file.*.diags 183 rm -f $file.diags 188 extract_ftrace_from_console $file > $file.ftrace [all …]
|
| /linux-6.15/fs/ecryptfs/ |
| H A D | file.c | 37 struct file *file = iocb->ki_filp; in ecryptfs_read_update_atime() local 126 static int ecryptfs_readdir(struct file *file, struct dir_context *ctx) in ecryptfs_readdir() argument 190 struct file *lower_file = ecryptfs_file_to_lower(file); in ecryptfs_mmap() 210 static int ecryptfs_open(struct inode *inode, struct file *file) in ecryptfs_open() argument 279 static int ecryptfs_dir_open(struct inode *inode, struct file *file) in ecryptfs_dir_open() argument 309 static int ecryptfs_flush(struct file *file, fl_owner_t td) in ecryptfs_flush() argument 311 struct file *lower_file = ecryptfs_file_to_lower(file); in ecryptfs_flush() 321 static int ecryptfs_release(struct inode *inode, struct file *file) in ecryptfs_release() argument 354 static int ecryptfs_fasync(int fd, struct file *file, int flag) in ecryptfs_fasync() argument 368 struct file *lower_file = ecryptfs_file_to_lower(file); in ecryptfs_unlocked_ioctl() [all …]
|
| /linux-6.15/drivers/gpu/drm/i915/gt/ |
| H A D | shmem_utils.c | 19 struct file *file; in shmem_create_from_data() local 24 return file; in shmem_create_from_data() 28 fput(file); in shmem_create_from_data() 32 return file; in shmem_create_from_data() 38 struct file *file; in shmem_create_from_object() local 44 return file; in shmem_create_from_object() 55 return file; in shmem_create_from_object() 58 void *shmem_pin_map(struct file *file) in shmem_pin_map() argument 88 void shmem_unpin_map(struct file *file, void *ptr) in shmem_unpin_map() argument 94 static int __shmem_rw(struct file *file, loff_t off, in __shmem_rw() argument [all …]
|
| /linux-6.15/include/linux/ |
| H A D | file.h | 16 struct file; 18 extern void fput(struct file *); 30 extern struct file *alloc_file_clone(struct file *, int flags, 66 extern struct file *fget(unsigned int fd); 70 extern void __f_unlock_pos(struct file *); 87 extern int f_dupfd(unsigned int from, struct file *file, unsigned flags); 88 extern int replace_fd(unsigned fd, struct file *file, unsigned flags); 119 extern void fd_install(unsigned int fd, struct file *file); 121 int receive_fd(struct file *file, int __user *ufd, unsigned int o_flags); 123 int receive_fd_replace(int new_fd, struct file *file, unsigned int o_flags); [all …]
|
| H A D | fsnotify.h | 116 static inline int fsnotify_file(struct file *file, __u32 mask) in fsnotify_file() argument 132 void file_set_fsnotify_mode_from_watchers(struct file *file); 176 static inline int fsnotify_mmap_perm(struct file *file, int prot, in fsnotify_mmap_perm() argument 182 if (!file || likely(!FMODE_FSNOTIFY_HSM(file->f_mode))) in fsnotify_mmap_perm() 214 static inline int fsnotify_open_perm(struct file *file) in fsnotify_open_perm() argument 241 static inline int fsnotify_mmap_perm(struct file *file, int prot, in fsnotify_mmap_perm() argument 257 static inline int fsnotify_open_perm(struct file *file) in fsnotify_open_perm() argument 448 static inline void fsnotify_access(struct file *file) in fsnotify_access() argument 456 static inline void fsnotify_modify(struct file *file) in fsnotify_modify() argument 464 static inline void fsnotify_open(struct file *file) in fsnotify_open() argument [all …]
|
| /linux-6.15/drivers/infiniband/core/ |
| H A D | user_mad.c | 183 return file->agents_dead ? NULL : file->agent[id]; in __get_agent() 324 buf += hdr_size(file); in copy_recv_mad() 371 buf += hdr_size(file); in copy_send_mad() 537 buf += hdr_size(file); in ib_umad_write() 752 agent = ib_register_mad_agent(file->port->ib_dev, file->port->port_num, in ib_umad_reg_agent() 865 agent = ib_register_mad_agent(file->port->ib_dev, file->port->port_num, in ib_umad_reg_agent2() 1017 file = kzalloc(sizeof(*file), GFP_KERNEL); in ib_umad_open() 1018 if (!file) { in ib_umad_open() 1029 file->port = port; in ib_umad_open() 1065 if (file->agent[i]) in ib_umad_close() [all …]
|
| /linux-6.15/mm/ |
| H A D | memfd.c | 173 static unsigned int *memfd_file_seals_ptr(struct file *file) in memfd_file_seals_ptr() argument 175 if (shmem_file(file)) in memfd_file_seals_ptr() 193 static int memfd_add_seals(struct file *file, unsigned int seals) in memfd_add_seals() argument 275 static int memfd_get_seals(struct file *file) in memfd_get_seals() argument 282 long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg) in memfd_fcntl() argument 424 struct file *file; in alloc_file() local 434 if (IS_ERR(file)) in alloc_file() 435 return file; in alloc_file() 455 return file; in alloc_file() 462 struct file *file; in SYSCALL_DEFINE2() local [all …]
|
| /linux-6.15/drivers/gpu/drm/ |
| H A D | drm_file.c | 137 file = kzalloc(sizeof(*file), GFP_KERNEL); in drm_file_alloc() 138 if (!file) in drm_file_alloc() 144 file->minor = minor; in drm_file_alloc() 176 return file; in drm_file_alloc() 185 kfree(file); in drm_file_alloc() 228 if (!file) in drm_file_free() 266 kfree(file); in drm_file_free() 1013 struct file *file; in mock_drm_getfile() local 1022 return file; in mock_drm_getfile() 1029 priv->filp = file; in mock_drm_getfile() [all …]
|
| /linux-6.15/drivers/net/wireless/mediatek/mt76/ |
| H A D | mt76x02_debugfs.c | 12 struct mt76x02_dev *dev = file->private; in mt76x02_ampdu_stat_show() 16 seq_puts(file, "Length: "); 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() 28 seq_puts(file, "\n"); in mt76x02_ampdu_stat_show() 58 seq_puts(file, "\n"); in mt76x02_dfs_stat_show() [all …]
|
| /linux-6.15/kernel/trace/ |
| H A D | trace_events_trigger.c | 267 static ssize_t event_trigger_regex_write(struct file *file, in event_trigger_regex_write() argument 1066 ret = create_event_filter(file->tr, file->event_call, in set_trigger_filter() 1267 if (file) { in traceon_trigger() 1288 if (file) { in traceon_count_trigger() 1302 if (file) in traceon_count_trigger() 1315 if (file) { in traceoff_trigger() 1336 if (file) { in traceoff_count_trigger() 1350 if (file) in traceoff_count_trigger() 1443 if (file) in snapshot_trigger() 1562 if (file) in stacktrace_trigger() [all …]
|
| /linux-6.15/fs/ocfs2/ |
| H A D | locks.c | 23 static int ocfs2_do_flock(struct file *file, struct inode *inode, in ocfs2_do_flock() argument 58 locks_lock_file_wait(file, &request); in ocfs2_do_flock() 60 ocfs2_file_unlock(file); in ocfs2_do_flock() 72 ret = locks_lock_file_wait(file, fl); in ocfs2_do_flock() 74 ocfs2_file_unlock(file); in ocfs2_do_flock() 82 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument 88 ocfs2_file_unlock(file); in ocfs2_do_funlock() 89 ret = locks_lock_file_wait(file, fl); in ocfs2_do_funlock() 98 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock() argument 108 return locks_lock_file_wait(file, fl); in ocfs2_flock() [all …]
|
| /linux-6.15/sound/core/seq/oss/ |
| H A D | seq_oss.c | 44 static int odev_open(struct inode *inode, struct file *file); 45 static int odev_release(struct inode *inode, struct file *file); 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 135 odev_release(struct inode *inode, struct file *file) in odev_release() argument 139 dp = file->private_data; in odev_release() 151 odev_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in odev_read() argument 172 odev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in odev_ioctl() argument 191 static long odev_ioctl_compat(struct file *file, unsigned int cmd, in odev_ioctl_compat() argument [all …]
|
| /linux-6.15/tools/objtool/ |
| H A D | check.c | 605 file->pv_ops = NULL; in init_pv_ops() 613 if (!file->pv_ops) { in init_pv_ops() 1262 if (!file) in insn_reloc() 1893 file->jl_short++; in handle_jump_alt() 1895 file->jl_long++; in handle_jump_alt() 1973 printf("short:\t%ld\t%ld\n", file->jl_nop_short, file->jl_short); in add_special_section_alts() 1974 printf("long:\t%ld\t%ld\n", file->jl_nop_long, file->jl_long); in add_special_section_alts() 2166 if (!file->rodata) in add_jump_table_alts() 2531 mark_rodata(file); in decode_sections() 3826 if (!file->hints) in validate_unwind_hints() [all …]
|