Home
last modified time | relevance | path

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

12345678910

/linux-6.6.21/drivers/gpu/drm/vmwgfx/
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-6.6.21/arch/s390/boot/
Dstartup.c207 __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/
Dinit.c355 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/
Dunaccepted_memory.c44 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/
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()
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()
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-6.6.21/fs/btrfs/
Ddelalloc-space.c141 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/
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-6.6.21/arch/x86/boot/compressed/
Dpgtable_64.c65 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/
Di915_gem_gtt.c135 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()
Di915_scatterlist.c84 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()
Di915_sysfs.c75 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/
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-6.6.21/drivers/nvmem/
Dsunxi_sid.c48 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/
Dkaslr_booke.c343 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/
Dmath.h12 #define round_down(x, y) ((x) & ~__round_mask(x, y)) macro
/linux-6.6.21/block/
Dblk-settings.c134 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/
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()
/linux-6.6.21/arch/mips/crypto/
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-6.6.21/arch/arm/include/asm/
Defi.h66 return round_down(image_addr, SZ_4M) + SZ_512M; in efi_get_max_initrd_addr()
/linux-6.6.21/arch/arm/crypto/
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()
/linux-6.6.21/arch/powerpc/crypto/
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-6.6.21/mm/kasan/
Dreport_generic.c306 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/
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()

12345678910