/linux-master/mm/ |
H A D | percpu-km.c | 25 * kernel memory block using alloc_pages(), memory will be wasted if 65 pages = alloc_pages(gfp, order_base_2(nr_pages)); 109 size_t nr_pages, alloc_pages; local 118 alloc_pages = roundup_pow_of_two(nr_pages); 120 if (alloc_pages > nr_pages) 122 alloc_pages - nr_pages);
|
/linux-master/drivers/xen/ |
H A D | unpopulated-alloc.c | 39 unsigned int i, alloc_pages = round_up(nr_pages, PAGES_PER_SECTION); local 53 alloc_pages * PAGE_SIZE, mhp_range.start, mhp_range.end, 111 for (i = 0; i < alloc_pages; i++) { 128 for (i = 0; i < alloc_pages; i++) {
|
H A D | grant-dma-ops.c | 285 .alloc_pages = xen_grant_dma_alloc_pages,
|
/linux-master/arch/riscv/kernel/ |
H A D | unaligned_access_speed.c | 194 buf = alloc_pages(GFP_KERNEL, MISALIGNED_BUFFER_ORDER); 233 bufs[cpu] = alloc_pages(GFP_KERNEL, MISALIGNED_BUFFER_ORDER);
|
/linux-master/include/linux/ |
H A D | gfp.h | 265 struct page *alloc_pages(gfp_t gfp, unsigned int order); 272 static inline struct page *alloc_pages(gfp_t gfp_mask, unsigned int order) function 279 return alloc_pages(gfp, order); 288 #define alloc_page(gfp_mask) alloc_pages(gfp_mask, 0)
|
/linux-master/lib/ |
H A D | fortify_kunit.c | 251 #define TEST_vmalloc(checker, expected_pages, alloc_pages) do { \ 254 vmalloc((alloc_pages) * PAGE_SIZE), vfree(p)); \ 256 vzalloc((alloc_pages) * PAGE_SIZE), vfree(p)); \ 258 __vmalloc((alloc_pages) * PAGE_SIZE, gfp), vfree(p)); \ 263 #define TEST_kvmalloc(checker, expected_pages, alloc_pages) do { \ 269 kvmalloc((alloc_pages) * PAGE_SIZE, gfp), \ 272 kvmalloc_node((alloc_pages) * PAGE_SIZE, gfp, NUMA_NO_NODE), \ 275 kvzalloc((alloc_pages) * PAGE_SIZE, gfp), \ 278 kvzalloc_node((alloc_pages) * PAGE_SIZE, gfp, NUMA_NO_NODE), \ 281 kvcalloc(1, (alloc_pages) * PAGE_SIZ [all...] |
H A D | test_meminit.c | 69 page = alloc_pages(GFP_KERNEL, order); 76 page = alloc_pages(GFP_KERNEL, order); 90 /* Test the page allocator by calling alloc_pages with different orders. */
|
H A D | test_lockup.c | 310 page = alloc_pages(alloc_pages_gfp, alloc_pages_order);
|
/linux-master/arch/powerpc/include/asm/book3s/64/ |
H A D | pgalloc.h | 31 page = alloc_pages(pgtable_gfp_flags(mm, PGALLOC_GFP | __GFP_RETRY_MAYFAIL),
|
/linux-master/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_internal.c | 75 page = alloc_pages(gfp | (order ? QUIET : MAYFAIL),
|
/linux-master/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_chain.c | 273 goto alloc_pages; 288 alloc_pages:
|
/linux-master/drivers/infiniband/hw/vmw_pvrdma/ |
H A D | pvrdma_misc.c | 53 u64 npages, bool alloc_pages) 83 if (alloc_pages) { 52 pvrdma_page_dir_init(struct pvrdma_dev *dev, struct pvrdma_page_dir *pdir, u64 npages, bool alloc_pages) argument
|
H A D | pvrdma.h | 541 u64 npages, bool alloc_pages);
|
/linux-master/mm/kmsan/ |
H A D | hooks.c | 166 shadow = alloc_pages(gfp_mask, 1); 167 origin = alloc_pages(gfp_mask, 1);
|
/linux-master/arch/mips/jazz/ |
H A D | jazzdma.c | 501 page = alloc_pages(gfp, get_order(size)); 620 .alloc_pages = dma_common_alloc_pages,
|
/linux-master/drivers/staging/media/ipu3/ |
H A D | ipu3-dmamap.c | 58 page = alloc_pages((order_mask - order_size) ?
|
/linux-master/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | paging.c | 72 block = alloc_pages(GFP_KERNEL, order);
|
/linux-master/arch/powerpc/kernel/ |
H A D | dma-iommu.c | 219 .alloc_pages = dma_common_alloc_pages,
|
/linux-master/arch/x86/platform/efi/ |
H A D | memmap.c | 25 struct page *p = alloc_pages(GFP_KERNEL, order);
|
/linux-master/kernel/dma/ |
H A D | pool.c | 96 page = alloc_pages(gfp, order);
|
/linux-master/fs/ramfs/ |
H A D | file-nommu.c | 84 pages = alloc_pages(gfp, order);
|
/linux-master/arch/x86/kernel/ |
H A D | kvmclock.c | 215 p = alloc_pages(GFP_KERNEL, order);
|
/linux-master/arch/powerpc/platforms/ps3/ |
H A D | system-bus.c | 698 .alloc_pages = dma_common_alloc_pages, 712 .alloc_pages = dma_common_alloc_pages,
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gart.c | 130 p = alloc_pages(gfp_flags, order);
|
/linux-master/mm/kasan/ |
H A D | kasan_test.c | 290 pages = alloc_pages(GFP_KERNEL, order); 304 pages = alloc_pages(GFP_KERNEL, order); 1708 p_page = alloc_pages(GFP_KERNEL, 1); 1749 page = alloc_pages(GFP_KERNEL, 1); 1818 pages = alloc_pages(GFP_KERNEL, order);
|