/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()
|
/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()
|
/linux/tools/include/linux/ |
H A D | math.h | 16 #ifndef roundup 17 #define roundup(x, y) ( \ macro
|
/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()
|
/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()
|
/linux/fs/proc/ |
H A D | vmcore.c | 880 *notes_sz = roundup(phdr_sz, PAGE_SIZE); in merge_note_headers_elf64() 894 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf64() 909 *elfsz = roundup(*elfsz, PAGE_SIZE); in merge_note_headers_elf64() 1071 *notes_sz = roundup(phdr_sz, PAGE_SIZE); in merge_note_headers_elf32() 1085 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf32() 1100 *elfsz = roundup(*elfsz, PAGE_SIZE); in merge_note_headers_elf32() 1139 end = roundup(paddr + phdr_ptr->p_memsz, PAGE_SIZE); in process_ptload_program_headers_elf64() 1176 end = roundup(paddr + phdr_ptr->p_memsz, PAGE_SIZE); in process_ptload_program_headers_elf32() 1415 end = roundup(phdr->p_offset + phdr->p_memsz, in vmcoredd_update_program_headers() 1435 end = roundup(phdr->p_offset + phdr->p_memsz, in vmcoredd_update_program_headers() [all …]
|
/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()
|
/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()
|
H A D | mem.c | 75 wr_len = roundup(sizeof(*req) + sizeof(*sgl), 16); in _c4iw_write_mem_dma_aligned() 133 wr_len = roundup(sizeof(*req) + sizeof(*sc) + in _c4iw_write_mem_inline() 134 roundup(copy_len, T4_ULPTX_MIN_IO), in _c4iw_write_mem_inline() 165 sc->len = cpu_to_be32(roundup(copy_len, T4_ULPTX_MIN_IO)); in _c4iw_write_mem_inline() 607 int length = roundup(max_num_sg * sizeof(u64), 32); in c4iw_alloc_mr()
|
/linux/drivers/staging/media/tegra-video/ |
H A D | tegra20.c | 280 pix->bytesperline = roundup(pix->width, 2) * 2; in tegra20_fmt_align() 281 pix->sizeimage = roundup(pix->width, 2) * 2 * pix->height; in tegra20_fmt_align() 285 pix->bytesperline = roundup(pix->width, 8); in tegra20_fmt_align() 286 pix->sizeimage = roundup(pix->width, 8) * pix->height * 3 / 2; in tegra20_fmt_align() 627 roundup(width, 2) << VI_VIP_H_ACTIVE_PERIOD_SFT); in tegra20_vip_start_streaming()
|
/linux/arch/powerpc/platforms/pseries/ |
H A D | vio.c | 489 if (vio_cmo_alloc(viodev, roundup(size, PAGE_SIZE))) { in vio_dma_iommu_alloc_coherent() 498 vio_cmo_dealloc(viodev, roundup(size, PAGE_SIZE)); in vio_dma_iommu_alloc_coherent() 512 vio_cmo_dealloc(viodev, roundup(size, PAGE_SIZE)); in vio_dma_iommu_free_coherent() 524 if (vio_cmo_alloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl)))) in vio_dma_iommu_map_page() 533 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))); in vio_dma_iommu_map_page() 548 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))); in vio_dma_iommu_unmap_page() 562 alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg() 573 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg() 597 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_unmap_sg()
|
/linux/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | mm.c | 131 s = roundup(s, mm->block_size); in nvkm_mm_head() 205 s = roundup(s, mm->block_size); in nvkm_mm_tail() 270 node->offset = roundup(offset, mm->block_size); in nvkm_mm_init()
|
/linux/kernel/bpf/ |
H A D | bloom_filter.c | 145 bitset_bytes = roundup(bitset_bytes, sizeof(unsigned long)); in bloom_map_alloc() 199 bitset_bytes = roundup(bitset_bytes, sizeof(unsigned long)); in bloom_map_mem_usage()
|
/linux/drivers/gpu/drm/stm/ |
H A D | drv.c | 53 args->pitch = roundup(min_pitch, 128); in stm_gem_dma_dumb_create() 54 args->height = roundup(args->height, 4); in stm_gem_dma_dumb_create()
|
/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_cee.c | 53 return roundup(sizeof(struct bfa_cee_attr), BFA_DMA_ALIGN_SZ); in bfa_cee_attr_meminfo() 61 return roundup(sizeof(struct bfa_cee_stats), BFA_DMA_ALIGN_SZ); in bfa_cee_stats_meminfo()
|
H A D | bfa_msgq.c | 583 return roundup(BFA_MSGQ_CMDQ_SIZE, BFA_DMA_ALIGN_SZ) + in bfa_msgq_meminfo() 584 roundup(BFA_MSGQ_RSPQ_SIZE, BFA_DMA_ALIGN_SZ); in bfa_msgq_meminfo() 593 kva += roundup(BFA_MSGQ_CMDQ_SIZE, BFA_DMA_ALIGN_SZ); in bfa_msgq_memclaim() 594 pa += roundup(BFA_MSGQ_CMDQ_SIZE, BFA_DMA_ALIGN_SZ); in bfa_msgq_memclaim()
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/ce/ |
H A D | gv100.c | 39 size = roundup(size, PAGE_SIZE); in gv100_ce_cclass_bind()
|
/linux/tools/perf/util/ |
H A D | bpf-utils.c | 152 data_len += roundup(count * size, sizeof(__u64)); in get_bpf_prog_info_linear() 182 ptr += roundup(count * size, sizeof(__u64)); in get_bpf_prog_info_linear()
|
/linux/security/keys/encrypted-keys/ |
H A D | encrypted.c | 464 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in derived_key_encrypt() 572 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in derived_key_decrypt() 660 encrypted_datalen = roundup(decrypted_datalen, blksize); in encrypted_key_alloc() 694 encrypted_datalen = roundup(epayload->decrypted_datalen, blksize); in encrypted_key_decrypt() 949 + roundup(epayload->decrypted_datalen, blksize) in encrypted_read()
|
/linux/mm/ |
H A D | numa.c | 14 const size_t nd_size = roundup(sizeof(pg_data_t), SMP_CACHE_BYTES); in alloc_node_data()
|
/linux/arch/x86/xen/ |
H A D | multicalls.c | 221 unsigned argidx = roundup(b->argidx, sizeof(u64)); in __xen_mc_entry() 233 argidx = roundup(b->argidx, sizeof(u64)); in __xen_mc_entry()
|
/linux/drivers/nvmem/ |
H A D | rockchip-efuse.c | 113 addr_end = roundup(offset + bytes, RK3399_NBYTES) / RK3399_NBYTES; in rockchip_rk3328_efuse_read() 166 addr_end = roundup(offset + bytes, RK3399_NBYTES) / RK3399_NBYTES; in rockchip_rk3399_efuse_read()
|
/linux/drivers/net/wireless/broadcom/b43/ |
H A D | pio.c | 483 q->buffer_used += roundup(skb->len + hdrlen, 4); in pio_tx_frame() 511 total_len = roundup(skb->len + hdrlen, 4); in b43_pio_tx() 552 if (((q->buffer_size - q->buffer_used) < roundup(2 + 2 + 6, 4)) || in b43_pio_tx() 581 total_len = roundup(total_len, 4); in b43_pio_handle_txstatus()
|
/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_validate.c | 351 roundup(gl_shader_rec_size(exec->shader_state[i].addr), 16); in validate_gl_shader_state() 411 exec->tile_alloc_offset = bin_addr + roundup(tile_state_size, 4096); in validate_tile_binning_config() 803 BUG_ON(roundup(packet_size, 16) - packet_size > nr_relocs * 4); in validate_gl_shader_rec() 804 exec->shader_rec_v += roundup(packet_size, 16); in validate_gl_shader_rec()
|