Home
last modified time | relevance | path

Searched refs:pMap (Results 1 – 3 of 3) sorted by relevance

/bootable/recovery/minzip/
DSysUtil.c83 int sysLoadFileInShmem(int fd, MemMapping* pMap) in sysLoadFileInShmem() argument
89 assert(pMap != NULL); in sysLoadFileInShmem()
101 sysReleaseShmem(pMap); in sysLoadFileInShmem()
105 pMap->baseAddr = pMap->addr = memPtr; in sysLoadFileInShmem()
106 pMap->baseLength = pMap->length = length; in sysLoadFileInShmem()
118 int sysMapFileInShmem(int fd, MemMapping* pMap) in sysMapFileInShmem() argument
124 assert(pMap != NULL); in sysMapFileInShmem()
136 pMap->baseAddr = pMap->addr = memPtr; in sysMapFileInShmem()
137 pMap->baseLength = pMap->length = length; in sysMapFileInShmem()
150 MemMapping* pMap) in sysMapFileSegmentInShmem() argument
[all …]
DSysUtil.h38 int sysLoadFileInShmem(int fd, MemMapping* pMap);
46 int sysMapFileInShmem(int fd, MemMapping* pMap);
52 MemMapping* pMap);
59 void sysReleaseShmem(MemMapping* pMap);
DZip.c187 static bool parseZipArchive(ZipArchive* pArchive, const MemMapping* pMap) in parseZipArchive() argument
199 val = get4LE(pMap->addr); in parseZipArchive()
212 ptr = pMap->addr + pMap->length - ENDHDR; in parseZipArchive()
214 while (ptr >= (const unsigned char*) pMap->addr) { in parseZipArchive()
219 if (ptr < (const unsigned char*) pMap->addr) { in parseZipArchive()
233 if (numEntries == 0 || cdOffset >= pMap->length) { in parseZipArchive()
235 numEntries, cdOffset, pMap->length); in parseZipArchive()
248 ptr = pMap->addr + cdOffset; in parseZipArchive()
255 if (ptr + CENHDR > (const unsigned char*)pMap->addr + pMap->length) { in parseZipArchive()
269 if (fileName + fileNameLen > (const char*)pMap->addr + pMap->length) { in parseZipArchive()
[all …]