Home
last modified time | relevance | path

Searched refs:roundup (Results 1 – 25 of 58) sorted by relevance

123

/openbmc/u-boot/arch/arm/mach-omap2/
H A Dsec-common.c87 roundup(sizeof(secure_rom_call_args), ARCH_DMA_MINALIGN)); in secure_rom_call()
118 roundup((u32)*image + *size, ARCH_DMA_MINALIGN)); in secure_boot_verify_image()
160 roundup((u32)*image + *size, ARCH_DMA_MINALIGN)); in secure_boot_verify_image()
339 roundup((u32)loadptr + tee_file_size, ARCH_DMA_MINALIGN)); in secure_tee_install()
342 roundup(sizeof(tee_info), ARCH_DMA_MINALIGN)); in secure_tee_install()
361 roundup(sizeof(u32), ARCH_DMA_MINALIGN)); in secure_tee_install()
/openbmc/u-boot/drivers/bootcount/
H A Dbootcount.c21 flush_end = roundup(CONFIG_SYS_BOOTCOUNT_ADDR + 4, in bootcount_store()
27 flush_end = roundup(CONFIG_SYS_BOOTCOUNT_ADDR + 8, in bootcount_store()
/openbmc/u-boot/drivers/crypto/fsl/
H A Dfsl_blob.c166 size = roundup(sizeof(uint32_t) * DEK_BLOB_DESCSIZE, in blob_dek()
170 size = roundup(sizeof(uint8_t) * out_sz, ARCH_DMA_MINALIGN); in blob_dek()
182 size = roundup(out_sz, ARCH_DMA_MINALIGN); in blob_dek()
/openbmc/u-boot/drivers/net/
H A Dftgmac100.c328 end = start + roundup(sizeof(priv->txdes), ARCH_DMA_MINALIGN); in ftgmac100_start()
338 end = start + roundup(sizeof(priv->rxdes), ARCH_DMA_MINALIGN); in ftgmac100_start()
402 roundup(sizeof(*curr_des), ARCH_DMA_MINALIGN); in ftgmac100_free_pkt()
424 roundup(sizeof(*curr_des), ARCH_DMA_MINALIGN); in ftgmac100_recv()
447 data_end = data_start + roundup(rxlen, ARCH_DMA_MINALIGN); in ftgmac100_recv()
458 ulong des_end = des_start + roundup(sizeof(*txdes), ARCH_DMA_MINALIGN); in ftgmac100_read_txdesc()
477 roundup(sizeof(*curr_des), ARCH_DMA_MINALIGN); in BUILD_WAIT_FOR_BIT()
497 data_end = data_start + roundup(length, ARCH_DMA_MINALIGN); in BUILD_WAIT_FOR_BIT()
H A Dfec_mxc.c334 size = roundup(dsize, ARCH_DMA_MINALIGN); in fec_rbd_init()
367 unsigned size = roundup(2 * sizeof(struct fec_bd), in fec_tbd_init()
480 size = roundup(FEC_RBD_NUM * sizeof(struct fec_bd), in fec_open()
721 end = roundup(addr + length, ARCH_DMA_MINALIGN); in fecmxc_send()
745 size = roundup(2 * sizeof(struct fec_bd), ARCH_DMA_MINALIGN); in fecmxc_send()
913 size = roundup(sizeof(struct fec_bd), ARCH_DMA_MINALIGN); in fecmxc_recv()
926 end = roundup(addr + frame_length, ARCH_DMA_MINALIGN); in fecmxc_recv()
987 size = roundup(2 * sizeof(struct fec_bd), ARCH_DMA_MINALIGN); in fec_alloc_descs()
993 size = roundup(FEC_RBD_NUM * sizeof(struct fec_bd), ARCH_DMA_MINALIGN); in fec_alloc_descs()
1003 size = roundup(FEC_MAX_PKT_SIZE, FEC_DMA_RX_MINALIGN); in fec_alloc_descs()
H A Ddesignware.c364 roundup(sizeof(*desc_p), ARCH_DMA_MINALIGN); in _dw_eth_send()
366 ulong data_end = data_start + roundup(length, ARCH_DMA_MINALIGN); in _dw_eth_send()
431 roundup(sizeof(*desc_p), ARCH_DMA_MINALIGN); in _dw_eth_recv()
447 data_end = data_start + roundup(length, ARCH_DMA_MINALIGN); in _dw_eth_recv()
461 roundup(sizeof(*desc_p), ARCH_DMA_MINALIGN); in _dw_free_pkt()
H A Dsun8i_emac.c545 roundup(sizeof(*desc_p), ARCH_DMA_MINALIGN); in _sun8i_eth_recv()
568 roundup(data_end, in _sun8i_eth_recv()
591 roundup(sizeof(*desc_p), ARCH_DMA_MINALIGN); in _sun8i_emac_eth_send()
595 roundup(len, ARCH_DMA_MINALIGN); in _sun8i_emac_eth_send()
762 roundup(sizeof(u32), ARCH_DMA_MINALIGN); in _sun8i_free_pkt()
H A Dzynq_gem.c571 size = roundup(len, ARCH_DMA_MINALIGN); in zynq_gem_send()
619 invalidate_dcache_range(addr, addr + roundup(PKTSIZE_ALIGN, ARCH_DMA_MINALIGN)); in zynq_gem_recv()
708 flush_dcache_range(addr, addr + roundup(RX_BUF * PKTSIZE_ALIGN, ARCH_DMA_MINALIGN)); in zynq_gem_probe()
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
H A Dppa.c91 fitp = malloc(roundup(fdt_header_len, 512)); in ppa_init()
94 roundup(fdt_header_len, 512)); in ppa_init()
140 fw_length = roundup(fw_length, 512); in ppa_init()
/openbmc/u-boot/arch/arm/mach-bcm283x/
H A Dmbox.c115 roundup(buffer->buf_size, ARCH_DMA_MINALIGN))); in bcm2835_mbox_call_prop()
125 roundup(buffer->buf_size, ARCH_DMA_MINALIGN))); in bcm2835_mbox_call_prop()
/openbmc/qemu/bsd-user/freebsd/
H A Dtarget_os_stack.h72 p -= roundup(execpath_len, sizeof(abi_ulong)); in setup_initial_stack()
80 p -= roundup(sizeof(canary), sizeof(abi_ulong)); in setup_initial_stack()
/openbmc/u-boot/common/init/
H A Dboard_init.c116 base += roundup(sizeof(struct global_data), 16); in board_init_f_init_reserve()
/openbmc/u-boot/cmd/
H A Delf.c57 roundup(phdr->p_memsz, ARCH_DMA_MINALIGN)); in load_elf64_image_phdr()
120 roundup((shdr->sh_addr + shdr->sh_size), in load_elf64_image_shdr()
172 roundup(phdr->p_memsz, ARCH_DMA_MINALIGN)); in load_elf_image_phdr()
225 roundup((shdr->sh_addr + shdr->sh_size), in load_elf_image_shdr()
/openbmc/u-boot/common/
H A Dbouncebuf.c39 state->len_aligned = roundup(len, ARCH_DMA_MINALIGN); in bounce_buffer_start()
/openbmc/u-boot/tools/
H A Dpblimage.c10 #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) macro
285 uboot_size = roundup(st.st_size, 64); in pblimage_check_params()
H A Dmxsimage.h16 #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) macro
/openbmc/u-boot/drivers/usb/gadget/
H A Dci_udc.c41 #define ILIST_ALIGN roundup(ARCH_DMA_MINALIGN, 32)
48 #define ILIST_ENT_SZ roundup(ILIST_ENT_RAW_SZ, ILIST_ALIGN)
386 ci_req->b_len = roundup(req->length, ARCH_DMA_MINALIGN); in ci_bounce()
399 aligned_used_len = roundup(req->length, ARCH_DMA_MINALIGN); in ci_bounce()
415 aligned_used_len = roundup(req->actual, ARCH_DMA_MINALIGN); in ci_debounce()
926 const int eplist_align = roundup(eplist_min_align, ARCH_DMA_MINALIGN); in ci_udc_probe()
928 const int eplist_sz = roundup(eplist_raw_sz, ARCH_DMA_MINALIGN); in ci_udc_probe()
/openbmc/u-boot/drivers/fpga/
H A Dzynqpl.c389 roundup(bsize, ARCH_DMA_MINALIGN)); in zynq_load()
528 roundup(srclen << 2, ARCH_DMA_MINALIGN)); in zynq_decrypt_load()
534 roundup(dstlen << 2, ARCH_DMA_MINALIGN)); in zynq_decrypt_load()
/openbmc/u-boot/arch/x86/cpu/coreboot/
H A Dsdram.c61 uint64_t start = roundup(memrange->base, 1 << 12); in board_get_usable_ram_top()
/openbmc/u-boot/drivers/spi/
H A Dzynqmp_gqspi.c531 writel(roundup(priv->len, ARCH_DMA_MINALIGN), &dma_regs->dmasize); in zynqmp_qspi_start_dma()
534 size = roundup(priv->len, ARCH_DMA_MINALIGN); in zynqmp_qspi_start_dma()
542 gen_fifo_cmd |= roundup(len, ARCH_DMA_MINALIGN); in zynqmp_qspi_start_dma()
590 ALLOC_CACHE_ALIGN_BUFFER(u8, tmp, roundup(priv->len, in zynqmp_qspi_genfifo_fill_rx()
/openbmc/u-boot/common/spl/
H A Dspl_spi.c115 roundup(fdt_totalsize(header), 4), in spl_spi_load_image()
/openbmc/u-boot/arch/arm/mach-imx/imx8/
H A Dcpu.c231 start = roundup(start, MEMSTART_ALIGNMENT); in get_effective_memsize()
263 start = roundup(start, MEMSTART_ALIGNMENT); in dram_init()
326 start = roundup(start, MEMSTART_ALIGNMENT); in dram_init_banksize()
/openbmc/openbmc/poky/meta/lib/oe/
H A Dutils.py496 def roundup(size): function
518 total += sum(roundup(getsize(os.path.join(root, name))) for name in files)
519 total += roundup(getsize(root))
/openbmc/u-boot/drivers/dma/
H A Dapbh_dma.c91 size = roundup(sizeof(struct mxs_dma_desc), MXS_DMA_ALIGNMENT); in mxs_dma_flush_desc()
343 size = roundup(sizeof(struct mxs_dma_desc), MXS_DMA_ALIGNMENT); in mxs_dma_desc_alloc()
/openbmc/u-boot/board/xilinx/zynq/
H A Dcmds.c453 srclen = roundup(srclen, 4); in zynq_decrypt_image()
455 dstlen = roundup(dstlen, 4); in zynq_decrypt_image()

123