Home
last modified time | relevance | path

Searched refs:range_count (Results 1 – 2 of 2) sorted by relevance

/bootable/recovery/minzip/
DSysUtil.c40 pMap->range_count = 1; in sysMapFD()
59 unsigned int range_count; in sysMapBlockFile() local
73 if (fscanf(mapf, "%zu %u\n%u\n", &size, &blksize, &range_count) != 3) { in sysMapBlockFile()
80 if (size == 0 || blksize == 0 || blocks > SIZE_MAX / blksize || range_count == 0) { in sysMapBlockFile()
82 size, blksize, range_count); in sysMapBlockFile()
86 pMap->range_count = range_count; in sysMapBlockFile()
87 pMap->ranges = calloc(range_count, sizeof(MappedRange)); in sysMapBlockFile()
89 LOGE("calloc(%u, %zu) failed: %s\n", range_count, sizeof(MappedRange), strerror(errno)); in sysMapBlockFile()
113 for (i = 0; i < range_count; ++i) { in sysMapBlockFile()
154 LOGI("mmapped %d ranges\n", range_count); in sysMapBlockFile()
[all …]
DSysUtil.h28 int range_count; member