Home
last modified time | relevance | path

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

123456

/Linux-v6.1/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()
/Linux-v6.1/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.1/mm/kmsan/
Dcore.c113 ALIGN_DOWN((u64)src, KMSAN_ORIGIN_SIZE)) / in kmsan_internal_memmove_metadata()
116 ALIGN_DOWN((u64)dst, KMSAN_ORIGIN_SIZE)) / in kmsan_internal_memmove_metadata()
127 (u32 *)ALIGN_DOWN((u64)shadow_src, KMSAN_ORIGIN_SIZE); in kmsan_internal_memmove_metadata()
404 if (ALIGN_DOWN(cur_addr + size - 1, PAGE_SIZE) == in kmsan_metadata_is_contiguous()
405 ALIGN_DOWN(cur_addr, PAGE_SIZE)) in kmsan_metadata_is_contiguous()
/Linux-v6.1/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.1/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.c159 bp1_saddr = ALIGN_DOWN(bp1->attr.bp_addr, HW_BREAKPOINT_SIZE); in bp_addr_range_overlap()
161 bp2_saddr = ALIGN_DOWN(bp2->attr.bp_addr, HW_BREAKPOINT_SIZE); in bp_addr_range_overlap()
441 start_addr = ALIGN_DOWN(hw->address, HW_BREAKPOINT_SIZE); in hw_breakpoint_validate_len()
449 (ALIGN_DOWN(start_addr, SZ_512) != ALIGN_DOWN(end_addr - 1, SZ_512))) in hw_breakpoint_validate_len()
/Linux-v6.1/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-v6.1/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.1/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-v6.1/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.1/arch/powerpc/mm/nohash/
D8xx.c129 for (; p < ALIGN_DOWN(top, SZ_8M) && p < top; p += SZ_8M, v += SZ_8M) in mmu_mapin_ram_chunk()
131 for (; p < ALIGN_DOWN(top, SZ_512K) && p < top; p += SZ_512K, v += SZ_512K) in mmu_mapin_ram_chunk()
/Linux-v6.1/tools/testing/memblock/linux/
Dmmzone.h26 #define pageblock_start_pfn(pfn) ALIGN_DOWN((pfn), pageblock_nr_pages)
/Linux-v6.1/drivers/firmware/efi/libstub/
Dalignedmem.c34 alloc_addr = ALIGN_DOWN(max + 1, align) - 1; in efi_allocate_pages_aligned()
/Linux-v6.1/tools/include/linux/
Dmm.h17 #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) macro
/Linux-v6.1/arch/arm64/kvm/hyp/include/nvhe/
Dmm.h35 *start = ALIGN_DOWN(*start, PAGE_SIZE); in hyp_vmemmap_range()
/Linux-v6.1/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.1/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.1/arch/powerpc/mm/
Dpageattr.c72 unsigned long start = ALIGN_DOWN(addr, PAGE_SIZE); in change_memory_attr()
/Linux-v6.1/arch/arm64/kvm/
Dmmu.c37 phys_addr_t boundary = ALIGN_DOWN(addr + size, size); in stage2_range_addr_end()
428 start = ALIGN_DOWN(__pa(from), PAGE_SIZE); in kvm_share_hyp()
448 start = ALIGN_DOWN(__pa(from), PAGE_SIZE); in kvm_unshare_hyp()
524 base = ALIGN_DOWN(base, PAGE_SIZE << get_order(size)); in hyp_alloc_private_va_range()
1070 ALIGN_DOWN(hva, PUD_SIZE) >= vma->vm_start && in get_vma_page_shift()
1076 ALIGN_DOWN(hva, PMD_SIZE) >= vma->vm_start && in get_vma_page_shift()
1623 hyp_idmap_start = ALIGN_DOWN(hyp_idmap_start, PAGE_SIZE); in kvm_mmu_init()
/Linux-v6.1/drivers/misc/lkdtm/
Dstackleak.c70 untracked_high = ALIGN_DOWN(untracked_high, sizeof(unsigned long)); in check_stackleak_irqoff()
/Linux-v6.1/drivers/acpi/nfit/
Dmce.c67 ALIGN_DOWN(mce->addr, align), align); in nfit_handle_mce()
/Linux-v6.1/mm/damon/
Dpaddr.c175 if (ALIGN_DOWN(last_addr, last_page_sz) == in __damon_pa_check_access()
176 ALIGN_DOWN(r->sampling_addr, last_page_sz)) { in __damon_pa_check_access()
/Linux-v6.1/include/video/
Dudlfb.h101 #define DL_ALIGN_DOWN(x, a) ALIGN_DOWN(x, a)

123456