/system/core/mkbootimg/ |
D | unpack_bootimg.py | 40 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/ |
D | MemoryRemoteTest.cpp | 236 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/ |
D | bootimg_utils.cpp | 45 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/ |
D | kexecload.c | 75 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/ |
D | boot_img_filesystem_unittest.cc | 41 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()
|
D | boot_img_filesystem.cc | 90 uint64_t offset = hdr_.page_size; in GetFiles() 94 offset += utils::RoundUp(hdr_.kernel_size, hdr_.page_size); in GetFiles()
|
D | boot_img_filesystem.h | 68 uint32_t page_size; /* flash page size we assume */ member
|
/system/core/base/ |
D | mapped_file.cpp | 35 static off64_t page_size = InitPageSize(); in FromFd() local 36 size_t slop = offset % page_size; in FromFd()
|
/system/extras/simpleperf/ |
D | event_fd.cpp | 155 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()
|
D | tracing.cpp | 100 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/ |
D | mkdtboimg_acpi_testdata.sh | 51 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 …
|
D | mkdtboimg_testdata.sh | 55 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 \
|
D | mkdtimg_acpi_testdata.sh | 54 mkdtimg create "$IMG" --dt_type=acpi --page_size=2048 --id=0x100 --rev=0x100 --version=1 \
|
D | mkdtimg_testdata.sh | 53 --page_size=4096 --id=/:board_id --rev=/:board_rev --custom0=0xabc --version=1 \
|
/system/libufdt/utils/tests/data/ |
D | mkdtimg_acpi.cfg | 3 page_size=2048
|
D | mkdtboimg_acpi.cfg | 3 page_size=2048
|
D | mkdtimg.cfg | 2 page_size=4096
|
D | mkdtboimg.cfg | 2 page_size=4096
|
/system/core/libmemunreachable/ |
D | HeapWalker.cpp | 177 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/ |
D | mkdtimg_core.c | 42 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()
|
D | dt_table.c | 39 header->page_size = cpu_to_fdt32(DT_TABLE_DEFAULT_PAGE_SIZE); in dt_table_header_init()
|
D | dt_table.h | 43 uint32_t page_size; /* flash page size we assume */ member
|
/system/core/debuggerd/libdebuggerd/test/ |
D | dump_memory_test.cpp | 563 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/ |
D | HeapWalker_test.cpp | 200 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/ |
D | bootimg.h | 43 uint32_t page_size; /* flash page size we assume */ member
|