/system/tools/mkbootimg/ |
D | unpack_bootimg.py | 42 def get_number_of_pages(image_size, page_size): argument 44 return (image_size + page_size - 1) // page_size 115 page_size = kernel_ramdisk_second_info[7] 120 page_size = BOOT_IMAGE_HEADER_V3_PAGESIZE 143 num_kernel_pages = get_number_of_pages(kernel_size, page_size) 144 kernel_offset = page_size * num_header_pages # header occupies a page 147 num_ramdisk_pages = get_number_of_pages(ramdisk_size, page_size) 148 ramdisk_offset = page_size * (num_header_pages + num_kernel_pages 153 second_offset = page_size * ( 162 num_second_pages = get_number_of_pages(second_size, page_size) [all …]
|
/system/core/libunwindstack/tests/ |
D | MemoryRemoteTest.cpp | 219 size_t page_size = getpagesize(); in TEST() local 223 memset(mapping, 0xFF, 3 * page_size); in TEST() 224 ASSERT_EQ(0, mprotect(static_cast<char*>(mapping) + page_size, page_size, PROT_NONE)); in TEST() 234 ASSERT_EQ(0, munmap(mapping, 3 * page_size)); in TEST() 240 size_t read_size = remote.Read(reinterpret_cast<uint64_t>(mapping), dst.data(), page_size * 3); in TEST() 242 ASSERT_LE(page_size, read_size); in TEST() 254 size_t page_size = getpagesize(); in TEST() local 258 memset(mapping, 0xFF, 3 * page_size); in TEST() 259 ASSERT_EQ(0, munmap(static_cast<char*>(mapping) + page_size, page_size)); in TEST() 270 ASSERT_EQ(0, munmap(mapping, page_size)); in TEST() [all …]
|
/system/update_engine/payload_generator/ |
D | boot_img_filesystem_unittest.cc | 39 constexpr uint32_t page_size = 4096; in GetBootImg() local 49 offset += utils::RoundUp(sizeof(hdr_v3), page_size); in GetBootImg() 55 hdr_v0.page_size = page_size; in GetBootImg() 58 offset += utils::RoundUp(sizeof(hdr_v0), page_size); in GetBootImg() 61 offset += utils::RoundUp(kernel.size(), page_size); in GetBootImg()
|
/system/core/fastboot/ |
D | bootimg_utils.cpp | 85 const size_t page_mask = src.page_size - 1; in mkbootimg() 119 memcpy(hdr->magic + hdr->page_size, kernel.data(), kernel.size()); in mkbootimg() 120 memcpy(hdr->magic + hdr->page_size + kernel_actual, ramdisk.data(), ramdisk.size()); in mkbootimg() 121 memcpy(hdr->magic + hdr->page_size + kernel_actual + ramdisk_actual, second.data(), in mkbootimg() 123 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/libbase/ |
D | cmsg.cpp | 34 static const size_t page_size = sysconf(_SC_PAGE_SIZE); in SendFileDescriptorVector() local 37 if (cmsg_space >= page_size) { in SendFileDescriptorVector() 78 static const size_t page_size = sysconf(_SC_PAGE_SIZE); in ReceiveFileDescriptorVector() local 80 if (cmsg_space >= page_size) { in ReceiveFileDescriptorVector()
|
D | mapped_file.cpp | 49 static const off64_t page_size = InitPageSize(); in FromOsHandle() local 50 size_t slop = offset % page_size; in FromOsHandle()
|
/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/tools/mkbootimg/include/bootimg/ |
D | bootimg.h | 74 uint32_t page_size; /* flash page size we assume */ member 284 uint32_t page_size; /* flash page size we assume */ member
|
/system/core/debuggerd/libdebuggerd/test/ |
D | dump_memory_test.cpp | 506 size_t page_size = sysconf(_SC_PAGE_SIZE); in TEST_F() local 507 uintptr_t addr = 0x10000020 + page_size - 120; in TEST_F() 567 size_t page_size = sysconf(_SC_PAGE_SIZE); in TEST_F() local 568 uintptr_t addr = 0x10000020 + page_size - 192; in TEST_F() 647 size_t page_size = sysconf(_SC_PAGE_SIZE); in TEST_F() local 648 uintptr_t addr = 0x10000020 + page_size - 256; in TEST_F()
|
/system/extras/simpleperf/ |
D | event_fd.cpp | 162 size_t page_size = sysconf(_SC_PAGE_SIZE); in CreateMappedBuffer() local 163 size_t mmap_len = (mmap_pages + 1) * page_size; in CreateMappedBuffer() 183 mmap_data_buffer_ = reinterpret_cast<char*>(mmap_addr_) + page_size; in CreateMappedBuffer() 184 mmap_data_buffer_size_ = mmap_len_ - page_size; in CreateMappedBuffer()
|
/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
|
D | mkdtboimg.py | 220 self.dt_entries_offset, self.page_size, 266 self.page_size, self.version) = struct.unpack_from('>8I', buf, 0) 352 def __init__(self, file_handle, dt_type='dtb', page_size=None, version=0): argument 368 if page_size: 378 self.page_size = page_size 811 dtbo = Dtbo(fout, global_args.dt_type, global_args.page_size, global_args.version)
|
/system/memory/libmemunreachable/ |
D | HeapWalker.cpp | 195 const size_t page_size = sysconf(_SC_PAGE_SIZE); in MapOverPage() local 196 void* page = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(addr) & ~(page_size - 1)); in MapOverPage() 198 void* ret = mmap(page, page_size, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE | MAP_FIXED, -1, 0); in MapOverPage()
|
/system/memory/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/libufdt/utils/ |
D | README.md | 100 The default value of `page_size` in `dt_table_header` is `2048`. You can 101 use `global_option` `--page_size=<number>` to assign a different value. 197 page_size = 2048
|