/linux/drivers/gpu/drm/vmwgfx/ |
A 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/arch/x86/mm/ |
A D | init.c | 330 unsigned long start = round_down(mr[i].start, PMD_SIZE); in adjust_range_page_size_mask() 343 unsigned long start = round_down(mr[i].start, PUD_SIZE); in adjust_range_page_size_mask() 413 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 416 if (end_pfn > round_down(limit_pfn, PFN_DOWN(PMD_SIZE))) in split_mem_range() 417 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 429 end_pfn = round_down(limit_pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 439 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 640 start = round_down(last_start - 1, step_size); in memory_map_top_down()
|
/linux/arch/sparc/crypto/ |
A 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()
|
A 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()
|
A 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/fs/btrfs/ |
A D | delalloc-space.c | 137 round_down(start, fs_info->sectorsize); in btrfs_check_data_free_space() 138 start = round_down(start, fs_info->sectorsize); in btrfs_check_data_free_space() 189 round_down(start, fs_info->sectorsize); in btrfs_free_reserved_data_space() 190 start = round_down(start, fs_info->sectorsize); in btrfs_free_reserved_data_space()
|
A D | file.c | 490 start_pos = round_down(pos, fs_info->sectorsize); in btrfs_dirty_pages() 1452 start_pos = round_down(pos, fs_info->sectorsize); in lock_and_cleanup_extent_if_need() 1508 lockstart = round_down(pos, fs_info->sectorsize); in check_can_nocow() 1825 __pos = round_down(pos, in btrfs_buffered_write() 1884 round_down(pos, fs_info->sectorsize), in btrfs_buffered_write() 2545 round_down(*start, fs_info->sectorsize), in find_first_non_hole() 2982 lockend = round_down(offset + len, in btrfs_punch_hole() 3191 offset = round_down(offset, sectorsize); in btrfs_zero_range_check_range_boundary() 3293 alloc_start = round_down(offset, sectorsize); in btrfs_zero_range() 3313 alloc_start = round_down(offset, sectorsize); in btrfs_zero_range() [all …]
|
/linux/drivers/pinctrl/sunxi/ |
A D | pinctrl-sunxi.h | 241 return round_down(offset, 4); in sunxi_mux_reg() 256 return round_down(offset, 4); in sunxi_data_reg() 271 return round_down(offset, 4); in sunxi_dlevel_reg() 286 return round_down(offset, 4); in sunxi_pull_reg()
|
/linux/drivers/gpu/drm/i915/ |
A D | i915_gem_gtt.c | 132 GEM_BUG_ON(round_up(start, align) > round_down(end - len, align)); in random_offset() 134 range = round_down(end - len, align) - round_up(start, align); in random_offset() 210 if (unlikely(round_up(start, alignment) > round_down(end - size, alignment))) in i915_gem_gtt_insert()
|
/linux/drivers/gpu/drm/i915/selftests/ |
A 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/lib/ |
A D | find_bit.c | 53 start = round_down(start, BITS_PER_LONG); in _find_next_bit() 137 offset = round_down(offset, 8); in find_next_clump8()
|
/linux/arch/x86/boot/compressed/ |
A D | pgtable_64.c | 71 bios_start = round_down(bios_start, PAGE_SIZE); in find_trampoline_placement() 92 new = round_down(new, PAGE_SIZE); in find_trampoline_placement()
|
/linux/block/ |
A D | blk-settings.c | 134 max_hw_sectors = round_down(max_hw_sectors, in blk_queue_max_hw_sectors() 140 max_sectors = round_down(max_sectors, in blk_queue_max_hw_sectors() 317 round_down(limits->max_hw_sectors, size >> SECTOR_SHIFT); in blk_queue_logical_block_size() 319 round_down(limits->max_sectors, size >> SECTOR_SHIFT); in blk_queue_logical_block_size() 487 sectors = round_down(sectors, lbs >> SECTOR_SHIFT); in blk_round_down_sectors()
|
/linux/drivers/crypto/vmx/ |
A 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/arch/powerpc/mm/nohash/ |
A D | kaslr_booke.c | 349 offset = round_down(offset, SZ_16K); in kaslr_choose_location() 378 tlb_virt = round_down(kernstart_virt_addr, SZ_64M); in kaslr_early_init() 379 tlb_phys = round_down(kernstart_addr, SZ_64M); in kaslr_early_init()
|
/linux/mm/kasan/ |
A D | report_generic.c | 234 aligned_addr = round_down((unsigned long)addr, sizeof(long)); in get_address_stack_frame_info() 235 mem_ptr = round_down(aligned_addr, KASAN_GRANULE_SIZE); in get_address_stack_frame_info()
|
/linux/arch/arm64/crypto/ |
A D | aes-neonbs-glue.c | 107 blocks = round_down(blocks, in __ecb_crypt() 190 blocks = round_down(blocks, in cbc_decrypt() 220 blocks = round_down(blocks, in ctr_encrypt() 314 blocks = round_down(blocks, in __xts_crypt()
|
A 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()
|
/linux/fs/squashfs/ |
A D | block.c | 79 const u64 read_start = round_down(index, msblk->devblksize); in squashfs_bio_read() 83 int offset = read_start - round_down(index, PAGE_SIZE); in squashfs_bio_read()
|
/linux/arch/mips/crypto/ |
A 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/arch/powerpc/crypto/ |
A 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/tools/include/linux/ |
A D | math.h | 12 #define round_down(x, y) ((x) & ~__round_mask(x, y)) macro
|
/linux/arch/arm/crypto/ |
A 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()
|
A D | aes-neonbs-glue.c | 103 blocks = round_down(blocks, in __ecb_crypt() 177 blocks = round_down(blocks, in cbc_decrypt() 250 blocks = round_down(blocks, in ctr_encrypt() 380 blocks = round_down(blocks, in __xts_crypt()
|
/linux/drivers/bus/ |
A 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()
|