Home
last modified time | relevance | path

Searched refs:round_down (Results 1 - 25 of 469) sorted by relevance

12345678910>>...19

/kernel/linux/linux-6.6/arch/s390/boot/
H A 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()
/kernel/linux/linux-5.10/arch/arm/include/asm/
H A Defi.h80 return round_down(image_addr, EFI_PHYS_ALIGN) + SZ_512M; in efi_get_max_fdt_addr()
86 return round_down(image_addr, EFI_PHYS_ALIGN) + SZ_512M; in efi_get_max_initrd_addr()
/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/
H A 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()
/kernel/linux/linux-5.10/arch/x86/mm/
H A Dinit.c360 unsigned long start = round_down(mr[i].start, PMD_SIZE); in adjust_range_page_size_mask()
373 unsigned long start = round_down(mr[i].start, PUD_SIZE); in adjust_range_page_size_mask()
443 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
446 if (end_pfn > round_down(limit_pfn, PFN_DOWN(PMD_SIZE))) in split_mem_range()
447 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
459 end_pfn = round_down(limit_pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
469 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
615 * when step_size is 0, round_down() returns 0 for start, and that in get_new_step_size()
659 start = round_down(last_start - 1, step_size); in memory_map_top_down()
/kernel/linux/linux-6.6/arch/x86/mm/
H A 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()
610 * when step_size is 0, round_down() returns 0 for start, and that in get_new_step_size()
665 start = round_down(last_start - 1, step_size); in memory_map_top_down()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
H 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()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/selftests/
H 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()
/kernel/linux/linux-5.10/arch/sparc/crypto/
H 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()
H 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()
/kernel/linux/linux-6.6/arch/sparc/crypto/
H 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()
H 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
H 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()
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/
H 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()
/kernel/linux/linux-5.10/fs/btrfs/
H 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()
186 round_down(start, fs_info->sectorsize); in btrfs_free_reserved_data_space()
187 start = round_down(start, fs_info->sectorsize); in btrfs_free_reserved_data_space()
/kernel/linux/linux-5.10/drivers/pinctrl/sunxi/
H 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()
/kernel/linux/linux-6.6/fs/btrfs/
H A 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
H A Di915_gem_gtt.c138 GEM_BUG_ON(round_up(start, align) > round_down(end - len, align)); in random_offset()
140 range = round_down(end - len, align) - round_up(start, align); in random_offset()
216 if (unlikely(round_up(start, alignment) > round_down(end - size, alignment))) in i915_gem_gtt_insert()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/
H A 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()
/kernel/linux/linux-5.10/arch/x86/boot/compressed/
H A Dpgtable_64.c69 bios_start = round_down(bios_start, PAGE_SIZE); in find_trampoline_placement()
90 new = round_down(new, PAGE_SIZE); in find_trampoline_placement()
/kernel/linux/linux-6.6/arch/x86/boot/compressed/
H A 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()
/kernel/linux/linux-5.10/lib/
H A Dfind_bit.c52 start = round_down(start, BITS_PER_LONG); in _find_next_bit()
188 offset = round_down(offset, 8); in find_next_clump8()
/kernel/linux/linux-5.10/drivers/crypto/vmx/
H 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()
/kernel/linux/linux-6.6/drivers/crypto/vmx/
H 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()
/kernel/linux/linux-6.6/tools/include/linux/
H A Dmath.h6 * get the type for the ~ right in round_down (it needs to be
12 #define round_down(x, y) ((x) & ~__round_mask(x, y)) macro
/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/
H A Dkaslr_booke.c345 offset = round_down(offset, SZ_16K); in kaslr_choose_location()
374 tlb_virt = round_down(kernstart_virt_addr, SZ_64M); in kaslr_early_init()
375 tlb_phys = round_down(kernstart_addr, SZ_64M); in kaslr_early_init()

Completed in 14 milliseconds

12345678910>>...19