/external/ltp/testcases/kernel/syscalls/mincore/ |
D | mincore02.c | 47 static int num_pages = 4; variable 53 munlock(addr, page_size * num_pages); in cleanup() 54 munmap(addr, page_size * num_pages); in cleanup() 70 size = page_size * num_pages; in setup() 111 if (mincore(addr, num_pages * page_size, vec) == -1) { in main() 119 for (counter = 0; counter < num_pages; counter++) { in main() 124 if (lock_pages == num_pages) { in main() 125 tst_resm(TPASS, "%d pages locked, %d pages in-core", num_pages, in main() 130 num_pages, lock_pages); in main()
|
/external/google-breakpad/src/common/ |
D | memory.h | 108 if ((p >= current) && (p < current + header->num_pages * page_size_)) in OwnsPointer() 116 uint8_t *GetNPages(size_t num_pages) { in GetNPages() argument 119 void *a = sys_mmap(NULL, page_size_ * num_pages, PROT_READ | PROT_WRITE, in GetNPages() 122 void *a = sys_mmap2(NULL, page_size_ * num_pages, PROT_READ | PROT_WRITE, in GetNPages() 131 __msan_unpoison(a, page_size_ * num_pages); in GetNPages() 136 header->num_pages = num_pages; in GetNPages() 147 sys_munmap(cur, cur->num_pages * page_size_); in FreeAll() 153 size_t num_pages; // the number of pages in this set. member
|
/external/u-boot/lib/efi_loader/ |
D | efi_memory.c | 42 u64 num_pages; member 98 uint64_t map_end = map_start + (map_desc->num_pages << EFI_PAGE_SHIFT); in efi_mem_carve_out() 101 (carve_desc->num_pages << EFI_PAGE_SHIFT); in efi_mem_carve_out() 123 map->desc.num_pages = (map_end - carve_end) in efi_mem_carve_out() 141 newmap->desc.num_pages = (map_end - carve_start) >> EFI_PAGE_SHIFT; in efi_mem_carve_out() 146 map_desc->num_pages = (carve_start - map_start) >> EFI_PAGE_SHIFT; in efi_mem_carve_out() 169 newlist->desc.num_pages = pages; in efi_add_memory_map() 251 uint64_t desc_len = desc->num_pages << EFI_PAGE_SHIFT; in efi_find_free_memory() 384 u64 num_pages = (size + sizeof(struct efi_pool_allocation) + in efi_allocate_pool() local 392 r = efi_allocate_pages(EFI_ALLOCATE_ANY_PAGES, pool_type, num_pages, in efi_allocate_pool() [all …]
|
D | efi_runtime.c | 296 (map->num_pages << EFI_PAGE_SHIFT)))) { in efi_runtime_relocate() 336 efi_physical_addr_t map_len = map->num_pages << EFI_PAGE_SHIFT; in efi_set_virtual_address_map()
|
/external/u-boot/arch/x86/cpu/efi/ |
D | payload.c | 51 if (!largest || desc->num_pages > largest->num_pages) in board_get_usable_ram_top() 57 if (!largest || (largest->num_pages << EFI_PAGE_SHIFT) < (2 << 20)) in board_get_usable_ram_top() 60 dest_addr = largest->physical_start + (largest->num_pages << in board_get_usable_ram_top() 87 gd->ram_size += desc->num_pages << EFI_PAGE_SHIFT; in dram_init() 116 (desc->num_pages << EFI_PAGE_SHIFT) < 1 << 20) in dram_init_banksize() 119 gd->bd->bi_dram[num_banks].size = desc->num_pages << in dram_init_banksize()
|
/external/perfetto/src/base/test/ |
D | vm_test_utils.cc | 107 const size_t num_pages = size / kPageSize; in IsMapped() local 108 std::unique_ptr<PageState[]> page_states(new PageState[num_pages]); in IsMapped() 109 memset(page_states.get(), 0, num_pages * sizeof(PageState)); in IsMapped() 116 for (size_t i = 0; i < num_pages; i++) { in IsMapped()
|
/external/ltp/testcases/kernel/syscalls/mmap/ |
D | mmap12.c | 57 int num_pages; in page_check() local 67 num_pages = MMAPSIZE / page_sz; in page_check() 85 while (i <= num_pages) { in page_check()
|
/external/u-boot/cmd/ |
D | efi.c | 106 prev->num_pages += desc->num_pages; in efi_build_mem_table() 111 addr = desc->physical_start + (desc->num_pages << in efi_build_mem_table() 146 size = desc->num_pages << EFI_PAGE_SHIFT; in efi_print_mem_table()
|
/external/v8/src/builtins/ |
D | builtins-wasm-gen.cc | 92 TNode<Int32T> num_pages = in TF_BUILTIN() local 97 IsValidPositiveSmi(ChangeInt32ToIntPtr(num_pages)); in TF_BUILTIN() 100 TNode<Smi> num_pages_smi = SmiFromInt32(num_pages); in TF_BUILTIN()
|
/external/kernel-headers/original/uapi/linux/ |
D | virtio_balloon.h | 47 __u32 num_pages; member
|
D | kvm.h | 498 __u32 num_pages; member
|
/external/perfetto/include/perfetto/tracing/core/ |
D | shared_memory_abi.h | 437 size_t num_pages() const { return num_pages_; } in num_pages() function 438 bool is_valid() { return num_pages() > 0; } in is_valid()
|
/external/perfetto/src/tracing/core/ |
D | shared_memory_arbiter_impl.cc | 79 for (size_t i = 0; i < shmem_abi_.num_pages(); i++) { in GetNewChunk() 80 page_idx_ = (initial_page_idx + i) % shmem_abi_.num_pages(); in GetNewChunk()
|
D | shared_memory_abi_unittest.cc | 43 ASSERT_EQ(kNumPages, abi.num_pages()); in TEST_P()
|
D | tracing_service_impl.cc | 1211 for (size_t page_idx = 0; page_idx < abi->num_pages(); page_idx++) { in ScrapeSharedMemoryBuffers() 2560 if (page_idx >= shmem_abi_.num_pages()) in CommitData()
|
/external/kernel-headers/original/uapi/rdma/ |
D | ocrdma-abi.h | 88 __u32 num_pages; member
|
/external/u-boot/include/ |
D | efi.h | 189 u64 num_pages; member
|
/external/v8/src/heap/ |
D | spaces.cc | 2567 const int num_pages = static_cast<int>(current_capacity_ / Page::kPageSize); in AllocateChunk() local 2568 for (int pages_added = 0; pages_added < num_pages; pages_added++) { in AllocateChunk() 2643 void SemiSpace::RewindPages(int num_pages) { in AllocateChunk() argument 2644 DCHECK_GT(num_pages, 0); in AllocateChunk() 2646 while (num_pages > 0) { in AllocateChunk() 2650 num_pages--; in AllocateChunk()
|
D | spaces.h | 2542 void RewindPages(int num_pages);
|
/external/v8/src/wasm/ |
D | module-compiler.cc | 316 Handle<JSArrayBuffer> AllocateMemory(uint32_t num_pages); 1808 Handle<JSArrayBuffer> InstanceBuilder::AllocateMemory(uint32_t num_pages) { in AllocateMemory() argument 1809 if (num_pages > FLAG_wasm_max_mem_pages) { in AllocateMemory() 1817 if (!NewArrayBuffer(isolate_, num_pages * kWasmPageSize, shared_flag) in AllocateMemory()
|
/external/pdfium/fxjs/ |
D | cjs_document.h | 270 JS_STATIC_PROP(numPages, num_pages, Document);
|
/external/mesa3d/src/gallium/winsys/amdgpu/drm/ |
D | amdgpu_bo.c | 762 uint32_t start_page, uint32_t num_pages) in sparse_backing_free() argument 764 uint32_t end_page = start_page + num_pages; in sparse_backing_free()
|
/external/squashfs-tools/squashfs-tools/ |
D | mksquashfs.c | 5435 long long num_pages = sysconf(_SC_PHYS_PAGES); in get_physical_memory() local 5437 phys_mem = num_pages * page_size >> 20; in get_physical_memory() 5438 if(num_pages == -1 || page_size == -1) in get_physical_memory()
|