/linux-master/drivers/gpu/drm/i915/selftests/ |
H A D | mock_drm.h | 33 struct file; 35 static inline struct file *mock_file(struct drm_i915_private *i915) 40 static inline struct drm_file *to_drm_file(struct file *f)
|
/linux-master/fs/ocfs2/ |
H A D | ioctl.h | 17 long ocfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); 18 long ocfs2_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg);
|
/linux-master/fs/ecryptfs/ |
H A 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; local 41 path = ecryptfs_dentry_to_lower_path(file->f_path.dentry); 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, 123 * @file: The eCryptfs directory file 126 static int ecryptfs_readdir(struct file *fil argument 188 ecryptfs_mmap(struct file *file, struct vm_area_struct *vma) argument 210 ecryptfs_open(struct inode *inode, struct file *file) argument 279 ecryptfs_dir_open(struct inode *inode, struct file *file) argument 309 ecryptfs_flush(struct file *file, fl_owner_t td) argument 321 ecryptfs_release(struct inode *inode, struct file *file) argument 329 ecryptfs_dir_release(struct inode *inode, struct file *file) argument 337 ecryptfs_dir_llseek(struct file *file, loff_t offset, int whence) argument 343 ecryptfs_fsync(struct file *file, loff_t start, loff_t end, int datasync) argument 354 ecryptfs_fasync(int fd, struct file *file, int flag) argument 366 ecryptfs_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument 391 ecryptfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument [all...] |
/linux-master/include/media/ |
H A D | v4l2-mem2mem.h | 102 * The memory to memory context is specific to a file handle, NOT to e.g. 339 * @file: pointer to struct &file 343 int v4l2_m2m_reqbufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 349 * @file: pointer to struct &file 355 int v4l2_m2m_querybuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx, 362 * @file [all...] |
/linux-master/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_debugfs.c | 10 mt76x02_ampdu_stat_show(struct seq_file *file, void *data) argument 12 struct mt76x02_dev *dev = file->private; 16 seq_puts(file, "Length: "); 18 seq_printf(file, "%8d | ", i * 8 + j + 1); 19 seq_puts(file, "\n"); 20 seq_puts(file, "Count: "); 22 seq_printf(file, "%8d | ", 24 seq_puts(file, "\n"); 25 seq_puts(file, "--------"); 27 seq_puts(file, " 36 read_txpower(struct seq_file *file, void *data) argument 48 mt76x02_dfs_stat_show(struct seq_file *file, void *data) argument 75 read_agc(struct seq_file *file, void *data) argument [all...] |
/linux-master/fs/lockd/ |
H A D | svcsubs.c | 28 * Global file hash table 46 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) argument 48 struct inode *inode = nlmsvc_file_inode(file); 59 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) argument 80 * Open the file. Note that if we're reexporting, for example, 84 * the file. 87 struct nlm_file *file, int mode) 89 struct file **fp = &file->f_file[mode]; 94 nfserr = nlmsvc_ops->fopen(rqstp, &file 86 nlm_do_fopen(struct svc_rqst *rqstp, struct nlm_file *file, int mode) argument 108 struct nlm_file *file; local 164 nlm_delete_file(struct nlm_file *file) argument 179 nlm_unlock_files(struct nlm_file *file, const struct file_lock *fl) argument 208 nlm_traverse_locks(struct nlm_host *host, struct nlm_file *file, nlm_host_match_fn_t match) argument 252 nlm_inspect_file(struct nlm_host *host, struct nlm_file *file, nlm_host_match_fn_t match) argument 264 nlm_file_inuse(struct nlm_file *file) argument 287 nlm_close_files(struct nlm_file *file) argument 299 nlm_traverse_files(void *data, nlm_host_match_fn_t match, int (*is_failover_file)(void *data, struct nlm_file *file)) argument 303 struct nlm_file *file; local 344 nlm_release_file(struct nlm_file *file) argument 461 nlmsvc_match_sb(void *datap, struct nlm_file *file) argument [all...] |
/linux-master/arch/arm64/include/asm/ |
H A D | asm-bug.h | 11 #define _BUGVERBOSE_LOCATION(file, line) __BUGVERBOSE_LOCATION(file, line) 12 #define __BUGVERBOSE_LOCATION(file, line) \ 14 14472: .string file; \ 20 #define _BUGVERBOSE_LOCATION(file, line)
|
/linux-master/tools/power/acpi/common/ |
H A D | cmfsize.c | 4 * Module Name: cmfsize - Common get file size function 21 * PARAMETERS: file - Open file descriptor 25 * DESCRIPTION: Get the size of a file. Uses seek-to-EOF. File must be open. 26 * Does not disturb the current file pointer. 29 u32 cm_get_file_size(ACPI_FILE file) argument 35 /* Save the current file pointer, seek to EOF to obtain file size */ 37 current_offset = ftell(file); 42 status = fseek(file, [all...] |
/linux-master/include/linux/ |
H A D | dnotify.h | 16 struct file * dn_filp; 32 extern void dnotify_flush(struct file *, fl_owner_t); 33 extern int fcntl_dirnotify(int, struct file *, unsigned int); 37 static inline void dnotify_flush(struct file *filp, fl_owner_t id) 41 static inline int fcntl_dirnotify(int fd, struct file *filp, unsigned int arg)
|
H A D | shm.h | 9 struct file; 19 bool is_file_shm_hugepages(struct file *file); 33 static inline bool is_file_shm_hugepages(struct file *file) argument
|
H A D | splice.h | 38 struct file *file; /* file to read/write */ member in union:splice_desc::__anon318 42 loff_t pos; /* file position */ 71 ssize_t splice_from_pipe(struct pipe_inode_info *pipe, struct file *out, 79 ssize_t vfs_splice_read(struct file *in, loff_t *ppos, 82 ssize_t splice_direct_to_actor(struct file *file, struct splice_desc *sd, 84 ssize_t do_splice(struct file *in, loff_t *off_in, struct file *ou [all...] |
/linux-master/fs/btrfs/ |
H A D | ioctl.h | 8 struct file; 15 long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 16 long btrfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
|
/linux-master/fs/nfs/ |
H A D | nfs42.h | 20 int nfs42_proc_allocate(struct file *, loff_t, loff_t); 21 ssize_t nfs42_proc_copy(struct file *, loff_t, struct file *, loff_t, size_t, 23 int nfs42_proc_deallocate(struct file *, loff_t, loff_t); 24 loff_t nfs42_proc_llseek(struct file *, loff_t, int); 27 int nfs42_proc_clone(struct file *, struct file *, loff_t, loff_t, loff_t); 31 int nfs42_proc_copy_notify(struct file *, struct file *, 33 static inline bool nfs42_files_from_same_server(struct file *i [all...] |
/linux-master/drivers/char/tpm/ |
H A D | tpm-dev.c | 13 * Device file system interface to the TPM 18 static int tpm_open(struct inode *inode, struct file *file) argument 37 tpm_common_open(file, chip, priv, NULL); 47 * Called on file close 49 static int tpm_release(struct inode *inode, struct file *file) argument 51 struct file_priv *priv = file->private_data; 53 tpm_common_release(file, priv);
|
/linux-master/mm/ |
H A D | fadvise.c | 12 #include <linux/file.h> 31 int generic_fadvise(struct file *file, loff_t offset, loff_t len, int advice) argument 41 inode = file_inode(file); 45 mapping = file->f_mapping; 80 file->f_ra.ra_pages = bdi->ra_pages; 81 spin_lock(&file->f_lock); 82 file->f_mode &= ~(FMODE_RANDOM | FMODE_NOREUSE); 83 spin_unlock(&file->f_lock); 86 spin_lock(&file 180 vfs_fadvise(struct file *file, loff_t offset, loff_t len, int advice) argument [all...] |
/linux-master/tools/testing/selftests/mm/ |
H A D | mlock2.h | 14 FILE *file; local 24 file = fopen("/proc/self/smaps", "r"); 25 if (!file) 28 while (getline(&line, &size, file) > 0) { 42 fclose(file); 43 file = NULL; 47 return file;
|
/linux-master/drivers/media/pci/cx18/ |
H A D | cx18-fileops.h | 3 * cx18 file operation functions 11 int cx18_v4l2_open(struct file *filp); 12 ssize_t cx18_v4l2_read(struct file *filp, char __user *buf, size_t count, 14 ssize_t cx18_v4l2_write(struct file *filp, const char __user *buf, size_t count, 16 int cx18_v4l2_close(struct file *filp); 17 __poll_t cx18_v4l2_enc_poll(struct file *filp, poll_table *wait); 22 int cx18_v4l2_mmap(struct file *file, struct vm_area_struct *vma);
|
/linux-master/io_uring/ |
H A D | filetable.h | 5 #include <linux/file.h> 12 struct file *file, unsigned int file_slot); 13 int __io_fixed_fd_install(struct io_ring_ctx *ctx, struct file *file, 20 io_req_flags_t io_file_get_flags(struct file *file); 51 static inline struct file *io_slot_file(struct io_fixed_file *slot) 53 return (struct file *)(slot->file_ptr & FFS_MASK); 56 static inline struct file *io_file_from_inde 62 io_fixed_file_set(struct io_fixed_file *file_slot, struct file *file) argument [all...] |
/linux-master/fs/ |
H A D | file.c | 3 * linux/fs/file.c 17 #include <linux/file.h> 51 * space if any. This does not copy the file pointers. Called with the files 73 * Copy all file descriptors from the old table to the new, expanded table and 82 cpy = ofdt->max_fds * sizeof(struct file *); 83 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); 117 nr /= (1024 / sizeof(struct file *)); 119 nr *= (1024 / sizeof(struct file *)); 136 data = kvmalloc_array(nr, sizeof(struct file *), GFP_KERNEL_ACCOUNT); 163 * Expand the file descripto 430 struct file * file = xchg(&fdt->fd[i], NULL); local 602 fd_install(unsigned int fd, struct file *file) argument 645 struct file *file; local 664 struct file *file; local 706 struct file *file; local 813 struct file *file; local 840 struct file *file; local 860 struct file __rcu *file; local 915 struct file __rcu *file; local 943 struct file __rcu *file; local 958 struct file *file; local 1033 struct file *file; local 1061 struct file *file = NULL; local 1082 struct file *file = NULL; local 1098 struct file *file = NULL; local 1134 struct file *file; local 1178 file_needs_f_pos_lock(struct file *file) argument 1187 struct file *file = (struct file *)(v & ~3); local 1276 replace_fd(unsigned fd, struct file *file, unsigned flags) argument 1313 receive_fd(struct file *file, int __user *ufd, unsigned int o_flags) argument 1340 receive_fd_replace(int new_fd, struct file *file, unsigned int o_flags) argument 1357 struct file *file; local 1415 struct file *file = fget_raw(fildes); local 1427 f_dupfd(unsigned int from, struct file *file, unsigned flags) argument 1451 struct file *file; local [all...] |
H A 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_ argument 131 struct file *file; local 152 struct file *file; local [all...] |
/linux-master/fs/proc/ |
H A D | kmsg.c | 20 static int kmsg_open(struct inode * inode, struct file * file) argument 25 static int kmsg_release(struct inode * inode, struct file * file) argument 31 static ssize_t kmsg_read(struct file *file, char __user *buf, argument 34 if ((file->f_flags & O_NONBLOCK) && 40 static __poll_t kmsg_poll(struct file *file, poll_table *wait) argument 42 poll_wait(file, [all...] |
/linux-master/drivers/usb/mon/ |
H A D | mon_stat.c | 27 static int mon_stat_open(struct inode *inode, struct file *file) argument 42 file->private_data = sp; 46 static ssize_t mon_stat_read(struct file *file, char __user *buf, argument 49 struct snap *sp = file->private_data; 54 static int mon_stat_release(struct inode *inode, struct file *file) argument 56 struct snap *sp = file->private_data; 57 file [all...] |
/linux-master/security/integrity/ima/ |
H A D | ima_kexec.c | 22 struct seq_file file; local 27 file.buf = vmalloc(segment_size); 28 if (!file.buf) { 33 file.size = segment_size; 34 file.read_pos = 0; 35 file.count = sizeof(khdr); /* reserved space */ 40 if (file.count < file.size) { 42 ima_measurements_show(&file, qe); 56 khdr.buffer_size = file [all...] |
/linux-master/drivers/media/pci/ivtv/ |
H A D | ivtv-fileops.h | 3 file operation functions 13 int ivtv_v4l2_open(struct file *filp); 14 ssize_t ivtv_v4l2_read(struct file *filp, char __user *buf, size_t count, 16 ssize_t ivtv_v4l2_write(struct file *filp, const char __user *buf, size_t count, 18 int ivtv_v4l2_close(struct file *filp); 19 __poll_t ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait); 20 __poll_t ivtv_v4l2_dec_poll(struct file *filp, poll_table * wait);
|
/linux-master/drivers/net/wireless/mediatek/mt7601u/ |
H A D | debugfs.c | 33 mt7601u_ampdu_stat_show(struct seq_file *file, void *data) argument 35 struct mt7601u_dev *dev = file->private; 39 seq_printf(file, #name ":\t%llu\n", dev->stats.grp[off]) 62 seq_puts(file, "Aggregations stats:\n"); 65 seq_printf(file, "%08llx ", 67 seq_putc(file, '\n'); 70 seq_printf(file, "recent average AMPDU len: %d\n", 79 mt7601u_eeprom_param_show(struct seq_file *file, void *data) argument 81 struct mt7601u_dev *dev = file->private; 86 seq_printf(file, "R [all...] |