/Linux-v5.4/include/media/ |
D | v4l2-ioctl.h | 300 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 …]
|
D | videobuf2-v4l2.h | 263 __poll_t vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait); 275 int vb2_ioctl_reqbufs(struct file *file, void *priv, 277 int vb2_ioctl_create_bufs(struct file *file, void *priv, 279 int vb2_ioctl_prepare_buf(struct file *file, void *priv, 281 int vb2_ioctl_querybuf(struct file *file, void *priv, struct v4l2_buffer *p); 282 int vb2_ioctl_qbuf(struct file *file, void *priv, struct v4l2_buffer *p); 283 int vb2_ioctl_dqbuf(struct file *file, void *priv, struct v4l2_buffer *p); 284 int vb2_ioctl_streamon(struct file *file, void *priv, enum v4l2_buf_type i); 285 int vb2_ioctl_streamoff(struct file *file, void *priv, enum v4l2_buf_type i); 286 int vb2_ioctl_expbuf(struct file *file, void *priv, [all …]
|
D | v4l2-mem2mem.h | 189 int v4l2_m2m_reqbufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 201 int v4l2_m2m_querybuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 212 int v4l2_m2m_qbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 223 int v4l2_m2m_dqbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 234 int v4l2_m2m_prepare_buf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 245 int v4l2_m2m_create_bufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 256 int v4l2_m2m_expbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 266 int v4l2_m2m_streamon(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 276 int v4l2_m2m_streamoff(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 291 __poll_t v4l2_m2m_poll(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, [all …]
|
/Linux-v5.4/drivers/media/platform/vivid/ |
D | vivid-vid-cap.h | 20 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 …]
|
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); 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 …]
|
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-v5.4/fs/overlayfs/ |
D | file.c | 24 static struct file *ovl_open_realfile(const struct file *file, in ovl_open_realfile() argument 27 struct inode *inode = file_inode(file); in ovl_open_realfile() 28 struct file *realfile; in ovl_open_realfile() 30 int flags = file->f_flags | O_NOATIME | FMODE_NONOTIFY; in ovl_open_realfile() 33 realfile = open_with_fake_path(&file->f_path, flags, realinode, in ovl_open_realfile() 38 file, file, ovl_whatisit(inode, realinode), file->f_flags, in ovl_open_realfile() 46 static int ovl_change_flags(struct file *file, unsigned int flags) in ovl_change_flags() argument 48 struct inode *inode = file_inode(file); in ovl_change_flags() 55 if (WARN_ON((file->f_flags ^ flags) & ~OVL_SETFL_MASK)) in ovl_change_flags() 60 if (((flags ^ file->f_flags) & O_APPEND) && IS_APPEND(inode)) in ovl_change_flags() [all …]
|
/Linux-v5.4/tools/testing/selftests/efivarfs/ |
D | efivarfs.sh | 56 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-v5.4/fs/ |
D | file_table.c | 47 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 …]
|
D | read_write.c | 37 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 …]
|
D | file.c | 77 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 …]
|
/Linux-v5.4/fs/lockd/ |
D | svcsubs.c | 46 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 …]
|
/Linux-v5.4/fs/ecryptfs/ |
D | file.c | 37 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 …]
|
/Linux-v5.4/tools/testing/selftests/rcutorture/bin/ |
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 34 cat /dev/null > $file.diags 41 if grep -q FAILURE $file || grep -q -e '-torture.*!!!' $file 43 nerrs=`grep --binary-files=text '!!!' $file | 55 grep --binary-files=text 'torture:.*ver:' $file | 83 if grep -q SUCCESS $file 88 echo " " $file [all …]
|
/Linux-v5.4/include/linux/ |
D | file.h | 13 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 …]
|
D | eventpoll.h | 16 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() 66 static inline void eventpoll_init_file(struct file *file) {} in eventpoll_init_file() argument [all …]
|
D | fs.h | 239 struct file *ia_file; 319 struct file *ki_filp; 364 int (*readpage)(struct file *, struct page *); 376 int (*readpages)(struct file *filp, struct address_space *mapping, 379 int (*write_begin)(struct file *, struct address_space *mapping, 382 int (*write_end)(struct file *, struct address_space *mapping, 407 int (*swap_activate)(struct swap_info_struct *sis, struct file *file, 409 void (*swap_deactivate)(struct file *file); 418 int pagecache_write_begin(struct file *, struct address_space *mapping, 422 int pagecache_write_end(struct file *, struct address_space *mapping, [all …]
|
D | ima.h | 17 extern int ima_file_check(struct file *file, int mask); 19 extern void ima_file_free(struct file *file); 20 extern int ima_file_mmap(struct file *file, unsigned long prot); 22 extern int ima_read_file(struct file *file, enum kernel_read_file_id id); 23 extern int ima_post_read_file(struct file *file, void *buf, loff_t size, 53 static inline int ima_file_check(struct file *file, int mask) in ima_file_check() argument 62 static inline void ima_file_free(struct file *file) in ima_file_free() argument 67 static inline int ima_file_mmap(struct file *file, unsigned long prot) in ima_file_mmap() argument 77 static inline int ima_read_file(struct file *file, enum kernel_read_file_id id) in ima_read_file() argument 82 static inline int ima_post_read_file(struct file *file, void *buf, loff_t size, in ima_post_read_file() argument
|
/Linux-v5.4/net/batman-adv/ |
D | debugfs.c | 44 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 …]
|
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_debugfs.c | 10 mt76x02_ampdu_stat_read(struct seq_file *file, void *data) in mt76x02_ampdu_stat_read() argument 12 struct mt76x02_dev *dev = file->private; in mt76x02_ampdu_stat_read() 16 seq_puts(file, "Length: "); in mt76x02_ampdu_stat_read() 18 seq_printf(file, "%8d | ", i * 8 + j + 1); in mt76x02_ampdu_stat_read() 19 seq_puts(file, "\n"); in mt76x02_ampdu_stat_read() 20 seq_puts(file, "Count: "); in mt76x02_ampdu_stat_read() 22 seq_printf(file, "%8d | ", dev->aggr_stats[i * 8 + j]); in mt76x02_ampdu_stat_read() 23 seq_puts(file, "\n"); in mt76x02_ampdu_stat_read() 24 seq_puts(file, "--------"); in mt76x02_ampdu_stat_read() 26 seq_puts(file, "-----------"); in mt76x02_ampdu_stat_read() [all …]
|
/Linux-v5.4/drivers/infiniband/core/ |
D | user_mad.c | 166 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-v5.4/sound/core/seq/oss/ |
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); 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 …]
|
/Linux-v5.4/kernel/trace/ |
D | trace_events.c | 62 #define do_for_each_event_file(tr, file) \ argument 64 list_for_each_entry(file, &tr->events, list) 66 #define do_for_each_event_file_safe(tr, file) \ argument 69 list_for_each_entry_safe(file, ___n, &tr->events, list) 283 struct trace_event_file *file = data; in trace_event_reg() local 290 file); in trace_event_reg() 294 file); in trace_event_reg() 320 struct trace_event_file *file; in trace_event_enable_cmd_record() local 324 do_for_each_event_file(tr, file) { in trace_event_enable_cmd_record() 326 if (!(file->flags & EVENT_FILE_FL_ENABLED)) in trace_event_enable_cmd_record() [all …]
|
/Linux-v5.4/drivers/gpu/drm/i915/gem/ |
D | i915_gem_ioctls.h | 14 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-v5.4/fs/ocfs2/ |
D | locks.c | 24 static int ocfs2_do_flock(struct file *file, struct inode *inode, in ocfs2_do_flock() argument 28 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_flock() 59 locks_lock_file_wait(file, &request); in ocfs2_do_flock() 61 ocfs2_file_unlock(file); in ocfs2_do_flock() 64 ret = ocfs2_file_lock(file, level, trylock); in ocfs2_do_flock() 73 ret = locks_lock_file_wait(file, fl); in ocfs2_do_flock() 75 ocfs2_file_unlock(file); in ocfs2_do_flock() 83 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument 86 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_funlock() 89 ocfs2_file_unlock(file); in ocfs2_do_funlock() [all …]
|