Lines Matching refs:range
26 MappedRange range; in MapWithID() local
27 range.real_addr = real_addr; in MapWithID()
28 range.size = size; in MapWithID()
29 range.id = id; in MapWithID()
30 range.offset_base = offset_base; in MapWithID()
53 if (!iter->Intersects(range)) in MapWithID()
58 if (!old_range_found && iter->Covers(range) && iter->size > range.size) { in MapWithID()
67 const MappedRange& range = mappings_to_delete.front(); in MapWithID() local
68 CHECK(Unmap(range)); in MapWithID()
77 uint64_t gap_before = range.real_addr - old_range.real_addr; in MapWithID()
79 (range.real_addr + range.size); in MapWithID()
89 CHECK(MapWithID(range.real_addr, range.size, id, offset_base, false)); in MapWithID()
92 CHECK(MapWithID(range.real_addr + range.size, in MapWithID()
95 old_range.offset_base + gap_before + range.size, in MapWithID()
107 range.mapped_addr = 0; in MapWithID()
108 range.unmapped_space_after = kuint64max - range.size; in MapWithID()
109 mappings_.push_back(range); in MapWithID()
114 if (mappings_.begin()->mapped_addr >= range.size) { in MapWithID()
115 range.mapped_addr = 0; in MapWithID()
116 range.unmapped_space_after = mappings_.begin()->mapped_addr - range.size; in MapWithID()
117 mappings_.push_front(range); in MapWithID()
124 if (iter->unmapped_space_after < range.size) in MapWithID()
127 range.mapped_addr = iter->mapped_addr + iter->size; in MapWithID()
128 range.unmapped_space_after = iter->unmapped_space_after - range.size; in MapWithID()
131 mappings_.insert(++iter, range); in MapWithID()
195 bool AddressMapper::Unmap(const MappedRange& range) { in Unmap() argument
202 if (range.real_addr == iter->real_addr && range.size == iter->size) { in Unmap()
207 iter->unmapped_space_after += range.size + range.unmapped_space_after; in Unmap()