• Home
  • Raw
  • Download

Lines Matching refs:real_addr

15 bool AddressMapper::Map(const uint64_t real_addr,  in Map()  argument
18 return MapWithID(real_addr, size, kuint64max, 0, remove_existing_mappings); in Map()
21 bool AddressMapper::MapWithID(const uint64_t real_addr, in MapWithID() argument
27 range.real_addr = real_addr; in MapWithID()
38 if (real_addr + size - 1 != kuint64max && in MapWithID()
39 !(real_addr + size > real_addr)) { in MapWithID()
41 LOG(ERROR) << "Address mapping at " << std::hex << real_addr in MapWithID()
77 uint64_t gap_before = range.real_addr - old_range.real_addr; in MapWithID()
78 uint64_t gap_after = (old_range.real_addr + old_range.size) - in MapWithID()
79 (range.real_addr + range.size); in MapWithID()
82 CHECK(MapWithID(old_range.real_addr, 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()
138 LOG(ERROR) << "Could not find space to map addr=" << std::hex << real_addr in MapWithID()
146 LOG(INFO) << " real_addr: " << std::hex << it->real_addr in DumpToLog()
153 bool AddressMapper::GetMappedAddress(const uint64_t real_addr, in GetMappedAddress() argument
158 if (!iter->ContainsAddress(real_addr)) in GetMappedAddress()
160 *mapped_addr = iter->mapped_addr + real_addr - iter->real_addr; in GetMappedAddress()
166 bool AddressMapper::GetMappedIDAndOffset(const uint64_t real_addr, in GetMappedIDAndOffset() argument
173 if (!iter->ContainsAddress(real_addr)) in GetMappedIDAndOffset()
176 *offset = real_addr - iter->real_addr + iter->offset_base; in GetMappedIDAndOffset()
202 if (range.real_addr == iter->real_addr && range.size == iter->size) { in Unmap()