Home
last modified time | relevance | path

Searched refs:alloc_pages (Results 1 – 25 of 129) sorted by relevance

123456

/openbmc/linux/lib/
H A Dfortify_kunit.c212 #define TEST_vmalloc(checker, expected_pages, alloc_pages) do { \ argument
215 vmalloc((alloc_pages) * PAGE_SIZE), vfree(p)); \
217 vzalloc((alloc_pages) * PAGE_SIZE), vfree(p)); \
219 __vmalloc((alloc_pages) * PAGE_SIZE, gfp), vfree(p)); \
224 #define TEST_kvmalloc(checker, expected_pages, alloc_pages) do { \ argument
230 kvmalloc((alloc_pages) * PAGE_SIZE, gfp), \
233 kvmalloc_node((alloc_pages) * PAGE_SIZE, gfp, NUMA_NO_NODE), \
236 kvzalloc((alloc_pages) * PAGE_SIZE, gfp), \
239 kvzalloc_node((alloc_pages) * PAGE_SIZE, gfp, NUMA_NO_NODE), \
242 kvcalloc(1, (alloc_pages) * PAGE_SIZE, gfp), \
[all …]
H A Dtest_meminit.c69 page = alloc_pages(GFP_KERNEL, order); in do_alloc_pages_order()
76 page = alloc_pages(GFP_KERNEL, order); in do_alloc_pages_order()
/openbmc/linux/mm/
H A Dpercpu-km.c65 pages = alloc_pages(gfp, order_base_2(nr_pages)); in pcpu_create_chunk()
109 size_t nr_pages, alloc_pages; in pcpu_verify_alloc_info() local
118 alloc_pages = roundup_pow_of_two(nr_pages); in pcpu_verify_alloc_info()
120 if (alloc_pages > nr_pages) in pcpu_verify_alloc_info()
122 alloc_pages - nr_pages); in pcpu_verify_alloc_info()
/openbmc/linux/drivers/xen/
H A Dunpopulated-alloc.c39 unsigned int i, alloc_pages = round_up(nr_pages, PAGES_PER_SECTION); in fill_list() local
53 alloc_pages * PAGE_SIZE, mhp_range.start, mhp_range.end, in fill_list()
111 for (i = 0; i < alloc_pages; i++) { in fill_list()
128 for (i = 0; i < alloc_pages; i++) { in fill_list()
/openbmc/linux/include/linux/
H A Dgfp.h264 struct page *alloc_pages(gfp_t gfp, unsigned int order);
269 static inline struct page *alloc_pages(gfp_t gfp_mask, unsigned int order) in alloc_pages() function
280 #define alloc_page(gfp_mask) alloc_pages(gfp_mask, 0)
/openbmc/linux/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_misc.c53 u64 npages, bool alloc_pages) in pvrdma_page_dir_init() argument
83 if (alloc_pages) { in pvrdma_page_dir_init()
/openbmc/linux/mm/kmsan/
H A Dhooks.c166 shadow = alloc_pages(gfp_mask, 1); in kmsan_ioremap_page_range()
167 origin = alloc_pages(gfp_mask, 1); in kmsan_ioremap_page_range()
/openbmc/linux/Documentation/translations/zh_CN/core-api/
H A Dmemory-allocation.rst21 你可以用 alloc_pages 直接向页面分配器请求页面。也可以使用更专业的分配器,
/openbmc/linux/drivers/accel/ivpu/
H A Divpu_gem.c64 .alloc_pages = prime_alloc_pages_locked,
137 .alloc_pages = shmem_alloc_pages_locked,
189 .alloc_pages = internal_alloc_pages_locked,
203 ret = bo->ops->alloc_pages(bo); in ivpu_bo_alloc_and_map_pages_locked()
H A Divpu_gem.h45 int (*alloc_pages)(struct ivpu_bo *bo); member
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_chain.c273 goto alloc_pages; in qed_chain_alloc_pbl()
288 alloc_pages: in qed_chain_alloc_pbl()
/openbmc/linux/mm/kasan/
H A Dkasan_test.c277 pages = alloc_pages(GFP_KERNEL, order); in pagealloc_oob_right()
291 pages = alloc_pages(GFP_KERNEL, order); in pagealloc_uaf()
1324 p_page = alloc_pages(GFP_KERNEL, 1); in vmap_tags()
1365 page = alloc_pages(GFP_KERNEL, 1); in vm_map_ram_tags()
1408 pages = alloc_pages(GFP_KERNEL, order); in match_all_not_assigned()
/openbmc/linux/arch/powerpc/include/asm/book3s/64/
H A Dpgalloc.h31 page = alloc_pages(pgtable_gfp_flags(mm, PGALLOC_GFP | __GFP_RETRY_MAYFAIL), in radix__pgd_alloc()
/openbmc/linux/arch/mips/jazz/
H A Djazzdma.c501 page = alloc_pages(gfp, get_order(size)); in jazz_dma_alloc()
620 .alloc_pages = dma_common_alloc_pages,
/openbmc/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_internal.c75 page = alloc_pages(gfp | (order ? QUIET : MAYFAIL), in i915_gem_object_get_pages_internal()
/openbmc/linux/drivers/tee/optee/
H A Dcore.c37 page = alloc_pages(GFP_KERNEL | __GFP_ZERO, order); in optee_pool_op_alloc_helper()
/openbmc/linux/fs/ramfs/
H A Dfile-nommu.c84 pages = alloc_pages(gfp, order); in ramfs_nommu_expand_for_mapping()
/openbmc/linux/arch/powerpc/kernel/
H A Ddma-iommu.c219 .alloc_pages = dma_common_alloc_pages,
/openbmc/linux/arch/x86/kernel/
H A Dkvmclock.c215 p = alloc_pages(GFP_KERNEL, order); in kvmclock_init_mem()
/openbmc/linux/arch/x86/platform/efi/
H A Dmemmap.c25 struct page *p = alloc_pages(GFP_KERNEL, order); in __efi_memmap_alloc_late()
/openbmc/linux/drivers/staging/media/ipu3/
H A Dipu3-dmamap.c58 page = alloc_pages((order_mask - order_size) ? in imgu_dmamap_alloc_buffer()
/openbmc/linux/kernel/dma/
H A Dpool.c96 page = alloc_pages(gfp, order); in atomic_pool_expand()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/
H A Dpaging.c72 block = alloc_pages(GFP_KERNEL, order); in iwl_alloc_fw_paging_mem()
/openbmc/linux/arch/s390/pci/
H A Dpci_dma.c427 page = alloc_pages(flag | __GFP_ZERO, get_order(size)); in s390_dma_alloc()
724 .alloc_pages = dma_common_alloc_pages,
/openbmc/linux/arch/powerpc/platforms/ps3/
H A Dsystem-bus.c698 .alloc_pages = dma_common_alloc_pages,
712 .alloc_pages = dma_common_alloc_pages,

123456