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

12345

/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++) {
H A Dgrant-dma-ops.c285 .alloc_pages = xen_grant_dma_alloc_pages,
/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/include/linux/
H A Dgfp.h265 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 Dfortify_kunit.c251 #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 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/arch/mips/jazz/
H A Djazzdma.c501 page = alloc_pages(gfp, get_order(size));
620 .alloc_pages = dma_common_alloc_pages,
/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/powerpc/kernel/
H A Ddma-iommu.c219 .alloc_pages = dma_common_alloc_pages,
/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/arch/powerpc/platforms/ps3/
H A Dsystem-bus.c698 .alloc_pages = dma_common_alloc_pages,
712 .alloc_pages = dma_common_alloc_pages,
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gart.c130 p = alloc_pages(gfp_flags, 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);

Completed in 215 milliseconds

12345