| /linux/arch/x86/realmode/ |
| H A D | init.c | 100 size_t size = PAGE_ALIGN(real_mode_blob_end - real_mode_blob); in setup_real_mode() 191 size_t size = PAGE_ALIGN(real_mode_blob_end - real_mode_blob); in set_real_mode_permissions() 194 PAGE_ALIGN(real_mode_header->ro_end) - in set_real_mode_permissions() 198 PAGE_ALIGN(real_mode_header->ro_end) - in set_real_mode_permissions()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_guc_ads.c | 145 return PAGE_ALIGN(ads->golden_lrc_size); in guc_ads_golden_lrc_size() 150 return PAGE_ALIGN(ads->ads_waklv_size); in guc_ads_waklv_size() 155 return PAGE_ALIGN(ads->capture_size); in guc_ads_capture_size() 170 return PAGE_ALIGN(ads_to_guc(ads)->fw.private_data_size); in guc_ads_private_data_size() 185 return PAGE_ALIGN(offset); in guc_ads_golden_lrc_offset() 195 return PAGE_ALIGN(offset); in guc_ads_waklv_offset() 205 return PAGE_ALIGN(offset); in guc_ads_capture_offset() 215 return PAGE_ALIGN(offset); in guc_ads_um_queues_offset() 225 return PAGE_ALIGN(offset); in guc_ads_private_data_offset() 278 alloc_size = PAGE_ALIGN(real_size); in calculate_golden_lrc_size() [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()
|
| H A D | ops_helpers.c | 28 sg_set_page(sgt->sgl, page, PAGE_ALIGN(size), 0); in dma_common_get_sgtable() 41 unsigned long count = PAGE_ALIGN(size) >> PAGE_SHIFT; in dma_common_mmap()
|
| /linux/arch/um/kernel/ |
| H A D | um_arch.c | 303 return PAGE_ALIGN(top_addr + 1); in get_top_address() 357 diff = PAGE_ALIGN(brk_start) - PAGE_ALIGN((unsigned long) &_end); in linux_main() 371 physmem_size = PAGE_ALIGN(physmem_size); in linux_main()
|
| /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/drivers/gpu/drm/i915/display/ |
| H A D | intel_dsb_buffer.c | 54 obj = i915_gem_object_create_lmem(i915, PAGE_ALIGN(size), in intel_dsb_buffer_create() 61 obj = i915_gem_object_create_internal(i915, PAGE_ALIGN(size)); in intel_dsb_buffer_create()
|
| /linux/arch/x86/kernel/ |
| H A D | shstk.c | 130 return PAGE_ALIGN(size); in adjust_shstk_size() 132 return PAGE_ALIGN(min_t(unsigned long long, rlimit(RLIMIT_STACK), SZ_4G)); in adjust_shstk_size() 351 need_to_check_vma = PAGE_ALIGN(*ssp) == *ssp; in shstk_pop_sigframe() 568 aligned_size = PAGE_ALIGN(size); in SYSCALL_DEFINE3()
|
| /linux/arch/arm64/kvm/hyp/nvhe/ |
| H A D | mm.c | 57 cur = start + PAGE_ALIGN(size); in __pkvm_alloc_private_va_range() 100 size = PAGE_ALIGN(size + offset_in_page(phys)); in __pkvm_create_private_mapping() 123 end = PAGE_ALIGN(end); in pkvm_create_mappings_locked() 165 end = PAGE_ALIGN((u64)hyp_phys_to_page(end)); in hyp_back_vmemmap()
|
| /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() 1082 size = PAGE_ALIGN(size); in arm_iommu_alloc_attrs() 1118 unsigned long nr_pages = PAGE_ALIGN(size) >> PAGE_SHIFT; in arm_iommu_mmap_attrs() 1146 size = PAGE_ALIGN(size); in arm_iommu_free_attrs() 1170 unsigned int count = PAGE_ALIGN(size) >> PAGE_SHIFT; in arm_iommu_get_sgtable() 1194 size = PAGE_ALIGN(size); in __map_sg_chunk() [all …]
|
| H A D | mmap.c | 64 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area() 115 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area_topdown()
|
| /linux/arch/loongarch/kernel/ |
| H A D | vdso.c | 53 vdso_info.size = PAGE_ALIGN(vdso_end - vdso_start); in init_vdso() 74 base = PAGE_ALIGN(base); in vdso_base()
|
| /linux/drivers/infiniband/hw/usnic/ |
| H A D | usnic_uiom.c | 106 if (((addr + size) < addr) || PAGE_ALIGN(addr + size) < (addr + size)) in usnic_uiom_get_pages() 121 npages = PAGE_ALIGN(size + (addr & ~PAGE_MASK)) >> PAGE_SHIFT; in usnic_uiom_get_pages() 218 npages = PAGE_ALIGN(uiomr->length + uiomr->offset) >> PAGE_SHIFT; in __usnic_uiom_reg_release() 349 npages = PAGE_ALIGN(size + offset) >> PAGE_SHIFT; in usnic_uiom_reg_get() 425 return PAGE_ALIGN(uiomr->length + uiomr->offset) >> PAGE_SHIFT; in usnic_uiom_num_pages()
|
| /linux/drivers/infiniband/sw/rdmavt/ |
| H A D | mmap.c | 128 size = PAGE_ALIGN(size); in rvt_create_mmap_info() 158 size = PAGE_ALIGN(size); in rvt_update_mmap_info()
|
| /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/s390/kernel/ |
| H A D | vdso.c | 92 start = PAGE_ALIGN(start); in vdso_addr() 111 return PAGE_ALIGN(vdso_end - vdso_start); in vdso_text_size()
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | opal-flash.c | 372 size = PAGE_ALIGN(image_data.size); in free_image_buf() 409 image_data.data = vzalloc(PAGE_ALIGN(image_data.size)); in alloc_image_buf() 417 size = PAGE_ALIGN(image_data.size); in alloc_image_buf()
|
| /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/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 176 if (locked_vm_size > PAGE_ALIGN(alloc_size, page_size) + page_size) in test_mlock_within_limit()
|
| /linux/mm/ |
| H A D | util.c | 351 return PAGE_ALIGN(stack_top) + random_variable; in randomize_stack_top() 353 return PAGE_ALIGN(stack_top) - random_variable; in randomize_stack_top() 374 range -= PAGE_ALIGN(start) - start; in randomize_page() 375 start = PAGE_ALIGN(start); in randomize_page() 461 return PAGE_ALIGN(STACK_TOP - gap - rnd); in mmap_base() 612 if (unlikely(offset + PAGE_ALIGN(len) < offset)) in vm_mmap()
|