Home
last modified time | relevance | path

Searched refs:round_up (Results 1 – 137 of 137) sorted by relevance

/linux-4.4.14/arch/x86/mm/
Dinit.c218 unsigned long end = round_up(mr[i].end, PMD_SIZE); in adjust_range_page_size_mask()
231 unsigned long end = round_up(mr[i].end, PUD_SIZE); in adjust_range_page_size_mask()
286 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
288 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
298 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
302 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
315 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
325 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
562 next = round_up(start + 1, step_size); in memory_map_bottom_up()
Dnuma_32.c56 end = round_up(end, PAGES_PER_SECTION); in memory_present()
/linux-4.4.14/mm/kasan/
Dkasan.c332 round_up(cache->object_size, KASAN_SHADOW_SCALE_SIZE), in kasan_poison_object_data()
344 unsigned long rounded_up_size = round_up(size, KASAN_SHADOW_SCALE_SIZE); in kasan_slab_free()
361 redzone_start = round_up((unsigned long)(object + size), in kasan_kmalloc()
363 redzone_end = round_up((unsigned long)object + cache->object_size, in kasan_kmalloc()
382 redzone_start = round_up((unsigned long)(ptr + size), in kasan_kmalloc_large()
434 shadow_size = round_up(size >> KASAN_SHADOW_SCALE_SHIFT, in kasan_module_alloc()
463 size_t aligned_size = round_up(global->size, KASAN_SHADOW_SCALE_SIZE); in register_global()
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/
Ddma.h82 MT76_SET(MT_TXD_INFO_LEN, round_up(skb->len, 4)) | in mt7601u_dma_skb_wrap()
87 return skb_put_padto(skb, round_up(skb->len, 4) + 4); in mt7601u_dma_skb_wrap()
/linux-4.4.14/kernel/bpf/
Dhashtab.c77 round_up(htab->map.key_size, 8) + in htab_map_alloc()
91 htab->map.pages = round_up(htab->n_buckets * sizeof(struct hlist_head) + in htab_map_alloc()
160 return l->key + round_up(map->key_size, 8); in htab_map_lookup_elem()
248 memcpy(l_new->key + round_up(key_size, 8), value, map->value_size); in htab_map_update_elem()
Darraymap.c37 elem_size = round_up(attr->value_size, 8); in array_map_alloc()
58 array->map.pages = round_up(array_size, PAGE_SIZE) >> PAGE_SHIFT; in array_map_alloc()
Dcore.c80 size = round_up(size, PAGE_SIZE); in bpf_prog_alloc()
110 size = round_up(size, PAGE_SIZE); in bpf_prog_realloc()
153 size = round_up(proglen + sizeof(*hdr) + 128, PAGE_SIZE); in bpf_jit_binary_alloc()
/linux-4.4.14/arch/x86/kernel/
Dcheck.c92 corruption_check_size = round_up(corruption_check_size, PAGE_SIZE); in setup_bios_corruption_check()
96 start = clamp_t(phys_addr_t, round_up(start, PAGE_SIZE), in setup_bios_corruption_check()
Dtboot.c187 mr->size = round_up(end, PAGE_SIZE) - mr->start; in add_mac_region()
Damd_gart_64.c536 iommu_size -= round_up(a, PMD_PAGE_SIZE) - a; in check_iommu_size()
De820.c1034 end = round_up(start, ram_alignment(start)) - 1; in e820_reserve_resources_late()
/linux-4.4.14/drivers/firmware/efi/libstub/
Defi-stub-helper.c165 nr_pages = round_up(size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_high_alloc()
250 nr_pages = round_up(size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_low_alloc()
275 start = round_up(start, align); in efi_low_alloc()
304 nr_pages = round_up(size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_free()
573 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_relocate_kernel()
Darm64-stub.c56 nr_pages = round_up(kernel_memsize, EFI_ALLOC_ALIGN) / in handle_kernel_image()
Darm-stub.c401 efi_virt_base = round_up(efi_virt_base, SZ_2M); in efi_get_virtmap()
403 efi_virt_base = round_up(efi_virt_base, SZ_64K); in efi_get_virtmap()
/linux-4.4.14/drivers/staging/rtl8192e/rtl8192e/
Dr8192E_firmware.c115 if (round_up(fw->size, 4) > MAX_FW_SIZE - padding) { in _rtl92e_fw_prepare()
128 blob->size = round_up(fw->size, 4) + padding; in _rtl92e_fw_prepare()
/linux-4.4.14/arch/arm/kernel/
Dmodule-plts.c170 mod->arch.core_plt->sh_size = round_up(core_plts * PLT_ENT_SIZE, in module_frob_arch_sections()
177 mod->arch.init_plt->sh_size = round_up(init_plts * PLT_ENT_SIZE, in module_frob_arch_sections()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dnv25.c34 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv25_fb_tile_comp()
Dnv35.c34 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv35_fb_tile_comp()
Dnv36.c34 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv36_fb_tile_comp()
Dnv40.c34 u32 tags = round_up(tiles / fb->ram->parts, 0x100); in nv40_fb_tile_comp()
Dnv20.c47 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv20_fb_tile_comp()
Dnv30.c53 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv30_fb_tile_comp()
/linux-4.4.14/drivers/media/platform/s5p-tv/
Dmixer_vp_layer.c176 src->width = clamp(src->width, round_up(dst->width / 16, 4), in mxr_vp_fix_geometry()
178 src->height = clamp(src->height, round_up(dst->height / 16, 4), in mxr_vp_fix_geometry()
Dmixer_grp_layer.c171 dst->width = round_up(dst->width, 2); in mxr_graph_fix_geometry()
172 dst->height = round_up(dst->height, 2); in mxr_graph_fix_geometry()
/linux-4.4.14/mm/
Dtruncate.c673 loff_t holebegin = round_up(newsize, PAGE_SIZE); in truncate_pagecache()
745 rounded_from = round_up(from, bsize); in pagecache_isize_extended()
781 loff_t unmap_start = round_up(lstart, PAGE_SIZE); in truncate_pagecache_range()
Dfilemap.c1943 size = round_up(i_size_read(inode), PAGE_CACHE_SIZE); in filemap_fault()
1993 size = round_up(i_size_read(inode), PAGE_CACHE_SIZE); in filemap_fault()
2098 size = round_up(i_size_read(mapping->host), PAGE_CACHE_SIZE); in filemap_map_pages()
Dmemblock.c135 cand = round_up(this_start, align); in __memblock_find_range_bottom_up()
1585 start = round_up(orig_start, align); in memblock_trim_memory()
Dpercpu.c345 if (!(next & 1) && nend >= round_up(end, PAGE_SIZE)) in pcpu_count_occupied_pages()
346 end = round_up(end, PAGE_SIZE); in pcpu_count_occupied_pages()
Dmemory_hotplug.c1425 pfn = round_up(pfn + 1, in scan_movable_pages()
Dshmem.c590 loff_t holebegin = round_up(newsize, PAGE_SIZE); in shmem_setattr()
2082 loff_t unmap_start = round_up(offset, PAGE_SIZE); in shmem_fallocate()
Dpage_alloc.c6353 numentries = round_up(numentries, (1<<20)/PAGE_SIZE); in alloc_large_system_hash()
6555 iter = round_up(iter + 1, 1<<compound_order(page)) - 1; in has_unmovable_pages()
Dswapfile.c2323 for (i = maxpages; i < round_up(maxpages, SWAPFILE_CLUSTER); i++) in setup_swap_map_and_extents()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dr600_cs.c651 nbx = round_up(nbx, 16 * 8); in r600_cs_track_validate_db()
653 nby = round_up(nby, track->npipes * 8); in r600_cs_track_validate_db()
662 nbx = round_up(nbx, 64 * 8); in r600_cs_track_validate_db()
663 nby = round_up(nby, 64 * 8); in r600_cs_track_validate_db()
667 nbx = round_up(nbx, 64 * 8); in r600_cs_track_validate_db()
668 nby = round_up(nby, 32 * 8); in r600_cs_track_validate_db()
672 nbx = round_up(nbx, 32 * 8); in r600_cs_track_validate_db()
673 nby = round_up(nby, 32 * 8); in r600_cs_track_validate_db()
677 nbx = round_up(nbx, 32 * 8); in r600_cs_track_validate_db()
678 nby = round_up(nby, 16 * 8); in r600_cs_track_validate_db()
[all …]
Devergreen_cs.c509 nbx = round_up(nbx, 16 * 8); in evergreen_cs_track_validate_htile()
511 nby = round_up(nby, track->npipes * 8); in evergreen_cs_track_validate_htile()
520 nbx = round_up(nbx, 64 * 8); in evergreen_cs_track_validate_htile()
521 nby = round_up(nby, 64 * 8); in evergreen_cs_track_validate_htile()
525 nbx = round_up(nbx, 64 * 8); in evergreen_cs_track_validate_htile()
526 nby = round_up(nby, 32 * 8); in evergreen_cs_track_validate_htile()
530 nbx = round_up(nbx, 32 * 8); in evergreen_cs_track_validate_htile()
531 nby = round_up(nby, 32 * 8); in evergreen_cs_track_validate_htile()
535 nbx = round_up(nbx, 32 * 8); in evergreen_cs_track_validate_htile()
536 nby = round_up(nby, 16 * 8); in evergreen_cs_track_validate_htile()
/linux-4.4.14/arch/x86/include/asm/
Dfixmap.h44 #define FIXADDR_TOP (round_up(VSYSCALL_ADDR + PAGE_SIZE, 1<<PMD_SHIFT) - \
/linux-4.4.14/drivers/staging/rtl8188eu/hal/
Drtl8188eu_xmit.c403 mem_addr = (u8 *)round_up((size_t)mem_addr, 4); in rtw_dump_xframe()
495 pbuf = round_up(pbuf_tail, 8); in rtl8188eu_xmitframe_complete()
546 if (round_up(pbuf + len, 8) > MAX_XMITBUF_SZ) { in rtl8188eu_xmitframe_complete()
569 pbuf = round_up(pbuf_tail, 8); in rtl8188eu_xmitframe_complete()
/linux-4.4.14/drivers/media/platform/coda/
Dcoda-bit.c357 width = round_up(q_data->width, 16); in coda_alloc_framebuffers()
358 height = round_up(q_data->height, 16); in coda_alloc_framebuffers()
360 width = round_up(q_data->width, 8); in coda_alloc_framebuffers()
371 size = round_up(ysize, 4096) + ysize / 2; in coda_alloc_framebuffers()
396 cb = round_up(cb, 4096); in coda_alloc_framebuffers()
530 size = round_up(size, 1024); in coda_iram_alloc()
583 iram_info->search_ram_size = round_up(mb_width * 16 * in coda_setup_iram()
875 value = (round_up(q_data_src->width, 16) & in coda_start_encoding()
877 value |= (round_up(q_data_src->height, 16) & in coda_start_encoding()
1614 width = round_up(width, 16); in __coda_start_decoding()
[all …]
Dcoda-common.c424 return round_up(clamp(sizeimage, width * height / 8, in coda_estimate_sizeimage()
458 f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16); in coda_try_fmt()
463 f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16); in coda_try_fmt()
525 f->fmt.pix.height = round_up(f->fmt.pix.height, 16); in coda_try_fmt_vid_cap()
526 f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16); in coda_try_fmt_vid_cap()
1288 round_up(q_data_src->width, 16) != q_data_dst->width) || in coda_start_streaming()
1290 round_up(q_data_src->height, 16) != q_data_dst->height)) { in coda_start_streaming()
/linux-4.4.14/drivers/staging/fwserial/
Ddma_fifo.c75 size = round_up(size, align); in dma_fifo_alloc()
221 fifo->out += round_up(n, fifo->align); in dma_fifo_out_pend()
/linux-4.4.14/tools/include/linux/
Dkernel.h104 #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) macro
/linux-4.4.14/arch/arm64/mm/
Dmmu.c317 unsigned long kernel_x_end = round_up(__pa(__init_end), SWAPPER_BLOCK_SIZE); in __map_memblock()
415 unsigned long aligned_end = round_up(__pa(__init_end), in fixup_executable()
694 round_up(offset + size, SWAPPER_BLOCK_SIZE), prot); in fixmap_remap_fdt()
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dqat_algs.c223 offset = round_up(qat_get_inter_state_size(ctx->qat_hash_alg), 8); in qat_alg_do_precomputes()
330 round_up(ICP_QAT_HW_SHA1_STATE1_SZ, 8); in qat_alg_aead_init_enc_session()
332 round_up(ICP_QAT_HW_SHA1_STATE2_SZ, 8); in qat_alg_aead_init_enc_session()
347 round_up(hash_cd_ctrl->inner_state1_sz, 8)) >> 3); in qat_alg_aead_init_enc_session()
420 round_up(ICP_QAT_HW_SHA1_STATE1_SZ, 8); in qat_alg_aead_init_dec_session()
422 round_up(ICP_QAT_HW_SHA1_STATE2_SZ, 8); in qat_alg_aead_init_dec_session()
438 round_up(hash_cd_ctrl->inner_state1_sz, 8)) >> 3); in qat_alg_aead_init_dec_session()
/linux-4.4.14/drivers/gpu/drm/omapdrm/
Domap_dmm_tiler.c89 txn->current_pa = round_up(txn->current_pa, 16); in alloc_dma()
90 txn->current_va = (void *)round_up((long)txn->current_va, 16); in alloc_dma()
514 *w = round_up(*w, geom[fmt].slot_w); in tiler_align()
515 *h = round_up(*h, geom[fmt].slot_h); in tiler_align()
537 return round_up(geom[fmt].cpp * w, PAGE_SIZE) * h; in tiler_vsize()
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/
Dmon.c134 data = (u8 *)round_up((size_t)data, 4); in rtl88eu_mon_xmit_hook()
Dusb_ops_linux.c163 pkt_offset = (u16)round_up(pkt_offset, 128); in recvbuf2recvframe()
166 pkt_offset = (u16)round_up(pkt_offset, 4); in recvbuf2recvframe()
/linux-4.4.14/drivers/iio/adc/
Dat91_adc.c790 return round_up((startup_time * adc_clk_khz / 1000) - 1, 8) / 8; in calc_startup_ticks_9260()
1011 st->ts_pendbc = round_up(TOUCH_PEN_DETECT_DEBOUNCE_US * adc_clk_khz / in at91_ts_hw_init()
1031 st->ts_sample_period_val = round_up((TOUCH_SAMPLE_PERIOD_US_RL * in at91_ts_hw_init()
1060 st->ts_sample_period_val = round_up((TOUCH_SAMPLE_PERIOD_US * in at91_ts_hw_init()
1244 shtim = round_up((st->sample_hold_time * adc_clk_khz / 1000) in at91_adc_probe()
/linux-4.4.14/fs/xfs/
Dxfs_log.h69 lv->lv_buf_len += round_up(len, sizeof(uint64_t)); in xlog_finish_iovec()
Dxfs_log_cil.c210 nbytes = round_up(nbytes, sizeof(uint64_t)); in xlog_cil_insert_format_items()
221 round_up((sizeof(struct xfs_log_vec) + in xlog_cil_insert_format_items()
Dxfs_pnfs.c153 limit = max(limit, round_up(i_size_read(inode), in xfs_fs_map_blocks()
Dxfs_bmap_util.c1247 iendoffset = round_up(offset + len, rounding) - 1; in xfs_free_file_space()
1408 round_up(offset + len, blksize) - in xfs_zero_file_space()
Dxfs_log_recover.c131 nbblks = round_up(nbblks, log->l_sectBBsize); in xlog_get_bp()
184 nbblks = round_up(nbblks, log->l_sectBBsize); in xlog_bread_noalign()
269 nbblks = round_up(nbblks, log->l_sectBBsize); in xlog_bwrite()
/linux-4.4.14/lib/
Dassoc_array.c273 if (round_up(sc_level, ASSOC_ARRAY_KEY_CHUNK_SIZE) > shortcut->skip_to_level) { in assoc_array_walk()
775 keylen = round_up(diff, ASSOC_ARRAY_KEY_CHUNK_SIZE); in assoc_array_insert_into_terminal_node()
881 keylen = round_up(diff, ASSOC_ARRAY_KEY_CHUNK_SIZE); in assoc_array_insert_mid_shortcut()
931 keylen = round_up(shortcut->skip_to_level, ASSOC_ARRAY_KEY_CHUNK_SIZE); in assoc_array_insert_mid_shortcut()
1522 keylen = round_up(shortcut->skip_to_level, ASSOC_ARRAY_KEY_CHUNK_SIZE); in assoc_array_gc()
Didr.c770 id = round_up(id + 1, 1 << n); in idr_get_next()
/linux-4.4.14/drivers/gpu/drm/rockchip/
Drockchip_drm_gem.c115 size = round_up(size, PAGE_SIZE); in rockchip_gem_create_object()
/linux-4.4.14/drivers/crypto/nx/
Dnx-842.c187 adj_slen = round_up(slen, c->multiple); in compress()
371 adj_slen = round_up(slen, c->multiple); in decompress()
Dnx.c688 nx_ctx->csbcpb = (struct nx_csbcpb *)(round_up((u64)nx_ctx->kmem, in nx_crypto_ctx_init()
/linux-4.4.14/drivers/scsi/
Dmvumi.c145 size = round_up(size, 8); in mvumi_alloc_mem_resource()
963 offset = round_up(p, 128) - p; in mvumi_init_data()
978 offset = round_up(p, 8) - p; in mvumi_init_data()
987 offset = round_up(p, 8) - p; in mvumi_init_data()
995 offset = round_up(p, 4) - p; in mvumi_init_data()
1005 offset = round_up(p, 128) - p; in mvumi_init_data()
1014 tmp_size = round_up(tmp_size, 8); in mvumi_init_data()
1033 tmp_size += round_up(mhba->max_target_id, sizeof(unsigned char) * 8) / in mvumi_init_data()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
Dnv40.c172 imem->base.reserved = round_up(imem->base.reserved, 4096); in nv40_instmem_oneinit()
/linux-4.4.14/drivers/gpu/drm/tegra/
Dgem.c158 size = round_up(size, PAGE_SIZE); in tegra_bo_alloc_object()
394 args->pitch = round_up(min_pitch, tegra->pitch_align); in tegra_bo_dumb_create()
Dfb.c216 cmd.pitches[0] = round_up(sizes->surface_width * bytes_per_pixel, in tegra_fbdev_probe()
/linux-4.4.14/drivers/atm/
Dhorizon.h502 round_up, enumerator
Dhorizon.c603 r == round_up ? "up" : r == round_down ? "down" : "nearest"); in make_rate()
698 c, (r == round_up) ? "up" : (r == round_down) ? "down" : "nearest", tol); in make_rate_with_tolerance()
2255 r = round_up; in hrz_open()
2288 pr = round_up; in hrz_open()
2303 sr = round_up; in hrz_open()
Dambassador.h658 round_up, enumerator
Dambassador.c913 if (r == round_up) { in make_rate()
951 case round_up: { in make_rate()
1073 r = round_up; in amb_open()
/linux-4.4.14/drivers/firmware/
Dqcom_scm-32.c238 end = round_up(end, cacheline_size); in qcom_scm_inv_range()
/linux-4.4.14/drivers/gpu/drm/
Ddrm_gem_cma_helper.c104 size = round_up(size, PAGE_SIZE); in drm_gem_cma_create()
/linux-4.4.14/drivers/staging/lustre/lustre/ldlm/
Dldlm_pool.c143 static inline __u64 dru(__u64 val, __u32 shift, int round_up) in dru() argument
145 return (val + (round_up ? (1 << shift) - 1 : 0)) >> shift; in dru()
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_da_format.c228 round_up((offsetof(struct xfs_dir2_data_entry, name[0]) + (n) + \
232 round_up((offsetof(struct xfs_dir2_data_entry, name[0]) + (n) + \
Dxfs_trans_resv.c47 return round_up(sizeof(struct xlog_op_header) + in xfs_buf_log_overhead()
/linux-4.4.14/fs/hfsplus/
Dattributes.c127 len = round_up(len, 2); in hfsplus_attr_build_record()
/linux-4.4.14/drivers/net/wireless/cw1200/
Dcw1200_sdio.c252 size = round_up(size, SDIO_BLOCK_SIZE); in cw1200_sdio_align_size()
Dwsm.c1811 size = round_up(size, FWLOAD_BLOCK_SIZE); in wsm_buf_reserve()
/linux-4.4.14/arch/mips/mm/
Dtlb-r4k.c128 end = round_up(end, PAGE_SIZE << 1); in local_flush_tlb_range()
/linux-4.4.14/block/
Dblk-flush.c515 rq_sz = round_up(rq_sz + cmd_size, cache_line_size()); in blk_alloc_flush_queue()
Dblk-mq.c1485 rq_size = round_up(sizeof(struct request) + set->cmd_size, in blk_mq_init_rq_map()
/linux-4.4.14/fs/btrfs/
Dfile.c1450 lockend = round_up(pos + *write_bytes, root->sectorsize) - 1; in check_can_nocow()
1806 end_pos = round_up(pos + count, root->sectorsize); in btrfs_file_write_iter()
2309 ino_size = round_up(inode->i_size, PAGE_CACHE_SIZE); in btrfs_punch_hole()
2319 lockstart = round_up(offset, BTRFS_I(inode)->root->sectorsize); in btrfs_punch_hole()
2645 alloc_end = round_up(offset + len, blocksize); in btrfs_fallocate()
2849 lockend = round_up(i_size_read(inode), root->sectorsize); in find_desired_extent()
Dextent-tree.c4141 len = round_up(start + len, root->sectorsize) - in btrfs_check_data_free_space()
4174 len = round_up(start + len, root->sectorsize) - in btrfs_free_reserved_data_space_noquota()
Dinode.c7265 range_end = round_up(offset + num_bytes, root->sectorsize) - 1; in can_nocow_extent()
8493 dio_data.reserve = round_up(count, root->sectorsize); in btrfs_direct_IO()
Dextent_io.c4495 len = round_up(max, BTRFS_I(inode)->root->sectorsize) - start; in extent_fiemap()
/linux-4.4.14/drivers/net/ethernet/allwinner/
Dsun4i-emac.c201 writesl(reg, data, round_up(count, 4) / 4); in emac_outblk_32bit()
206 readsl(reg, data, round_up(count, 4) / 4); in emac_inblk_32bit()
/linux-4.4.14/tools/perf/arch/x86/util/
Dintel-bts.c171 sz = round_up(sz, page_size) / page_size; in intel_bts_recording_options()
Dintel-pt.c564 sz = round_up(sz, page_size) / page_size; in intel_pt_recording_options()
/linux-4.4.14/crypto/asymmetric_keys/
Dverify_pefile.c145 if (round_up(wrapper.length, 8) != ctx->sig_len) { in pefile_strip_sig_wrapper()
/linux-4.4.14/drivers/staging/rtl8712/
Drtl8712_cmd.c346 cmdsz = round_up(pcmd->cmdsz, 8); in r8712_cmd_thread()
Drtl8712_recv.c1058 pkt_offset = (u16)round_up(tmp_len, 128); in recvbuf2recvframe()
/linux-4.4.14/drivers/xen/
Dballoon.c320 balloon_hotplug = round_up(credit, PAGES_PER_SECTION); in reserve_additional_memory()
/linux-4.4.14/include/linux/usb/
Dgadget.h679 round_up(len, (size_t)ep->desc->wMaxPacketSize); in usb_ep_align_maybe()
/linux-4.4.14/drivers/vfio/pci/
Dvfio_pci_config.c340 size = round_up(size, 4); in alloc_perm_bits()
1078 len = round_up(len, 16); in vfio_vc_cap_len()
1181 bits = byte ? round_up(byte, 32) : 256; in vfio_ext_cap_len()
/linux-4.4.14/drivers/target/
Dtarget_core_user.c199 size = round_up(size+offset, PAGE_SIZE); in tcmu_flush_dcache_range()
403 + round_up(scsi_command_size(se_cmd->t_task_cdb), TCMU_OP_ALIGN_SIZE); in tcmu_queue_cmd_ring()
/linux-4.4.14/tools/perf/util/
Dsymbol-elf.c1513 kci->etext = round_up(kci->etext, page_size); in kcore_copy__calc_maps()
1515 kci->etext = round_up(kci->last_symbol, page_size); in kcore_copy__calc_maps()
1522 kci->last_module_symbol = round_up(kci->last_module_symbol, in kcore_copy__calc_maps()
Dutil.c463 size = round_up(size, sizeof(u64)); in get_stack_size()
Devsel.c689 dump_size = round_up(dump_size, sizeof(u64)); in apply_config_terms()
/linux-4.4.14/drivers/staging/rtl8188eu/core/
Drtw_security.c192 pframe = (u8 *)round_up((size_t)(pframe), 4); in rtw_wep_encrypt()
631 pframe = (u8 *)round_up((size_t)(pframe), 4); in rtw_tkip_encrypt()
1245 pframe = (u8 *)round_up((size_t)(pframe), 8); in rtw_aes_encrypt()
Drtw_xmit.c695 payload = (u8 *)round_up((size_t)(payload), 4); in xmitframe_addmic()
1100 mem_start = (unsigned char *)round_up(addr, 4) + hw_hdr_offset; in rtw_xmitframe_coalesce()
/linux-4.4.14/arch/arm/mm/
Dinit.c771 end = round_up(end, PAGE_SIZE); in free_initrd_mem()
Dmmu.c1387 phys_addr_t kernel_x_end = round_up(__pa(__init_end), SECTION_SIZE); in map_lowmem()
/linux-4.4.14/drivers/pci/host/
Dpci-mvebu.c893 return round_up(start, max_t(resource_size_t, SZ_64K, in mvebu_pcie_align_resource()
896 return round_up(start, max_t(resource_size_t, SZ_1M, in mvebu_pcie_align_resource()
/linux-4.4.14/drivers/misc/genwqe/
Dcard_dev.c786 map_size = round_up(m->size + (m->addr & ~PAGE_MASK), PAGE_SIZE); in genwqe_pin_mem()
816 map_size = round_up(m->size + (m->addr & ~PAGE_MASK), PAGE_SIZE); in genwqe_unpin_mem()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dctxgf100.c992 info->buffer[info->buffer_nr] = round_up(info->addr, align); in gf100_grctx_mmio_data()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dhtt_rx.c1018 len = round_up(len, 4); in ath10k_htt_rx_nwifi_hdrlen()
1161 rfc1042 += round_up(hdr_len, 4) + in ath10k_htt_rx_h_find_rfc1042()
1162 round_up(crypto_len, 4); in ath10k_htt_rx_h_find_rfc1042()
Dwmi.c1781 len = round_up(len, 4); in ath10k_wmi_op_gen_mgmt_tx()
4268 pool_size = num_units * round_up(unit_len, 4); in ath10k_wmi_alloc_host_mem()
4325 pool_size = num_units * round_up(unit_size, 4); in ath10k_wmi_is_host_mem_allocated()
/linux-4.4.14/lib/842/
D842_compress.c178 int b = p->bit, bits = b + n, s = round_up(bits, 8) - bits; in add_bits()
/linux-4.4.14/include/linux/
Dkernel.h63 #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) macro
/linux-4.4.14/sound/pci/hda/
Dhda_eld.c796 pos = round_up(pos, 4); in snd_hdmi_get_eld_ati()
/linux-4.4.14/arch/tile/mm/
Dinit.c182 end = round_up(end, PMD_SIZE); in page_table_range_init()
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_gem_context.c373 dev_priv->hw_context_size = round_up(get_context_size(dev), 4096); in i915_gem_context_init()
Di915_guc_submission.c861 const size_t gemsize = round_up(poolsize, PAGE_SIZE); in i915_guc_submission_init()
Di915_gem.c555 end = round_up(end, 128); in shmem_clflush_swizzled_range()
5253 obj = i915_gem_alloc_object(dev, round_up(size, PAGE_SIZE)); in i915_gem_object_create_from_data()
Dintel_lrc.c2468 context_size = round_up(get_lr_context_size(ring), 4096); in intel_lr_context_deferred_alloc()
Dintel_ringbuffer.c1316 num_dwords += round_up((num_rings-1) * MBOX_UPDATE_DWORDS, 2); in gen6_signal()
Dintel_display.c2537 u32 size_aligned = round_up(plane_config->base + plane_config->size, in intel_alloc_initial_plane_obj()
/linux-4.4.14/arch/x86/platform/efi/
Defi.c573 npages = round_up(size, page_shift) / page_shift; in efi_memory_uc()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/ce/fuc/
Dcom.fuc521 // nTx = round_up(w * cpp, 1 << Tp) >> Tp
522 // nTy = round_up(h, 1 << Th) >> Th
/linux-4.4.14/drivers/media/platform/s3c-camif/
Dcamif-capture.c760 wmin = round_up(wmin, pix_lim->out_width_align); in __camif_video_try_format()
762 hmin = round_up(hmin, 8); in __camif_video_try_format()
/linux-4.4.14/drivers/net/can/usb/
Dkvaser_usb.c599 pos = round_up(pos, le16_to_cpu(dev->bulk_in-> in kvaser_usb_wait_msg()
1339 pos = round_up(pos, le16_to_cpu(dev->bulk_in-> in kvaser_usb_read_bulk_callback()
/linux-4.4.14/drivers/ntb/
Dntb_transport.c661 xlat_size = round_up(size, mw->xlat_align_size); in ntb_set_mw()
662 buff_size = round_up(size, mw->xlat_align); in ntb_set_mw()
/linux-4.4.14/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c960 pctl->chip->ngpio = round_up(last_pin, PINS_PER_BANK) - in sunxi_pinctrl_init()
/linux-4.4.14/drivers/acpi/
Dosl.c398 pg_sz = round_up(phys + size, PAGE_SIZE) - pg_off; in acpi_os_map_iomem()
/linux-4.4.14/fs/hugetlbfs/
Dinode.c521 hole_start = round_up(offset, hpage_size); in hugetlbfs_punch_hole()
/linux-4.4.14/drivers/cpufreq/
Dintel_pstate.c1131 limits->max_perf = round_up(limits->max_perf, FRAC_BITS); in intel_pstate_set_policy()
/linux-4.4.14/drivers/media/platform/vsp1/
Dvsp1_video.c258 pix->plane_fmt[i].bytesperline = round_up(bpl, align); in __vsp1_video_try_format()
/linux-4.4.14/fs/ceph/
Dfile.c1232 loff_t nearly = round_up(offset, PAGE_CACHE_SIZE); in ceph_zero_pagecache_range()
/linux-4.4.14/drivers/misc/cxl/
Dpci.c783 aligned_end = round_up(off + count, 8); in cxl_afu_read_err_buffer()
/linux-4.4.14/drivers/media/platform/
Drcar_jpu.c829 bpl = round_up(bpl, JPU_MEMALIGN); in __jpu_try_fmt()
/linux-4.4.14/drivers/mtd/nand/gpmi-nand/
Dgpmi-nand.c164 geo->ecc_strength = round_up(chip->ecc_strength_ds, 2); in set_geometry_by_ecc_info()
/linux-4.4.14/kernel/rcu/
Dtree_plugin.h1499 dj = round_up(rcu_idle_gp_delay + jiffies, in rcu_needs_cpu()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dfwsignal.c889 fillers = round_up(data_offset, 4) - data_offset; in brcmf_fws_hdrpush()
/linux-4.4.14/fs/
Dbinfmt_elf.c1527 size = round_up(size, PAGE_SIZE); in fill_files_note()
Ddcache.c1572 round_up(name->len + 1, sizeof(unsigned long))); in __d_alloc()
/linux-4.4.14/kernel/events/
Dcore.c5115 stack_size = round_up(stack_size, sizeof(u64)); in perf_sample_ustack_size()
5382 u32 real_size = round_up(raw_size + sizeof(u32), in perf_output_sample()
5521 header->size += round_up(size, sizeof(u64)); in perf_prepare_sample()
/linux-4.4.14/drivers/infiniband/hw/cxgb4/
Dcm.c245 ep->emss -= round_up(TCPOLEN_TIMESTAMP, 4); in set_emss()
627 round_up(TCPOLEN_TIMESTAMP, 4) : 0); in best_mtu()
/linux-4.4.14/fs/ext4/
Dextents.c4787 start = round_up(offset, 1 << blkbits); in ext4_zero_range()
4832 (round_up((offset + len), 1 << blkbits) - in ext4_zero_range()
Dinode.c3692 first_block_offset = round_up(offset, sb->s_blocksize); in ext4_punch_hole()
/linux-4.4.14/fs/fuse/
Dfile.c2780 return round_up(off, FUSE_MAX_PAGES_PER_REQ << PAGE_SHIFT); in fuse_round_up()
/linux-4.4.14/drivers/block/
Drbd.c1467 round_up(rbd_dev->parent_overlap, rbd_obj_bytes(&rbd_dev->header)); in obj_request_overlaps_parent()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dmad.c4119 *out_mad_size = round_up(resp_len, 8); in hfi1_process_opa_mad()
/linux-4.4.14/kernel/sched/
Dfair.c834 rss = round_up(rss, nr_scan_pages); in task_nr_scan_windows()