Home
last modified time | relevance | path

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

1234567

/Linux-v6.6/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-v6.6/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)))
Dpageblock-flags.h58 #define pageblock_start_pfn(pfn) ALIGN_DOWN((pfn), pageblock_nr_pages)
/Linux-v6.6/mm/kmsan/
Dcore.c115 ALIGN_DOWN((u64)src, KMSAN_ORIGIN_SIZE)) / in kmsan_internal_memmove_metadata()
118 ALIGN_DOWN((u64)dst, KMSAN_ORIGIN_SIZE)) / in kmsan_internal_memmove_metadata()
129 (u32 *)ALIGN_DOWN((u64)shadow_src, KMSAN_ORIGIN_SIZE); in kmsan_internal_memmove_metadata()
408 if (ALIGN_DOWN(cur_addr + size - 1, PAGE_SIZE) == in kmsan_metadata_is_contiguous()
409 ALIGN_DOWN(cur_addr, PAGE_SIZE)) in kmsan_metadata_is_contiguous()
/Linux-v6.6/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-v6.6/mm/kfence/
Dcore.c242 return !KFENCE_WARN_ON(!kfence_protect_page(ALIGN_DOWN(addr, PAGE_SIZE), true)); in kfence_protect()
247 return !KFENCE_WARN_ON(!kfence_protect_page(ALIGN_DOWN(addr, PAGE_SIZE), false)); in kfence_unprotect()
266 if (KFENCE_WARN_ON(ALIGN_DOWN(meta->addr, PAGE_SIZE) != pageaddr)) in metadata_to_pageaddr()
329 const unsigned long pageaddr = ALIGN_DOWN(meta->addr, PAGE_SIZE); in set_canary()
339 addr = ALIGN_DOWN(meta->addr + meta->size, sizeof(u64)); in set_canary()
346 const unsigned long pageaddr = ALIGN_DOWN(meta->addr, PAGE_SIZE); in check_canary()
448 meta->addr = ALIGN_DOWN(meta->addr, cache->align); in kfence_guarded_alloc()
512 kcsan_begin_scoped_access((void *)ALIGN_DOWN((unsigned long)addr, PAGE_SIZE), PAGE_SIZE, in kfence_guarded_free()
521 memzero_explicit((void *)ALIGN_DOWN(meta->unprotected_page, PAGE_SIZE), PAGE_SIZE); in kfence_guarded_free()
/Linux-v6.6/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.c162 start_addr = ALIGN_DOWN(hw->address, HW_BREAKPOINT_SIZE); in hw_breakpoint_validate_len()
170 (ALIGN_DOWN(start_addr, SZ_512) != ALIGN_DOWN(end_addr - 1, SZ_512))) in hw_breakpoint_validate_len()
/Linux-v6.6/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-v6.6/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_hash_table_pmd_range()
/Linux-v6.6/tools/testing/selftests/mm/
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-v6.6/arch/powerpc/mm/nohash/
D8xx.c130 for (; p < ALIGN_DOWN(top, SZ_8M) && p < top; p += SZ_8M, v += SZ_8M) in mmu_mapin_ram_chunk()
132 for (; p < ALIGN_DOWN(top, SZ_512K) && p < top; p += SZ_512K, v += SZ_512K) in mmu_mapin_ram_chunk()
/Linux-v6.6/tools/testing/memblock/linux/
Dmmzone.h26 #define pageblock_start_pfn(pfn) ALIGN_DOWN((pfn), pageblock_nr_pages)
/Linux-v6.6/tools/include/linux/
Dmm.h15 #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) macro
/Linux-v6.6/drivers/firmware/efi/libstub/
Dalignedmem.c37 alloc_addr = ALIGN_DOWN(max + 1, align) - 1; in efi_allocate_pages_aligned()
/Linux-v6.6/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-v6.6/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-v6.6/arch/powerpc/mm/
Dpageattr.c72 unsigned long start = ALIGN_DOWN(addr, PAGE_SIZE); in change_memory_attr()
/Linux-v6.6/mm/damon/
Dcore.c245 ALIGN_DOWN(range->start, in damon_set_regions()
253 first->ar.start = ALIGN_DOWN(range->start, in damon_set_regions()
854 sz_to_skip = ALIGN_DOWN(quota->charge_addr_from - in damos_skip_charged_region()
899 start = ALIGN_DOWN(filter->addr_range.start, DAMON_MIN_REGION); in __damos_filter_out()
900 end = ALIGN_DOWN(filter->addr_range.end, DAMON_MIN_REGION); in __damos_filter_out()
952 sz = ALIGN_DOWN(quota->esz - quota->charged_sz, in damos_apply_scheme()
1197 sz_sub = ALIGN_DOWN(damon_rand(1, 10) * in damon_split_regions_of()
Dpaddr.c158 if (ALIGN_DOWN(last_addr, last_folio_sz) == in __damon_pa_check_access()
159 ALIGN_DOWN(r->sampling_addr, last_folio_sz)) { in __damon_pa_check_access()
/Linux-v6.6/drivers/acpi/nfit/
Dmce.c67 ALIGN_DOWN(mce->addr, align), align); in nfit_handle_mce()
/Linux-v6.6/drivers/misc/lkdtm/
Dstackleak.c72 untracked_high = ALIGN_DOWN(untracked_high, sizeof(unsigned long)); in check_stackleak_irqoff()
/Linux-v6.6/include/video/
Dudlfb.h101 #define DL_ALIGN_DOWN(x, a) ALIGN_DOWN(x, a)

1234567