/linux-5.19.10/arch/powerpc/mm/kasan/ |
D | 8xx.c | 48 kasan_init_shadow_8M(k_start, ALIGN_DOWN(k_end, SZ_8M), block); in kasan_init_region() 49 k_cur = ALIGN_DOWN(k_end, SZ_8M); in kasan_init_region() 65 if (k_cur < ALIGN_DOWN(k_end, SZ_512K)) in kasan_init_region()
|
D | init_book3s_64.c | 32 k_start = ALIGN_DOWN((unsigned long)kasan_mem_to_shadow(start), PAGE_SIZE); in kasan_init_phys_region()
|
/linux-5.19.10/include/linux/ |
D | align.h | 9 #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) macro 12 #define PTR_ALIGN_DOWN(p, a) ((typeof(p))ALIGN_DOWN((unsigned long)(p), (a)))
|
/linux-5.19.10/mm/ |
D | page_isolation.c | 40 VM_BUG_ON(ALIGN_DOWN(start_pfn, pageblock_nr_pages) != in has_unmovable_pages() 41 ALIGN_DOWN(end_pfn - 1, pageblock_nr_pages)); in has_unmovable_pages() 328 start_pfn = max(ALIGN_DOWN(isolate_pageblock, MAX_ORDER_NR_PAGES), in isolate_single_pageblock() 534 unsigned long isolate_start = ALIGN_DOWN(start_pfn, pageblock_nr_pages); in start_isolate_page_range() 579 unsigned long isolate_start = ALIGN_DOWN(start_pfn, pageblock_nr_pages); in undo_isolate_page_range()
|
/linux-5.19.10/drivers/mtd/ |
D | mtdpstore.c | 33 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_block_isbad() 55 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_panic_block_isbad() 87 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_block_mark_unused() 114 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_block_is_used() 156 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_block_clear_removed() 172 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_block_is_removed() 189 off = ALIGN_DOWN(off, cxt->mtd->erasesize); in mtdpstore_erase_do()
|
/linux-5.19.10/arch/powerpc/kernel/ |
D | hw_breakpoint_constraints.c | 25 hw_start_addr = ALIGN_DOWN(info->address, HW_BREAKPOINT_SIZE); in dar_in_hw_range() 44 hw_start_addr = ALIGN_DOWN(info->address, align_size); in ea_hw_range_overlaps()
|
D | hw_breakpoint.c | 151 bp1_saddr = ALIGN_DOWN(bp1->attr.bp_addr, HW_BREAKPOINT_SIZE); in bp_addr_range_overlap() 153 bp2_saddr = ALIGN_DOWN(bp2->attr.bp_addr, HW_BREAKPOINT_SIZE); in bp_addr_range_overlap() 414 start_addr = ALIGN_DOWN(hw->address, HW_BREAKPOINT_SIZE); in hw_breakpoint_validate_len() 422 (ALIGN_DOWN(start_addr, SZ_512) != ALIGN_DOWN(end_addr - 1, SZ_512))) in hw_breakpoint_validate_len()
|
/linux-5.19.10/mm/kfence/ |
D | core.c | 235 return !KFENCE_WARN_ON(!kfence_protect_page(ALIGN_DOWN(addr, PAGE_SIZE), true)); in kfence_protect() 240 return !KFENCE_WARN_ON(!kfence_protect_page(ALIGN_DOWN(addr, PAGE_SIZE), false)); in kfence_unprotect() 259 if (KFENCE_WARN_ON(ALIGN_DOWN(meta->addr, PAGE_SIZE) != pageaddr)) in metadata_to_pageaddr() 330 const unsigned long pageaddr = ALIGN_DOWN(meta->addr, PAGE_SIZE); in for_each_canary() 413 meta->addr = ALIGN_DOWN(meta->addr, cache->align); in kfence_guarded_alloc() 477 kcsan_begin_scoped_access((void *)ALIGN_DOWN((unsigned long)addr, PAGE_SIZE), PAGE_SIZE, in kfence_guarded_free() 486 memzero_explicit((void *)ALIGN_DOWN(meta->unprotected_page, PAGE_SIZE), PAGE_SIZE); in kfence_guarded_free()
|
/linux-5.19.10/tools/testing/selftests/vm/ |
D | pkey-helpers.h | 181 #define ALIGN_DOWN(x, align_to) ((x) & ~((align_to)-1)) macro 185 ((typeof(p))ALIGN_DOWN((unsigned long)(p), ptr_align_to))
|
/linux-5.19.10/fs/iomap/ |
D | swapfile.c | 49 next_ppage = ALIGN_DOWN(iomap->addr + iomap->length, PAGE_SIZE) >> in iomap_swapfile_add_extent() 150 .len = ALIGN_DOWN(i_size_read(inode), PAGE_SIZE), in iomap_swapfile_activate()
|
/linux-5.19.10/arch/powerpc/mm/book3s64/ |
D | hash_tlb.c | 195 start = ALIGN_DOWN(start, PAGE_SIZE); in __flush_hash_table_range() 230 addr = ALIGN_DOWN(addr, PMD_SIZE); in flush_tlb_pmd_range()
|
/linux-5.19.10/mm/kasan/ |
D | shadow.c | 298 shadow_start = ALIGN_DOWN(shadow_start, PAGE_SIZE); in kasan_populate_vmalloc() 450 region_end = ALIGN_DOWN(end, KASAN_MEMORY_PER_SHADOW_PAGE); in kasan_release_vmalloc() 458 free_region_end = ALIGN_DOWN(free_region_end, KASAN_MEMORY_PER_SHADOW_PAGE); in kasan_release_vmalloc()
|
/linux-5.19.10/arch/powerpc/mm/nohash/ |
D | 8xx.c | 135 for (; p < ALIGN_DOWN(top, SZ_8M) && p < top; p += SZ_8M, v += SZ_8M) in mmu_mapin_ram_chunk() 137 for (; p < ALIGN_DOWN(top, SZ_512K) && p < top; p += SZ_512K, v += SZ_512K) in mmu_mapin_ram_chunk()
|
/linux-5.19.10/drivers/firmware/efi/libstub/ |
D | alignedmem.c | 34 alloc_addr = ALIGN_DOWN(max + 1, align) - 1; in efi_allocate_pages_aligned()
|
/linux-5.19.10/tools/include/linux/ |
D | mm.h | 17 #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) macro
|
/linux-5.19.10/arch/arm64/kvm/hyp/include/nvhe/ |
D | mm.h | 35 *start = ALIGN_DOWN(*start, PAGE_SIZE); in hyp_vmemmap_range()
|
/linux-5.19.10/mm/damon/ |
D | paddr.c | 177 if (ALIGN_DOWN(last_addr, last_page_sz) == in __damon_pa_check_access() 178 ALIGN_DOWN(r->sampling_addr, last_page_sz)) { in __damon_pa_check_access()
|
/linux-5.19.10/arch/powerpc/include/asm/ |
D | kasan.h | 23 #define KASAN_KERN_START ALIGN_DOWN(PAGE_OFFSET - SZ_256M, SZ_256M)
|
D | fixmap.h | 97 ALIGN_DOWN(FIXADDR_START, PGDIR_SIZE))
|
/linux-5.19.10/arch/powerpc/platforms/ps3/ |
D | mm.c | 269 r->size = ALIGN_DOWN(size, 1 << PAGE_SHIFT_16M); in ps3_mm_region_create() 401 unsigned long aligned_bus = ALIGN_DOWN(bus_addr, 1 << r->page_size); in dma_find_chunk() 430 unsigned long aligned_lpar = ALIGN_DOWN(lpar_addr, 1 << r->page_size); in dma_find_chunk_lpar() 782 unsigned long aligned_phys = ALIGN_DOWN(phys_addr, 1 << r->page_size); in dma_sb_map_area() 837 unsigned long aligned_phys = ALIGN_DOWN(phys_addr, 1 << r->page_size); in dma_ioc0_map_area() 896 unsigned long aligned_bus = ALIGN_DOWN(bus_addr, in dma_sb_unmap_area() 933 unsigned long aligned_bus = ALIGN_DOWN(bus_addr, in dma_ioc0_unmap_area()
|
/linux-5.19.10/arch/powerpc/mm/ |
D | pageattr.c | 72 unsigned long start = ALIGN_DOWN(addr, PAGE_SIZE); in change_memory_attr()
|
D | init_64.c | 208 start = ALIGN_DOWN(start, page_size); in vmemmap_populate() 314 start = ALIGN_DOWN(start, page_size); in vmemmap_free()
|
/linux-5.19.10/drivers/acpi/nfit/ |
D | mce.c | 67 ALIGN_DOWN(mce->addr, align), align); in nfit_handle_mce()
|
/linux-5.19.10/drivers/misc/lkdtm/ |
D | stackleak.c | 70 untracked_high = ALIGN_DOWN(untracked_high, sizeof(unsigned long)); in check_stackleak_irqoff()
|
/linux-5.19.10/include/video/ |
D | udlfb.h | 101 #define DL_ALIGN_DOWN(x, a) ALIGN_DOWN(x, a)
|