/linux/mm/ |
H A D | bootmem_info.c | 63 mapsize = PAGE_ALIGN(mapsize) >> PAGE_SHIFT; in register_page_bootmem_info_section() 72 mapsize = PAGE_ALIGN(mem_section_usage_size()) >> PAGE_SHIFT; in register_page_bootmem_info_section() 96 mapsize = PAGE_ALIGN(mem_section_usage_size()) >> PAGE_SHIFT; in register_page_bootmem_info_section() 109 nr_pages = PAGE_ALIGN(sizeof(struct pglist_data)) >> PAGE_SHIFT; in register_page_bootmem_info_node()
|
H A D | util.c | 348 return PAGE_ALIGN(stack_top) + random_variable; in randomize_stack_top() 350 return PAGE_ALIGN(stack_top) - random_variable; in randomize_stack_top() 371 range -= PAGE_ALIGN(start) - start; in randomize_page() 372 start = PAGE_ALIGN(start); in randomize_page() 458 return PAGE_ALIGN(STACK_TOP - gap - rnd); in mmap_base() 589 if (unlikely(offset + PAGE_ALIGN(len) < offset)) in vm_mmap()
|
/linux/arch/x86/realmode/ |
H A D | init.c | 97 size_t size = PAGE_ALIGN(real_mode_blob_end - real_mode_blob); in setup_real_mode() 188 size_t size = PAGE_ALIGN(real_mode_blob_end - real_mode_blob); in set_real_mode_permissions() 191 PAGE_ALIGN(real_mode_header->ro_end) - in set_real_mode_permissions() 195 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() 283 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/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/drivers/gpu/drm/i915/display/ |
H A D | intel_dsb_buffer.c | 43 obj = i915_gem_object_create_lmem(i915, PAGE_ALIGN(size), in intel_dsb_buffer_create() 48 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() 311 need_to_check_vma = PAGE_ALIGN(*ssp) == *ssp; in shstk_pop_sigframe() 528 aligned_size = PAGE_ALIGN(size); in SYSCALL_DEFINE3()
|
/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/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() 770 count = PAGE_ALIGN(size) >> PAGE_SHIFT; in __alloc_iova() 966 unsigned int count = PAGE_ALIGN(size) >> PAGE_SHIFT; in __iommu_create_mapping() 1010 size = PAGE_ALIGN((iova & ~PAGE_MASK) + size); in __iommu_remove_mapping() 1084 size = PAGE_ALIGN(size); in arm_iommu_alloc_attrs() 1120 unsigned long nr_pages = PAGE_ALIGN(size) >> PAGE_SHIFT; in arm_iommu_mmap_attrs() 1148 size = PAGE_ALIGN(size); in arm_iommu_free_attrs() 1172 unsigned int count = PAGE_ALIGN(size) >> PAGE_SHIFT; in arm_iommu_get_sgtable() 1196 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/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/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() 219 npages = PAGE_ALIGN(uiomr->length + uiomr->offset) >> PAGE_SHIFT; in __usnic_uiom_reg_release() 350 npages = PAGE_ALIGN(size + offset) >> PAGE_SHIFT; in usnic_uiom_reg_get() 426 return PAGE_ALIGN(uiomr->length + uiomr->offset) >> PAGE_SHIFT; in usnic_uiom_num_pages()
|
/linux/arch/riscv/include/asm/ |
H A D | processor.h | 49 #define TASK_UNMAPPED_BASE PAGE_ALIGN((UL(1) << MMAP_MIN_VA_BITS) / 3) 51 #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)
|
/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/fs/erofs/ |
H A D | decompressor.c | 134 omargin = PAGE_ALIGN(ctx->oend) - ctx->oend; in z_erofs_lz4_handle_overlap() 281 ctx.outpages = PAGE_ALIGN(ctx.oend) >> PAGE_SHIFT; in z_erofs_lz4_decompress() 282 ctx.inpages = PAGE_ALIGN(rq->inputsize) >> PAGE_SHIFT; in z_erofs_lz4_decompress() 319 PAGE_ALIGN(rq->pageofs_in + rq->inputsize) >> PAGE_SHIFT; in z_erofs_transform_plain() 321 PAGE_ALIGN(rq->pageofs_out + rq->outputsize) >> PAGE_SHIFT; in z_erofs_transform_plain()
|
/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/loongarch/kernel/ |
H A D | vdso.c | 106 vdso_info.size = PAGE_ALIGN(vdso_end - vdso_start); in init_vdso() 155 base = PAGE_ALIGN(base); in vdso_base()
|
/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/powerpc/kexec/ |
H A D | core.c | 134 crash_base = PAGE_ALIGN(crashk_res.start); in reserve_crashkernel() 142 crash_size = PAGE_ALIGN(crash_size); in reserve_crashkernel()
|
/linux/arch/arm64/kvm/ |
H A D | pkvm.c | 149 hyp_vm_sz = PAGE_ALIGN(size_add(PKVM_HYP_VM_SIZE, in __pkvm_create_hyp_vm() 168 hyp_vcpu_sz = PAGE_ALIGN(PKVM_HYP_VCPU_SIZE); in __pkvm_create_hyp_vm()
|