/kernel/uniproton/src/fs/vfs/ |
H A D | vfs_operations.h | 38 S32 OsVfsLock(void);
40 S32 OsVfsOpen(const char *path, S32 flags, va_list ap);
41 S32 OsVfsClose(S32 fd);
42 ssize_t OsVfsRead(S32 fd, char *buff, size_t bytes);
43 ssize_t OsVfsWrite(S32 fd, const void *buff, size_t bytes);
44 off_t OsVfsLseek(S32 fd, off_t off, S32 whence);
45 S32 OsVfsSta [all...] |
H A D | vfs_files.h | 35 S32 (*open)(struct TagFile *, const char *, S32);
36 S32 (*close)(struct TagFile *);
39 off_t (*lseek)(struct TagFile *, off_t, S32);
40 S32 (*stat)(struct TagMountPoint *, const char *, struct stat *);
41 S32 (*truncate)(struct TagFile *, off_t);
42 S32 (*unlink)(struct TagMountPoint *, const char *);
43 S32 (*rename)(struct TagMountPoint *, const char *, const char *);
44 S32 (*ioctl)(struct TagFile *, S32, uintptr_ [all...] |
H A D | vfs_partition.c | 26 S32 OsGetPartIdByPartName(const char *partName) in OsGetPartIdByPartName() 41 S32 OsGetDevIdByDevName(const char *dev) in OsGetDevIdByDevName() 81 static S32 OsAddDevice(const char *dev, const char *fsType, S32 *lengthArray, in OsAddDevice() 82 S32 *addrArray, S32 partNum) in OsAddDevice() 104 prev->dAddrArray = (S32 *)malloc(partNum * sizeof(S32)); in OsAddDevice() 110 (void)memcpy_s(prev->dAddrArray, partNum * sizeof(S32), addrArray, partNum * sizeof(S32)); in OsAddDevice() [all...] |
H A D | vfs_mount.h | 26 S32 (*mount)(struct TagMountPoint *mp, uintptr_t mountflags, const void *data);
27 S32 (*umount)(struct TagMountPoint *mp);
28 S32 (*umount2)(struct TagMountPoint *mp, S32 flag);
29 S32 (*statfs)(const char *path, struct statfs *buf);
42 S32 OsVfsMount(const char *source, const char *target,
45 S32 OsVfsUmount(const char *target);
46 S32 OsVfsUmount2(const char *target, S32 flag);
48 S32 OsVfsFindMountPoin [all...] |
H A D | vfs_maps.h | 24 S32 (*fdisk)(const char *dev, S32 *lengthArray, S32 partNum);
25 S32 (*format)(const char *partName, void *data);
37 S32 OsFsRegister(const char *fsType, struct TagMountOps *fsMops,
40 S32 OsVfsFsMgtDisk(const char *dev, const char *fsType, S32 *lengthArray, S32 partNum);
41 S32 OsVfsFsMgtFormat(const char *partName, char *fsType, void *data);
|
H A D | vfs_fs.c | 43 S32 OsVfsLock(void) in OsVfsLock() 45 S32 ret = pthread_mutex_lock(&g_vfsMutex); in OsVfsLock() 58 S32 OsVfsOpen(const char *path, S32 flags, va_list ap) in OsVfsOpen() 62 S32 fd = -1; in OsVfsOpen() 127 static struct TagFile *OsVfsAttachFile(S32 fd, U32 status) in OsVfsAttachFile() 158 static struct TagFile *OsVfsAttachFileReady(S32 fd) in OsVfsAttachFileReady() 163 static struct TagFile *OsVfsAttachFileWithStatus(S32 fd, S32 status) in OsVfsAttachFileWithStatus() 174 S32 OsVfsClos [all...] |
H A D | vfs_mount.c | 47 static S32 OsVfsFindMpByPath(const char *mPath, const char *iPath) in OsVfsFindMpByPath() 50 S32 matches = 0; in OsVfsFindMpByPath() 87 S32 bestMatches = 0; in OsVfsFindMp() 88 S32 matches; in OsVfsFindMp() 118 S32 OsVfsFindMountPoint(const char *fsType) in OsVfsFindMountPoint() 144 S32 OsVfsMount(const char *source, const char *target, in OsVfsMount() 148 S32 ret; in OsVfsMount() 213 S32 OsVfsUmount(const char *target) in OsVfsUmount() 217 S32 ret = FS_NOK; in OsVfsUmount() 250 for (S32 f in OsCloseFdsInMp() [all...] |
H A D | vfs_maps.c | 37 S32 OsVfsFsMgtDisk(const char *dev, const char *fsType, S32 *lengthArray, S32 partNum) in OsVfsFsMgtDisk() 39 S32 ret = FS_OK; in OsVfsFsMgtDisk() 49 S32 OsVfsFsMgtFormat(const char *partName, char *fsType, void *data) in OsVfsFsMgtFormat() 51 S32 ret = FS_OK; in OsVfsFsMgtFormat() 61 S32 OsFsRegister(const char *fsType, struct TagMountOps *fsMops, in OsFsRegister()
|
H A D | vfs_partition.h | 23 S32 OsGetPartIdByPartName(const char *partName);
24 S32 OsGetDevIdByDevName(const char *dev);
34 S32 *dLengthArray; /* 设备分区长度记录数组 */
36 S32 dPartNum; /* 设备分区号 */
|
H A D | vfs_files.c | 27 S32 OsFileToFd(struct TagFile *file) in OsFileToFd() 35 struct TagFile *OsFdToFile(S32 fd) in OsFdToFile() 46 for (S32 i = 0; i < NR_OPEN_DEFAULT; i++) { in OsVfsGetFile() 56 struct TagFile *OsVfsGetFileSpec(S32 fd) in OsVfsGetFileSpec()
|
H A D | vfs_init.c | 24 S32 PRT_VfsInit(void) in PRT_VfsInit()
|
/kernel/uniproton/src/include/uapi/ |
H A D | prt_fs.h | 31 S32 (*readFunc)(S32 partition, uintptr_t offset, void *buf, U32 size); 33 S32 (*writeFunc)(S32 partition, uintptr_t offset, const void *buf, U32 size); 35 S32 (*eraseFunc)(S32 partition, uintptr_t offset, U32 size); 37 S32 readSize; /* size of a block read */ 38 S32 writeSize; /* size of a block write */ 39 S32 blockSize; /* size of an erasable block */ 40 S32 blockCoun [all...] |
H A D | prt_typedef.h | 33 typedef signed int S32; typedef
|
/kernel/uniproton/src/fs/littlefs/ |
H A D | lfs_adapter.c | 30 static uintptr_t OsLfsGetStartAddr(S32 partition)
in OsLfsGetStartAddr() 49 static S32 OsLfsBlockRead(const struct lfs_config *c, lfs_block_t block,
in OsLfsBlockRead() 52 uintptr_t startAddr = OsLfsGetStartAddr((S32)c->context);
in OsLfsBlockRead() 57 return (g_partitionCfg.readFunc)((S32)c->context, startAddr, dst, size);
in OsLfsBlockRead() 60 static S32 OsLfsBlockWrite(const struct lfs_config *c, lfs_block_t block,
in OsLfsBlockWrite() 63 uintptr_t startAddr = OsLfsGetStartAddr((S32)c->context);
in OsLfsBlockWrite() 69 return (g_partitionCfg.writeFunc)((S32)c->context, startAddr, dst, size);
in OsLfsBlockWrite() 72 static S32 OsLfsBlockErase(const struct lfs_config *c, lfs_block_t block)
in OsLfsBlockErase() 74 uintptr_t startAddr = OsLfsGetStartAddr((S32)c->context);
in OsLfsBlockErase() 80 return (g_partitionCfg.eraseFunc)((S32) in OsLfsBlockErase() [all...] |
/kernel/uniproton/src/fs/ |
H A D | fs.c | 33 S32 ret; in open() 43 S32 ret = OsVfsClose(fd); in close() 66 S32 ret = OsVfsStat(path, buf); in stat() 72 S32 ret = OsVfsStatfs(path, buf); in statfs() 78 S32 ret = OsVfsUnlink(path); in unlink() 84 S32 ret = OsVfsRename(oldName, newName); in rename() 90 S32 ret = OsVfsSync(fd); in fsync() 106 S32 ret = OsVfsClosedir(dir); in closedir() 112 S32 ret = OsVfsMkdir(path, (S32)mod in mkdir() [all...] |
/kernel/linux/linux-5.10/drivers/message/fusion/lsi/ |
H A D | mpi_type.h | 53 typedef int32_t S32; typedef 59 S32 High; 77 typedef S32 *PS32;
|
/kernel/linux/linux-6.6/drivers/message/fusion/lsi/ |
H A D | mpi_type.h | 53 typedef int32_t S32; typedef 59 S32 High; 77 typedef S32 *PS32;
|
/kernel/linux/linux-5.10/tools/testing/selftests/proc/ |
H A D | setns-sysvipc.c | 120 #define S32 " key shmid perms size cpid lpid nattch uid gid cuid cgid atime dtime ctime rss swap\n" in main() macro 123 if (rv == strlen(S32)) { in main() 124 assert(memcmp(buf, S32, strlen(S32)) == 0); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/proc/ |
H A D | setns-sysvipc.c | 120 #define S32 " key shmid perms size cpid lpid nattch uid gid cuid cgid atime dtime ctime rss swap\n" in main() macro 123 if (rv == strlen(S32)) { in main() 124 assert(memcmp(buf, S32, strlen(S32)) == 0); in main()
|
/kernel/uniproton/src/net/lwip-2.1/enhancement/src/ |
H A D | fixme.c | 98 const S32 ipv6Blocks = 8; in ip6addr_aton() 103 S32 squashPos = ipv6Blocks; in ip6addr_aton() 104 S32 i; in ip6addr_aton() 105 S32 num5 = 5; in ip6addr_aton() 106 S32 num16 = 16; in ip6addr_aton()
|
H A D | lwip_ifaddrs.c | 46 S32 ret;
49 static S32 g_tcpipInitFinish = 1;
|
/kernel/uniproton/src/config/ |
H A D | prt_config.c | 285 S32 main(void) in main() 294 return (S32)ret; in main() 300 return (S32)ret; in main() 306 return (S32)ret; in main() 310 return (S32)OS_ERROR; in main()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/fs_enet/ |
H A D | mac-fcc.c | 56 #define S32(_p, _m, _v) W32(_p, _m, R32(_p, _m) | (_v)) macro 181 S32(fccp, fcc_fpsmr, FCC_PSMR_PRO); in set_promiscuous_mode() 392 S32(fccp, fcc_fpsmr, FCC_PSMR_RMII); in restart() 396 S32(fccp, fcc_fpsmr, FCC_PSMR_FDE | FCC_PSMR_LPB); in restart() 403 S32(fccp, fcc_gfmr, FCC_GFMR_ENR | FCC_GFMR_ENT); in restart() 557 S32(fccp, fcc_gfmr, FCC_GFMR_ENT); in tx_restart()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/fs_enet/ |
H A D | mac-fcc.c | 54 #define S32(_p, _m, _v) W32(_p, _m, R32(_p, _m) | (_v)) macro 179 S32(fccp, fcc_fpsmr, FCC_PSMR_PRO); in set_promiscuous_mode() 390 S32(fccp, fcc_fpsmr, FCC_PSMR_RMII); in restart() 394 S32(fccp, fcc_fpsmr, FCC_PSMR_FDE | FCC_PSMR_LPB); in restart() 401 S32(fccp, fcc_gfmr, FCC_GFMR_ENR | FCC_GFMR_ENT); in restart() 555 S32(fccp, fcc_gfmr, FCC_GFMR_ENT); in tx_restart()
|
/kernel/uniproton/src/net/lwip-2.1/src/ |
H A D | sockets.c | 291 S32 ret;
in OsLwipIoctlInternalSiocgifConf() 295 S32 len = ifc->ifc_len;
in OsLwipIoctlInternalSiocgifConf() 298 S32 pos = 0;
in OsLwipIoctlInternalSiocgifConf() 305 if (len < (S32)sizeof(ifreq)) {
in OsLwipIoctlInternalSiocgifConf()
|