/linux/mm/ |
A D | bootmem_info.c | 61 mapsize = PAGE_ALIGN(mapsize) >> PAGE_SHIFT; in register_page_bootmem_info_section() 70 mapsize = PAGE_ALIGN(mem_section_usage_size()) >> PAGE_SHIFT; in register_page_bootmem_info_section() 94 mapsize = PAGE_ALIGN(mem_section_usage_size()) >> PAGE_SHIFT; in register_page_bootmem_info_section() 107 nr_pages = PAGE_ALIGN(sizeof(struct pglist_data)) >> PAGE_SHIFT; in register_page_bootmem_info_node()
|
/linux/arch/x86/realmode/ |
A D | init.c | 71 size_t size = PAGE_ALIGN(real_mode_blob_end - real_mode_blob); in setup_real_mode() 159 size_t size = PAGE_ALIGN(real_mode_blob_end - real_mode_blob); in set_real_mode_permissions() 162 PAGE_ALIGN(real_mode_header->ro_end) - in set_real_mode_permissions() 166 PAGE_ALIGN(real_mode_header->ro_end) - in set_real_mode_permissions()
|
/linux/arch/ia64/kernel/ |
A D | elfcore.c | 26 phdr.p_memsz = PAGE_ALIGN(phdr.p_memsz); in elf_core_write_extra_phdrs() 53 size_t memsz = PAGE_ALIGN(gate_phdrs[i].p_memsz); in elf_core_write_extra_data() 72 size += PAGE_ALIGN(gate_phdrs[i].p_memsz); in elf_core_extra_data_size()
|
/linux/fs/erofs/ |
A D | decompressor.c | 63 PAGE_ALIGN(rq->pageofs_out + rq->outputsize) >> PAGE_SHIFT; in z_erofs_lz4_prepare_dstpages() 125 nrpages_in = PAGE_ALIGN(inputsize) >> PAGE_SHIFT; in z_erofs_lz4_handle_inplace_io() 127 ofull = PAGE_ALIGN(oend); in z_erofs_lz4_handle_inplace_io() 245 vm_unmap_ram(src, PAGE_ALIGN(rq->inputsize) >> PAGE_SHIFT); in z_erofs_lz4_decompress_mem() 259 PAGE_ALIGN(rq->pageofs_out + rq->outputsize) >> PAGE_SHIFT; in z_erofs_lz4_decompress() 301 PAGE_ALIGN(rq->pageofs_out + rq->outputsize) >> PAGE_SHIFT; in z_erofs_shifted_transform()
|
/linux/arch/powerpc/include/asm/ |
A D | task_size_64.h | 53 #define TASK_UNMAPPED_BASE_USER32 (PAGE_ALIGN(TASK_SIZE_USER32 / 4)) 54 #define TASK_UNMAPPED_BASE_USER64 (PAGE_ALIGN(DEFAULT_MAP_WINDOW_USER64 / 4))
|
/linux/arch/s390/mm/ |
A D | mmap.c | 71 return PAGE_ALIGN(STACK_TOP - gap - rnd); in mmap_base() 89 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area() 130 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area_topdown()
|
/linux/kernel/dma/ |
A D | remap.c | 27 vaddr = vmap(pages, PAGE_ALIGN(size) >> PAGE_SHIFT, in dma_common_pages_remap() 41 int count = PAGE_ALIGN(size) >> PAGE_SHIFT; in dma_common_contiguous_remap()
|
A D | ops_helpers.c | 27 sg_set_page(sgt->sgl, page, PAGE_ALIGN(size), 0); in dma_common_get_sgtable() 40 unsigned long count = PAGE_ALIGN(size) >> PAGE_SHIFT; in dma_common_mmap()
|
/linux/arch/powerpc/mm/ |
A D | mmap.c | 80 return PAGE_ALIGN(DEFAULT_MAP_WINDOW - gap - rnd); in mmap_base() 114 addr = PAGE_ALIGN(addr); in radix__arch_get_unmapped_area() 158 addr = PAGE_ALIGN(addr); in radix__arch_get_unmapped_area_topdown()
|
/linux/arch/powerpc/platforms/pseries/ |
A D | svm.c | 55 vstart = memblock_alloc(PAGE_ALIGN(bytes), PAGE_SIZE); in svm_swiotlb_init() 60 memblock_free(vstart, PAGE_ALIGN(io_tlb_nslabs << IO_TLB_SHIFT)); in svm_swiotlb_init()
|
/linux/arch/arm/plat-omap/ |
A D | sram.c | 73 pages = PAGE_ALIGN(size) / PAGE_SIZE; in omap_sram_push() 125 pages = PAGE_ALIGN(omap_sram_size) / PAGE_SIZE; in omap_map_sram()
|
/linux/drivers/gpu/drm/i915/gt/uc/ |
A D | intel_guc_ads.c | 62 return PAGE_ALIGN(guc->ads_golden_ctxt_size); in guc_ads_golden_ctxt_size() 67 return PAGE_ALIGN(guc->fw.private_data_size); in guc_ads_private_data_size() 82 return PAGE_ALIGN(offset); in guc_ads_golden_ctxt_offset() 92 return PAGE_ALIGN(offset); in guc_ads_private_data_offset() 395 alloc_size = PAGE_ALIGN(real_size); in guc_prep_golden_context() 475 alloc_size = PAGE_ALIGN(real_size); in guc_init_golden_context()
|
/linux/arch/ia64/mm/ |
A D | init.c | 86 current->thread.rbs_bot = PAGE_ALIGN(current->mm->start_stack - stack_size); in ia64_set_rbs_bot() 184 start = PAGE_ALIGN(start); in free_initrd_mem() 390 pfn_start = (PAGE_ALIGN(__pa(start))) >> PAGE_SHIFT; in find_max_min_low_pfn() 391 pfn_end = (PAGE_ALIGN(__pa(end - 1))) >> PAGE_SHIFT; in find_max_min_low_pfn()
|
/linux/arch/mips/sgi-ip27/ |
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/mm/ |
A D | dma-mapping.c | 673 .size = PAGE_ALIGN(size), in __dma_alloc() 811 .size = PAGE_ALIGN(size), in __arm_dma_free() 1117 count = PAGE_ALIGN(size) >> PAGE_SHIFT; in __alloc_iova() 1359 size = PAGE_ALIGN((iova & ~PAGE_MASK) + size); in __iommu_remove_mapping() 1433 size = PAGE_ALIGN(size); in __arm_iommu_alloc_attrs() 1529 size = PAGE_ALIGN(size); in __arm_iommu_free_attrs() 1591 size = PAGE_ALIGN(size); in __map_sg_chunk() 1867 int len = PAGE_ALIGN(size + offset); in arm_coherent_iommu_unmap_page() 1892 int len = PAGE_ALIGN(size + offset); in arm_iommu_unmap_page() 1920 size_t len = PAGE_ALIGN(size + offset); in arm_iommu_map_resource() [all …]
|
A D | mmap.c | 63 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area() 115 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area_topdown()
|
/linux/arch/microblaze/kernel/ |
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/s390/pci/ |
A D | pci_dma.c | 138 unsigned int nr_pages = PAGE_ALIGN(size) >> PAGE_SHIFT; in __dma_update_trans() 203 PAGE_ALIGN(size)); in __dma_purge_tlb() 406 size = PAGE_ALIGN(size); in s390_dma_alloc() 430 size = PAGE_ALIGN(size); in s390_dma_free() 441 unsigned long nr_pages = PAGE_ALIGN(size) >> PAGE_SHIFT; in __s390_dma_map_sg() 581 zdev->start_dma = PAGE_ALIGN(zdev->start_dma); in zpci_dma_init_device()
|
/linux/drivers/infiniband/hw/usnic/ |
A D | usnic_uiom.c | 108 if (((addr + size) < addr) || PAGE_ALIGN(addr + size) < (addr + size)) in usnic_uiom_get_pages() 123 npages = PAGE_ALIGN(size + (addr & ~PAGE_MASK)) >> PAGE_SHIFT; in usnic_uiom_get_pages() 224 npages = PAGE_ALIGN(uiomr->length + uiomr->offset) >> PAGE_SHIFT; in __usnic_uiom_reg_release() 355 npages = PAGE_ALIGN(size + offset) >> PAGE_SHIFT; in usnic_uiom_reg_get() 431 return PAGE_ALIGN(uiomr->length + uiomr->offset) >> PAGE_SHIFT; in usnic_uiom_num_pages()
|
/linux/drivers/gpu/drm/ |
A D | drm_memory.c | 62 PAGE_ALIGN(size) / PAGE_SIZE; in agp_remap() 68 size = PAGE_ALIGN(size); in agp_remap()
|
/linux/arch/sh/mm/ |
A D | mmap.c | 63 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area() 113 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area_topdown()
|
/linux/arch/arm64/kvm/hyp/nvhe/ |
A D | mm.c | 46 size = PAGE_ALIGN(size + offset_in_page(phys)); in __pkvm_create_private_mapping() 80 end = PAGE_ALIGN(end); in pkvm_create_mappings_locked()
|
/linux/drivers/infiniband/sw/rdmavt/ |
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/iio/buffer/ |
A D | industrialio-buffer-dma.c | 100 dma_free_coherent(block->queue->dev, PAGE_ALIGN(block->size), in iio_buffer_block_release() 174 block->vaddr = dma_alloc_coherent(queue->dev, PAGE_ALIGN(size), in iio_dma_buffer_alloc_block() 300 if (PAGE_ALIGN(queue->fileio.block_size) == PAGE_ALIGN(size)) in iio_dma_buffer_request_update()
|
/linux/arch/x86/ia32/ |
A D | ia32_aout.c | 50 start = PAGE_ALIGN(start); in set_brk() 51 end = PAGE_ALIGN(end); in set_brk() 300 len = PAGE_ALIGN(ex.a_text + ex.a_data); in load_aout_library()
|