Lines Matching refs:addr_page
475 uint64_t addr_page = addr >> kCacheBits; in InternalCachedRead() local
476 auto entry = cache->find(addr_page); in InternalCachedRead()
481 cache_dst = (*cache)[addr_page]; in InternalCachedRead()
482 if (!impl_->ReadFully(addr_page << kCacheBits, cache_dst, kCacheSize)) { in InternalCachedRead()
484 cache->erase(addr_page); in InternalCachedRead()
488 size_t max_read = ((addr_page + 1) << kCacheBits) - addr; in InternalCachedRead()
498 addr_page++; in InternalCachedRead()
500 entry = cache->find(addr_page); in InternalCachedRead()
504 cache_dst = (*cache)[addr_page]; in InternalCachedRead()
505 if (!impl_->ReadFully(addr_page << kCacheBits, cache_dst, kCacheSize)) { in InternalCachedRead()
507 cache->erase(addr_page); in InternalCachedRead()
508 return impl_->Read(addr_page << kCacheBits, dst, size - max_read) + max_read; in InternalCachedRead()