/kernel/linux/linux-5.10/kernel/dma/ |
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() 69 unmap_kernel_range((unsigned long)cpu_addr, PAGE_ALIGN(size)); in dma_common_free_remap()
|
D | swiotlb.c | 201 bytes = PAGE_ALIGN(io_tlb_nslabs << IO_TLB_SHIFT); in swiotlb_update_mem_attributes() 222 alloc_size = PAGE_ALIGN(io_tlb_nslabs * sizeof(int)); in swiotlb_init_with_tbl() 228 alloc_size = PAGE_ALIGN(io_tlb_nslabs * sizeof(phys_addr_t)); in swiotlb_init_with_tbl() 267 vstart = memblock_alloc_low(PAGE_ALIGN(bytes), PAGE_SIZE); in swiotlb_init() 273 PAGE_ALIGN(io_tlb_nslabs << IO_TLB_SHIFT)); in swiotlb_init() 406 PAGE_ALIGN(io_tlb_nslabs * sizeof(phys_addr_t))); in swiotlb_exit() 408 PAGE_ALIGN(io_tlb_nslabs * sizeof(int))); in swiotlb_exit() 410 PAGE_ALIGN(io_tlb_nslabs << IO_TLB_SHIFT)); in swiotlb_exit()
|
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()
|
/kernel/linux/linux-5.10/arch/x86/realmode/ |
D | init.c | 95 size_t size = PAGE_ALIGN(real_mode_blob_end - real_mode_blob); in setup_real_mode() 183 size_t size = PAGE_ALIGN(real_mode_blob_end - real_mode_blob); in set_real_mode_permissions() 186 PAGE_ALIGN(real_mode_header->ro_end) - in set_real_mode_permissions() 190 PAGE_ALIGN(real_mode_header->ro_end) - in set_real_mode_permissions()
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
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()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
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))
|
/kernel/linux/linux-5.10/arch/s390/mm/ |
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()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
D | svm.c | 54 vstart = memblock_alloc(PAGE_ALIGN(bytes), PAGE_SIZE); in svm_swiotlb_init() 60 PAGE_ALIGN(io_tlb_nslabs << IO_TLB_SHIFT)); in svm_swiotlb_init()
|
/kernel/linux/linux-5.10/arch/ia64/mm/ |
D | init.c | 92 current->thread.rbs_bot = PAGE_ALIGN(current->mm->start_stack - stack_size); in ia64_set_rbs_bot() 190 start = PAGE_ALIGN(start); in free_initrd_mem() 383 end_address = PAGE_ALIGN(end_address); in vmemmap_find_next_valid_pfn() 452 end_page = PAGE_ALIGN((unsigned long) map_end); in create_mem_map_page_table() 534 map_end += ((PAGE_ALIGN((unsigned long) map_end) - (unsigned long) map_end) in virtual_memmap_init() 618 pfn_start = (PAGE_ALIGN(__pa(start))) >> PAGE_SHIFT; in find_max_min_low_pfn() 619 pfn_end = (PAGE_ALIGN(__pa(end - 1))) >> PAGE_SHIFT; in find_max_min_low_pfn()
|
/kernel/linux/linux-5.10/arch/arm/plat-omap/ |
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()
|
/kernel/linux/linux-5.10/sound/core/ |
D | memalloc.c | 40 PAGE_ALIGN(size) >> PAGE_SHIFT); in snd_malloc_dev_pages() 50 PAGE_ALIGN(dmab->bytes) >> PAGE_SHIFT); in snd_free_dev_pages() 136 size = PAGE_ALIGN(size); in snd_dma_alloc_pages()
|
/kernel/linux/linux-5.10/arch/powerpc/mm/ |
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()
|
/kernel/linux/linux-5.10/arch/c6x/kernel/ |
D | setup.c | 301 if (mem_size && (PAGE_OFFSET + PAGE_ALIGN(mem_size)) < memory_end) in setup_arch() 302 memory_end = PAGE_OFFSET + PAGE_ALIGN(mem_size); in setup_arch() 309 PAGE_ALIGN((unsigned long)&_end - PAGE_OFFSET)); in setup_arch() 326 memory_start = PAGE_ALIGN((unsigned int) &_end); in setup_arch()
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
D | ioport.c | 283 size = PAGE_ALIGN(size); in sparc_dma_free_resource() 327 size = PAGE_ALIGN(size); in arch_dma_alloc() 359 size = PAGE_ALIGN(size); in arch_dma_free() 375 dma_make_coherent(paddr, PAGE_ALIGN(size)); in arch_sync_dma_for_cpu()
|
/kernel/linux/linux-5.10/arch/mips/sgi-ip27/ |
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()
|
/kernel/linux/linux-5.10/arch/microblaze/kernel/ |
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()
|
/kernel/linux/linux-5.10/fs/erofs/ |
D | decompressor.c | 35 PAGE_ALIGN(rq->pageofs_out + rq->outputsize) >> PAGE_SHIFT; in z_erofs_lz4_prepare_destpages() 151 const uint nr = PAGE_ALIGN(rq->pageofs_out + in z_erofs_lz4_decompress() 236 PAGE_ALIGN(rq->pageofs_out + rq->outputsize) >> PAGE_SHIFT; in z_erofs_decompress_generic() 307 PAGE_ALIGN(rq->pageofs_out + rq->outputsize) >> PAGE_SHIFT; in z_erofs_shifted_transform()
|
/kernel/linux/linux-5.10/drivers/staging/android/ion/ |
D | ion_cma_heap.c | 34 unsigned long size = PAGE_ALIGN(len); in ion_cma_allocate() 87 unsigned long nr_pages = PAGE_ALIGN(buffer->size) >> PAGE_SHIFT; in ion_cma_free()
|
/kernel/linux/linux-5.10/arch/sh/mm/ |
D | mmap.c | 63 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area() 113 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area_topdown()
|
/kernel/linux/linux-5.10/mm/ |
D | util.c | 328 return PAGE_ALIGN(stack_top) + random_variable; in randomize_stack_top() 330 return PAGE_ALIGN(stack_top) - random_variable; in randomize_stack_top() 351 range -= PAGE_ALIGN(start) - start; in randomize_page() 352 start = PAGE_ALIGN(start); in randomize_page() 426 return PAGE_ALIGN(STACK_TOP - gap - rnd); in mmap_base() 553 if (unlikely(offset + PAGE_ALIGN(len) < offset)) in vm_mmap()
|
/kernel/linux/linux-5.10/arch/s390/pci/ |
D | pci_dma.c | 136 unsigned int nr_pages = PAGE_ALIGN(size) >> PAGE_SHIFT; in __dma_update_trans() 201 PAGE_ALIGN(size)); in __dma_purge_tlb() 404 size = PAGE_ALIGN(size); in s390_dma_alloc() 428 size = PAGE_ALIGN(size); in s390_dma_free() 439 unsigned long nr_pages = PAGE_ALIGN(size) >> PAGE_SHIFT; in __s390_dma_map_sg() 574 zdev->start_dma = PAGE_ALIGN(zdev->start_dma); in zpci_dma_init_device()
|
/kernel/linux/linux-5.10/arch/arm/mm/ |
D | dma-mapping.c | 673 .size = PAGE_ALIGN(size), in __dma_alloc() 765 unsigned long nr_pages = PAGE_ALIGN(size) >> PAGE_SHIFT; in __arm_dma_mmap() 811 .size = PAGE_ALIGN(size), in __arm_dma_free() 855 sg_set_page(sgt->sgl, page, PAGE_ALIGN(size), 0); in arm_dma_get_sgtable() 1115 count = PAGE_ALIGN(size) >> PAGE_SHIFT; in __alloc_iova() 1314 unsigned int count = PAGE_ALIGN(size) >> PAGE_SHIFT; in __iommu_create_mapping() 1357 size = PAGE_ALIGN((iova & ~PAGE_MASK) + size); in __iommu_remove_mapping() 1431 size = PAGE_ALIGN(size); in __arm_iommu_alloc_attrs() 1488 unsigned long nr_pages = PAGE_ALIGN(size) >> PAGE_SHIFT; in __arm_iommu_mmap_attrs() 1527 size = PAGE_ALIGN(size); in __arm_iommu_free_attrs() [all …]
|
D | mmap.c | 63 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area() 115 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area_topdown()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/ |
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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_memory.c | 64 PAGE_ALIGN(size) / PAGE_SIZE; in agp_remap() 70 size = PAGE_ALIGN(size); in agp_remap()
|