/kernel/liteos_a/compat/posix/src/ |
D | stdio.c | 41 struct file *filep = NULL; in _lseek() local 44 ret = fs_getfilep(fd, &filep); in _lseek() 52 if (filep->f_oflags & O_DIRECTORY) { in _lseek() 54 if (filep->f_dir == NULL) { in _lseek() 58 rewinddir(filep->f_dir); in _lseek() 60 seekdir(filep->f_dir, offset); in _lseek() 62 ret = telldir(filep->f_dir); in _lseek() 70 ret = file_seek(filep, offset, whence); in _lseek() 80 struct file *filep = NULL; in _lseek64() local 84 ret = fs_getfilep(fd, &filep); in _lseek64() [all …]
|
/kernel/liteos_a/fs/vfs/operation/ |
D | vfs_force_umount.c | 235 static int ErrorFopOpen(struct file *filep) in ErrorFopOpen() argument 237 (void)filep; in ErrorFopOpen() 241 static int ErrorFopClose(struct file *filep) in ErrorFopClose() argument 243 (void)filep; in ErrorFopClose() 248 static ssize_t ErrorFopRead(struct file *filep, char *buffer, size_t buflen) in ErrorFopRead() argument 250 (void)filep; in ErrorFopRead() 256 static ssize_t ErrorFopWrite(struct file *filep, const char *buffer, size_t buflen) in ErrorFopWrite() argument 258 (void)filep; in ErrorFopWrite() 264 static off_t ErrorFopSeek(struct file *filep, off_t offset, int whence) in ErrorFopSeek() argument 266 (void)filep; in ErrorFopSeek() [all …]
|
D | vfs_fallocate.c | 49 static ssize_t file_fallocate(struct file *filep, int mode, off_t offset, off_t len) in file_fallocate() argument 60 if (((unsigned int)(filep->f_oflags) & O_ACCMODE) == O_RDONLY) { in file_fallocate() 65 if (!filep->ops || !filep->ops->fallocate) { in file_fallocate() 72 ret = filep->ops->fallocate(filep, mode, offset, len); in file_fallocate() 108 struct file *filep = NULL; in fallocate() local 125 int ret = fs_getfilep(fd, &filep); in fallocate() 131 if (filep->f_oflags & O_DIRECTORY) { in fallocate() 137 return file_fallocate(filep, mode, offset, len); in fallocate()
|
D | vfs_fallocate64.c | 49 ssize_t file_fallocate64(struct file *filep, int mode, off64_t offset, off64_t len) in file_fallocate64() argument 61 if (((unsigned int)(filep->f_oflags) & O_ACCMODE) == O_RDONLY) { in file_fallocate64() 67 if (!filep->ops || !filep->ops->fallocate64) { in file_fallocate64() 74 ret = filep->ops->fallocate64(filep, mode, offset, len); in file_fallocate64() 111 struct file *filep = NULL; in fallocate64() local 130 int ret = fs_getfilep(fd, &filep); in fallocate64() 136 if ((unsigned int)filep->f_oflags & O_DIRECTORY) { in fallocate64() 142 return file_fallocate64(filep, mode, offset, len); in fallocate64()
|
/kernel/liteos_a/drivers/char/perf/src/ |
D | perf.c | 48 static int PerfOpen(struct file *filep) in PerfOpen() argument 50 (void)filep; in PerfOpen() 54 static int PerfClose(struct file *filep) in PerfClose() argument 56 (void)filep; in PerfClose() 60 static ssize_t PerfRead(struct file *filep, char *buffer, size_t buflen) in PerfRead() argument 63 (void)filep; in PerfRead() 91 static ssize_t PerfConfig(struct file *filep, const char *buffer, size_t buflen) in PerfConfig() argument 93 (void)filep; in PerfConfig() 117 static int PerfIoctl(struct file *filep, int cmd, unsigned long arg) in PerfIoctl() argument 119 (void)filep; in PerfIoctl()
|
/kernel/liteos_a/kernel/common/ |
D | console.c | 82 INT32 GetFilepOps(const struct file *filep, struct file **privFilep, const struct file_operations_v… in GetFilepOps() argument 86 if ((filep == NULL) || (filep->f_vnode == NULL) || (filep->f_vnode->data == NULL)) { in GetFilepOps() 92 struct drv_data *drv = (struct drv_data *)filep->f_vnode->data; in GetFilepOps() 113 struct file *filep = NULL; in ConsoleTcGetAttr() local 116 INT32 ret = fs_getfilep(fd, &filep); in ConsoleTcGetAttr() 121 consoleCB = (CONSOLE_CB *)filep->f_priv; in ConsoleTcGetAttr() 132 struct file *filep = NULL; in ConsoleTcSetAttr() local 137 INT32 ret = fs_getfilep(fd, &filep); in ConsoleTcSetAttr() 142 consoleCB = (CONSOLE_CB *)filep->f_priv; in ConsoleTcSetAttr() 324 INT32 FilepOpen(struct file *filep, const struct file_operations_vfs *fops) in FilepOpen() argument [all …]
|
D | virtual_serial.c | 60 STATIC INT32 SerialOpen(struct file *filep) in SerialOpen() argument 66 ret = GetFilepOps(filep, &privFilep, &fileOps); in SerialOpen() 88 STATIC INT32 SerialClose(struct file *filep) in SerialClose() argument 90 (VOID)filep; in SerialClose() 104 STATIC ssize_t SerialRead(struct file *filep, CHAR *buffer, size_t bufLen) in SerialRead() argument 110 ret = GetFilepOps(filep, &privFilep, &fileOps); in SerialRead() 128 STATIC ssize_t SerialWrite(struct file *filep, const CHAR *buffer, size_t bufLen) in SerialWrite() argument 134 ret = GetFilepOps(filep, &privFilep, &fileOps); in SerialWrite() 151 STATIC INT32 SerialIoctl(struct file *filep, INT32 cmd, unsigned long arg) in SerialIoctl() argument 157 ret = GetFilepOps(filep, &privFilep, &fileOps); in SerialIoctl() [all …]
|
D | console.h | 116 extern INT32 FilepOpen(struct file *filep, const struct file_operations_vfs *fops); 117 extern INT32 FilepClose(struct file *filep, const struct file_operations_vfs *fops); 118 extern INT32 FilepRead(struct file *filep, const struct file_operations_vfs *fops, CHAR *buffer, si… 119 extern INT32 FilepWrite(struct file *filep, const struct file_operations_vfs *fops, const CHAR *buf… 120 extern INT32 FilepPoll(struct file *filep, const struct file_operations_vfs *fops, poll_table *fds); 121 extern INT32 FilepIoctl(struct file *filep, const struct file_operations_vfs *fops, INT32 cmd, unsi… 122 extern INT32 GetFilepOps(const struct file *filep, struct file **privFilep, const struct file_opera…
|
/kernel/linux/linux-5.10/drivers/isdn/mISDN/ |
D | timerdev.c | 44 mISDN_open(struct inode *ino, struct file *filep) in mISDN_open() argument 49 printk(KERN_DEBUG "%s(%p,%p)\n", __func__, ino, filep); in mISDN_open() 59 filep->private_data = dev; in mISDN_open() 60 return nonseekable_open(ino, filep); in mISDN_open() 64 mISDN_close(struct inode *ino, struct file *filep) in mISDN_close() argument 66 struct mISDNtimerdev *dev = filep->private_data; in mISDN_close() 71 printk(KERN_DEBUG "%s(%p,%p)\n", __func__, ino, filep); in mISDN_close() 93 mISDN_read(struct file *filep, char __user *buf, size_t count, loff_t *off) in mISDN_read() argument 95 struct mISDNtimerdev *dev = filep->private_data; in mISDN_read() 102 filep, buf, (int)count, off); in mISDN_read() [all …]
|
/kernel/linux/linux-5.10/fs/nfs/ |
D | nfs4file.c | 208 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek() argument 215 ret = nfs42_proc_llseek(filep, offset, whence); in nfs4_file_llseek() 220 return nfs_file_llseek(filep, offset, whence); in nfs4_file_llseek() 224 static long nfs42_fallocate(struct file *filep, int mode, loff_t offset, loff_t len) in nfs42_fallocate() argument 226 struct inode *inode = file_inode(filep); in nfs42_fallocate() 240 return nfs42_proc_deallocate(filep, offset, len); in nfs42_fallocate() 241 return nfs42_proc_allocate(filep, offset, len); in nfs42_fallocate() 325 struct file *filep, *res; in __nfs42_ssc_open() local 363 filep = alloc_file_pseudo(r_ino, ss_mnt, read_name, FMODE_READ, in __nfs42_ssc_open() 365 if (IS_ERR(filep)) { in __nfs42_ssc_open() [all …]
|
/kernel/linux/linux-5.10/drivers/ntb/test/ |
D | ntb_tool.c | 412 static ssize_t tool_port_read(struct file *filep, char __user *ubuf, in tool_port_read() argument 415 struct tool_ctx *tc = filep->private_data; in tool_port_read() 428 static ssize_t tool_peer_port_read(struct file *filep, char __user *ubuf, in tool_peer_port_read() argument 431 struct tool_peer *peer = filep->private_data; in tool_peer_port_read() 469 static ssize_t tool_link_write(struct file *filep, const char __user *ubuf, in tool_link_write() argument 472 struct tool_ctx *tc = filep->private_data; in tool_link_write() 495 static ssize_t tool_peer_link_read(struct file *filep, char __user *ubuf, in tool_peer_link_read() argument 498 struct tool_peer *peer = filep->private_data; in tool_peer_link_read() 516 static ssize_t tool_peer_link_event_write(struct file *filep, in tool_peer_link_event_write() argument 520 struct tool_peer *peer = filep->private_data; in tool_peer_link_event_write() [all …]
|
/kernel/liteos_a/drivers/char/mem/src/ |
D | mem.c | 36 static int MemOpen(struct file *filep) in MemOpen() argument 41 static int MemClose(struct file *filep) in MemClose() argument 46 static ssize_t MemRead(struct file *filep, char *buffer, size_t buflen) in MemRead() argument 51 static ssize_t MemWrite(struct file *filep, const char *buffer, size_t buflen) in MemWrite() argument 56 static ssize_t MemMap(struct file *filep, LosVmMapRegion *region) in MemMap() argument 78 UNUSED(filep); in MemMap()
|
/kernel/liteos_a/kernel/extended/hilog/ |
D | los_hilog.c | 59 ssize_t HilogRead(struct file *filep, char __user *buf, size_t count); 60 ssize_t HilogWrite(struct file *filep, const char __user *buf, size_t count); 61 int HiLogOpen(struct file *filep); 62 int HiLogClose(struct file *filep); 64 static ssize_t HiLogWrite(struct file *filep, const char *buffer, size_t bufLen); 65 static ssize_t HiLogRead(struct file *filep, char *buffer, size_t bufLen); 97 int HiLogOpen(struct file *filep) in HiLogOpen() argument 99 (void)filep; in HiLogOpen() 103 int HiLogClose(struct file *filep) in HiLogClose() argument 105 (void)filep; in HiLogClose() [all …]
|
/kernel/liteos_a/fs/proc/os_adapt/ |
D | proc_vfs.c | 120 int VfsProcfsRead(struct file *filep, char *buffer, size_t buflen) in VfsProcfsRead() argument 124 if ((filep == NULL) || (filep->f_vnode == NULL) || (buffer == NULL)) { in VfsProcfsRead() 129 entry = VnodeToEntry(filep->f_vnode); in VfsProcfsRead() 136 filep->f_pos = entry->pf->fPos; in VfsProcfsRead() 141 int VfsProcfsWrite(struct file *filep, const char *buffer, size_t buflen) in VfsProcfsWrite() argument 145 if ((filep == NULL) || (filep->f_vnode == NULL) || (buffer == NULL)) { in VfsProcfsWrite() 150 entry = VnodeToEntry(filep->f_vnode); in VfsProcfsWrite() 157 filep->f_pos = entry->pf->fPos; in VfsProcfsWrite() 362 int VfsProcfsOpen(struct file *filep) in VfsProcfsOpen() argument 364 if (filep == NULL) { in VfsProcfsOpen() [all …]
|
/kernel/liteos_a/fs/fat/os_adapt/ |
D | fatfs.h | 121 int fatfs_read(struct file *filep, char *buff, size_t count); 122 off_t fatfs_lseek64(struct file *filep, off64_t offset, int whence); 123 off64_t fatfs_lseek(struct file *filep, off_t offset, int whence); 124 int fatfs_write(struct file *filep, const char *buff, size_t count); 125 int fatfs_fsync(struct file *filep); 126 int fatfs_fallocate64(struct file *filep, int mode, off64_t offset, off64_t len); 127 int fatfs_fallocate(struct file *filep, int mode, off_t offset, off_t len); 144 int fatfs_ioctl(struct file *filep, int req, unsigned long arg);
|
/kernel/liteos_a/drivers/char/random/src/ |
D | random.c | 55 int RanOpen(struct file *filep) in RanOpen() argument 61 static int RanClose(struct file *filep) in RanClose() argument 66 int RanIoctl(struct file *filep, int cmd, unsigned long arg) in RanIoctl() argument 72 ssize_t RanRead(struct file *filep, char *buffer, size_t buflen) in RanRead() argument 95 static ssize_t RanMap(struct file *filep, LosVmMapRegion *region) in RanMap() argument
|
D | random_hw.c | 48 static int RandomHwOpen(struct file *filep) in RandomHwOpen() argument 57 static int RandomHwClose(struct file *filep) in RandomHwClose() argument 66 static int RandomHwIoctl(struct file *filep, int cmd, unsigned long arg) in RandomHwIoctl() argument 78 static ssize_t RandomHwRead(struct file *filep, char *buffer, size_t buflen) in RandomHwRead() argument 93 static ssize_t RandomMap(struct file *filep, LosVmMapRegion *region) in RandomMap() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_smi_events.c | 60 static __poll_t kfd_smi_ev_poll(struct file *filep, in kfd_smi_ev_poll() argument 63 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_poll() 66 poll_wait(filep, &client->wait_queue, wait); in kfd_smi_ev_poll() 76 static ssize_t kfd_smi_ev_read(struct file *filep, char __user *user, in kfd_smi_ev_read() argument 81 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_read() 120 static ssize_t kfd_smi_ev_write(struct file *filep, const char __user *user, in kfd_smi_ev_write() argument 123 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_write() 136 static int kfd_smi_ev_release(struct inode *inode, struct file *filep) in kfd_smi_ev_release() argument 138 struct kfd_smi_client *client = filep->private_data; in kfd_smi_ev_release()
|
D | kfd_chardev.c | 109 static int kfd_open(struct inode *inode, struct file *filep) in kfd_open() argument 127 process = kfd_create_process(filep); in kfd_open() 139 filep->private_data = process; in kfd_open() 147 static int kfd_release(struct inode *inode, struct file *filep) in kfd_release() argument 149 struct kfd_process *process = filep->private_data; in kfd_release() 157 static int kfd_ioctl_get_version(struct file *filep, struct kfd_process *p, in kfd_ioctl_get_version() argument 274 static int kfd_ioctl_create_queue(struct file *filep, struct kfd_process *p, in kfd_ioctl_create_queue() argument 312 err = pqm_create_queue(&p->pqm, dev, filep, &q_properties, &queue_id, in kfd_ioctl_create_queue() 469 static int kfd_ioctl_get_queue_wave_state(struct file *filep, in kfd_ioctl_get_queue_wave_state() argument 487 static int kfd_ioctl_set_memory_policy(struct file *filep, in kfd_ioctl_set_memory_policy() argument [all …]
|
/kernel/liteos_a/drivers/char/trace/src/ |
D | trace.c | 52 static int TraceOpen(struct file *filep) in TraceOpen() argument 57 static int TraceClose(struct file *filep) in TraceClose() argument 62 static ssize_t TraceRead(struct file *filep, char *buffer, size_t buflen) in TraceRead() argument 90 static ssize_t TraceWrite(struct file *filep, const char *buffer, size_t buflen) in TraceWrite() argument 117 static int TraceIoctl(struct file *filep, int cmd, unsigned long arg) in TraceIoctl() argument
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | ioctl.c | 38 static long cifs_ioctl_query_info(unsigned int xid, struct file *filep, in cifs_ioctl_query_info() argument 41 struct inode *inode = file_inode(filep); in cifs_ioctl_query_info() 44 struct dentry *dentry = filep->f_path.dentry; in cifs_ioctl_query_info() 69 filep->private_data ? 0 : 1, p); in cifs_ioctl_query_info() 164 long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) in cifs_ioctl() argument 166 struct inode *inode = file_inode(filep); in cifs_ioctl() 170 struct cifsFileInfo *pSMBFile = filep->private_data; in cifs_ioctl() 241 rc = cifs_ioctl_copychunk(xid, filep, arg); in cifs_ioctl() 244 rc = cifs_ioctl_query_info(xid, filep, arg); in cifs_ioctl() 319 filep, (void __user *)arg); in cifs_ioctl()
|
/kernel/liteos_a/kernel/base/vm/ |
D | los_vm_filemap.c | 501 INT32 OsVfsFileMmap(struct file *filep, LosVmMapRegion *region) in OsVfsFileMmap() argument 504 region->unTypeData.rf.vnode = filep->f_vnode; in OsVfsFileMmap() 505 region->unTypeData.rf.f_oflags = filep->f_oflags; in OsVfsFileMmap() 510 STATUS_T OsNamedMMap(struct file *filep, LosVmMapRegion *region) in OsNamedMMap() argument 513 if (filep == NULL) { in OsNamedMMap() 516 file_hold(filep); in OsNamedMMap() 517 vnode = filep->f_vnode; in OsNamedMMap() 521 if (filep->ops != NULL && filep->ops->mmap != NULL) { in OsNamedMMap() 527 int ret = filep->ops->mmap(filep, region); in OsNamedMMap() 529 file_release(filep); in OsNamedMMap() [all …]
|
/kernel/linux/linux-5.10/drivers/vfio/ |
D | vfio.c | 1131 static long vfio_fops_unl_ioctl(struct file *filep, in vfio_fops_unl_ioctl() argument 1134 struct vfio_container *container = filep->private_data; in vfio_fops_unl_ioctl() 1163 static int vfio_fops_open(struct inode *inode, struct file *filep) in vfio_fops_open() argument 1175 filep->private_data = container; in vfio_fops_open() 1180 static int vfio_fops_release(struct inode *inode, struct file *filep) in vfio_fops_release() argument 1182 struct vfio_container *container = filep->private_data; in vfio_fops_release() 1184 filep->private_data = NULL; in vfio_fops_release() 1195 static ssize_t vfio_fops_read(struct file *filep, char __user *buf, in vfio_fops_read() argument 1198 struct vfio_container *container = filep->private_data; in vfio_fops_read() 1210 static ssize_t vfio_fops_write(struct file *filep, const char __user *buf, in vfio_fops_write() argument [all …]
|
/kernel/liteos_a/kernel/extended/hidumper/ |
D | los_hidumper.c | 91 STATIC INT32 HiDumperOpen(struct file *filep); 92 STATIC INT32 HiDumperClose(struct file *filep); 93 STATIC INT32 HiDumperIoctl(struct file *filep, INT32 cmd, unsigned long arg); 120 STATIC INT32 HiDumperOpen(struct file *filep) in HiDumperOpen() argument 122 (VOID)filep; in HiDumperOpen() 126 STATIC INT32 HiDumperClose(struct file *filep) in HiDumperClose() argument 128 (VOID)filep; in HiDumperClose() 294 static INT32 HiDumperIoctl(struct file *filep, INT32 cmd, unsigned long arg) in HiDumperIoctl() argument
|
/kernel/linux/linux-5.10/include/linux/ |
D | nfs_ssc.h | 20 void (*sco_close)(struct file *filep); 50 static inline void nfs42_ssc_close(struct file *filep) in nfs42_ssc_close() argument 53 (*nfs_ssc_client_tbl.ssc_nfs4_ops->sco_close)(filep); in nfs42_ssc_close()
|