Home
last modified time | relevance | path

Searched refs:page_size (Results 1 – 25 of 33) sorted by relevance

12

/system/core/mkbootimg/
Dunpack_bootimg.py40 def get_number_of_pages(image_size, page_size): argument
42 return (image_size + page_size - 1) / page_size
74 page_size = kernel_ramdisk_second_info[7]
97 num_kernel_pages = get_number_of_pages(kernel_size, page_size)
98 kernel_offset = page_size * num_header_pages # header occupies a page
101 num_ramdisk_pages = get_number_of_pages(ramdisk_size, page_size)
102 ramdisk_offset = page_size * (num_header_pages + num_kernel_pages
107 second_offset = page_size * (
116 num_second_pages = get_number_of_pages(second_size, page_size)
117 num_recovery_dtbo_pages = get_number_of_pages(recovery_dtbo_size, page_size)
[all …]
/system/core/libunwindstack/tests/
DMemoryRemoteTest.cpp236 size_t page_size = getpagesize(); in TEST_F() local
240 memset(mapping, 0xFF, 3 * page_size); in TEST_F()
241 ASSERT_EQ(0, mprotect(static_cast<char*>(mapping) + page_size, page_size, PROT_NONE)); in TEST_F()
251 ASSERT_EQ(0, munmap(mapping, 3 * page_size)); in TEST_F()
257 size_t read_size = remote.Read(reinterpret_cast<uint64_t>(mapping), dst.data(), page_size * 3); in TEST_F()
259 ASSERT_LE(page_size, read_size); in TEST_F()
269 size_t page_size = getpagesize(); in TEST_F() local
273 memset(mapping, 0xFF, 3 * page_size); in TEST_F()
274 ASSERT_EQ(0, munmap(static_cast<char*>(mapping) + page_size, page_size)); in TEST_F()
285 ASSERT_EQ(0, munmap(mapping, page_size)); in TEST_F()
[all …]
/system/core/fastboot/
Dbootimg_utils.cpp45 const size_t page_mask = src.page_size - 1; in mkbootimg()
79 memcpy(hdr->magic + hdr->page_size, kernel.data(), kernel.size()); in mkbootimg()
80 memcpy(hdr->magic + hdr->page_size + kernel_actual, ramdisk.data(), ramdisk.size()); in mkbootimg()
81 memcpy(hdr->magic + hdr->page_size + kernel_actual + ramdisk_actual, second.data(), in mkbootimg()
83 memcpy(hdr->magic + hdr->page_size + kernel_actual + ramdisk_actual + second_actual, dtb.data(), in mkbootimg()
/system/extras/kexec_tools/
Dkexecload.c75 int page_size = getpagesize(); in main() local
125 atag_size = ROUND_TO_PAGE(get_file_size(atag_file), page_size); in main()
126 zimage_size = ROUND_TO_PAGE(get_file_size(zimage_file), page_size); in main()
/system/update_engine/payload_generator/
Dboot_img_filesystem_unittest.cc41 hdr.page_size = 4096; in GetBootImg()
44 offset += utils::RoundUp(sizeof(hdr), hdr.page_size); in GetBootImg()
46 offset += utils::RoundUp(kernel.size(), hdr.page_size); in GetBootImg()
Dboot_img_filesystem.cc90 uint64_t offset = hdr_.page_size; in GetFiles()
94 offset += utils::RoundUp(hdr_.kernel_size, hdr_.page_size); in GetFiles()
Dboot_img_filesystem.h68 uint32_t page_size; /* flash page size we assume */ member
/system/core/base/
Dmapped_file.cpp35 static off64_t page_size = InitPageSize(); in FromFd() local
36 size_t slop = offset % page_size; in FromFd()
/system/extras/simpleperf/
Devent_fd.cpp155 size_t page_size = sysconf(_SC_PAGE_SIZE); in CreateMappedBuffer() local
156 size_t mmap_len = (mmap_pages + 1) * page_size; in CreateMappedBuffer()
176 mmap_data_buffer_ = reinterpret_cast<char*>(mmap_addr_) + page_size; in CreateMappedBuffer()
177 mmap_data_buffer_size_ = mmap_len_ - page_size; in CreateMappedBuffer()
Dtracing.cpp100 uint32_t GetPageSize() const { return page_size; } in GetPageSize()
107 uint32_t page_size; member in TracingFile
124 page_size = static_cast<uint32_t>(::GetPageSize()); in TracingFile()
186 AppendData(ret, page_size); in BinaryFormat()
216 MoveFromBinaryFormat(page_size, p); in LoadFromBinary()
/system/libufdt/utils/tests/
Dmkdtboimg_acpi_testdata.sh51 mkdtimg create ${MKDTIMG_OUT}/create_acpi.img --dt_type=acpi --page_size=2048 --id=0x100 --rev=0x10…
55 ../src/mkdtboimg.py create ${MKDTBOIMG_OUTCREATE}/create_acpi.img --dt_type=acpi --page_size=2048 …
Dmkdtboimg_testdata.sh55 mkdtimg create ${MKDTIMG_OUT}/create.img --page_size=4096 --id=0x100 --version=1\
62 ../src/mkdtboimg.py create ${MKDTBOIMG_OUTCREATE}/create.img --page_size=4096 \
Dmkdtimg_acpi_testdata.sh54 mkdtimg create "$IMG" --dt_type=acpi --page_size=2048 --id=0x100 --rev=0x100 --version=1 \
Dmkdtimg_testdata.sh53 --page_size=4096 --id=/:board_id --rev=/:board_rev --custom0=0xabc --version=1 \
/system/libufdt/utils/tests/data/
Dmkdtimg_acpi.cfg3 page_size=2048
Dmkdtboimg_acpi.cfg3 page_size=2048
Dmkdtimg.cfg2 page_size=4096
Dmkdtboimg.cfg2 page_size=4096
/system/core/libmemunreachable/
DHeapWalker.cpp177 const size_t page_size = sysconf(_SC_PAGE_SIZE); in MapOverPage() local
178 void* page = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(addr) & ~(page_size - 1)); in MapOverPage()
180 void* ret = mmap(page, page_size, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE | MAP_FIXED, -1, 0); in MapOverPage()
/system/libufdt/utils/src/
Dmkdtimg_core.c42 uint32_t page_size; member
74 options->page_size = DT_TABLE_DEFAULT_PAGE_SIZE; in init_dt_global_options()
186 header.page_size = cpu_to_fdt32(options->page_size); in output_img_header()
300 global_options->page_size = strtoul(value, NULL, 0); in set_global_options()
Ddt_table.c39 header->page_size = cpu_to_fdt32(DT_TABLE_DEFAULT_PAGE_SIZE); in dt_table_header_init()
Ddt_table.h43 uint32_t page_size; /* flash page size we assume */ member
/system/core/debuggerd/libdebuggerd/test/
Ddump_memory_test.cpp563 size_t page_size = sysconf(_SC_PAGE_SIZE); in TEST_F() local
564 uintptr_t addr = 0x10000020 + page_size - 120; in TEST_F()
622 size_t page_size = sysconf(_SC_PAGE_SIZE); in TEST_F() local
623 uintptr_t addr = 0x10000020 + page_size - 192; in TEST_F()
739 size_t page_size = sysconf(_SC_PAGE_SIZE); in TEST_F() local
740 uintptr_t addr = 0x10000020 + page_size - 256; in TEST_F()
/system/core/libmemunreachable/tests/
DHeapWalker_test.cpp200 const size_t page_size = sysconf(_SC_PAGE_SIZE); in TEST_F() local
201 void* buffer1 = mmap(NULL, page_size, PROT_NONE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in TEST_F()
208 heap_walker.Allocation(buffer_begin(buffer1), buffer_begin(buffer1) + page_size); in TEST_F()
/system/core/mkbootimg/include/bootimg/
Dbootimg.h43 uint32_t page_size; /* flash page size we assume */ member

12