Lines Matching defs:range
92 // add the range to our interval tree and make sure it does not
93 // intersect an existing range
95 "Memory address range for %s is overlapping\n",
129 // if the range is interleaved then save it for now
132 // part of the same range, then first do a merge
144 "range\n");
176 "range\n");
185 PhysicalMemory::createBackingStore(AddrRange range,
190 panic_if(range.interleaved(),
191 "Cannot create backing store for interleaved range %s\n",
192 range.to_string());
195 DPRINTF(AddrRanges, "Creating backing store for range %s with size %d\n",
196 range.to_string(), range.size());
205 uint8_t* pmem = (uint8_t*) mmap(NULL, range.size(),
211 fatal("Could not mmap %d bytes for range %s!\n", range.size(),
212 range.to_string());
217 backingStore.emplace_back(range, pmem,
232 munmap((char*)s.pmem, s.range.size());
250 // if the range is interleaved then save it for now
253 // part of the same range, then first do a merge
262 // keep the current range
321 serializeStore(cp, store_id++, s.range, s.pmem);
327 AddrRange range, uint8_t* pmem) const
329 // we cannot use the address range for the name as the
332 long range_size = range.size();
351 for (uint64_t written = 0; written < range.size();
353 pass_size = (uint64_t)INT_MAX < (range.size() - written) ?
354 (uint64_t)INT_MAX : (range.size() - written);
415 AddrRange range = backingStore[store_id].range;
423 if (range_size != range.size())
424 fatal("Memory range size has changed! Saw %lld, expected %lld\n",
425 range_size, range.size());
431 while (curr_size < range.size()) {