/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++) {
|
/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/drivers/iommu/ |
H A D | iommu-pages.h | 60 page = alloc_pages(gfp | __GFP_ZERO, order);
|
/linux-master/lib/ |
H A D | fortify_kunit.c | 265 #define TEST_vmalloc(checker, expected_pages, alloc_pages) do { \ 268 vmalloc((alloc_pages) * PAGE_SIZE), vfree(p)); \ 270 vzalloc((alloc_pages) * PAGE_SIZE), vfree(p)); \ 272 __vmalloc((alloc_pages) * PAGE_SIZE, gfp), vfree(p)); \ 277 #define TEST_kvmalloc(checker, expected_pages, alloc_pages) do { \ 283 kvmalloc((alloc_pages) * PAGE_SIZE, gfp), \ 286 kvmalloc_node((alloc_pages) * PAGE_SIZE, gfp, NUMA_NO_NODE), \ 289 kvzalloc((alloc_pages) * PAGE_SIZE, gfp), \ 292 kvzalloc_node((alloc_pages) * PAGE_SIZE, gfp, NUMA_NO_NODE), \ 295 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/include/linux/ |
H A D | gfp.h | 326 #define alloc_pages(...) alloc_hooks(alloc_pages_noprof(__VA_ARGS__)) macro 331 #define alloc_page(gfp_mask) alloc_pages(gfp_mask, 0)
|
/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/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/drivers/media/pci/intel/ipu6/ |
H A D | ipu6-dma.c | 76 pages[i] = alloc_pages(gfp, order); 78 pages[i] = alloc_pages(gfp, --order);
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gart.c | 130 p = alloc_pages(gfp_flags, order);
|
/linux-master/io_uring/ |
H A D | memmap.c | 28 page = alloc_pages(gfp, 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);
|
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | icm.c | 105 page = alloc_pages(gfp_mask, order);
|