/openbmc/linux/drivers/media/platform/verisilicon/ |
H A D | hantro_vp9.c | 26 h = roundup(height, 8); in hantro_vp9_tile_filter_size() 28 height32 = roundup(h, 64); in hantro_vp9_tile_filter_size() 38 h = roundup(height, 8); in hantro_vp9_bsd_control_size() 39 height32 = roundup(h, 64); in hantro_vp9_bsd_control_size() 49 w = roundup(width, 8); in hantro_vp9_segment_map_size() 50 h = roundup(height, 8); in hantro_vp9_segment_map_size() 58 return roundup(sizeof(struct hantro_g2_all_probs), 16); in hantro_vp9_prob_tab_size() 63 return roundup(sizeof(struct symbol_counts), 16); in hantro_vp9_count_tab_size() 68 return roundup((MAX_TILE_COLS * MAX_TILE_ROWS * 4 * sizeof(u16) + 15 + 16) & ~0xf, 16); in hantro_vp9_tile_info_size()
|
/openbmc/u-boot/arch/arm/mach-omap2/ |
H A D | sec-common.c | 87 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/linux/arch/sh/kernel/cpu/shmobile/ |
H A D | pm.c | 105 vp += roundup(n, 4); in sh_mobile_register_self_refresh() 111 vp += roundup(n, 4); in sh_mobile_register_self_refresh() 117 vp += roundup(n, 4); in sh_mobile_register_self_refresh()
|
/openbmc/linux/tools/include/linux/ |
H A D | math.h | 16 #ifndef roundup 17 #define roundup(x, y) ( \ macro
|
/openbmc/u-boot/drivers/bootcount/ |
H A D | bootcount.c | 21 flush_end = roundup(CONFIG_SYS_BOOTCOUNT_ADDR + 4, in bootcount_store() 27 flush_end = roundup(CONFIG_SYS_BOOTCOUNT_ADDR + 8, in bootcount_store()
|
/openbmc/linux/arch/parisc/math-emu/ |
H A D | sfrem.c | 43 register boolean roundup = FALSE; in sgl_frem() local 217 roundup = TRUE; in sgl_frem() 238 else if (Sgl_isequal(opnd1,opnd2) && roundup) { in sgl_frem()
|
H A D | dfrem.c | 44 register boolean roundup = FALSE; in dbl_frem() local 222 roundup = TRUE; in dbl_frem() 244 else if (Dbl_isequal(opnd1p1,opnd1p2,opnd2p1,opnd2p2) && roundup) { in dbl_frem()
|
/openbmc/u-boot/drivers/net/ |
H A D | ftgmac100.c | 328 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 D | fec_mxc.c | 334 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()
|
/openbmc/linux/arch/sh/kernel/ |
H A D | io_trapped.c | 57 len += roundup(resource_size(res), PAGE_SIZE); in register_trapped_io() 84 len += roundup(resource_size(res), PAGE_SIZE); in register_trapped_io() 127 voffs += roundup(len, PAGE_SIZE); in match_trapped_io_handler() 175 len = roundup(resource_size(res), PAGE_SIZE); in lookup_address()
|
/openbmc/linux/arch/powerpc/platforms/cell/spufs/ |
H A D | coredump.c | 37 total += roundup(strlen(fullname) + 1, 4); in spufs_ctx_note_size() 38 total += roundup(sz, 4); in spufs_ctx_note_size() 152 dump_skip_to(cprm, roundup(cprm->pos - ret + sz, 4)); in spufs_arch_write_note()
|
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_hw.c | 49 wrlen = roundup(sizeof(*req) + sizeof(*sc), 16); in __set_tcb_field() 71 wrlen = roundup(sizeof(*req) + sizeof(*sc), 16); in chtls_set_tcb_field() 99 wrlen = roundup(wrlen, 16); in chtls_set_tcb_field_rpl_skb() 142 wrlen = roundup(wrlen, 16); in chtls_set_quiesce_ctrl() 263 roundup(keylen, 16) + AEAD_H_SIZE; in chtls_key_info() 373 klen = roundup((keylen + AEAD_H_SIZE) + sizeof(*kctx), 32); in chtls_setkey() 374 wrlen = roundup(sizeof(*kwr), 16); in chtls_setkey()
|
/openbmc/linux/drivers/cpufreq/ |
H A D | raspberrypi-cpufreq.c | 43 min = roundup(clk_round_rate(clk, 0), RASPBERRYPI_FREQ_INTERVAL); in raspberrypi_cpufreq_probe() 44 max = roundup(clk_round_rate(clk, ULONG_MAX), RASPBERRYPI_FREQ_INTERVAL); in raspberrypi_cpufreq_probe()
|
/openbmc/u-boot/drivers/crypto/fsl/ |
H A D | fsl_blob.c | 166 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/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_ierb.c | 65 tx_credit = roundup(1000 + ENETC_MAC_MAXFRM_SIZE / 2, 100); in enetc_ierb_register_pf() 81 tx_alloc = roundup(2 * tx_credit + 4 * ENETC_MAC_MAXFRM_SIZE + 64, 16); in enetc_ierb_register_pf()
|
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/ |
H A D | ppa.c | 91 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/linux/fs/proc/ |
H A D | vmcore.c | 868 *notes_sz = roundup(phdr_sz, PAGE_SIZE); in merge_note_headers_elf64() 882 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf64() 897 *elfsz = roundup(*elfsz, PAGE_SIZE); in merge_note_headers_elf64() 1059 *notes_sz = roundup(phdr_sz, PAGE_SIZE); in merge_note_headers_elf32() 1073 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf32() 1088 *elfsz = roundup(*elfsz, PAGE_SIZE); in merge_note_headers_elf32() 1128 end = roundup(paddr + phdr_ptr->p_memsz, PAGE_SIZE); in process_ptload_program_headers_elf64() 1171 end = roundup(paddr + phdr_ptr->p_memsz, PAGE_SIZE); in process_ptload_program_headers_elf32() 1416 end = roundup(phdr->p_offset + phdr->p_memsz, in vmcoredd_update_program_headers() 1436 end = roundup(phdr->p_offset + phdr->p_memsz, in vmcoredd_update_program_headers() [all …]
|
/openbmc/u-boot/arch/arm/mach-bcm283x/ |
H A D | mbox.c | 115 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/linux/drivers/pinctrl/pxa/ |
H A D | pinctrl-pxa2xx.c | 388 pctl->base_gafr = devm_kcalloc(&pdev->dev, roundup(maxpin, 16), in pxa2xx_pinctrl_init() 390 pctl->base_gpdr = devm_kcalloc(&pdev->dev, roundup(maxpin, 32), in pxa2xx_pinctrl_init() 392 pctl->base_pgsr = devm_kcalloc(&pdev->dev, roundup(maxpin, 32), in pxa2xx_pinctrl_init() 405 for (i = 0; i < roundup(maxpin, 16); i += 16) in pxa2xx_pinctrl_init() 407 for (i = 0; i < roundup(maxpin, 32); i += 32) { in pxa2xx_pinctrl_init()
|
/openbmc/linux/drivers/infiniband/hw/cxgb4/ |
H A D | resource.c | 271 rdev->stats.pbl.cur += roundup(size, 1 << MIN_PBL_SHIFT); in c4iw_pblpool_alloc() 294 rdev->stats.pbl.cur -= roundup(size, 1 << MIN_PBL_SHIFT); in c4iw_pblpool_free() 353 rdev->stats.rqt.cur += roundup(size << 6, 1 << MIN_RQT_SHIFT); in c4iw_rqtpool_alloc() 376 rdev->stats.rqt.cur -= roundup(size << 6, 1 << MIN_RQT_SHIFT); in c4iw_rqtpool_free() 464 rdev->stats.ocqp.cur += roundup(size, 1 << MIN_OCQP_SHIFT); in c4iw_ocqp_pool_alloc() 476 rdev->stats.ocqp.cur -= roundup(size, 1 << MIN_OCQP_SHIFT); in c4iw_ocqp_pool_free()
|
/openbmc/linux/drivers/staging/media/tegra-video/ |
H A D | tegra20.c | 279 pix->bytesperline = roundup(pix->width, 2) * 2; in tegra20_fmt_align() 280 pix->sizeimage = roundup(pix->width, 2) * 2 * pix->height; in tegra20_fmt_align() 284 pix->bytesperline = roundup(pix->width, 8); in tegra20_fmt_align() 285 pix->sizeimage = roundup(pix->width, 8) * pix->height * 3 / 2; in tegra20_fmt_align() 631 roundup(width, 2) << VI_VIP_H_ACTIVE_PERIOD_SFT); in tegra20_vip_start_streaming()
|
/openbmc/u-boot/cmd/ |
H A D | elf.c | 57 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/qemu/bsd-user/freebsd/ |
H A D | target_os_stack.h | 72 p -= roundup(execpath_len, sizeof(abi_ulong)); in setup_initial_stack() 80 p -= roundup(sizeof(canary), sizeof(abi_ulong)); in setup_initial_stack()
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | sdio_txrx.c | 97 len = roundup(len, sdio->func->cur_blksize); in mt76s_rx_run_queue() 227 len = roundup(len, sdio->func->cur_blksize); in __mt76s_xmit_queue() 257 err = __skb_grow(e->skb, roundup(e->skb->len, in mt76s_tx_run_queue() 269 pad = roundup(e->skb->len, 4) - e->skb->len; in mt76s_tx_run_queue()
|
/openbmc/linux/drivers/gpu/drm/stm/ |
H A D | drv.c | 51 args->pitch = roundup(min_pitch, 128); in stm_gem_dma_dumb_create() 52 args->height = roundup(args->height, 4); in stm_gem_dma_dumb_create()
|