Home
last modified time | relevance | path

Searched refs:num_pages (Results 1 – 23 of 23) sorted by relevance

/external/ltp/testcases/kernel/syscalls/mincore/
Dmincore02.c47 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/
Dmemory.h108 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/
Defi_memory.c42 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 …]
Defi_runtime.c296 (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/
Dpayload.c51 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/
Dvm_test_utils.cc107 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/
Dmmap12.c57 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/
Defi.c106 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/
Dbuiltins-wasm-gen.cc92 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/
Dvirtio_balloon.h47 __u32 num_pages; member
Dkvm.h498 __u32 num_pages; member
/external/perfetto/include/perfetto/tracing/core/
Dshared_memory_abi.h437 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/
Dshared_memory_arbiter_impl.cc79 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()
Dshared_memory_abi_unittest.cc43 ASSERT_EQ(kNumPages, abi.num_pages()); in TEST_P()
Dtracing_service_impl.cc1211 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/
Docrdma-abi.h88 __u32 num_pages; member
/external/u-boot/include/
Defi.h189 u64 num_pages; member
/external/v8/src/heap/
Dspaces.cc2567 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()
Dspaces.h2542 void RewindPages(int num_pages);
/external/v8/src/wasm/
Dmodule-compiler.cc316 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/
Dcjs_document.h270 JS_STATIC_PROP(numPages, num_pages, Document);
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_bo.c762 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/
Dmksquashfs.c5435 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()