Searched refs:alloc_pages (Results 1 - 25 of 99) sorted by relevance

1234

/linux-master/mm/
H A Dpercpu-km.c25 * 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 Dunpopulated-alloc.c39 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 Dunaligned_access_speed.c194 buf = alloc_pages(GFP_KERNEL, MISALIGNED_BUFFER_ORDER);
233 bufs[cpu] = alloc_pages(GFP_KERNEL, MISALIGNED_BUFFER_ORDER);
/linux-master/drivers/iommu/
H A Diommu-pages.h60 page = alloc_pages(gfp | __GFP_ZERO, order);
/linux-master/lib/
H A Dfortify_kunit.c265 #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 Dtest_meminit.c69 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 Dtest_lockup.c310 page = alloc_pages(alloc_pages_gfp, alloc_pages_order);
/linux-master/arch/powerpc/include/asm/book3s/64/
H A Dpgalloc.h31 page = alloc_pages(pgtable_gfp_flags(mm, PGALLOC_GFP | __GFP_RETRY_MAYFAIL),
/linux-master/drivers/gpu/drm/i915/gem/
H A Di915_gem_internal.c75 page = alloc_pages(gfp | (order ? QUIET : MAYFAIL),
/linux-master/drivers/net/ethernet/qlogic/qed/
H A Dqed_chain.c273 goto alloc_pages;
288 alloc_pages:
/linux-master/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_misc.c53 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 Dpvrdma.h541 u64 npages, bool alloc_pages);
/linux-master/mm/kmsan/
H A Dhooks.c166 shadow = alloc_pages(gfp_mask, 1);
167 origin = alloc_pages(gfp_mask, 1);
/linux-master/include/linux/
H A Dgfp.h326 #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 Dipu3-dmamap.c58 page = alloc_pages((order_mask - order_size) ?
/linux-master/drivers/net/wireless/intel/iwlwifi/fw/
H A Dpaging.c72 block = alloc_pages(GFP_KERNEL, order);
/linux-master/arch/x86/platform/efi/
H A Dmemmap.c25 struct page *p = alloc_pages(GFP_KERNEL, order);
/linux-master/kernel/dma/
H A Dpool.c96 page = alloc_pages(gfp, order);
/linux-master/fs/ramfs/
H A Dfile-nommu.c84 pages = alloc_pages(gfp, order);
/linux-master/arch/x86/kernel/
H A Dkvmclock.c215 p = alloc_pages(GFP_KERNEL, order);
/linux-master/drivers/media/pci/intel/ipu6/
H A Dipu6-dma.c76 pages[i] = alloc_pages(gfp, order);
78 pages[i] = alloc_pages(gfp, --order);
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gart.c130 p = alloc_pages(gfp_flags, order);
/linux-master/io_uring/
H A Dmemmap.c28 page = alloc_pages(gfp, order);
/linux-master/mm/kasan/
H A Dkasan_test.c290 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 Dicm.c105 page = alloc_pages(gfp_mask, order);

Completed in 3989 milliseconds

1234