Lines Matching refs:page_aligned_byte_count

244   size_t page_aligned_byte_count = RoundUp(byte_count, kPageSize);  in MapAnonymous()  local
258 (page_aligned_byte_count < rlimit_fsize.rlim_cur); in MapAnonymous()
265 fd.reset(ashmem_create_region(debug_friendly_name.c_str(), page_aligned_byte_count)); in MapAnonymous()
284 (reinterpret_cast<uintptr_t>(expected_ptr + page_aligned_byte_count) >> 32) != 0)) { in MapAnonymous()
286 expected_ptr, expected_ptr + page_aligned_byte_count); in MapAnonymous()
302 if (4U * GB - ptr < page_aligned_byte_count) { in MapAnonymous()
319 for (tail_ptr = ptr; tail_ptr < ptr + page_aligned_byte_count; tail_ptr += kPageSize) { in MapAnonymous()
331 actual = mmap(reinterpret_cast<void*>(ptr), page_aligned_byte_count, prot, flags, fd.get(), in MapAnonymous()
336 if (reinterpret_cast<uintptr_t>(actual) + page_aligned_byte_count < 4 * GB) { in MapAnonymous()
339 munmap(actual, page_aligned_byte_count); in MapAnonymous()
354 actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous()
365 void* actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous()
374 expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), in MapAnonymous()
379 if (!CheckMapRequest(expected_ptr, actual, page_aligned_byte_count, error_msg)) { in MapAnonymous()
383 page_aligned_byte_count, prot, false); in MapAnonymous()
418 size_t page_aligned_byte_count = RoundUp(byte_count + page_offset, kPageSize); in MapFileAtAddress() local
424 page_aligned_byte_count, in MapFileAtAddress()
437 page_aligned_expected, page_aligned_byte_count, prot, flags, fd, in MapFileAtAddress()
443 if (!CheckMapRequest(expected_ptr, actual, page_aligned_byte_count, error_msg)) { in MapFileAtAddress()
446 return new MemMap(filename, actual + page_offset, byte_count, actual, page_aligned_byte_count, in MapFileAtAddress()