Home
last modified time | relevance | path

Searched refs:PAGE_ALIGN (Results 1 – 25 of 446) sorted by relevance

12345678910>>...18

/linux-6.1.9/mm/
Dbootmem_info.c62 mapsize = PAGE_ALIGN(mapsize) >> PAGE_SHIFT; in register_page_bootmem_info_section()
71 mapsize = PAGE_ALIGN(mem_section_usage_size()) >> PAGE_SHIFT; in register_page_bootmem_info_section()
95 mapsize = PAGE_ALIGN(mem_section_usage_size()) >> PAGE_SHIFT; in register_page_bootmem_info_section()
108 nr_pages = PAGE_ALIGN(sizeof(struct pglist_data)) >> PAGE_SHIFT; in register_page_bootmem_info_node()
Dutil.c309 return PAGE_ALIGN(stack_top) + random_variable; in randomize_stack_top()
311 return PAGE_ALIGN(stack_top) - random_variable; in randomize_stack_top()
332 range -= PAGE_ALIGN(start) - start; in randomize_page()
333 start = PAGE_ALIGN(start); in randomize_page()
407 return PAGE_ALIGN(STACK_TOP - gap - rnd); in mmap_base()
534 if (unlikely(offset + PAGE_ALIGN(len) < offset)) in vm_mmap()
/linux-6.1.9/arch/x86/realmode/
Dinit.c97 size_t size = PAGE_ALIGN(real_mode_blob_end - real_mode_blob); in setup_real_mode()
185 size_t size = PAGE_ALIGN(real_mode_blob_end - real_mode_blob); in set_real_mode_permissions()
188 PAGE_ALIGN(real_mode_header->ro_end) - in set_real_mode_permissions()
192 PAGE_ALIGN(real_mode_header->ro_end) - in set_real_mode_permissions()
/linux-6.1.9/arch/ia64/kernel/
Delfcore.c26 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-6.1.9/arch/powerpc/include/asm/
Dtask_size_64.h49 #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-6.1.9/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_ads.c86 return PAGE_ALIGN(guc->ads_golden_ctxt_size); in guc_ads_golden_ctxt_size()
91 return PAGE_ALIGN(guc->ads_capture_size); in guc_ads_capture_size()
96 return PAGE_ALIGN(guc->fw.private_data_size); in guc_ads_private_data_size()
111 return PAGE_ALIGN(offset); in guc_ads_golden_ctxt_offset()
121 return PAGE_ALIGN(offset); in guc_ads_capture_offset()
131 return PAGE_ALIGN(offset); in guc_ads_private_data_offset()
514 alloc_size = PAGE_ALIGN(real_size); in guc_prep_golden_context()
593 alloc_size = PAGE_ALIGN(real_size); in guc_init_golden_context()
727 if (guc->ads_capture_size && guc->ads_capture_size != PAGE_ALIGN(total_size)) in guc_capture_prep_lists()
729 guc->ads_capture_size, PAGE_ALIGN(total_size)); in guc_capture_prep_lists()
[all …]
/linux-6.1.9/kernel/dma/
Dremap.c27 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()
Dops_helpers.c27 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-6.1.9/arch/arm64/kvm/hyp/nvhe/
Dmm.c61 base = addr + PAGE_ALIGN(size); in pkvm_alloc_private_va_range()
83 size = PAGE_ALIGN(size + offset_in_page(phys)); in __pkvm_create_private_mapping()
106 end = PAGE_ALIGN(end); in pkvm_create_mappings_locked()
/linux-6.1.9/arch/s390/mm/
Dmmap.c71 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-6.1.9/fs/erofs/
Ddecompressor.c134 omargin = PAGE_ALIGN(ctx->oend) - ctx->oend; in z_erofs_lz4_handle_overlap()
286 ctx.outpages = PAGE_ALIGN(ctx.oend) >> PAGE_SHIFT; in z_erofs_lz4_decompress()
287 ctx.inpages = PAGE_ALIGN(rq->inputsize) >> PAGE_SHIFT; in z_erofs_lz4_decompress()
323 const unsigned int inpages = PAGE_ALIGN(rq->inputsize) >> PAGE_SHIFT; in z_erofs_transform_plain()
325 PAGE_ALIGN(rq->pageofs_out + rq->outputsize) >> PAGE_SHIFT; in z_erofs_transform_plain()
/linux-6.1.9/arch/mips/sgi-ip27/
Dip27-klnuma.c124 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-6.1.9/arch/arm/mach-omap1/
Dsram-init.c71 pages = PAGE_ALIGN(size) / PAGE_SIZE; in omap_sram_push()
127 pages = PAGE_ALIGN(omap_sram_size) / PAGE_SIZE; in omap_detect_and_map_sram()
/linux-6.1.9/arch/microblaze/kernel/
Dsetup.c105 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-6.1.9/drivers/gpu/drm/
Ddrm_memory.c62 PAGE_ALIGN(size) / PAGE_SIZE; in agp_remap()
68 size = PAGE_ALIGN(size); in agp_remap()
/linux-6.1.9/sound/soc/sof/amd/
Dacp-loader.c65 page_count = PAGE_ALIGN(size_fw) >> PAGE_SHIFT; in acp_dsp_block_write()
164 page_count = PAGE_ALIGN(size_fw) >> PAGE_SHIFT; in acp_dsp_pre_fw_run()
189 dma_size = (PAGE_ALIGN(plat_data->fw->size) >> PAGE_SHIFT) * ACP_PAGE_SIZE; in acp_dsp_pre_fw_run()
/linux-6.1.9/arch/arm/mm/
Ddma-mapping.c542 .size = PAGE_ALIGN(size), in __dma_alloc()
619 .size = PAGE_ALIGN(size), in __arm_dma_free()
774 count = PAGE_ALIGN(size) >> PAGE_SHIFT; in __alloc_iova()
973 unsigned int count = PAGE_ALIGN(size) >> PAGE_SHIFT; in __iommu_create_mapping()
1016 size = PAGE_ALIGN((iova & ~PAGE_MASK) + size); in __iommu_remove_mapping()
1090 size = PAGE_ALIGN(size); in arm_iommu_alloc_attrs()
1135 unsigned long nr_pages = PAGE_ALIGN(size) >> PAGE_SHIFT; in arm_iommu_mmap_attrs()
1163 size = PAGE_ALIGN(size); in arm_iommu_free_attrs()
1187 unsigned int count = PAGE_ALIGN(size) >> PAGE_SHIFT; in arm_iommu_get_sgtable()
1211 size = PAGE_ALIGN(size); in __map_sg_chunk()
[all …]
Dmmap.c63 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area()
115 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area_topdown()
/linux-6.1.9/arch/ia64/mm/
Dinit.c86 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-6.1.9/drivers/infiniband/hw/usnic/
Dusnic_uiom.c106 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()
220 npages = PAGE_ALIGN(uiomr->length + uiomr->offset) >> PAGE_SHIFT; in __usnic_uiom_reg_release()
351 npages = PAGE_ALIGN(size + offset) >> PAGE_SHIFT; in usnic_uiom_reg_get()
427 return PAGE_ALIGN(uiomr->length + uiomr->offset) >> PAGE_SHIFT; in usnic_uiom_num_pages()
/linux-6.1.9/drivers/infiniband/sw/rdmavt/
Dmmap.c128 size = PAGE_ALIGN(size); in rvt_create_mmap_info()
158 size = PAGE_ALIGN(size); in rvt_update_mmap_info()
/linux-6.1.9/arch/s390/pci/
Dpci_dma.c138 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-6.1.9/arch/powerpc/kernel/
Dsuspend.c21 unsigned long nosave_end_pfn = PAGE_ALIGN(__pa(&__nosave_end)) >> PAGE_SHIFT; in pfn_is_nosave()
/linux-6.1.9/arch/sh/mm/
Dmmap.c83 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area()
133 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area_topdown()
/linux-6.1.9/arch/sh/kernel/
Dswsusp.c22 unsigned long end_pfn = PAGE_ALIGN(__pa(&__nosave_end)) >> PAGE_SHIFT; in pfn_is_nosave()

12345678910>>...18