Home
last modified time | relevance | path

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

1234567

/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_blit.c112 return round_down(offset + diff_offs, granularity); \
163 return round_down(offset + vmw_find_first_diff_u8(dst, src, size), in vmw_find_first_diff()
185 return round_down(location, granularity); \
194 size_t to_copy = round_down(size, sizeof(_type)); \
231 return round_down(vmw_find_last_diff_u8(dst, src, size) - 1, in vmw_find_last_diff()
292 if (WARN_ON_ONCE(round_down(n, diff->cpp) != n)) in vmw_diff_memcpy()
/Linux-v4.19/arch/x86/mm/
Dinit.c287 unsigned long start = round_down(mr[i].start, PMD_SIZE); in adjust_range_page_size_mask()
300 unsigned long start = round_down(mr[i].start, PUD_SIZE); in adjust_range_page_size_mask()
370 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
373 if (end_pfn > round_down(limit_pfn, PFN_DOWN(PMD_SIZE))) in split_mem_range()
374 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
386 end_pfn = round_down(limit_pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
396 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
585 start = round_down(last_start - 1, step_size); in memory_map_top_down()
Dnuma_32.c55 start = round_down(start, PAGES_PER_SECTION); in memory_present()
/Linux-v4.19/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.h212 return round_down(offset, 4); in sunxi_mux_reg()
227 return round_down(offset, 4); in sunxi_data_reg()
242 return round_down(offset, 4); in sunxi_dlevel_reg()
257 return round_down(offset, 4); in sunxi_pull_reg()
/Linux-v4.19/arch/x86/boot/compressed/
Dpgtable_64.c59 bios_start = round_down(bios_start, PAGE_SIZE); in find_trampoline_placement()
78 bios_start = round_down(bios_start, PAGE_SIZE); in find_trampoline_placement()
Dkaslr_64.c138 start = round_down(start, PMD_SIZE); in add_identity_map()
/Linux-v4.19/lib/
Dfind_bit.c50 start = round_down(start, BITS_PER_LONG); in _find_next_bit()
185 start = round_down(start, BITS_PER_LONG); in _find_next_bit_le()
/Linux-v4.19/arch/arm/crypto/
Daes-neonbs-glue.c96 blocks = round_down(blocks, in __ecb_crypt()
165 blocks = round_down(blocks, in cbc_decrypt()
211 blocks = round_down(blocks, in ctr_encrypt()
289 blocks = round_down(blocks, in __xts_crypt()
Dcrc32-ce-glue.c127 l = round_down(length, SCALE_F); in crc32_pmull_update()
161 l = round_down(length, SCALE_F); in crc32c_pmull_update()
Dspeck-neon-glue.c72 count = round_down(nbytes, SPECK_NEON_CHUNK_SIZE); in __speck128_xts_crypt()
173 count = round_down(nbytes, SPECK_NEON_CHUNK_SIZE); in __speck64_xts_crypt()
/Linux-v4.19/arch/arm64/crypto/
Daes-neonbs-glue.c108 blocks = round_down(blocks, in __ecb_crypt()
190 blocks = round_down(blocks, in cbc_decrypt()
239 blocks = round_down(blocks, in ctr_encrypt()
316 blocks = round_down(blocks, in __xts_crypt()
Dcrc32-ce-glue.c110 l = round_down(length, SCALE_F); in crc32_pmull_update()
142 l = round_down(length, SCALE_F); in crc32c_pmull_update()
Daes-ctr-fallback.h33 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in aes_ctr_encrypt_fallback()
Dspeck-neon-glue.c66 count = round_down(nbytes, SPECK_NEON_CHUNK_SIZE); in __speck128_xts_crypt()
167 count = round_down(nbytes, SPECK_NEON_CHUNK_SIZE); in __speck64_xts_crypt()
/Linux-v4.19/drivers/bus/
Duniphier-system-bus.c82 paddr = round_down(paddr, 0x00020000); in uniphier_system_bus_add_bank()
92 paddr = round_down(paddr, mask); in uniphier_system_bus_add_bank()
/Linux-v4.19/drivers/staging/fwserial/
Ddma_fifo.h112 tx_limit = round_down(tx_limit, fifo->align); in dma_fifo_change_tx_limit()
/Linux-v4.19/arch/arm/kernel/
Defi.c42 if (round_down(base + size, SECTION_SIZE) < in efi_set_mapping_permissions()
/Linux-v4.19/arch/x86/platform/olpc/
Dolpc_ofw.c111 start = round_down((unsigned long)olpc_ofw_cif, OFW_BOUND); in olpc_ofw_detect()
/Linux-v4.19/tools/lib/
Dfind_bit.c51 start = round_down(start, BITS_PER_LONG); in _find_next_bit()
/Linux-v4.19/drivers/media/platform/vsp1/
Dvsp1_rwpf.c217 sel->r.width = round_down(sel->r.width, 2); in vsp1_rwpf_set_selection()
218 sel->r.height = round_down(sel->r.height, 2); in vsp1_rwpf_set_selection()
Dvsp1_rpf.c278 crop.height = round_down(crop.height / 2, fmtinfo->vsub); in rpf_configure_partition()
279 crop.top = round_down(crop.top / 2, fmtinfo->vsub); in rpf_configure_partition()
/Linux-v4.19/arch/arm/mm/
Dinit.c257 start = round_down(phys_initrd_start, PAGE_SIZE); in arm_initrd_init()
410 start = round_down(start, MAX_ORDER_NR_PAGES); in free_unused_memmap()
787 start = round_down(start, PAGE_SIZE); in free_initrd_mem()
/Linux-v4.19/drivers/atm/
Dhorizon.c604 r == round_up ? "up" : r == round_down ? "down" : "nearest"); in make_rate()
623 case round_down: in make_rate()
656 case round_down: in make_rate()
673 if (r == round_down) in make_rate()
699 c, (r == round_up) ? "up" : (r == round_down) ? "down" : "nearest", tol); in make_rate_with_tolerance()
2247 r = round_down; in hrz_open()
2253 r = round_down; in hrz_open()
2286 pr = round_down; in hrz_open()
2295 sr = round_down; in hrz_open()
2301 sr = round_down; in hrz_open()
/Linux-v4.19/fs/btrfs/
Dfile.c1475 start_pos = round_down(pos, fs_info->sectorsize); in lock_and_cleanup_extent_if_need()
1536 lockstart = round_down(pos, fs_info->sectorsize); in check_can_nocow()
1729 __pos = round_down(pos, in btrfs_buffered_write()
1759 lockstart = round_down(pos, in btrfs_buffered_write()
1791 round_down(pos, fs_info->sectorsize), in btrfs_buffered_write()
1932 start_pos = round_down(pos, fs_info->sectorsize); in btrfs_file_write_iter()
2340 round_down(*start, fs_info->sectorsize), in find_first_non_hole()
2438 lockend = round_down(offset + len, in btrfs_punch_hole()
2764 offset = round_down(offset, sectorsize); in btrfs_zero_range_check_range_boundary()
2791 u64 alloc_start = round_down(offset, sectorsize); in btrfs_zero_range()
[all …]
/Linux-v4.19/drivers/firmware/efi/libstub/
Darm64-stub.c82 preferred_offset = round_down(dram_base, MIN_KIMG_ALIGN) + TEXT_OFFSET; in handle_kernel_image()

1234567