Home
last modified time | relevance | path

Searched +defs:read +defs:file (Results 1 – 25 of 39) sorted by relevance

12

/linux/rust/kernel/debugfs/
H A Dfile_ops.rs84 file: *mut bindings::file, in writer_open() argument
140 fn read<T: Reader + Sync>(data: &T, buf: *const c_char, count: usize) -> isize { in read() function
157 file: *mut bindings::file, in write()
203 file: *mut bindings::file, in write_only_open() argument
217 file: *mut bindings::file, in write_only_write()
251 file: *mut bindings::file, in blob_read()
306 file: *mut bindings::file, in blob_write()
324 let read = this.read_from_slice(&mut reader, pos)?; in blob_write() localVariable
/linux/drivers/media/pci/bt8xx/
H A Ddst_ca.c64 static int dst_ci_command(struct dst_state* state, u8 * data, u8 *ca_string, u8 len, int read) in dst_ci_command()
106 static int dst_put_ci(struct dst_state *state, u8 *data, int len, u8 *ca_string, int read) in dst_put_ci()
525 static long dst_ca_ioctl(struct file *file, unsigned int cmd, unsigned long ioctl_arg) in dst_ca_ioctl()
611 static int dst_ca_open(struct inode *inode, struct file *file) in dst_ca_open()
618 static int dst_ca_release(struct inode *inode, struct file *file) in dst_ca_release()
625 static ssize_t dst_ca_read(struct file *file, char __user *buffer, size_t length, loff_t *offset) in dst_ca_read()
632 static ssize_t dst_ca_write(struct file *file, const char __user *buffer, size_t length, loff_t *of… in dst_ca_write()
/linux/drivers/gpu/drm/lima/
H A Dlima_drv.c37 static int lima_ioctl_get_param(struct drm_device *dev, void *data, struct drm_file *file) in lima_ioctl_get_param()
79 static int lima_ioctl_gem_create(struct drm_device *dev, void *data, struct drm_file *file) in lima_ioctl_gem_create()
95 static int lima_ioctl_gem_info(struct drm_device *dev, void *data, struct drm_file *file) in lima_ioctl_gem_info()
102 static int lima_ioctl_gem_submit(struct drm_device *dev, void *data, struct drm_file *file) in lima_ioctl_gem_submit()
179 static int lima_ioctl_gem_wait(struct drm_device *dev, void *data, struct drm_file *file) in lima_ioctl_gem_wait()
189 static int lima_ioctl_ctx_create(struct drm_device *dev, void *data, struct drm_file *file) in lima_ioctl_ctx_create()
201 static int lima_ioctl_ctx_free(struct drm_device *dev, void *data, struct drm_file *file) in lima_ioctl_ctx_free()
212 static int lima_drm_driver_open(struct drm_device *dev, struct drm_file *file) in lima_drm_driver_open()
238 static void lima_drm_driver_postclose(struct drm_device *dev, struct drm_file *file) in lima_drm_driver_postclose()
287 ssize_t read; member
[all …]
/linux/fs/gfs2/
H A Dfile.c58 static loff_t gfs2_llseek(struct file *file, loff_t offset, int whence) in gfs2_llseek() argument
105 gfs2_readdir(struct file * file,struct dir_context * ctx) gfs2_readdir() argument
591 gfs2_mmap(struct file * file,struct vm_area_struct * vma) gfs2_mmap() argument
626 gfs2_open_common(struct inode * inode,struct file * file) gfs2_open_common() argument
675 gfs2_open(struct inode * inode,struct file * file) gfs2_open() argument
706 gfs2_release(struct inode * inode,struct file * file) gfs2_release() argument
742 gfs2_fsync(struct file * file,loff_t start,loff_t end,int datasync) gfs2_fsync() argument
814 struct file *file = iocb->ki_filp; gfs2_file_direct_read() local
817 size_t read = 0; gfs2_file_direct_read() local
877 struct file *file = iocb->ki_filp; gfs2_file_direct_write() local
954 size_t read = 0; gfs2_file_read_iter() local
1014 struct file *file = iocb->ki_filp; gfs2_file_buffered_write() local
1102 struct file *file = iocb->ki_filp; gfs2_file_write_iter() local
1252 __gfs2_fallocate(struct file * file,int mode,loff_t offset,loff_t len) __gfs2_fallocate() argument
1368 gfs2_fallocate(struct file * file,int mode,loff_t offset,loff_t len) gfs2_fallocate() argument
1440 gfs2_lock(struct file * file,int cmd,struct file_lock * fl) gfs2_lock() argument
1470 __flock_holder_uninit(struct file * file,struct gfs2_holder * fl_gh) __flock_holder_uninit() argument
1485 do_flock(struct file * file,int cmd,struct file_lock * fl) do_flock() argument
1545 do_unflock(struct file * file,struct file_lock * fl) do_unflock() argument
1568 gfs2_flock(struct file * file,int cmd,struct file_lock * fl) gfs2_flock() argument
[all...]
/linux/kernel/
H A Dprofile.c154 read_profile(struct file *file, char __user *buf, size_t count, loff_t *ppos) in read_profile()
157 ssize_t read; in read_profile() local
192 static ssize_t write_profile(struct file *file, const char __user *buf, in write_profile()
/linux/arch/mips/kernel/
H A Drtlx.c221 static inline int write_spacefree(int read, int write, int size) in write_spacefree()
339 static __poll_t file_poll(struct file *file, poll_table *wait) in file_poll()
361 static ssize_t file_read(struct file *file, char __user *buffer, size_t count, in file_read()
373 static ssize_t file_write(struct file *file, const char __user *buffer, in file_write()
/linux/drivers/input/serio/
H A Dserio_raw.c55 static int serio_raw_fasync(int fd, struct file *file, int on) in serio_raw_fasync()
74 static int serio_raw_open(struct inode *inode, struct file *file) in serio_raw_open()
114 static int serio_raw_release(struct inode *inode, struct file *file) in serio_raw_release()
142 static ssize_t serio_raw_read(struct file *file, char __user *buffer, in serio_raw_read()
148 ssize_t read = 0; in serio_raw_read() local
183 static ssize_t serio_raw_write(struct file *file, const char __user *buffer, in serio_raw_write()
216 static __poll_t serio_raw_poll(struct file *file, poll_table *wait) in serio_raw_poll()
/linux/fs/proc/
H A Dinode.c235 struct file *file; in close_pdeo() local
275 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int 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()
306 const auto read = pde->proc_ops->proc_read; in pde_read() local
312 static ssize_t proc_reg_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in proc_reg_read()
326 static ssize_t pde_write(struct proc_dir_entry *pde, struct file *file, const char __user *buf, siz… in pde_write()
334 static ssize_t proc_reg_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in proc_reg_write()
348 static __poll_t pde_poll(struct proc_dir_entry *pde, struct file *file, struct poll_table_struct *p… in pde_poll()
356 static __poll_t proc_reg_poll(struct file *file, struct poll_table_struct *pts) in proc_reg_poll()
370 static long pde_ioctl(struct proc_dir_entry *pde, struct file *file, unsigned int cmd, unsigned lon… in pde_ioctl()
[all …]
H A Dvmcore.c135 static int open_vmcore(struct inode *inode, struct file *file) in open_vmcore()
149 static int release_vmcore(struct inode *inode, struct file *file) in release_vmcore()
164 ssize_t read = 0, tmp; in read_from_oldmem() local
591 static int mmap_vmcore(struct file *file, struct vm_area_struct *vma) in mmap_vmcore()
704 static int mmap_vmcore(struct file *file, struct vm_area_struct *vma) in mmap_vmcore()
/linux/drivers/char/
H A Dmem.c82 static ssize_t read_mem(struct file *file, char __user *buf, in read_mem()
86 ssize_t read, sz; in read_mem() local
169 static ssize_t write_mem(struct file *file, const char __user *buf, in write_mem()
242 int __weak phys_mem_access_prot_allowed(struct file *file, in phys_mem_access_prot_allowed()
256 static int uncached_access(struct file *file, phys_addr_t addr) in uncached_access()
269 static pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, in phys_mem_access_prot()
283 static unsigned long get_unmapped_area_mem(struct file *file, in get_unmapped_area_mem()
295 static unsigned memory_mmap_capabilities(struct file *file) in memory_mmap_capabilities()
301 static unsigned zero_mmap_capabilities(struct file *file) in zero_mmap_capabilities()
332 struct file *file = desc->file; in mmap_mem_prepare() local
[all …]
/linux/drivers/mtd/ubi/
H A Ddebug.c55 size_t read; in FAIL_ACTION() local
328 static ssize_t dfs_file_read(struct file *file, char __user *user_buf, in dfs_file_read()
395 static ssize_t dfs_file_write(struct file *file, const char __user *user_buf, in dfs_file_write()
/linux/fs/debugfs/
H A Dfile.c29 static ssize_t default_read_file(struct file *file, char __user *buf, in default_read_file()
35 static ssize_t default_write_file(struct file *file, const char __user *buf, in default_write_file()
50 void *debugfs_get_aux(const struct file *file) in debugfs_get_aux()
206 void debugfs_enter_cancellation(struct file *file, in debugfs_enter_cancellation()
242 void debugfs_leave_cancellation(struct file *file, in debugfs_leave_cancellation()
414 static int full_proxy_release(struct inode *inode, struct file *file) in full_proxy_release()
514 ssize_t debugfs_attr_read(struct file *file, char __user *buf, in debugfs_attr_read()
529 static ssize_t debugfs_attr_write_xsigned(struct file *file, const char __user *buf, in debugfs_attr_write_xsigned()
546 ssize_t debugfs_attr_write(struct file *file, const char __user *buf, in debugfs_attr_write()
553 ssize_t debugfs_attr_write_signed(struct file *file, const char __user *buf, in debugfs_attr_write_signed()
[all …]
/linux/drivers/usb/class/
H A Dcdc-wdm.c96 int read; member
380 (struct file *file, const char __user *buffer, size_t count, loff_t *ppos) in wdm_write()
524 (struct file *file, char __user *buffer, size_t count, loff_t *ppos) in wdm_read()
623 static int wdm_wait_for_response(struct file *file, long timeout) in wdm_wait_for_response()
662 static int wdm_fsync(struct file *file, loff_t start, loff_t end, int datasync) in wdm_fsync()
672 static int wdm_flush(struct file *file, fl_owner_t id) in wdm_flush()
677 static __poll_t wdm_poll(struct file *file, struct poll_table_struct *wait) in wdm_poll()
703 static int wdm_open(struct inode *inode, struct file *file) in wdm_open()
755 static int wdm_release(struct inode *inode, struct file *file) in wdm_release()
786 static long wdm_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in wdm_ioctl()
/linux/include/linux/
H A Ddebugfs.h71 ssize_t (*read)(struct file *, char __user *, size_t, loff_t *); member
341 static inline ssize_t debugfs_attr_read(struct file *file, char __user *buf, in debugfs_attr_read()
347 static inline ssize_t debugfs_attr_write(struct file *file, in debugfs_attr_write()
354 static inline ssize_t debugfs_attr_write_signed(struct file *file, in debugfs_attr_write_signed()
449 static inline ssize_t debugfs_read_file_bool(struct file *file, in debugfs_read_file_bool()
456 static inline ssize_t debugfs_write_file_bool(struct file *file, in debugfs_write_file_bool()
463 static inline ssize_t debugfs_read_file_str(struct file *file, in debugfs_read_file_str()
H A Dvfio.h130 ssize_t (*read)(struct vfio_device *vdev, char __user *buf, member
330 static inline bool vfio_file_is_group(struct file *file) in vfio_file_is_group()
335 static inline bool vfio_file_has_dev(struct file *file, struct vfio_device *device) in vfio_file_has_dev()
H A Dfs.h1188 struct file *file; /* backpointer for security modules */ member
1258 struct file { struct
1261 const struct file_operations *f_op; argument
1275 /* regular files (with FMODE_ATOMIC_POS) and directories */ argument
1293 struct file_ra_state f_ra; argument
1296 file_ref_t f_ref; argument
1304 /* file identifier */ argument
1342 static inline struct fown_struct *file_f_owner(const struct file *file) in file_f_owner()
1362 static inline struct dentry *file_dentry(const struct file *file) in file_dentry()
1732 static inline bool file_write_started(const struct file *file) in file_write_started()
[all …]
/linux/drivers/input/
H A Devdev.c313 static int evdev_fasync(int fd, struct file *file, int on) in evdev_fasync()
426 static int evdev_release(struct inode *inode, struct file *file) in evdev_release()
461 static int evdev_open(struct inode *inode, struct file *file) in evdev_open()
493 static ssize_t evdev_write(struct file *file, const char __user *buffer, in evdev_write()
556 static ssize_t evdev_read(struct file *file, char __user *buffer, in evdev_read()
562 size_t read = 0; in evdev_read() local
608 static __poll_t evdev_poll(struct file *file, poll_table *wait) in evdev_poll()
942 struct file *file) in evdev_revoke()
1027 static long evdev_do_ioctl(struct file *file, unsigned int cmd, in evdev_do_ioctl()
1254 static long evdev_ioctl_handler(struct file *file, unsigned int cmd, in evdev_ioctl_handler()
[all …]
/linux/kernel/trace/
H A Dtrace_syscalls.c660 int read[SYSCALL_FAULT_MAX_CNT]; member
969 static int reg_event_syscall_enter(struct trace_event_file *file, in reg_event_syscall_enter()
999 static void unreg_event_syscall_enter(struct trace_event_file *file, in unreg_event_syscall_enter()
1018 static int reg_event_syscall_exit(struct trace_event_file *file, in reg_event_syscall_exit()
1039 static void unreg_event_syscall_exit(struct trace_event_file *file, in unreg_event_syscall_exit()
1628 struct trace_event_file *file = data; in syscall_enter_register() local
1656 struct trace_event_file *file = data; in syscall_exit_register() local
H A Dtrace_events.c72 #define do_for_each_event_file(tr, file) \ argument
76 #define do_for_each_event_file_safe(tr, file) \ argument
687 struct trace_event_file *file = data; in trace_event_reg() local
724 struct trace_event_file *file; in trace_event_enable_cmd_record() local
746 struct trace_event_file *file; in trace_event_enable_tgid_record() local
766 static int __ftrace_event_enable_disable(struct trace_event_file *file, in __ftrace_event_enable_disable()
881 int trace_event_enable_disable(struct trace_event_file *file, in trace_event_enable_disable()
887 static int ftrace_event_enable_disable(struct trace_event_file *file, in ftrace_event_enable_disable()
1009 struct trace_event_file *file; in ftrace_clear_events() local
1161 struct trace_event_file *file; in __ftrace_clear_event_pids() local
[all …]
/linux/fs/
H A Dread_write.c37 static inline bool unsigned_offsets(struct file *file) in unsigned_offsets()
55 static loff_t vfs_setpos_cookie(struct file *file, loff_t offset, in vfs_setpos_cookie()
83 loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize) in vfs_setpos()
102 static int must_set_pos(struct file *file, loff_t *offset, int whence, loff_t eof) in must_set_pos()
159 generic_file_llseek_size(struct file *file, loff_t offset, int whence, in generic_file_llseek_size()
201 loff_t generic_llseek_cookie(struct file *file, loff_t offset, int whence, in generic_llseek_cookie()
244 loff_t generic_file_llseek(struct file *file, loff_t offset, int whence) in generic_file_llseek()
262 loff_t fixed_size_llseek(struct file *file, loff_t offset, int whence, loff_t size) in fixed_size_llseek()
281 loff_t no_seek_end_llseek(struct file *file, loff_t offset, int whence) in no_seek_end_llseek()
301 loff_t no_seek_end_llseek_size(struct file *file, loff_t offset, int whence, loff_t size) in no_seek_end_llseek_size()
[all …]
/linux/fs/ceph/
H A Dfile.c200 static int ceph_init_file_info(struct inode *inode, struct file *file, in ceph_init_file_info()
263 static int ceph_init_file(struct inode *inode, struct file *file, int fmode) in ceph_init_file()
359 int ceph_open(struct inode *inode, struct file *file) in ceph_open()
654 struct file *file, umode_t mode, in ceph_finish_async_create()
775 struct file *file, unsigned flags, umode_t mode) in ceph_atomic_open()
991 int ceph_release(struct inode *inode, struct file *file) in ceph_release()
1248 struct file *file = iocb->ki_filp; in ceph_sync_read() local
1478 struct file *file = iocb->ki_filp; in ceph_direct_read_write() local
1707 struct file *file = iocb->ki_filp; in ceph_sync_write() local
2113 int retry_op = 0, read = 0; in ceph_read_iter() local
[all …]
/linux/fs/btrfs/
H A Ddirect-io.c806 struct file *file = iocb->ki_filp; btrfs_direct_write() local
1031 ssize_t read = 0; btrfs_direct_read() local
[all...]
/linux/fs/ubifs/
H A Dfile.c595 int i = 0, nn = *n, offs = bu->zbranch[0].offs, hole = 0, read = 0; in populate_page() local
874 static int ubifs_read_folio(struct file *file, struct folio *folio) in ubifs_read_folio()
1305 int ubifs_fsync(struct file *file, loff_t start, loff_t end, int datasync) in ubifs_fsync()
/linux/fs/nfsd/
H A Dnfs4xdr.c1260 struct nfsd4_read *read = &u->read; in nfsd4_decode_read() local
4409 struct nfsd4_read *read, in nfsd4_encode_splice_read()
4410 struct file *file, unsigned long maxcount) in nfsd4_encode_splice_read()
4474 struct nfsd4_read *read, in nfsd4_encode_readv()
4518 struct nfsd4_read *read = &u->read; in nfsd4_encode_read() local
4524 struct file *file; in nfsd4_encode_read() local
5414 struct nfsd4_read *read) in nfsd4_encode_read_plus_data()
5417 struct file *file = read->rd_nf->nf_file; in nfsd4_encode_read_plus_data() local
5458 struct nfsd4_read *read = &u->read; in nfsd4_encode_read_plus() local
5459 struct file *file = read->rd_nf->nf_file; in nfsd4_encode_read_plus() local
/linux/drivers/usb/gadget/function/
H A Df_fs.c244 bool read; member
363 static ssize_t ffs_ep0_write(struct file *file, const char __user *buf, in ffs_ep0_write()
537 static ssize_t ffs_ep0_read(struct file *file, char __user *buf, in ffs_ep0_read()
639 static int ffs_ep0_open(struct inode *inode, struct file *file) in ffs_ep0_open()
661 static int ffs_ep0_release(struct inode *inode, struct file *file) in ffs_ep0_release()
670 static long ffs_ep0_ioctl(struct file *file, unsigned code, unsigned long value) in ffs_ep0_ioctl()
688 static __poll_t ffs_ep0_poll(struct file *file, poll_table *wait) in ffs_ep0_poll()
978 static struct ffs_ep *ffs_epfile_wait_ep(struct file *file) in ffs_epfile_wait_ep()
999 static ssize_t ffs_epfile_io(struct file *file, struct ffs_io_data *io_data) in ffs_epfile_io()
1201 ffs_epfile_open(struct inode *inode, struct file *file) in ffs_epfile_open()
[all …]

12