Home
last modified time | relevance | path

Searched refs:rounddown (Results 1 – 25 of 98) sorted by relevance

1234

/openbmc/u-boot/cmd/
H A Delf.c56 flush_cache(rounddown((unsigned long)dst, ARCH_DMA_MINALIGN), in load_elf64_image_phdr()
119 flush_cache(rounddown(shdr->sh_addr, ARCH_DMA_MINALIGN), in load_elf64_image_shdr()
122 rounddown(shdr->sh_addr, ARCH_DMA_MINALIGN)); in load_elf64_image_shdr()
171 flush_cache(rounddown((unsigned long)dst, ARCH_DMA_MINALIGN), in load_elf_image_phdr()
224 flush_cache(rounddown(shdr->sh_addr, ARCH_DMA_MINALIGN), in load_elf_image_shdr()
227 rounddown(shdr->sh_addr, ARCH_DMA_MINALIGN)); in load_elf_image_shdr()
/openbmc/linux/security/selinux/ss/
H A Debitmap.c485 if (rounddown(bit, (int)BITS_PER_U64) > last_startbit) { in ebitmap_write()
487 last_startbit = rounddown(bit, BITS_PER_U64); in ebitmap_write()
501 if (rounddown(bit, (int)BITS_PER_U64) > last_startbit) { in ebitmap_write()
506 last_startbit = rounddown(bit, BITS_PER_U64); in ebitmap_write()
524 last_startbit = rounddown(bit, BITS_PER_U64); in ebitmap_write()
/openbmc/u-boot/arch/arm/mach-omap2/
H A Dsec-common.c117 rounddown((u32)*image, ARCH_DMA_MINALIGN), in secure_boot_verify_image()
159 rounddown((u32)*image, ARCH_DMA_MINALIGN), in secure_boot_verify_image()
338 rounddown((u32)loadptr, ARCH_DMA_MINALIGN), in secure_tee_install()
/openbmc/qemu/bsd-user/freebsd/
H A Dtarget_os_stack.h98 p = rounddown(p, TARGET_PAGE_SIZE); in setup_initial_stack()
113 destp = rounddown(p - stringspace, sizeof(abi_ulong)); in setup_initial_stack()
/openbmc/linux/arch/um/kernel/
H A Dmaccess.c12 void *psrc = (void *)rounddown((unsigned long)src, PAGE_SIZE); in copy_from_kernel_nofault_allowed()
/openbmc/u-boot/common/init/
H A Dboard_init.c52 top = rounddown(top-sizeof(struct global_data), 16); in board_init_f_alloc_reserve()
/openbmc/u-boot/drivers/bootcount/
H A Dbootcount.c14 uintptr_t flush_start = rounddown(CONFIG_SYS_BOOTCOUNT_ADDR, in bootcount_store()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/core/
H A Dmm.c135 e = rounddown(e, mm->block_size); in nvkm_mm_head()
209 e = rounddown(e, mm->block_size); in nvkm_mm_tail()
271 node->length = rounddown(offset + length, mm->block_size); in nvkm_mm_init()
/openbmc/linux/drivers/staging/media/atomisp/pci/
H A Datomisp_subdev.c375 r->width = rounddown(r->width, ATOM_ISP_STEP_WIDTH); in atomisp_subdev_set_selection()
376 r->height = rounddown(r->height, ATOM_ISP_STEP_HEIGHT); in atomisp_subdev_set_selection()
420 dvs_w = rounddown(crop[pad]->width / 5, in atomisp_subdev_set_selection()
422 dvs_h = rounddown(crop[pad]->height / 5, in atomisp_subdev_set_selection()
478 rounddown(crop[ATOMISP_SUBDEV_PAD_SINK]-> in atomisp_subdev_set_selection()
486 rounddown(crop[ATOMISP_SUBDEV_PAD_SINK]-> in atomisp_subdev_set_selection()
/openbmc/linux/drivers/firmware/efi/
H A Dearlycon.c260 memset32(efi_x_array, rounddown(xres, font->width), ARRAY_SIZE(efi_x_array)); in efi_earlycon_setup()
261 efi_y = rounddown(yres, font->height); in efi_earlycon_setup()
/openbmc/linux/drivers/nvmem/
H A Drockchip-efuse.c112 addr_start = rounddown(offset, RK3399_NBYTES) / RK3399_NBYTES; in rockchip_rk3328_efuse_read()
165 addr_start = rounddown(offset, RK3399_NBYTES) / RK3399_NBYTES; in rockchip_rk3399_efuse_read()
H A Dstm32-romem.c82 roffset = rounddown(offset, 4); in stm32_bsec_read()
/openbmc/linux/drivers/media/platform/xilinx/
H A Dxilinx-dma.c545 max_width = rounddown(XVIP_DMA_MAX_WIDTH, align); in __xvip_dma_try_format()
546 width = rounddown(pix->width * info->bpp, align); in __xvip_dma_try_format()
557 max_bpl = rounddown(XVIP_DMA_MAX_WIDTH, dma->align); in __xvip_dma_try_format()
558 bpl = rounddown(pix->bytesperline, dma->align); in __xvip_dma_try_format()
/openbmc/linux/drivers/tty/vt/
H A Dselection.c263 new_sel_start = rounddown(ps, vc->vc_size_row); in vc_do_selection()
264 new_sel_end = rounddown(pe, vc->vc_size_row) + in vc_do_selection()
/openbmc/linux/drivers/comedi/drivers/
H A Dcomedi_test.c324 rounddown(UINT_MAX, (unsigned int)NSEC_PER_USEC)); in waveform_ai_cmdtest()
329 limit = rounddown(limit, (unsigned int)NSEC_PER_SEC); in waveform_ai_cmdtest()
339 rounddown(UINT_MAX, (unsigned int)NSEC_PER_USEC)); in waveform_ai_cmdtest()
593 arg = min(arg, rounddown(UINT_MAX, (unsigned int)NSEC_PER_USEC)); in waveform_ao_cmdtest()
/openbmc/linux/crypto/
H A Dcts.c167 offset = rounddown(nbytes - 1, bsize); in crypto_cts_encrypt()
267 offset = rounddown(nbytes - 1, bsize); in crypto_cts_decrypt()
/openbmc/linux/include/linux/
H A Dmath.h73 #define rounddown(x, y) ( \ macro
/openbmc/linux/drivers/gpio/
H A Dgpio-menz127.c58 debounce = rounddown(debounce, MEN_Z127_DB_MIN_US); in men_z127_debounce()
/openbmc/linux/drivers/powercap/
H A Darm_scmi_powercap.c113 *norm = rounddown(*norm, spz->info->power_cap_step); in scmi_powercap_normalize_cap()
163 *norm = rounddown(*norm, spz->info->pai_step); in scmi_powercap_normalize_time()
/openbmc/linux/lib/
H A Dtest_hexdump.c217 test_hexdump_overflow(buflen, rounddown(len, gs), rs, gs, ascii); in test_hexdump_overflow_set()
/openbmc/linux/arch/powerpc/crypto/
H A Dchacha-p10-glue.c104 nbytes = rounddown(nbytes, walk.stride); in chacha_p10_stream_xor()
/openbmc/linux/fs/proc/
H A Dvmcore.c1125 start = rounddown(paddr, PAGE_SIZE); in process_ptload_program_headers_elf64()
1168 start = rounddown(paddr, PAGE_SIZE); in process_ptload_program_headers_elf32()
1413 start = rounddown(phdr->p_offset, PAGE_SIZE); in vmcoredd_update_program_headers()
1433 start = rounddown(phdr->p_offset, PAGE_SIZE); in vmcoredd_update_program_headers()
/openbmc/linux/arch/arm64/crypto/
H A Dchacha-neon-glue.c119 nbytes = rounddown(nbytes, walk.stride); in chacha_neon_stream_xor()
/openbmc/linux/sound/firewire/tascam/
H A Dtascam-hwdep.c73 length = rounddown(remained, sizeof(*entries)); in tscm_hwdep_read_queue()
/openbmc/u-boot/include/linux/
H A Dkernel.h83 #define rounddown(x, y) ( \ macro

1234