Searched refs:ranges (Results 1 – 4 of 4) sorted by relevance
/bootable/recovery/minzip/ |
D | SysUtil.c | 41 pMap->ranges = malloc(sizeof(MappedRange)); in sysMapFD() 42 if (pMap->ranges == NULL) { in sysMapFD() 47 pMap->ranges[0].addr = memPtr; in sysMapFD() 48 pMap->ranges[0].length = sb.st_size; in sysMapFD() 87 pMap->ranges = calloc(range_count, sizeof(MappedRange)); in sysMapBlockFile() 88 if (pMap->ranges == NULL) { in sysMapBlockFile() 98 free(pMap->ranges); in sysMapBlockFile() 106 free(pMap->ranges); in sysMapBlockFile() 133 pMap->ranges[i].addr = addr; in sysMapBlockFile() 134 pMap->ranges[i].length = length; in sysMapBlockFile() [all …]
|
D | SysUtil.h | 29 MappedRange* ranges; member
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 153 static void add_block_to_ranges(std::vector<int>& ranges, int new_block) { in add_block_to_ranges() argument 154 if (!ranges.empty() && new_block == ranges.back()) { in add_block_to_ranges() 157 ++ranges.back(); in add_block_to_ranges() 160 ranges.push_back(new_block); in add_block_to_ranges() 161 ranges.push_back(new_block + 1); in add_block_to_ranges() 263 std::vector<int> ranges; in produce_block_map() local 311 add_block_to_ranges(ranges, block); in produce_block_map() 347 add_block_to_ranges(ranges, block); in produce_block_map() 359 android::base::StringPrintf("%zu\n", ranges.size() / 2), mapfd.get())) { in produce_block_map() 363 for (size_t i = 0; i < ranges.size(); i += 2) { in produce_block_map() [all …]
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 1723 Value* ranges; in RangeSha1Fn() local 1725 if (ReadValueArgs(state, argv, 2, &blockdev_filename, &ranges) < 0) { in RangeSha1Fn() 1728 std::unique_ptr<Value, decltype(&FreeValue)> ranges_holder(ranges, FreeValue); in RangeSha1Fn() 1737 if (ranges->type != VAL_STRING) { in RangeSha1Fn() 1751 parse_range(ranges->data, rs); in RangeSha1Fn() 1843 std::unique_ptr<Value, decltype(&FreeValue)> ranges(arg_ranges, FreeValue); in BlockImageRecoverFn() local 1849 if (ranges->type != VAL_STRING) { in BlockImageRecoverFn() 1879 parse_range(ranges->data, rs); in BlockImageRecoverFn()
|