/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 …]
|
/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 …]
|
/linux-6.12.1/fs/overlayfs/ |
D | file.c | 7 #include <linux/file.h> 14 #include <linux/backing-file.h> 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() [all …]
|
/linux-6.12.1/fs/ |
D | file_table.c | 11 #include <linux/file.h> 41 /* SLAB cache for file structures */ 46 /* Container for backing file with optional user path */ 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() 108 .procname = "file-nr", 115 .procname = "file-max", [all …]
|
D | file.c | 3 * linux/fs/file.c 17 #include <linux/file.h> 52 * space if any. This does not copy the file pointers. Called with the files 69 * Copy all file descriptors from the old table to the new, expanded table and 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() 159 * Expand the file descriptor table. [all …]
|
D | read_write.c | 12 #include <linux/file.h> 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() 43 * vfs_setpos_cookie - update the file offset for lseek and reset cookie 44 * @file: file structure in question 45 * @offset: file offset to seek to 46 * @maxsize: maximum file size 49 * Update the file offset to the value specified by @offset if the given 50 * offset is valid and it is not equal to the current file offset and 55 static loff_t vfs_setpos_cookie(struct file *file, loff_t offset, in vfs_setpos_cookie() argument [all …]
|
D | anon_inodes.c | 13 #include <linux/file.h> 78 static struct file *__anon_inode_getfile(const char *name, in __anon_inode_getfile() 85 struct file *file; in __anon_inode_getfile() local 93 file = ERR_CAST(inode); in __anon_inode_getfile() 99 file = ERR_PTR(-ENODEV); in __anon_inode_getfile() 109 file = alloc_file_pseudo(inode, anon_inode_mnt, name, in __anon_inode_getfile() 111 if (IS_ERR(file)) in __anon_inode_getfile() 114 file->f_mapping = inode->i_mapping; in __anon_inode_getfile() 116 file->private_data = priv; in __anon_inode_getfile() 118 return file; in __anon_inode_getfile() [all …]
|
D | kernel_read_file.c | 9 * kernel_read_file() - read file contents into a kernel buffer 11 * @file: file to read from 18 * @file_size: if non-NULL, the full size of @file will be 21 * file contents being read (for LSMs to examine) 24 * (i.e. the caller must be expecting to read partial file contents 26 * will be able to determine when the entire file was read by 28 * file, though, since it is possible that the contents might 35 ssize_t kernel_read_file(struct file *file, loff_t offset, void **buf, in kernel_read_file() argument 48 if (!S_ISREG(file_inode(file)->i_mode)) in kernel_read_file() 51 ret = deny_write_access(file); in kernel_read_file() [all …]
|
/linux-6.12.1/fs/lockd/ |
D | svcsubs.c | 28 * Global file hash table 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 80 * Open the file. Note that if we're reexporting, for example, 84 * the file. 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() 101 * Lookup file info. If it doesn't exist, create a file info struct [all …]
|
/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/ecryptfs/ |
D | file.c | 12 #include <linux/file.h> 29 * returns without any errors. This is to be used only for file reads. 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() 54 * to be used only for file reads. The function to be used for directory reads 57 static ssize_t ecryptfs_splice_read_update_atime(struct file *in, loff_t *ppos, in ecryptfs_splice_read_update_atime() 123 * @file: The eCryptfs directory file 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() [all …]
|
/linux-6.12.1/drivers/scsi/fnic/ |
D | fnic_debugfs.c | 35 * file system. If not already created, this routine will create the 65 * When Debugfs is configured this routine removes debugfs file system 82 * or fc_trace_clear debugfs file 83 * @filp: The file pointer to read from. 86 * @ppos: The position in the file to start reading from. 92 * It will start reading file at @ppos and 98 static ssize_t fnic_trace_ctrl_read(struct file *filp, in fnic_trace_ctrl_read() 114 pr_err("fnic: Cannot read to any debugfs file\n"); in fnic_trace_ctrl_read() 122 * fc_trace_clear debugfs file 123 * @filp: The file pointer to write from. [all …]
|
/linux-6.12.1/tools/testing/selftests/rcutorture/bin/ |
D | parse-console.sh | 5 # The "file" is a pathname on the local system, and "title" is 8 # Usage: parse-console.sh file title 15 file="$1" 22 # Check for presence and readability of console output file 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 | [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/fs/debugfs/ |
D | file.c | 3 * file.c - part of debugfs, a tiny little debug file system 29 static ssize_t default_read_file(struct file *file, char __user *buf, in default_read_file() argument 35 static ssize_t default_write_file(struct file *file, const char __user *buf, in default_write_file() argument 50 const struct file_operations *debugfs_real_fops(const struct file *filp) in debugfs_real_fops() 68 * debugfs_file_get - mark the beginning of file data access 72 * into the file removing functions debugfs_remove() and 74 * file data may only get freed after a successful return of any of 78 * If -%EIO is returned, the file has already been removed and thus, 80 * it is allowed to access the file data, zero is returned. 89 * debugfs_file_get() on a dentry that isn't even a file, let in debugfs_file_get() [all …]
|
/linux-6.12.1/drivers/infiniband/core/ |
D | user_mad.c | 9 * General Public License (GPL) Version 2, available from the file 81 * device special file is opened, we take a reference on the 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() 180 /* caller must hold file->mutex */ 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() [all …]
|
/linux-6.12.1/fs/ceph/ |
D | ioctl.c | 16 * get and set the file layout 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() [all …]
|
/linux-6.12.1/Documentation/ABI/testing/ |
D | sysfs-driver-ufs | 5 This file contains the auto-hibernate idle timer setting of a 19 Description: This file shows the device type. This is one of the UFS 23 The file is read only. 29 Description: This file shows the device class. This is one of the UFS 33 The file is read only. 39 Description: This file shows the UFS storage subclass. This is one of 43 The file is read only. 49 Description: This file shows the protocol supported by an UFS device. 54 The file is read only. 60 Description: This file shows number of logical units. This is one of [all …]
|
/linux-6.12.1/fs/proc/ |
D | inode.c | 19 #include <linux/file.h> 226 * "struct file" needs to be available at the right moment. in close_pdeo() 235 struct file *file; in close_pdeo() local 241 file = pdeo->file; in close_pdeo() 242 pde->proc_ops->proc_release(file_inode(file), file); in close_pdeo() 275 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek() argument 277 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_llseek() 281 return pde->proc_ops->proc_lseek(file, offset, whence); in proc_reg_llseek() 283 rv = pde->proc_ops->proc_lseek(file, offset, whence); in proc_reg_llseek() 304 static ssize_t pde_read(struct proc_dir_entry *pde, struct file *file, char __user *buf, size_t cou… in pde_read() argument [all …]
|
/linux-6.12.1/drivers/gpu/drm/ |
D | drm_file.c | 36 #include <linux/file.h> 70 * DOC: file operations 72 * Drivers must define the file operations structure that forms the DRM 85 * userspace through the file descriptor. They are used to send vblank event and 95 * No other file operations are supported by the DRM userspace API. Overall the 120 * drm_file_alloc - allocate file context 123 * This allocates a new DRM file context. It is not linked into any context and 134 struct drm_file *file; in drm_file_alloc() local 137 file = kzalloc(sizeof(*file), GFP_KERNEL); in drm_file_alloc() 138 if (!file) in drm_file_alloc() [all …]
|
/linux-6.12.1/drivers/misc/ |
D | ntsync.c | 9 #include <linux/file.h> 26 * struct ntsync_obj, and each primitive is backed by a file. 29 * backed by a file. 31 * Both rely on struct file for reference counting. Individual 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 [all …]
|
/linux-6.12.1/fs/fuse/ |
D | passthrough.c | 3 * FUSE passthrough to backing file. 10 #include <linux/file.h> 11 #include <linux/backing-file.h> 14 static void fuse_file_accessed(struct file *file) in fuse_file_accessed() argument 16 struct inode *inode = file_inode(file); in fuse_file_accessed() 21 static void fuse_passthrough_end_write(struct file *file, loff_t pos, ssize_t ret) in fuse_passthrough_end_write() argument 23 struct inode *inode = file_inode(file); in fuse_passthrough_end_write() 30 struct file *file = iocb->ki_filp; in fuse_passthrough_read_iter() local 31 struct fuse_file *ff = file->private_data; in fuse_passthrough_read_iter() 32 struct file *backing_file = fuse_file_passthrough(ff); in fuse_passthrough_read_iter() [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() 39 /* either a reference to struct file + flags 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() [all …]
|
/linux-6.12.1/drivers/net/wireless/marvell/libertas/ |
D | debugfs.c | 25 static ssize_t write_file_dummy(struct file *file, const char __user *buf, in write_file_dummy() argument 33 static ssize_t lbs_dev_info(struct file *file, char __user *userbuf, in lbs_dev_info() argument 36 struct lbs_private *priv = file->private_data; in lbs_dev_info() 55 static ssize_t lbs_sleepparams_write(struct file *file, in lbs_sleepparams_write() argument 59 struct lbs_private *priv = file->private_data; in lbs_sleepparams_write() 92 static ssize_t lbs_sleepparams_read(struct file *file, char __user *userbuf, in lbs_sleepparams_read() argument 95 struct lbs_private *priv = file->private_data; in lbs_sleepparams_read() 120 static ssize_t lbs_host_sleep_write(struct file *file, in lbs_host_sleep_write() argument 124 struct lbs_private *priv = file->private_data; in lbs_host_sleep_write() 162 static ssize_t lbs_host_sleep_read(struct file *file, char __user *userbuf, in lbs_host_sleep_read() argument [all …]
|