| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_guc_ads.c | 146 return PAGE_ALIGN(ads->golden_lrc_size); in guc_ads_golden_lrc_size() 151 return PAGE_ALIGN(ads->ads_waklv_size); in guc_ads_waklv_size() 156 return PAGE_ALIGN(ads->capture_size); in guc_ads_capture_size() 161 return PAGE_ALIGN(ads_to_guc(ads)->fw.private_data_size); in guc_ads_private_data_size() 176 return PAGE_ALIGN(offset); in guc_ads_golden_lrc_offset() 186 return PAGE_ALIGN(offset); in guc_ads_waklv_offset() 196 return PAGE_ALIGN(offset); in guc_ads_capture_offset() 206 return PAGE_ALIGN(offset); in guc_ads_private_data_offset() 288 alloc_size = PAGE_ALIGN(real_size); in calculate_golden_lrc_size() 606 alloc_size = PAGE_ALIGN(real_siz in guc_golden_lrc_init() [all...] |
| /linux/drivers/gpu/drm/i915/gt/uc/ |
| H A D | intel_guc_ads.c | 92 return PAGE_ALIGN(guc->ads_golden_ctxt_size); in guc_ads_golden_ctxt_size() 97 return PAGE_ALIGN(guc->ads_waklv_size); in guc_ads_waklv_size() 102 return PAGE_ALIGN(guc->ads_capture_size); in guc_ads_capture_size() 107 return PAGE_ALIGN(guc->fw.private_data_size); in guc_ads_private_data_size() 122 return PAGE_ALIGN(offset); in guc_ads_golden_ctxt_offset() 132 return PAGE_ALIGN(offset); in guc_ads_waklv_offset() 142 return PAGE_ALIGN(offset); in guc_ads_capture_offset() 152 return PAGE_ALIGN(offset); in guc_ads_private_data_offset() 568 alloc_size = PAGE_ALIGN(real_size); in guc_prep_golden_context() 644 alloc_size = PAGE_ALIGN(real_size); in guc_init_golden_context() [all …]
|
| /linux/arch/powerpc/include/asm/ |
| H A D | task_size_64.h | 49 #define TASK_UNMAPPED_BASE_USER32 (PAGE_ALIGN(TASK_SIZE_USER32 / 4)) 50 #define TASK_UNMAPPED_BASE_USER64 (PAGE_ALIGN(DEFAULT_MAP_WINDOW_USER64 / 4))
|
| /linux/kernel/dma/ |
| H A D | remap.c | 29 vaddr = vmap(pages, PAGE_ALIGN(size) >> PAGE_SHIFT, in dma_common_pages_remap() 43 int count = PAGE_ALIGN(size) >> PAGE_SHIFT; in dma_common_contiguous_remap()
|
| /linux/arch/s390/mm/ |
| H A D | mmap.c | 64 return PAGE_ALIGN(STACK_TOP - gap - rnd); in mmap_base() 93 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area() 131 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area_topdown()
|
| /linux/arch/mips/sgi-ip27/ |
| H A D | ip27-klnuma.c | 124 offset = PAGE_ALIGN((unsigned long)(&_end)) - loadbase; in node_getfirstfree() 128 return KDM_TO_PHYS(PAGE_ALIGN(SYMMON_STK_ADDR(nasid, 0))) >> PAGE_SHIFT; in node_getfirstfree()
|
| /linux/arch/arm/mach-omap1/ |
| H A D | sram-init.c | 71 pages = PAGE_ALIGN(size) / PAGE_SIZE; in omap_sram_push() 124 pages = PAGE_ALIGN(omap_sram_size) / PAGE_SIZE; in omap_detect_and_map_sram()
|
| /linux/arch/microblaze/kernel/ |
| H A D | setup.c | 105 romfs_size = PAGE_ALIGN(get_romfs_len((unsigned *)romfs_base)); in machine_early_init() 108 romfs_size = PAGE_ALIGN(get_romfs_len((unsigned *)romfs_base)); in machine_early_init()
|
| /linux/arch/um/kernel/ |
| H A D | um_arch.c | 384 return PAGE_ALIGN(top_addr + 1); in linux_main() 438 diff = PAGE_ALIGN(brk_start) - PAGE_ALIGN((unsigned long) &_end); in linux_main() 452 physmem_size = PAGE_ALIGN(physmem_size); in linux_main()
|
| /linux/arch/arm/mm/ |
| H A D | dma-mapping.c | 544 .size = PAGE_ALIGN(size), in __dma_alloc() 613 .size = PAGE_ALIGN(size), in __arm_dma_free() 768 count = PAGE_ALIGN(size) >> PAGE_SHIFT; in __alloc_iova() 964 unsigned int count = PAGE_ALIGN(size) >> PAGE_SHIFT; in __iommu_create_mapping() 1008 size = PAGE_ALIGN((iova & ~PAGE_MASK) + size); in __iommu_remove_mapping() 1085 size = PAGE_ALIGN(size); in arm_iommu_alloc_attrs() 1121 unsigned long nr_pages = PAGE_ALIGN(size) >> PAGE_SHIFT; in arm_iommu_mmap_attrs() 1149 size = PAGE_ALIGN(size); in arm_iommu_free_attrs() 1173 unsigned int count = PAGE_ALIGN(size) >> PAGE_SHIFT; in arm_iommu_get_sgtable() 1197 size = PAGE_ALIGN(siz in __map_sg_chunk() [all...] |
| H A D | mmap.c | 65 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area() 119 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area_topdown()
|
| /linux/arch/arm64/kvm/hyp/nvhe/ |
| H A D | mm.c | 58 cur = start + PAGE_ALIGN(size); in __pkvm_alloc_private_va_range() 154 size = PAGE_ALIGN(size + offset_in_page(phys)); in hyp_back_vmemmap() 177 end = PAGE_ALIGN(end); in hyp_back_vmemmap() 243 end = PAGE_ALIGN((u64)hyp_phys_to_page(end)); in fixmap_map_slot()
|
| /linux/arch/s390/kernel/ |
| H A D | vdso.c | 91 start = PAGE_ALIGN(start); in vdso_addr() 110 return PAGE_ALIGN(vdso_end - vdso_start); in vdso_text_size()
|
| /linux/drivers/firmware/efi/ |
| H A D | unaccepted_memory.c | 46 end = PAGE_ALIGN(start + size); in accept_memory() 175 end = PAGE_ALIGN(start + size); in range_contains_unaccepted_memory()
|
| /linux/arch/riscv/kernel/ |
| H A D | usercfi.c | 105 * Else PAGE_ALIGN it and return back in set_indir_lp_status() 110 return PAGE_ALIGN(size); in set_indir_lp_lock() 112 return PAGE_ALIGN(min(rlimit(RLIMIT_STACK) / 8, SZ_512M)); 273 aligned_size = PAGE_ALIGN(size); in SYSCALL_DEFINE3()
|
| /linux/arch/sh/mm/ |
| H A D | mmap.c | 84 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area() 133 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area_topdown()
|
| /linux/arch/x86/kernel/ |
| H A D | shstk.c | 122 return PAGE_ALIGN(size); in adjust_shstk_size() 124 return PAGE_ALIGN(min_t(unsigned long long, rlimit(RLIMIT_STACK), SZ_4G)); in adjust_shstk_size() 565 aligned_size = PAGE_ALIGN(size); in SYSCALL_DEFINE3()
|
| /linux/drivers/virt/coco/tdx-guest/ |
| H A D | tdx-guest.c | 230 size_t alloc_size = PAGE_ALIGN(get_quote_buf_size()); in free_quote_buf() 245 size_t alloc_size = PAGE_ALIGN(get_quote_buf_size()); in alloc_quote_buf() 319 err = tdx_hcall_get_quote(quote_buf, PAGE_ALIGN(quote_buf_size)); in tdx_report_new_locked()
|
| /linux/arch/arm/mach-omap2/ |
| H A D | sram.c | 93 pages = PAGE_ALIGN(size) / PAGE_SIZE; in omap_sram_push() 217 pages = PAGE_ALIGN(omap_sram_size) / PAGE_SIZE; in omap2_map_sram()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | mlock-random-test.c | 25 #define PAGE_ALIGN(size, ps) (((size) + ((ps) - 1)) & ~((ps) - 1)) macro 175 if (locked_vm_size > PAGE_ALIGN(alloc_size, page_size) + page_size) in test_mlock_within_limit()
|
| /linux/arch/powerpc/kernel/ |
| H A D | suspend.c | 21 unsigned long nosave_end_pfn = PAGE_ALIGN(__pa(&__nosave_end)) >> PAGE_SHIFT; in pfn_is_nosave()
|
| /linux/arch/sh/kernel/ |
| H A D | swsusp.c | 22 unsigned long end_pfn = PAGE_ALIGN(__pa(&__nosave_end)) >> PAGE_SHIFT; in pfn_is_nosave()
|
| /linux/drivers/video/fbdev/mmp/fb/ |
| H A D | mmpfb.h | 40 #define MMPFB_DEFAULT_SIZE (PAGE_ALIGN(1920 * 1080 * 4 * 2))
|
| /linux/drivers/video/fbdev/ |
| H A D | xilinxfb.c | 286 drvdata->fb_virt = dma_alloc_coherent(dev, PAGE_ALIGN(fbsize), in xilinxfb_assign() 363 dma_free_coherent(dev, PAGE_ALIGN(fbsize), drvdata->fb_virt, in xilinxfb_assign() 387 dma_free_coherent(dev, PAGE_ALIGN(drvdata->info.fix.smem_len), in xilinxfb_release()
|
| /linux/sound/soc/sof/amd/ |
| H A D | acp-loader.c | 65 page_count = PAGE_ALIGN(size_fw) >> PAGE_SHIFT; in acp_dsp_block_write() 181 page_count = PAGE_ALIGN(size_fw) >> PAGE_SHIFT; in acp_dsp_pre_fw_run() 267 page_count = PAGE_ALIGN(size_fw) >> PAGE_SHIFT; 318 dma_size = (PAGE_ALIGN(sdev->basefw.fw->size) >> PAGE_SHIFT) * ACP_PAGE_SIZE; in acp_sof_load_signed_firmware()
|