Home
last modified time | relevance | path

Searched refs:LOSCFG_FS_MALLOC_HOOK (Results 1 – 7 of 7) sorted by relevance

/kernel/liteos_m/components/fs/vfs/
Dvfs_partition.c94 prev = (struct DeviceDesc *)LOSCFG_FS_MALLOC_HOOK(sizeof(struct DeviceDesc)); in AddDevice()
100 prev->dDev = LOSCFG_FS_MALLOC_HOOK(len); in AddDevice()
102 prev->dFsType = LOSCFG_FS_MALLOC_HOOK(len); in AddDevice()
103 prev->dAddrArray = (int *)LOSCFG_FS_MALLOC_HOOK(partNum * sizeof(int)); in AddDevice()
112 prev->dLengthArray = (int *)LOSCFG_FS_MALLOC_HOOK(partNum * sizeof(int)); in AddDevice()
Dlos_fs.h57 #ifndef LOSCFG_FS_MALLOC_HOOK
58 #define LOSCFG_FS_MALLOC_HOOK(size) LOS_MemAlloc((VOID *)OS_SYS_MEM_ADDR, size) macro
Dvfs_maps.c67 struct FsMap *newfs = (struct FsMap *)LOSCFG_FS_MALLOC_HOOK(sizeof(struct FsMap)); in OsFsRegister()
76 newfs->fsType = LOSCFG_FS_MALLOC_HOOK(len); in OsFsRegister()
Dvfs_fs.c151 char *tmpBuf = (char *)LOSCFG_FS_MALLOC_HOOK(tmpLen); in GetCanonicalPath()
278 file->fullPath = LOSCFG_FS_MALLOC_HOOK(len); in VfsOpen()
521 char *canonicalPath = (char *)LOSCFG_FS_MALLOC_HOOK(pathLen); in open()
887 dir = (struct Dir *)LOSCFG_FS_MALLOC_HOOK(sizeof(struct Dir)); in opendir()
1164 buf = (char *)LOSCFG_FS_MALLOC_HOOK(totalLen); in readv()
1222 buf = (char *)LOSCFG_FS_MALLOC_HOOK(totalLen); in writev()
Dvfs_mount.c200 mp = (struct MountPoint *)LOSCFG_FS_MALLOC_HOOK(sizeof(struct MountPoint) + ssize + tsize); in VfsMountPointInit()
/kernel/liteos_m/components/fs/fatfs/
Dfatfs.c222 char *ldPath = (char *)LOSCFG_FS_MALLOC_HOOK(strlen(volPath) + LDPATH_PAD); in GetLdPath()
263 fs = (FATFS *)LOSCFG_FS_MALLOC_HOOK(sizeof(FATFS)); in FatfsMount()
385 fp = (FIL *)LOSCFG_FS_MALLOC_HOOK(sizeof(FIL)); in FatfsOpen()
673 dp = (DIR *)LOSCFG_FS_MALLOC_HOOK(sizeof(DIR)); in FatfsOpendir()
/kernel/liteos_m/components/fs/littlefs/
Dlfs_adapter.c192 mountHdl = (lfs_t *)LOSCFG_FS_MALLOC_HOOK(sizeof(lfs_t) + sizeof(struct lfs_config)); in LfsMount()
335 lfs_dir_t *dirInfo = (lfs_dir_t *)LOSCFG_FS_MALLOC_HOOK(sizeof(lfs_dir_t)); in LfsOpendir()
438 lfsHandle = (lfs_file_t *)LOSCFG_FS_MALLOC_HOOK(sizeof(lfs_file_t)); in LfsOpen()