/linux-6.12.1/include/media/ |
D | v4l2-ioctl.h | 302 int (*vidioc_querycap)(struct file *file, void *fh, 306 int (*vidioc_enum_fmt_vid_cap)(struct file *file, void *fh, 308 int (*vidioc_enum_fmt_vid_overlay)(struct file *file, void *fh, 310 int (*vidioc_enum_fmt_vid_out)(struct file *file, void *fh, 312 int (*vidioc_enum_fmt_sdr_cap)(struct file *file, void *fh, 314 int (*vidioc_enum_fmt_sdr_out)(struct file *file, void *fh, 316 int (*vidioc_enum_fmt_meta_cap)(struct file *file, void *fh, 318 int (*vidioc_enum_fmt_meta_out)(struct file *file, void *fh, 322 int (*vidioc_g_fmt_vid_cap)(struct file *file, void *fh, 324 int (*vidioc_g_fmt_vid_overlay)(struct file *file, void *fh, [all …]
|
D | videobuf2-v4l2.h | 293 __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 …]
|
D | v4l2-mem2mem.h | 343 int v4l2_m2m_reqbufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 355 int v4l2_m2m_querybuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 366 int v4l2_m2m_qbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 377 int v4l2_m2m_dqbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 388 int v4l2_m2m_prepare_buf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 399 int v4l2_m2m_create_bufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 410 int v4l2_m2m_expbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 420 int v4l2_m2m_streamon(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 430 int v4l2_m2m_streamoff(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 460 int v4l2_m2m_encoder_cmd(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, [all …]
|
/linux-6.12.1/drivers/media/test-drivers/vivid/ |
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); 25 int vidioc_g_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f); 26 int vidioc_try_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f); 27 int vidioc_s_fmt_vid_cap_mplane(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); 29 int vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 30 int vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); 31 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-6.12.1/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-6.12.1/fs/ |
D | file_table.c | 48 struct file file; member 52 static inline struct backing_file *backing_file(struct file *f) in backing_file() 54 return container_of(f, struct backing_file, file); in backing_file() 57 struct path *backing_file_user_path(struct file *f) in backing_file_user_path() 63 static inline void file_free(struct file *f) in file_free() 148 static int init_file(struct file *f, int flags, const struct cred *cred) in init_file() 191 struct file *alloc_empty_file(int flags, const struct cred *cred) in alloc_empty_file() 194 struct file *f; in alloc_empty_file() 238 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred) in alloc_empty_file_noaccount() 240 struct file *f; in alloc_empty_file_noaccount() [all …]
|
D | file.c | 78 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable() 79 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable() 113 nr /= (1024 / sizeof(struct file *)); in alloc_fdtable() 115 nr *= (1024 / sizeof(struct file *)); in alloc_fdtable() 132 data = kvmalloc_array(nr, sizeof(struct file *), GFP_KERNEL_ACCOUNT); in alloc_fdtable() 306 struct file **old_fds, **new_fds; in dup_fd() 370 struct file *f = *old_fds++; in dup_fd() 387 memset(new_fds, 0, (new_fdt->max_fds - open_files) * sizeof(struct file *)); in dup_fd() 416 struct file * file = xchg(&fdt->fd[i], NULL); in close_files() local 417 if (file) { in close_files() [all …]
|
D | read_write.c | 37 static inline bool unsigned_offsets(struct file *file) in unsigned_offsets() argument 39 return file->f_op->fop_flags & FOP_UNSIGNED_OFFSET; in unsigned_offsets() 55 static loff_t vfs_setpos_cookie(struct file *file, loff_t offset, in vfs_setpos_cookie() argument 58 if (offset < 0 && !unsigned_offsets(file)) in vfs_setpos_cookie() 63 if (offset != file->f_pos) { in vfs_setpos_cookie() 64 file->f_pos = offset; in vfs_setpos_cookie() 83 loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize) in vfs_setpos() argument 85 return vfs_setpos_cookie(file, offset, maxsize, NULL); in vfs_setpos() 102 static int must_set_pos(struct file *file, loff_t *offset, int whence, loff_t eof) in must_set_pos() argument 116 *offset = file->f_pos; in must_set_pos() [all …]
|
/linux-6.12.1/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 = 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.12.1/fs/overlayfs/ |
D | file.c | 27 static struct file *ovl_open_realfile(const struct file *file, in ovl_open_realfile() argument 31 struct inode *inode = file_inode(file); in ovl_open_realfile() 33 struct file *realfile; in ovl_open_realfile() 35 int flags = file->f_flags | OVL_OPEN_FLAGS; in ovl_open_realfile() 51 realfile = backing_file_open(&file->f_path, flags, realpath, in ovl_open_realfile() 57 file, file, ovl_whatisit(inode, realinode), file->f_flags, in ovl_open_realfile() 65 static int ovl_change_flags(struct file *file, unsigned int flags) in ovl_change_flags() argument 67 struct inode *inode = file_inode(file); in ovl_change_flags() 72 if (((flags ^ file->f_flags) & O_APPEND) && IS_APPEND(inode)) in ovl_change_flags() 75 if ((flags & O_DIRECT) && !(file->f_mode & FMODE_CAN_ODIRECT)) in ovl_change_flags() [all …]
|
/linux-6.12.1/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 | 67 grep --binary-files=text 'torture:.*ver:' $file | 96 if grep -q SUCCESS $file 101 echo " " $file [all …]
|
/linux-6.12.1/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() 57 static ssize_t ecryptfs_splice_read_update_atime(struct file *in, loff_t *ppos, in ecryptfs_splice_read_update_atime() 126 static int ecryptfs_readdir(struct file *file, struct dir_context *ctx) in ecryptfs_readdir() argument 129 struct file *lower_file; in ecryptfs_readdir() 130 struct inode *inode = file_inode(file); in ecryptfs_readdir() 136 lower_file = ecryptfs_file_to_lower(file); in ecryptfs_readdir() 188 static int ecryptfs_mmap(struct file *file, struct vm_area_struct *vma) in ecryptfs_mmap() argument 190 struct file *lower_file = ecryptfs_file_to_lower(file); in ecryptfs_mmap() 198 return generic_file_mmap(file, vma); in ecryptfs_mmap() [all …]
|
/linux-6.12.1/drivers/gpu/drm/i915/gt/ |
D | shmem_utils.c | 17 struct file *shmem_create_from_data(const char *name, void *data, size_t len) in shmem_create_from_data() 19 struct file *file; in shmem_create_from_data() local 22 file = shmem_file_setup(name, PAGE_ALIGN(len), VM_NORESERVE); in shmem_create_from_data() 23 if (IS_ERR(file)) in shmem_create_from_data() 24 return file; in shmem_create_from_data() 26 err = shmem_write(file, 0, data, len); in shmem_create_from_data() 28 fput(file); in shmem_create_from_data() 32 return file; in shmem_create_from_data() 35 struct file *shmem_create_from_object(struct drm_i915_gem_object *obj) in shmem_create_from_object() 38 struct file *file; in shmem_create_from_object() local [all …]
|
/linux-6.12.1/include/linux/ |
D | file.h | 16 struct file; 18 extern void fput(struct file *); 26 extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *, 28 extern struct file *alloc_file_pseudo_noaccount(struct inode *, struct vfsmount *, 30 extern struct file *alloc_file_clone(struct file *, int flags, 33 static inline void fput_light(struct file *file, int fput_needed) in fput_light() argument 36 fput(file); in fput_light() 50 #define fd_file(f) ((struct file *)((f).word & ~(FDPUT_FPUT|FDPUT_POS_UNLOCK))) 57 static inline struct fd BORROWED_FD(struct file *f) in BORROWED_FD() 61 static inline struct fd CLONED_FD(struct file *f) in CLONED_FD() [all …]
|
D | fs.h | 263 struct file *ia_file; 367 struct file *ki_filp; 399 int (*read_folio)(struct file *, struct folio *); 409 int (*write_begin)(struct file *, struct address_space *mapping, 412 int (*write_end)(struct file *, struct address_space *mapping, 435 int (*swap_activate)(struct swap_info_struct *sis, struct file *file, 437 void (*swap_deactivate)(struct file *file); 966 struct file *file; /* backpointer for security modules */ member 1032 struct file { struct 1079 static inline struct file *get_file(struct file *f) in get_file() [all …]
|
/linux-6.12.1/drivers/infiniband/core/ |
D | user_mad.c | 174 static int hdr_size(struct ib_umad_file *file) in hdr_size() argument 176 return file->use_pkey_index ? sizeof(struct ib_user_mad_hdr) : in hdr_size() 181 static struct ib_mad_agent *__get_agent(struct ib_umad_file *file, int id) in __get_agent() argument 183 return file->agents_dead ? NULL : file->agent[id]; in __get_agent() 186 static int queue_packet(struct ib_umad_file *file, struct ib_mad_agent *agent, in queue_packet() argument 191 mutex_lock(&file->mutex); in queue_packet() 194 atomic_read(&file->recv_list_size) > MAX_UMAD_RECV_LIST_SIZE) in queue_packet() 200 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet() 201 list_add_tail(&packet->list, &file->recv_list); in queue_packet() 202 atomic_inc(&file->recv_list_size); in queue_packet() [all …]
|
/linux-6.12.1/tools/objtool/ |
D | check.c | 38 struct instruction *find_insn(struct objtool_file *file, in find_insn() argument 43 hash_for_each_possible(file->insn_hash, insn, hash, sec_offset_hash(sec, offset)) { in find_insn() 51 struct instruction *next_insn_same_sec(struct objtool_file *file, in next_insn_same_sec() argument 55 return find_insn(file, insn->sec, insn->offset + insn->len); in next_insn_same_sec() 64 static struct instruction *next_insn_same_func(struct objtool_file *file, in next_insn_same_func() argument 67 struct instruction *next = next_insn_same_sec(file, insn); in next_insn_same_func() 81 return find_insn(file, func->cfunc->sec, func->cfunc->offset); in next_insn_same_func() 84 static struct instruction *prev_insn_same_sec(struct objtool_file *file, in prev_insn_same_sec() argument 89 return find_insn(file, insn->sec, insn->offset - insn->prev_len); in prev_insn_same_sec() 96 static struct instruction *prev_insn_same_sym(struct objtool_file *file, in prev_insn_same_sym() argument [all …]
|
/linux-6.12.1/drivers/misc/ |
D | ntsync.c | 40 struct file *file; member 53 struct file *file; member 100 static int ntsync_obj_release(struct inode *inode, struct file *file) in ntsync_obj_release() argument 102 struct ntsync_obj *obj = file->private_data; in ntsync_obj_release() 104 fput(obj->dev->file); in ntsync_obj_release() 110 static long ntsync_obj_ioctl(struct file *file, unsigned int cmd, in ntsync_obj_ioctl() argument 113 struct ntsync_obj *obj = file->private_data; in ntsync_obj_ioctl() 141 get_file(dev->file); in ntsync_alloc_obj() 149 struct file *file; in ntsync_obj_get_fd() local 155 file = anon_inode_getfile("ntsync", &ntsync_obj_fops, obj, O_RDWR); in ntsync_obj_get_fd() [all …]
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_debugfs.c | 10 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.12.1/kernel/trace/ |
D | trace_events_trigger.c | 58 event_triggers_call(struct trace_event_file *file, in event_triggers_call() argument 66 if (list_empty(&file->triggers)) in event_triggers_call() 69 list_for_each_entry_rcu(data, &file->triggers, list) { in event_triggers_call() 89 bool __trace_trigger_soft_disabled(struct trace_event_file *file) in __trace_trigger_soft_disabled() argument 91 unsigned long eflags = file->flags; in __trace_trigger_soft_disabled() 94 event_triggers_call(file, NULL, NULL, NULL); in __trace_trigger_soft_disabled() 98 return trace_event_ignore_this_pid(file); in __trace_trigger_soft_disabled() 116 event_triggers_post_call(struct trace_event_file *file, in event_triggers_post_call() argument 121 list_for_each_entry_rcu(data, &file->triggers, list) { in event_triggers_post_call() 143 static bool check_user_trigger(struct trace_event_file *file) in check_user_trigger() argument [all …]
|
/linux-6.12.1/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); 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.12.1/fs/ocfs2/ |
D | locks.c | 23 static int ocfs2_do_flock(struct file *file, struct inode *inode, in ocfs2_do_flock() argument 27 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_flock() 58 locks_lock_file_wait(file, &request); in ocfs2_do_flock() 60 ocfs2_file_unlock(file); in ocfs2_do_flock() 63 ret = ocfs2_file_lock(file, level, trylock); 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 85 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_funlock() 88 ocfs2_file_unlock(file); in ocfs2_do_funlock() [all …]
|
/linux-6.12.1/fs/ceph/ |
D | ioctl.c | 18 static long ceph_ioctl_get_layout(struct file *file, void __user *arg) in ceph_ioctl_get_layout() argument 20 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_get_layout() 24 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false); in ceph_ioctl_get_layout() 65 static long ceph_ioctl_set_layout(struct file *file, void __user *arg) in ceph_ioctl_set_layout() argument 67 struct inode *inode = file_inode(file); in ceph_ioctl_set_layout() 71 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_set_layout() 79 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false); in ceph_ioctl_set_layout() 137 static long ceph_ioctl_set_layout_policy (struct file *file, void __user *arg) in ceph_ioctl_set_layout_policy() argument 139 struct inode *inode = file_inode(file); in ceph_ioctl_set_layout_policy() 180 static long ceph_ioctl_get_dataloc(struct file *file, void __user *arg) in ceph_ioctl_get_dataloc() argument [all …]
|