/linux-6.6.21/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_blit.c | 113 return round_down(offset + diff_offs, granularity); \ 164 return round_down(offset + vmw_find_first_diff_u8(dst, src, size), in vmw_find_first_diff() 186 return round_down(location, granularity); \ 195 size_t to_copy = round_down(size, sizeof(_type)); \ 232 return round_down(vmw_find_last_diff_u8(dst, src, size) - 1, in vmw_find_last_diff() 293 if (WARN_ON_ONCE(round_down(n, diff->cpp) != n)) in vmw_diff_memcpy()
|
/linux-6.6.21/arch/s390/boot/ |
D | startup.c | 207 __memcpy_real_area = round_down(vmax - MEMCPY_REAL_SIZE, PAGE_SIZE); in setup_kernel_memory_layout() 208 __abs_lowcore = round_down(__memcpy_real_area - ABS_LOWCORE_MAP_SIZE, in setup_kernel_memory_layout() 210 MODULES_END = round_down(__abs_lowcore, _SEGMENT_SIZE); in setup_kernel_memory_layout() 215 vsize = round_down(VMALLOC_END / 2, _SEGMENT_SIZE); in setup_kernel_memory_layout() 223 vmemmap_start = round_down(VMALLOC_START - pages * sizeof(struct page), rte_size); in setup_kernel_memory_layout()
|
/linux-6.6.21/arch/x86/mm/ |
D | init.c | 355 unsigned long start = round_down(mr[i].start, PMD_SIZE); in adjust_range_page_size_mask() 368 unsigned long start = round_down(mr[i].start, PUD_SIZE); in adjust_range_page_size_mask() 438 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 441 if (end_pfn > round_down(limit_pfn, PFN_DOWN(PMD_SIZE))) in split_mem_range() 442 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 454 end_pfn = round_down(limit_pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 464 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 665 start = round_down(last_start - 1, step_size); in memory_map_top_down()
|
/linux-6.6.21/drivers/firmware/efi/libstub/ |
D | unaccepted_memory.c | 44 unaccepted_start = round_down(unaccepted_start, in allocate_unaccepted_bitmap() 138 arch_accept_memory(round_down(end, unit_size), end); in process_unaccepted_memory() 139 end = round_down(end, unit_size); in process_unaccepted_memory()
|
/linux-6.6.21/arch/sparc/crypto/ |
D | des_glue.c | 113 round_down(nbytes, DES_BLOCK_SIZE)); in __ecb_crypt() 156 round_down(nbytes, in __cbc_crypt() 162 round_down(nbytes, in __cbc_crypt() 265 round_down(nbytes, DES_BLOCK_SIZE)); in __ecb3_crypt() 312 round_down(nbytes, in __cbc3_crypt() 318 round_down(nbytes, in __cbc3_crypt()
|
D | aes_glue.c | 235 round_down(nbytes, AES_BLOCK_SIZE)); in ecb_encrypt() 260 round_down(nbytes, AES_BLOCK_SIZE)); in ecb_decrypt() 284 round_down(nbytes, AES_BLOCK_SIZE), in cbc_encrypt() 310 round_down(nbytes, AES_BLOCK_SIZE), in cbc_decrypt() 350 round_down(nbytes, AES_BLOCK_SIZE), in ctr_crypt()
|
D | camellia_glue.c | 113 round_down(nbytes, CAMELLIA_BLOCK_SIZE), key); in __ecb_crypt() 160 round_down(nbytes, CAMELLIA_BLOCK_SIZE), key, walk.iv); in cbc_encrypt() 189 round_down(nbytes, CAMELLIA_BLOCK_SIZE), key, walk.iv); in cbc_decrypt()
|
/linux-6.6.21/fs/btrfs/ |
D | delalloc-space.c | 141 round_down(start, fs_info->sectorsize); in btrfs_check_data_free_space() 142 start = round_down(start, fs_info->sectorsize); in btrfs_check_data_free_space() 198 round_down(start, fs_info->sectorsize); in btrfs_free_reserved_data_space() 199 start = round_down(start, fs_info->sectorsize); in btrfs_free_reserved_data_space()
|
/linux-6.6.21/drivers/gpu/drm/i915/selftests/ |
D | i915_random.c | 99 BUG_ON(round_up(start, align) > round_down(end - len, align)); in igt_random_offset() 101 range = round_down(end - len, align) - round_up(start, align); in igt_random_offset()
|
/linux-6.6.21/arch/x86/boot/compressed/ |
D | pgtable_64.c | 65 bios_start = round_down(bios_start, PAGE_SIZE); in find_trampoline_placement() 86 new = round_down(new, PAGE_SIZE); in find_trampoline_placement()
|
/linux-6.6.21/drivers/gpu/drm/i915/ |
D | i915_gem_gtt.c | 135 GEM_BUG_ON(round_up(start, align) > round_down(end - len, align)); in random_offset() 137 range = round_down(end - len, align) - round_up(start, align); in random_offset() 215 if (unlikely(round_up(start, alignment) > round_down(end - size, alignment))) in i915_gem_gtt_insert()
|
D | i915_scatterlist.c | 84 const u32 max_segment = round_down(UINT_MAX, page_alignment); in i915_rsgt_from_mm_node() 169 const u32 max_segment = round_down(UINT_MAX, page_alignment); in i915_rsgt_from_buddy_resource()
|
D | i915_sysfs.c | 75 count = round_down(count, sizeof(u32)); in i915_l3_read() 121 count = round_down(count, sizeof(u32)); in i915_l3_write()
|
/linux-6.6.21/drivers/crypto/vmx/ |
D | aes_xts.c | 120 round_down(nbytes, AES_BLOCK_SIZE), in p8_aes_xts_crypt() 125 round_down(nbytes, AES_BLOCK_SIZE), in p8_aes_xts_crypt()
|
/linux-6.6.21/drivers/nvmem/ |
D | sunxi_sid.c | 48 val += round_down(bytes, 4); in sunxi_sid_read() 49 offset += round_down(bytes, 4); in sunxi_sid_read()
|
/linux-6.6.21/arch/powerpc/mm/nohash/ |
D | kaslr_booke.c | 343 offset = round_down(offset, SZ_16K); in kaslr_choose_location() 372 tlb_virt = round_down(kernstart_virt_addr, SZ_64M); in kaslr_early_init() 373 tlb_phys = round_down(kernstart_addr, SZ_64M); in kaslr_early_init()
|
/linux-6.6.21/tools/include/linux/ |
D | math.h | 12 #define round_down(x, y) ((x) & ~__round_mask(x, y)) macro
|
/linux-6.6.21/block/ |
D | blk-settings.c | 134 max_hw_sectors = round_down(max_hw_sectors, in blk_queue_max_hw_sectors() 145 max_sectors = round_down(max_sectors, in blk_queue_max_hw_sectors() 322 round_down(limits->max_hw_sectors, size >> SECTOR_SHIFT); in blk_queue_logical_block_size() 324 round_down(limits->max_sectors, size >> SECTOR_SHIFT); in blk_queue_logical_block_size() 526 sectors = round_down(sectors, lbs >> SECTOR_SHIFT); in blk_round_down_sectors()
|
/linux-6.6.21/drivers/bus/ |
D | uniphier-system-bus.c | 73 paddr = round_down(paddr, 0x00020000); in uniphier_system_bus_add_bank() 83 paddr = round_down(paddr, mask); in uniphier_system_bus_add_bank()
|
/linux-6.6.21/arch/mips/crypto/ |
D | poly1305-glue.c | 91 src += round_down(len, POLY1305_BLOCK_SIZE); in mips_poly1305_update() 121 unsigned int len = round_down(nbytes, POLY1305_BLOCK_SIZE); in poly1305_update_arch()
|
/linux-6.6.21/arch/arm/include/asm/ |
D | efi.h | 66 return round_down(image_addr, SZ_4M) + SZ_512M; in efi_get_max_initrd_addr()
|
/linux-6.6.21/arch/arm/crypto/ |
D | crc32-ce-glue.c | 123 l = round_down(length, SCALE_F); in crc32_pmull_update() 157 l = round_down(length, SCALE_F); in crc32c_pmull_update()
|
/linux-6.6.21/arch/powerpc/crypto/ |
D | aes-spe-glue.c | 192 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in ppc_ecb_crypt() 231 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in ppc_cbc_crypt() 273 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in ppc_ctr_crypt() 300 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in ppc_xts_crypt()
|
/linux-6.6.21/mm/kasan/ |
D | report_generic.c | 306 aligned_addr = round_down((unsigned long)addr, sizeof(long)); in get_address_stack_frame_info() 307 mem_ptr = round_down(aligned_addr, KASAN_GRANULE_SIZE); in get_address_stack_frame_info()
|
/linux-6.6.21/arch/arm64/crypto/ |
D | poly1305-glue.c | 101 src += round_down(len, POLY1305_BLOCK_SIZE); in neon_poly1305_do_update() 143 unsigned int len = round_down(nbytes, POLY1305_BLOCK_SIZE); in poly1305_update_arch()
|