/kernel/liteos_a/fs/vfs/operation/ |
H A 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() 272 ErrorFopIoctl(struct file *filep, int cmd, unsigned long arg) ErrorFopIoctl() argument 280 ErrorFopMmap(struct file* filep, struct VmMapRegion *region) ErrorFopMmap() argument 287 ErrorFopPoll(struct file *filep, poll_table *fds) ErrorFopPoll() argument 294 ErrorFopStat(struct file *filep, struct stat* st) ErrorFopStat() argument 301 ErrorFopFallocate(struct file* filep, int mode, off_t offset, off_t len) ErrorFopFallocate() argument 310 ErrorFopFallocate64(struct file *filep, int mode, off64_t offset, off64_t len) ErrorFopFallocate64() argument 319 ErrorFopFsync(struct file *filep) ErrorFopFsync() argument 325 ErrorFopReadpage(struct file *filep, char *buffer, size_t buflen) ErrorFopReadpage() argument 385 FilePreClose(struct file *filep, const struct file_operations_vfs *ops) FilePreClose() argument 400 struct file *filep = NULL; FileDisableAndClean() local [all...] |
H A 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, mod in fallocate64() [all...] |
H A 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, mod in fallocate() [all...] |
/kernel/liteos_a/compat/posix/src/ |
H A 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/drivers/char/perf/src/ |
H A 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() [all...] |
/kernel/liteos_a/kernel/common/ |
H A 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, in SerialIoctl() 174 SerialPoll(struct file *filep, poll_table *fds) SerialPoll() argument [all...] |
H A D | console.c | 78 * acquire uart driver function and filep of /dev/console, 80 * and store filep of /dev/console in *privFilep. 82 INT32 GetFilepOps(const struct file *filep, struct file **privFilep, const struct file_operations_vfs **filepOps) in GetFilepOps() argument 86 if ((filep == NULL) || (filep->f_vnode == NULL) || (filep->f_vnode->data == NULL)) { in GetFilepOps() 91 /* to find console device's filep(now it is *privFilep) through i_private */ 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() 132 struct file *filep = NULL; ConsoleTcSetAttr() local 324 FilepOpen(struct file *filep, const struct file_operations_vfs *fops) FilepOpen() argument 339 UserEndOfRead(CONSOLE_CB *consoleCB, struct file *filep, const struct file_operations_vfs *fops) UserEndOfRead() argument 403 EchoToTerminal(CONSOLE_CB *consoleCB, struct file *filep, const struct file_operations_vfs *fops, char ch) EchoToTerminal() argument 443 UserFilepRead(CONSOLE_CB *consoleCB, struct file *filep, const struct file_operations_vfs *fops, CHAR *buffer, size_t bufLen) UserFilepRead() argument 499 FilepRead(struct file *filep, const struct file_operations_vfs *fops, CHAR *buffer, size_t bufLen) FilepRead() argument 514 FilepWrite(struct file *filep, const struct file_operations_vfs *fops, const CHAR *buffer, size_t bufLen) FilepWrite() argument 525 FilepClose(struct file *filep, const struct file_operations_vfs *fops) FilepClose() argument 540 FilepIoctl(struct file *filep, const struct file_operations_vfs *fops, INT32 cmd, unsigned long arg) FilepIoctl() argument 551 FilepPoll(struct file *filep, const struct file_operations_vfs *fops, poll_table *fds) FilepPoll() argument 566 ConsoleOpen(struct file *filep) ConsoleOpen() argument 597 ConsoleClose(struct file *filep) ConsoleClose() argument 642 ConsoleRead(struct file *filep, CHAR *buffer, size_t bufLen) ConsoleRead() argument 744 ConsoleWrite(struct file *filep, const CHAR *buffer, size_t bufLen) ConsoleWrite() argument 833 struct file *filep = NULL; ConsoleGetTermios() local 863 ConsoleIoctl(struct file *filep, INT32 cmd, unsigned long arg) ConsoleIoctl() argument 939 ConsolePoll(struct file *filep, poll_table *fds) ConsolePoll() argument 1010 struct file *filep = NULL; OsConsoleFileInit() local 1039 struct file *filep = NULL; OsConsoleDevInit() local 1532 struct file *filep = NULL; WriteToTerminal() local [all...] |
H A 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, size_t bufLen); 119 extern INT32 FilepWrite(struct file *filep, const struct file_operations_vfs *fops, const CHAR *buffer, size_t bufLen); 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, unsigned long arg); 122 extern INT32 GetFilepOps(const struct file *filep, struct file **privFilep, const struct file_operations_vfs **fops);
|
/kernel/linux/linux-5.10/drivers/isdn/mISDN/ |
H A 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, bu in mISDN_read() 136 mISDN_poll(struct file *filep, poll_table *wait) mISDN_poll() argument 217 mISDN_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) mISDN_ioctl() argument [all...] |
/kernel/linux/linux-6.6/drivers/isdn/mISDN/ |
H A 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, bu in mISDN_read() 136 mISDN_poll(struct file *filep, poll_table *wait) mISDN_poll() argument 217 mISDN_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) mISDN_ioctl() argument [all...] |
/kernel/linux/linux-5.10/fs/nfs/ |
H A 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() 413 __nfs42_ssc_close(struct file *filep) __nfs42_ssc_close() argument [all...] |
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | nfs4file.c | 203 static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence) in nfs4_file_llseek() argument 210 ret = nfs42_proc_llseek(filep, offset, whence); in nfs4_file_llseek() 215 return nfs_file_llseek(filep, offset, whence); in nfs4_file_llseek() 219 static long nfs42_fallocate(struct file *filep, int mode, loff_t offset, loff_t len) in nfs42_fallocate() argument 221 struct inode *inode = file_inode(filep); in nfs42_fallocate() 235 return nfs42_proc_deallocate(filep, offset, len); in nfs42_fallocate() 236 return nfs42_proc_allocate(filep, offset, len); in nfs42_fallocate() 320 struct file *filep, *res; in __nfs42_ssc_open() local 357 filep = alloc_file_pseudo(r_ino, ss_mnt, read_name, O_RDONLY, in __nfs42_ssc_open() 359 if (IS_ERR(filep)) { in __nfs42_ssc_open() 406 __nfs42_ssc_close(struct file *filep) __nfs42_ssc_close() argument [all...] |
/kernel/liteos_a/drivers/char/mem/src/ |
H A 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/linux/linux-5.10/drivers/ntb/test/ |
H A 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 in tool_peer_link_event_write() 548 tool_mw_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_mw_read() argument 560 tool_mw_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_mw_write() argument 644 tool_mw_trans_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_mw_trans_read() argument 706 tool_mw_trans_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_mw_trans_write() argument 731 tool_peer_mw_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_peer_mw_read() argument 769 tool_peer_mw_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_peer_mw_write() argument 872 tool_peer_mw_trans_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_peer_mw_trans_read() argument 929 tool_peer_mw_trans_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_peer_mw_trans_write() argument 1032 tool_db_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_db_read() argument 1040 tool_db_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_db_write() argument 1053 tool_db_valid_mask_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_db_valid_mask_read() argument 1065 tool_db_mask_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_db_mask_read() argument 1073 tool_db_mask_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_db_mask_write() argument 1086 tool_peer_db_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_peer_db_read() argument 1094 tool_peer_db_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_peer_db_write() argument 1107 tool_peer_db_mask_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_peer_db_mask_read() argument 1116 tool_peer_db_mask_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_peer_db_mask_write() argument 1131 tool_db_event_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_db_event_write() argument 1158 tool_spad_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_spad_read() argument 1174 tool_spad_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_spad_write() argument 1199 tool_peer_spad_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_peer_spad_read() argument 1215 tool_peer_spad_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_peer_spad_write() argument 1281 tool_inmsg_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_inmsg_read() argument 1301 tool_outmsg_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_outmsg_write() argument 1322 tool_msg_sts_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_msg_sts_read() argument 1330 tool_msg_sts_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_msg_sts_write() argument 1343 tool_msg_inbits_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_msg_inbits_read() argument 1355 tool_msg_outbits_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_msg_outbits_read() argument 1367 tool_msg_mask_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_msg_mask_write() argument 1381 tool_msg_event_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_msg_event_write() argument [all...] |
/kernel/linux/linux-6.6/drivers/ntb/test/ |
H A D | ntb_tool.c | 405 static ssize_t tool_port_read(struct file *filep, char __user *ubuf, in tool_port_read() argument 408 struct tool_ctx *tc = filep->private_data; in tool_port_read() 421 static ssize_t tool_peer_port_read(struct file *filep, char __user *ubuf, in tool_peer_port_read() argument 424 struct tool_peer *peer = filep->private_data; in tool_peer_port_read() 462 static ssize_t tool_link_write(struct file *filep, const char __user *ubuf, in tool_link_write() argument 465 struct tool_ctx *tc = filep->private_data; in tool_link_write() 488 static ssize_t tool_peer_link_read(struct file *filep, char __user *ubuf, in tool_peer_link_read() argument 491 struct tool_peer *peer = filep->private_data; in tool_peer_link_read() 509 static ssize_t tool_peer_link_event_write(struct file *filep, in tool_peer_link_event_write() argument 513 struct tool_peer *peer = filep in tool_peer_link_event_write() 541 tool_mw_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_mw_read() argument 553 tool_mw_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_mw_write() argument 637 tool_mw_trans_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_mw_trans_read() argument 699 tool_mw_trans_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_mw_trans_write() argument 724 tool_peer_mw_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_peer_mw_read() argument 762 tool_peer_mw_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_peer_mw_write() argument 865 tool_peer_mw_trans_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_peer_mw_trans_read() argument 922 tool_peer_mw_trans_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_peer_mw_trans_write() argument 1025 tool_db_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_db_read() argument 1033 tool_db_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_db_write() argument 1046 tool_db_valid_mask_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_db_valid_mask_read() argument 1058 tool_db_mask_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_db_mask_read() argument 1066 tool_db_mask_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_db_mask_write() argument 1079 tool_peer_db_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_peer_db_read() argument 1087 tool_peer_db_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_peer_db_write() argument 1100 tool_peer_db_mask_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_peer_db_mask_read() argument 1109 tool_peer_db_mask_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_peer_db_mask_write() argument 1124 tool_db_event_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_db_event_write() argument 1151 tool_spad_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_spad_read() argument 1167 tool_spad_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_spad_write() argument 1192 tool_peer_spad_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_peer_spad_read() argument 1208 tool_peer_spad_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_peer_spad_write() argument 1274 tool_inmsg_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_inmsg_read() argument 1294 tool_outmsg_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_outmsg_write() argument 1315 tool_msg_sts_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_msg_sts_read() argument 1323 tool_msg_sts_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_msg_sts_write() argument 1336 tool_msg_inbits_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_msg_inbits_read() argument 1348 tool_msg_outbits_read(struct file *filep, char __user *ubuf, size_t size, loff_t *offp) tool_msg_outbits_read() argument 1360 tool_msg_mask_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_msg_mask_write() argument 1374 tool_msg_event_write(struct file *filep, const char __user *ubuf, size_t size, loff_t *offp) tool_msg_event_write() argument [all...] |
/kernel/liteos_a/kernel/extended/hilog/ |
H A 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() 166 HiLogRead(struct file *filep, char *buffer, size_t bufLen) HiLogRead() argument 321 HiLogWrite(struct file *filep, const char *buffer, size_t bufLen) HiLogWrite() argument [all...] |
/kernel/liteos_a/fs/fat/os_adapt/ |
H A 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/ |
H A 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
|
H A 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/liteos_a/fs/proc/os_adapt/ |
H A 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 in VfsProcfsWrite() 362 VfsProcfsOpen(struct file *filep) VfsProcfsOpen() argument 390 VfsProcfsClose(struct file *filep) VfsProcfsClose() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
H A 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()
|
/kernel/liteos_a/drivers/char/trace/src/ |
H A 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/ |
H A 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, (voi in cifs_ioctl() [all...] |
/kernel/linux/linux-5.10/tools/hv/ |
H A D | hv_kvp_daemon.c | 147 FILE *filep; in kvp_update_file() local 155 filep = fopen(kvp_file_info[pool].fname, "we"); in kvp_update_file() 156 if (!filep) { in kvp_update_file() 164 kvp_file_info[pool].num_records, filep); in kvp_update_file() 166 if (ferror(filep) || fclose(filep)) { in kvp_update_file() 177 FILE *filep; in kvp_update_mem_state() local 186 filep = fopen(kvp_file_info[pool].fname, "re"); in kvp_update_mem_state() 187 if (!filep) { in kvp_update_mem_state() 197 filep); in kvp_update_mem_state() [all...] |
/kernel/linux/linux-6.6/tools/hv/ |
H A D | hv_kvp_daemon.c | 147 FILE *filep; in kvp_update_file() local 155 filep = fopen(kvp_file_info[pool].fname, "we"); in kvp_update_file() 156 if (!filep) { in kvp_update_file() 164 kvp_file_info[pool].num_records, filep); in kvp_update_file() 166 if (ferror(filep) || fclose(filep)) { in kvp_update_file() 177 FILE *filep; in kvp_update_mem_state() local 186 filep = fopen(kvp_file_info[pool].fname, "re"); in kvp_update_mem_state() 187 if (!filep) { in kvp_update_mem_state() 197 filep); in kvp_update_mem_state() [all...] |