Home
last modified time | relevance | path

Searched refs:round_down (Results 1 – 25 of 218) sorted by relevance

123456789

/linux/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_blit.c113 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 Dinit.c330 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 Ddes_glue.c113 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 Daes_glue.c235 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 Dcamellia_glue.c113 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 Ddelalloc-space.c137 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 Dfile.c490 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 Dpinctrl-sunxi.h241 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 Di915_gem_gtt.c132 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 Di915_random.c99 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 Dfind_bit.c53 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 Dpgtable_64.c71 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 Dblk-settings.c134 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 Daes_xts.c120 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 Dkaslr_booke.c349 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 Dreport_generic.c234 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 Daes-neonbs-glue.c107 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 Dpoly1305-glue.c101 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 Dblock.c79 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 Dpoly1305-glue.c91 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 Daes-spe-glue.c192 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 Dmath.h12 #define round_down(x, y) ((x) & ~__round_mask(x, y)) macro
/linux/arch/arm/crypto/
A Dcrc32-ce-glue.c123 l = round_down(length, SCALE_F); in crc32_pmull_update()
157 l = round_down(length, SCALE_F); in crc32c_pmull_update()
A Daes-neonbs-glue.c103 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 Duniphier-system-bus.c73 paddr = round_down(paddr, 0x00020000); in uniphier_system_bus_add_bank()
83 paddr = round_down(paddr, mask); in uniphier_system_bus_add_bank()

Completed in 33 milliseconds

123456789