Home
last modified time | relevance | path

Searched refs:ALIGN_DOWN (Results 1 – 25 of 132) sorted by relevance

123456

/linux-5.19.10/arch/powerpc/mm/kasan/
D8xx.c48 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()
Dinit_book3s_64.c32 k_start = ALIGN_DOWN((unsigned long)kasan_mem_to_shadow(start), PAGE_SIZE); in kasan_init_phys_region()
/linux-5.19.10/include/linux/
Dalign.h9 #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/
Dpage_isolation.c40 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/
Dmtdpstore.c33 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/
Dhw_breakpoint_constraints.c25 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()
Dhw_breakpoint.c151 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/
Dcore.c235 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/
Dpkey-helpers.h181 #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/
Dswapfile.c49 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/
Dhash_tlb.c195 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/
Dshadow.c298 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/
D8xx.c135 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/
Dalignedmem.c34 alloc_addr = ALIGN_DOWN(max + 1, align) - 1; in efi_allocate_pages_aligned()
/linux-5.19.10/tools/include/linux/
Dmm.h17 #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) macro
/linux-5.19.10/arch/arm64/kvm/hyp/include/nvhe/
Dmm.h35 *start = ALIGN_DOWN(*start, PAGE_SIZE); in hyp_vmemmap_range()
/linux-5.19.10/mm/damon/
Dpaddr.c177 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/
Dkasan.h23 #define KASAN_KERN_START ALIGN_DOWN(PAGE_OFFSET - SZ_256M, SZ_256M)
Dfixmap.h97 ALIGN_DOWN(FIXADDR_START, PGDIR_SIZE))
/linux-5.19.10/arch/powerpc/platforms/ps3/
Dmm.c269 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/
Dpageattr.c72 unsigned long start = ALIGN_DOWN(addr, PAGE_SIZE); in change_memory_attr()
Dinit_64.c208 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/
Dmce.c67 ALIGN_DOWN(mce->addr, align), align); in nfit_handle_mce()
/linux-5.19.10/drivers/misc/lkdtm/
Dstackleak.c70 untracked_high = ALIGN_DOWN(untracked_high, sizeof(unsigned long)); in check_stackleak_irqoff()
/linux-5.19.10/include/video/
Dudlfb.h101 #define DL_ALIGN_DOWN(x, a) ALIGN_DOWN(x, a)

123456