Searched refs:ranges (Results 1 – 4 of 4) sorted by relevance
/bootable/recovery/minzip/ |
D | SysUtil.c | 81 pMap->ranges = malloc(sizeof(MappedRange)); in sysMapFD() 82 pMap->ranges[0].addr = memPtr; in sysMapFD() 83 pMap->ranges[0].length = length; in sysMapFD() 116 pMap->ranges = malloc(range_count * sizeof(MappedRange)); in sysMapBlockFile() 117 memset(pMap->ranges, 0, range_count * sizeof(MappedRange)); in sysMapBlockFile() 127 pMap->ranges[range_count-1].addr = reserve; in sysMapBlockFile() 128 pMap->ranges[range_count-1].length = blocks * blksize; in sysMapBlockFile() 149 pMap->ranges[i].addr = addr; in sysMapBlockFile() 150 pMap->ranges[i].length = (end-start)*blksize; in sysMapBlockFile() 152 next += pMap->ranges[i].length; in sysMapBlockFile() [all …]
|
D | SysUtil.h | 29 MappedRange* ranges; member
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 86 static void add_block_to_ranges(int** ranges, int* range_alloc, int* range_used, int new_block) { in add_block_to_ranges() argument 90 if ((*ranges)[*range_used*2-2] < 0) { in add_block_to_ranges() 91 (*ranges)[*range_used*2-2] = new_block; in add_block_to_ranges() 92 (*ranges)[*range_used*2-1] = new_block; in add_block_to_ranges() 95 if (new_block == (*ranges)[*range_used*2-1]) { in add_block_to_ranges() 98 ++(*ranges)[*range_used*2-1]; in add_block_to_ranges() 105 *ranges = reinterpret_cast<int*>(realloc(*ranges, *range_alloc * 2 * sizeof(int))); in add_block_to_ranges() 109 (*ranges)[*range_used*2-2] = new_block; in add_block_to_ranges() 110 (*ranges)[*range_used*2-1] = new_block+1; in add_block_to_ranges() 205 int* ranges = reinterpret_cast<int*>(malloc(range_alloc * 2 * sizeof(int))); in produce_block_map() local [all …]
|
/bootable/recovery/updater/ |
D | blockimg.c | 1891 Value* ranges; in RangeSha1Fn() local 1893 if (ReadValueArgs(state, argv, 2, &blockdev_filename, &ranges) < 0) { in RangeSha1Fn() 1901 if (ranges->type != VAL_STRING) { in RangeSha1Fn() 1912 RangeSet* rs = parse_range(ranges->data); in RangeSha1Fn() 1941 FreeValue(ranges); in RangeSha1Fn()
|