Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.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()
/kernel/liteos_m/arch/risc-v/nuclei/gcc/
Dlos_context.c30 #define ALIGN_DOWN(size, align) ((size) & ~((align) - 1)) macro
51 stk = (UINT8 *)ALIGN_DOWN((uintptr_t)stk, REGBYTES); in ArchTskStackInit()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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.c152 bp1_saddr = ALIGN_DOWN(bp1->attr.bp_addr, HW_BREAKPOINT_SIZE); in bp_addr_range_overlap()
154 bp2_saddr = ALIGN_DOWN(bp2->attr.bp_addr, HW_BREAKPOINT_SIZE); in bp_addr_range_overlap()
415 start_addr = ALIGN_DOWN(hw->address, HW_BREAKPOINT_SIZE); in hw_breakpoint_validate_len()
423 (ALIGN_DOWN(start_addr, SZ_512) != ALIGN_DOWN(end_addr - 1, SZ_512))) in hw_breakpoint_validate_len()
Dprom.c99 return (start + size) > ALIGN_DOWN(initrd_start, PAGE_SIZE) && in overlaps_initrd()
636 memblock_reserve(ALIGN_DOWN(__pa(initrd_start), PAGE_SIZE), in early_reserve_mem()
638 ALIGN_DOWN(initrd_start, PAGE_SIZE)); in early_reserve_mem()
/kernel/linux/linux-5.10/fs/iomap/
Dswapfile.c48 next_ppage = ALIGN_DOWN(iomap->addr + iomap->length, PAGE_SIZE) >> in iomap_swapfile_add_extent()
152 loff_t len = ALIGN_DOWN(i_size_read(inode), PAGE_SIZE); in iomap_swapfile_activate()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
Dpkey-helpers.h180 #define ALIGN_DOWN(x, align_to) ((x) & ~((align_to)-1)) macro
184 ((typeof(p))ALIGN_DOWN((unsigned long)(p), ptr_align_to))
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/
Dalignedmem.c34 alloc_addr = ALIGN_DOWN(max + 1, align) - 1; in efi_allocate_pages_aligned()
Dmem.c101 alloc_addr = ALIGN_DOWN(max + 1, EFI_ALLOC_ALIGN) - 1; in efi_allocate_pages()
/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/
D8xx.c139 for (; p < ALIGN_DOWN(top, SZ_8M) && p < top; p += SZ_8M, v += SZ_8M) in mmu_mapin_ram_chunk()
141 for (; p < ALIGN_DOWN(top, SZ_512K) && p < top; p += SZ_512K, v += SZ_512K) in mmu_mapin_ram_chunk()
/kernel/linux/linux-5.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))
/kernel/linux/linux-5.10/arch/powerpc/platforms/ps3/
Dmm.c268 r->size = ALIGN_DOWN(size, 1 << PAGE_SHIFT_16M); in ps3_mm_region_create()
400 unsigned long aligned_bus = ALIGN_DOWN(bus_addr, 1 << r->page_size); in dma_find_chunk()
429 unsigned long aligned_lpar = ALIGN_DOWN(lpar_addr, 1 << r->page_size); in dma_find_chunk_lpar()
781 unsigned long aligned_phys = ALIGN_DOWN(phys_addr, 1 << r->page_size); in dma_sb_map_area()
836 unsigned long aligned_phys = ALIGN_DOWN(phys_addr, 1 << r->page_size); in dma_ioc0_map_area()
895 unsigned long aligned_bus = ALIGN_DOWN(bus_addr, in dma_sb_unmap_area()
932 unsigned long aligned_bus = ALIGN_DOWN(bus_addr, in dma_ioc0_unmap_area()
/kernel/linux/linux-5.10/arch/powerpc/mm/
Dinit_64.c207 start = ALIGN_DOWN(start, page_size); in vmemmap_populate()
313 start = ALIGN_DOWN(start, page_size); in vmemmap_free()
/kernel/linux/linux-5.10/include/video/
Dudlfb.h101 #define DL_ALIGN_DOWN(x, a) ALIGN_DOWN(x, a)
/kernel/linux/linux-5.10/include/rdma/
Dib_umem.h41 ALIGN_DOWN(umem->iova, pgsz))) / in ib_umem_num_dma_blocks()
/kernel/linux/linux-5.10/drivers/rpmsg/
Dqcom_glink_rpm.c168 aligned_dlen = ALIGN_DOWN(dlen, 4); in glink_rpm_tx_write()
176 pad = ALIGN(tlen, 8) - ALIGN_DOWN(tlen, 4); in glink_rpm_tx_write()
/kernel/linux/linux-5.10/fs/btrfs/
Dreflink.c700 const u64 wb_start = ALIGN_DOWN(inode->i_size, bs); in btrfs_clone_files()
789 wb_len = ALIGN(inode_in->i_size, bs) - ALIGN_DOWN(pos_in, bs); in btrfs_remap_file_range_prep()
823 ret = btrfs_wait_ordered_range(inode_in, ALIGN_DOWN(pos_in, bs), in btrfs_remap_file_range_prep()
827 ret = btrfs_wait_ordered_range(inode_out, ALIGN_DOWN(pos_out, bs), in btrfs_remap_file_range_prep()
/kernel/linux/linux-5.10/drivers/nvdimm/
Ddimm_devs.c767 start = ALIGN_DOWN(res->start, align); in alias_dpa_busy()
827 start = ALIGN_DOWN(res->start, align); in nd_blk_available_dpa()
871 end = ALIGN_DOWN(res->end + 1, align) - 1; in nd_pmem_max_contiguous_dpa()
918 start = ALIGN_DOWN(res->start, align); in nd_pmem_available_dpa()
949 return ALIGN_DOWN(available - busy, align); in nd_pmem_available_dpa()
/kernel/linux/linux-5.10/mm/
Dshuffle.c114 ALIGN_DOWN(get_random_long() % z->spanned_pages, in __shuffle_zone()
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dmodule-plts.c53 p = ALIGN_DOWN((u64)a, SZ_4K); in plt_entries_equal()
54 q = ALIGN_DOWN((u64)b, SZ_4K); in plt_entries_equal()
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s32/
Dmmu.c186 if (addr < ALIGN_DOWN(MODULES_VADDR, SZ_256M)) in is_module_segment()
191 if (addr < ALIGN_DOWN(VMALLOC_START, SZ_256M)) in is_module_segment()
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/
Dpgtable.c228 data->addr = ALIGN_DOWN(data->addr, kvm_granule_size(level)); in __kvm_pgtable_visit()
299 .addr = ALIGN_DOWN(addr, PAGE_SIZE), in kvm_pgtable_walk()
379 .phys = ALIGN_DOWN(phys, PAGE_SIZE), in kvm_pgtable_hyp_map()
623 .phys = ALIGN_DOWN(phys, PAGE_SIZE), in kvm_pgtable_stage2_map()

1234