Symbol: round_up
arch/arm/boot/compressed/fdt_check_mem_start.c
167
return round_up(fdt_mem_start, SZ_2M);
arch/arm/kernel/efi.c
43
round_up(base, SECTION_SIZE) + SECTION_SIZE)
arch/arm/kernel/module-plts.c
265
mod->arch.core.plt->sh_size = round_up(core_plts * PLT_ENT_SIZE,
arch/arm/kernel/module-plts.c
273
mod->arch.init.plt->sh_size = round_up(init_plts * PLT_ENT_SIZE,
arch/arm/mm/init.c
428
end = round_up(end, PAGE_SIZE);
arch/arm/mm/mmu.c
1209
len = round_up(block_start, PMD_SIZE) - block_start;
arch/arm/mm/mmu.c
1587
phys_addr_t kernel_x_end = round_up(__pa(__init_end), SECTION_SIZE);
arch/arm/mm/mmu.c
1760
kernel_sec_end = round_up(__pa(_end), SECTION_SIZE);
arch/arm64/include/asm/tlbflush.h
495
end = round_up(end, stride);
arch/arm64/include/asm/tlbflush.h
560
end = round_up(end, stride);
arch/arm64/kernel/signal.c
1348
extra_size = sfp + round_up(user->size, 16) - userp;
arch/arm64/kernel/signal.c
146
return round_up(max(user->size, sizeof(struct rt_sigframe)), 16);
arch/arm64/kernel/signal.c
160
size_t padded_size = round_up(size, 16);
arch/arm64/kernel/signal.c
1686
round_up(sizeof(struct frame_record), 16) +
arch/arm64/kernel/signal.c
382
__put_user_error(round_up(SVE_SIG_CONTEXT_SIZE(vq), 16),
arch/arm64/kernel/signal.c
548
__put_user_error(round_up(ZA_SIG_CONTEXT_SIZE(vq), 16),
arch/arm64/kernel/signal.c
624
__put_user_error(round_up(ZT_SIG_CONTEXT_SIZE(1), 16),
arch/arm64/kernel/signal.c
82
#define TERMINATOR_SIZE round_up(sizeof(struct _aarch64_ctx), 16)
arch/arm64/kernel/signal.c
83
#define EXTRA_CONTEXT_SIZE round_up(sizeof(struct extra_context), 16)
arch/arm64/mm/init.c
232
memstart_addr = round_up(memblock_end_of_DRAM() - linear_region_size,
arch/arm64/net/bpf_jit_comp.c
2056
priv_stack_alloc_sz = round_up(prog->aux->stack_depth, 16) +
arch/arm64/net/bpf_jit_comp.c
2119
extable_offset = round_up(prog_size + PLT_TARGET_SIZE, extable_align);
arch/arm64/net/bpf_jit_comp.c
2589
stack_size += round_up(sizeof(struct bpf_tramp_run_ctx), 8);
arch/arm64/net/bpf_jit_comp.c
2621
stack_size = round_up(stack_size, 16);
arch/arm64/net/bpf_jit_comp.c
3193
priv_stack_alloc_sz = round_up(prog->aux->stack_depth, 16) +
arch/arm64/net/bpf_jit_comp.c
599
ctx->stack_size = round_up(prog->aux->stack_depth, 16);
arch/loongarch/include/asm/kasan.h
54
#define XKVRANGE_VC_SIZE round_up(KFENCE_AREA_END - MODULES_VADDR + 1, PGDIR_SIZE)
arch/loongarch/include/asm/kasan.h
60
#define KASAN_SHADOW_START round_up(KFENCE_AREA_END, PGDIR_SIZE)
arch/loongarch/include/asm/kasan.h
62
#define KASAN_SHADOW_END (round_up(KASAN_SHADOW_START + KASAN_SHADOW_SIZE, PGDIR_SIZE) - 1)
arch/loongarch/kernel/inst.c
279
end = round_up((size_t)dst + len, PAGE_SIZE);
arch/loongarch/kernel/setup.c
478
range->size = size = round_up(size, PAGE_SIZE);
arch/loongarch/mm/tlb.c
68
end = round_up(end, PAGE_SIZE << 1);
arch/loongarch/net/bpf_jit.c
132
bpf_stack_adjust = round_up(ctx->prog->aux->stack_depth, 16);
arch/loongarch/net/bpf_jit.c
143
stack_adjust = round_up(stack_adjust, 16);
arch/loongarch/net/bpf_jit.c
1691
stack_size += round_up(sizeof(struct bpf_tramp_run_ctx), 8);
arch/loongarch/net/bpf_jit.c
1703
stack_size = round_up(stack_size, 16);
arch/loongarch/net/bpf_jit.c
21
#define BPF_TAIL_CALL_CNT_PTR_STACK_OFF(stack) (round_up(stack, 16) - 80)
arch/mips/kernel/smp.c
612
end = round_up(end, PAGE_SIZE * 2);
arch/mips/loongson64/init.c
164
range->size = size = round_up(size, PAGE_SIZE);
arch/mips/mm/tlb-r4k.c
121
end = round_up(end, PAGE_SIZE << 1);
arch/parisc/net/bpf_jit_comp32.c
1484
bpf_stack_adjust = round_up(bpf_stack_adjust, STACK_ALIGN);
arch/parisc/net/bpf_jit_comp32.c
1493
stack_adjust = round_up(stack_adjust, STACK_ALIGN);
arch/parisc/net/bpf_jit_comp64.c
1114
bpf_stack_adjust = round_up(bpf_stack_adjust, STACK_ALIGN);
arch/parisc/net/bpf_jit_comp64.c
1117
stack_adjust = round_up(stack_adjust, STACK_ALIGN);
arch/powerpc/net/bpf_jit_comp.c
206
cgctx.stack_size = round_up(fp->aux->stack_depth, 16);
arch/powerpc/net/bpf_jit_comp.c
746
nr_regs += round_up(m->arg_size[i], SZL) / SZL - 1;
arch/powerpc/net/bpf_jit_comp.c
801
bpf_frame_size += round_up(sizeof(struct bpf_tramp_run_ctx), SZL);
arch/powerpc/net/bpf_jit_comp.c
854
bpf_frame_size = round_up(bpf_frame_size, SZL * 2);
arch/riscv/kernel/signal.c
306
frame_size = round_up(frame_size, 16);
arch/riscv/net/bpf_jit_comp32.c
1309
round_up(ctx->prog->aux->stack_depth, STACK_ALIGN);
arch/riscv/net/bpf_jit_comp32.c
1318
stack_adjust = round_up(stack_adjust, STACK_ALIGN);
arch/riscv/net/bpf_jit_comp64.c
1096
nr_arg_slots += round_up(m->arg_size[i], 8) / 8;
arch/riscv/net/bpf_jit_comp64.c
1123
stack_size += round_up(sizeof(struct bpf_tramp_run_ctx), 8);
arch/riscv/net/bpf_jit_comp64.c
1132
stack_size = round_up(stack_size, STACK_ALIGN);
arch/riscv/net/bpf_jit_comp64.c
1999
bpf_stack_adjust = round_up(ctx->prog->aux->stack_depth, STACK_ALIGN);
arch/riscv/net/bpf_jit_comp64.c
2021
stack_adjust = round_up(stack_adjust, STACK_ALIGN);
arch/s390/boot/ipl_parm.c
266
vmalloc_size = round_up(memparse(val, NULL), _SEGMENT_SIZE);
arch/s390/boot/kaslr.c
118
_min = round_up(_min, align);
arch/s390/boot/kaslr.c
122
start = round_up(start, align);
arch/s390/boot/kaslr.c
154
start = round_up(skip_res->end, align);
arch/s390/boot/physmem_info.c
287
if (round_up(min, align) + size > pos)
arch/s390/boot/startup.c
303
#define FIXMAP_SIZE round_up(MEMCPY_REAL_SIZE + ABS_LOWCORE_MAP_SIZE, sizeof(struct lowcore))
arch/s390/boot/startup.c
313
vsize = round_up(SZ_2G + max_mappable, rte_size) +
arch/s390/boot/startup.c
314
round_up(vmemmap_size, rte_size) +
arch/s390/boot/startup.c
469
size = round_up(ident_map_size / 8, _SEGMENT_SIZE);
arch/s390/kernel/cert_store.c
509
return round_up(vcssb->max_single_vcb_length, PAGE_SIZE);
arch/s390/net/bpf_jit_comp.c
2205
round_up(fp->aux->stack_depth, 8);
arch/sparc/net/bpf_jit_comp_64.c
806
stack_needed += round_up(stack_depth, 16);
arch/x86/boot/compressed/ident_map_64.c
99
end = round_up(end, PMD_SIZE);
arch/x86/hyperv/hv_crash.c
474
dest = (void *)round_up((ulong)dest, 16);
arch/x86/include/asm/fixmap.h
58
#define FIXADDR_TOP (round_up(VSYSCALL_ADDR + PAGE_SIZE, 1<<PMD_SHIFT) - \
arch/x86/kernel/amd_gart_64.c
508
iommu_size -= round_up(a, PMD_SIZE) - a;
arch/x86/kernel/check.c
113
corruption_check_size = round_up(corruption_check_size, PAGE_SIZE);
arch/x86/kernel/check.c
117
start = clamp_t(phys_addr_t, round_up(start, PAGE_SIZE),
arch/x86/kernel/e820.c
1216
end = round_up(start, ram_alignment(start)) - 1;
arch/x86/kernel/signal.c
223
max_frame_size = round_up(max_frame_size, FRAME_ALIGNMENT);
arch/x86/kernel/tboot.c
192
mr->size = round_up(end, PAGE_SIZE) - mr->start;
arch/x86/kvm/svm/sev.c
1171
sz = round_up(sz + offset, 16);
arch/x86/kvm/svm/sev.c
1275
len = round_up(size, 16);
arch/x86/mm/init.c
355
unsigned long end = round_up(mr[i].end, PMD_SIZE);
arch/x86/mm/init.c
368
unsigned long end = round_up(mr[i].end, PUD_SIZE);
arch/x86/mm/init.c
423
end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE));
arch/x86/mm/init.c
425
end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE));
arch/x86/mm/init.c
435
start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE));
arch/x86/mm/init.c
439
end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE));
arch/x86/mm/init.c
452
start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE));
arch/x86/mm/init.c
462
start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE));
arch/x86/mm/init.c
716
next = round_up(start + 1, step_size);
arch/x86/mm/kasan_init_64.c
148
end = round_up(end, PAGE_SIZE);
arch/x86/mm/kasan_init_64.c
329
return round_up(shadow, PAGE_SIZE);
arch/x86/mm/kaslr.c
166
vaddr = round_up(vaddr + 1, PUD_SIZE);
arch/x86/mm/pti.c
345
addr = round_up(addr + 1, PUD_SIZE);
arch/x86/mm/pti.c
352
addr = round_up(addr + 1, PMD_SIZE);
arch/x86/mm/pti.c
389
addr = round_up(addr + 1, PMD_SIZE);
arch/x86/mm/pti.c
396
addr = round_up(addr + 1, PAGE_SIZE);
arch/x86/mm/pti.c
416
addr = round_up(addr + 1, PAGE_SIZE);
arch/x86/net/bpf_jit_comp.c
1673
priv_frame_ptr = priv_stack_ptr + PRIV_STACK_GUARD_SZ + round_up(stack_depth, 8);
arch/x86/net/bpf_jit_comp.c
3149
__LOAD_TCC_PTR(-round_up(stack, 8) - 8)
arch/x86/net/bpf_jit_comp.c
3765
priv_stack_alloc_sz = round_up(prog->aux->stack_depth, 8) +
arch/x86/net/bpf_jit_comp.c
3982
priv_stack_alloc_sz = round_up(prog->aux->stack_depth, 8) +
arch/x86/net/bpf_jit_comp.c
553
EMIT3_off32(0x48, 0x81, 0xEC, round_up(stack_depth, 8));
arch/x86/net/bpf_jit_comp.c
710
#define BPF_TAIL_CALL_CNT_PTR_STACK_OFF(stack) (-16 - round_up(stack, 8))
arch/x86/net/bpf_jit_comp.c
795
round_up(stack_depth, 8));
arch/x86/net/bpf_jit_comp.c
861
EMIT3_off32(0x48, 0x81, 0xC4, round_up(stack_depth, 8));
arch/x86/platform/efi/quirks.c
273
size = round_up(size, EFI_PAGE_SIZE);
block/blk-flush.c
491
rq_sz = round_up(rq_sz + cmd_size, cache_line_size());
block/blk-lib.c
22
round_up(sector, discard_granularity >> SECTOR_SHIFT);
block/blk-mq.c
3611
rq_size = round_up(sizeof(struct request) + set->cmd_size,
crypto/adiantum.c
442
if (round_up(stream_len, CHACHA_BLOCK_SIZE) <= req->cryptlen)
crypto/adiantum.c
443
stream_len = round_up(stream_len, CHACHA_BLOCK_SIZE);
crypto/krb5/internal.h
105
#define crypto_roundup(X) ((unsigned int)round_up((X), CRYPTO_MINALIGN))
crypto/tcrypt.c
1121
u32 bs = round_up(*b_size, crypto_skcipher_blocksize(tfm));
crypto/tcrypt.c
1338
u32 bs = round_up(*b_size, crypto_skcipher_blocksize(tfm));
crypto/tcrypt.c
337
int bs = round_up(*b_size, crypto_aead_blocksize(tfm));
crypto/tcrypt.c
598
u32 bs = round_up(*b_size, crypto_aead_blocksize(tfm));
drivers/accel/habanalabs/common/memory.c
2530
start = round_up(start, page_size);
drivers/accel/habanalabs/common/state_dump.c
76
new_size = max_t(size_t, PAGE_SIZE, round_up(desired_size, PAGE_SIZE));
drivers/accel/habanalabs/gaudi/gaudi.c
1418
cacheline_end = round_up(user_cb_size, DEVICE_CACHE_LINE_SIZE);
drivers/accel/habanalabs/gaudi/gaudi.c
997
round_up(prop->sram_user_base_address, SZ_8K));
drivers/accel/habanalabs/gaudi2/gaudi2.c
10696
num_of_pkts = div64_u64(round_up(size, SZ_2G), SZ_2G);
drivers/acpi/osl.c
354
pg_sz = round_up(phys + size, PAGE_SIZE) - pg_off;
drivers/block/brd.c
182
sector_t aligned_sector = round_up(sector, PAGE_SECTORS);
drivers/block/null_blk/zoned.c
91
dev->nr_zones = round_up(dev_capacity_sects, dev->zone_size_sects)
drivers/block/rbd.c
2301
off = round_up(obj_req->ex.oe_off, rbd_dev->opts->alloc_size);
drivers/block/ublk_drv.c
1150
return round_up(depth * sizeof(struct ublksrv_io_desc), PAGE_SIZE);
drivers/bluetooth/btmtksdio.c
282
round_up(skb->len, MTK_SDIO_BLOCK_SIZE));
drivers/bus/uniphier-system-bus.c
74
end = round_up(end, 0x00020000);
drivers/bus/uniphier-system-bus.c
84
end = round_up(end, mask);
drivers/clk/bcm/clk-bcm2835.c
1041
if (data->round_up)
drivers/clk/bcm/clk-bcm2835.c
2182
.round_up = true),
drivers/clk/bcm/clk-bcm2835.c
507
bool round_up;
drivers/crypto/aspeed/aspeed-hace-hash.c
178
if (round_up(length, rctx->block_size) + rctx->block_size >
drivers/crypto/hisilicon/sec/sec_drv.c
1073
round_up(SEC_QUEUE_LEN * sizeof(struct sec_bd_info), PAGE_SIZE)
drivers/crypto/hisilicon/sec/sec_drv.c
1075
round_up(SEC_QUEUE_LEN * sizeof(struct sec_out_bd_info), PAGE_SIZE)
drivers/crypto/hisilicon/sec/sec_drv.c
1077
round_up(SEC_QUEUE_LEN * sizeof(struct sec_debug_bd_info), PAGE_SIZE)
drivers/crypto/intel/qat/qat_common/qat_algs.c
218
round_up(ICP_QAT_HW_SHA1_STATE1_SZ, 8);
drivers/crypto/intel/qat/qat_common/qat_algs.c
220
round_up(ICP_QAT_HW_SHA1_STATE2_SZ, 8);
drivers/crypto/intel/qat/qat_common/qat_algs.c
235
round_up(hash_cd_ctrl->inner_state1_sz, 8)) >> 3);
drivers/crypto/intel/qat/qat_common/qat_algs.c
308
round_up(ICP_QAT_HW_SHA1_STATE1_SZ, 8);
drivers/crypto/intel/qat/qat_common/qat_algs.c
310
round_up(ICP_QAT_HW_SHA1_STATE2_SZ, 8);
drivers/crypto/intel/qat/qat_common/qat_algs.c
326
round_up(hash_cd_ctrl->inner_state1_sz, 8)) >> 3);
drivers/crypto/intel/qat/qat_common/qat_algs.c
362
keylen = round_up(keylen, 16);
drivers/crypto/intel/qat/qat_common/qat_algs.c
99
round_up(sizeof(key.istate.h), 8));
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
315
if (!ucode_size || (size < round_up(ucode_size, 16) +
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
903
if (!ucode->size || (fw->size < round_up(ucode->size, 16)
drivers/crypto/marvell/octeontx/otx_cptvf_algs.c
990
req_info->in[*argcnt].size = round_up(ctx->auth_key_len, 8);
drivers/crypto/marvell/octeontx/otx_cptvf_algs.c
991
req_info->req.dlen += round_up(ctx->auth_key_len, 8);
drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c
1079
req_info->in[*argcnt].size = round_up(ctx->auth_key_len, 8);
drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c
1080
req_info->req.dlen += round_up(ctx->auth_key_len, 8);
drivers/crypto/nx/nx-842.c
183
adj_slen = round_up(slen, c->multiple);
drivers/crypto/nx/nx-842.c
369
adj_slen = round_up(slen, c->multiple);
drivers/crypto/nx/nx.c
651
nx_ctx->csbcpb = (struct nx_csbcpb *)(round_up((u64)nx_ctx->kmem,
drivers/dax/device.c
334
off_align = round_up(off, align);
drivers/firmware/cirrus/cs_dsp.c
1621
buf_len = round_up(region_len, PAGE_SIZE);
drivers/firmware/cirrus/cs_dsp.c
2348
buf_len = round_up(region_len, PAGE_SIZE);
drivers/firmware/cirrus/test/cs_dsp_mock_bin.c
102
info_len = round_up(info_len, 4);
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
137
info_len = round_up(info_len, 4);
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
225
bytes_needed += round_up(name_len + sizeof(u8), sizeof(__le32));
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
226
bytes_needed += round_up(description_len + sizeof(__le16), sizeof(__le32));
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
248
offset = round_up(4 + struct_size_t(struct wmfw_short_string, data, name_len),
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
311
bytes_needed += round_up(shortname_len + sizeof(u8), sizeof(__le32));
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
312
bytes_needed += round_up(fullname_len + sizeof(u8), sizeof(__le32));
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
313
bytes_needed += round_up(description_len + sizeof(__le16), sizeof(__le32));
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
328
ple32 += round_up(struct_size_t(struct wmfw_short_string, data, shortname_len),
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
336
ple32 += round_up(struct_size_t(struct wmfw_short_string, data, fullname_len),
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
344
ple32 += round_up(struct_size_t(struct wmfw_long_string, data, description_len),
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
384
offset += round_up(struct_size_t(struct wmfw_short_string, data, shortstring->len),
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
389
offset += round_up(struct_size_t(struct wmfw_long_string, data,
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1040
patch_pos_words = round_up(alg_base_words + param->offset_words, 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1123
packed_patch_pos_words = round_up(alg_base_words + param->offset_words, 4) + 4;
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1202
packed_patch_pos_words = round_up(alg_base_words + param->offset_words, 4) + 4;
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1289
packed_patch_pos_words = round_up(alg_base_words + param->offset_words, 4) + 4;
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1370
packed_patch_pos_words = round_up(alg_base_words + param->offset_words, 4) + 4;
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1463
packed_patch_pos_words = round_up(alg_base_words + param->offset_words, 4) + 4;
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1540
patch_pos_words = round_up(alg_base_words + param->offset_words, 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1604
patch_pos_words = round_up(alg_base_words + param->offset_words, 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1671
patch_pos_words = round_up(alg_base_words + word_offsets[i], 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1691
patch_pos_words = round_up(alg_base_words + word_offsets[i], 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1740
xm_patch_pos_words = round_up(alg_xm_base_words + param->offset_words, 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1741
ym_patch_pos_words = round_up(alg_ym_base_words + param->offset_words, 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1826
patch_pos_words = round_up(alg_base_words + param->offset_words, 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1857
patch_pos_words = round_up(alg_base_words + param->offset_words, 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1912
patch_pos_words = round_up(alg_base_words + param->offset_words, 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
1943
patch_pos_words = round_up(alg_base_words + param->offset_words, 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
634
patch_pos_words = round_up(alg_base_words + param->offset_words, 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
693
patch_pos_words = round_up(alg_base_words + param->offset_words, 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
773
patch_pos_words = round_up(alg_base_words + param->offset_words, 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
862
patch_pos_words = round_up(alg_base_words + param->offset_words, 4);
drivers/firmware/cirrus/test/cs_dsp_test_bin.c
958
patch_pos_words = round_up(alg_base_words + param->offset_words, 4);
drivers/firmware/cirrus/test/cs_dsp_test_wmfw_error.c
920
shortlen = round_up(le32_to_cpu(coeff[2]) & 0xff, sizeof(__le32));
drivers/firmware/cirrus/test/cs_dsp_test_wmfw_error.c
924
fullname[0] = cpu_to_le32(round_up(le32_to_cpu(fullname[0]) + 1, sizeof(__le32)));
drivers/firmware/cirrus/test/cs_dsp_test_wmfw_error.c
974
namelen = round_up(le32_to_cpu(coeff[2]) & 0xff, sizeof(__le32));
drivers/firmware/cirrus/test/cs_dsp_test_wmfw_error.c
976
namelen = round_up(le32_to_cpu(fullname[0]) & 0xff, sizeof(__le32));
drivers/firmware/cirrus/test/cs_dsp_test_wmfw_error.c
980
description[0] = cpu_to_le32(round_up(le32_to_cpu(fullname[0]) + 1, sizeof(__le32)));
drivers/firmware/efi/libstub/alignedmem.c
39
size = round_up(size, EFI_ALLOC_ALIGN);
drivers/firmware/efi/libstub/arm32-stub.c
108
kernel_base = round_up(alloc_base, EFI_PHYS_ALIGN);
drivers/firmware/efi/libstub/efi-stub.c
268
efi_virt_base = round_up(efi_virt_base, SZ_2M);
drivers/firmware/efi/libstub/efi-stub.c
270
efi_virt_base = round_up(efi_virt_base, SZ_64K);
drivers/firmware/efi/libstub/file.c
264
if (round_up(alloc_size + size, EFI_ALLOC_ALIGN) >
drivers/firmware/efi/libstub/file.c
265
round_up(alloc_size, EFI_ALLOC_ALIGN)) {
drivers/firmware/efi/libstub/mem.c
124
nr_pages = round_up(size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE;
drivers/firmware/efi/libstub/randomalloc.c
130
target = round_up(max_t(u64, md->phys_addr, alloc_min), align) + target_slot * align;
drivers/firmware/efi/libstub/randomalloc.c
40
first_slot = round_up(max(md->phys_addr, alloc_min), align);
drivers/firmware/efi/libstub/randomalloc.c
82
size = round_up(size, EFI_ALLOC_ALIGN);
drivers/firmware/efi/libstub/relocate.c
139
nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE;
drivers/firmware/efi/libstub/relocate.c
44
size = round_up(size, EFI_ALLOC_ALIGN);
drivers/firmware/efi/libstub/relocate.c
72
start = round_up(start, align);
drivers/firmware/efi/libstub/unaccepted_memory.c
132
arch_accept_memory(start, round_up(start, unit_size));
drivers/firmware/efi/libstub/unaccepted_memory.c
133
start = round_up(start, unit_size);
drivers/firmware/efi/libstub/unaccepted_memory.c
46
unaccepted_end = round_up(unaccepted_end, EFI_UNACCEPTED_UNIT_SIZE);
drivers/firmware/microchip/mpfs-auto-update.c
116
erase_size = round_up(erase_size, (u64)priv->flash->erasesize);
drivers/firmware/microchip/mpfs-auto-update.c
202
size_t erase_size = round_up(AUTO_UPDATE_DIRECTORY_SIZE, (u64)priv->flash->erasesize);
drivers/firmware/microchip/mpfs-auto-update.c
271
erase_size = round_up(erase_size, (u64)priv->flash->erasesize);
drivers/firmware/microchip/mpfs-auto-update.c
301
erase.len = round_up(size, (size_t)priv->flash->erasesize);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c
84
return round_up(adev->vm_manager.max_pfn, 1ULL << shift)
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
1325
double dml32_RoundToDFSGranularity(double Clock, bool round_up, double VCOSpeed)
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c
1330
if (round_up)
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.h
247
double dml32_RoundToDFSGranularity(double Clock, bool round_up, double VCOSpeed);
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
189
static dml_float_t RoundToDFSGranularity(dml_float_t Clock, dml_bool_t round_up, dml_float_t VCOSpeed);
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
2084
static dml_float_t RoundToDFSGranularity(dml_float_t Clock, dml_bool_t round_up, dml_float_t VCOSpeed)
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_core.c
2089
if (round_up)
drivers/gpu/drm/ast/ast_dp.c
87
size_t rdlen = round_up(len, 4);
drivers/gpu/drm/ast/ast_dp501.c
320
size_t rdlen = round_up(len, 4);
drivers/gpu/drm/drm_buddy.c
1147
size = round_up(size, min_block_size);
drivers/gpu/drm/drm_buddy.c
644
round_up(adjusted_start, req_size))
drivers/gpu/drm/drm_buddy.c
949
lhs_size = round_up(lhs_size, min_block_size);
drivers/gpu/drm/drm_format_helper.c
190
size_t stmp_off = round_up(dbuf_len, ARCH_KMALLOC_MINALIGN); /* for sbuf alignment */
drivers/gpu/drm/drm_gem_dma_helper.c
142
size = round_up(size, PAGE_SIZE);
drivers/gpu/drm/drm_suballoc.c
172
wasted = round_up(soffset, align) - soffset;
drivers/gpu/drm/drm_suballoc.c
200
wasted = round_up(soffset, align) - soffset;
drivers/gpu/drm/i915/display/intel_bios.c
3176
vbt = kzalloc(round_up(vbt_size, 4), GFP_KERNEL);
drivers/gpu/drm/i915/display/intel_cx0_phy.c
2225
max_tx_lane_count = round_up(max_tx_lane_count, 2);
drivers/gpu/drm/i915/display/intel_dp.c
2183
return round_up(min_bpp_x16, bpp_step_x16);
drivers/gpu/drm/i915/display/intel_dpt.c
261
size = round_up(size * sizeof(gen8_pte_t), I915_GTT_PAGE_SIZE);
drivers/gpu/drm/i915/gem/i915_gem_create.c
102
size = round_up(size, object_max_page_size(placements, n_placements));
drivers/gpu/drm/i915/gem/i915_gem_lmem.c
93
round_up(size, PAGE_SIZE),
drivers/gpu/drm/i915/gem/i915_gem_region.c
68
size = round_up(size, default_page_size);
drivers/gpu/drm/i915/gem/i915_gem_shmem.c
632
obj = i915_gem_object_create_shmem(i915, round_up(size, PAGE_SIZE));
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1226
size = round_up(size, I915_GTT_PAGE_SIZE_2M);
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1678
addr = round_up(addr, mr->min_page_size);
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
1718
addr = round_up(addr, obj->mm.region->min_page_size);
drivers/gpu/drm/i915/gem/selftests/huge_pages.c
600
round_up(page_size, I915_GTT_PAGE_SIZE_2M) << 1;
drivers/gpu/drm/i915/gem/selftests/i915_gem_client_blt.c
557
hole_size = 2 * round_up(WIDTH * HEIGHT * 4, t->align);
drivers/gpu/drm/i915/gem/selftests/i915_gem_client_blt.c
603
u64 offset = round_up(t->width * t->height * 4, t->align);
drivers/gpu/drm/i915/gem/selftests/i915_gem_client_blt.c
634
u64 offset = round_up(t->width * t->height * 4, 2 * t->align);
drivers/gpu/drm/i915/gem/selftests/igt_gem_utils.c
54
size = round_up(size, PAGE_SIZE);
drivers/gpu/drm/i915/gt/gen6_ppgtt.c
157
end = round_up(end, SZ_64K) - start;
drivers/gpu/drm/i915/gt/gen7_renderclear.c
86
bv->state_start = round_up(SZ_1K + num_primitives(bv) * 64, SZ_4K);
drivers/gpu/drm/i915/gt/intel_engine_cs.c
300
return round_up(GEN7_CXT_TOTAL_SIZE(cxt_size) * 64,
drivers/gpu/drm/i915/gt/intel_engine_cs.c
304
return round_up(GEN6_CXT_TOTAL_SIZE(cxt_size) * 64,
drivers/gpu/drm/i915/gt/intel_engine_cs.c
322
return round_up(cxt_size * 64, PAGE_SIZE);
drivers/gpu/drm/i915/gt/intel_lrc.c
1080
context_size = round_up(engine->context_size, I915_GTT_PAGE_SIZE);
drivers/gpu/drm/i915/gt/intel_migrate.c
433
offset = round_up(offset, SZ_64K);
drivers/gpu/drm/i915/gt/selftest_tlb.c
65
addr = round_up(vma->node.start + vma->node.size, align);
drivers/gpu/drm/i915/gt/selftest_tlb.c
90
addr = round_up(addr, SZ_2M);
drivers/gpu/drm/i915/gvt/cmd_parser.c
1946
round_up(bb_size + start_offset,
drivers/gpu/drm/i915/gvt/cmd_parser.c
2900
ring_size = round_up(wa_ctx->indirect_ctx.size + CACHELINE_BYTES,
drivers/gpu/drm/i915/i915_cmd_parser.c
1206
remain = round_up(remain,
drivers/gpu/drm/i915/i915_gem_gtt.c
134
GEM_BUG_ON(round_up(start, align) > round_down(end - len, align));
drivers/gpu/drm/i915/i915_gem_gtt.c
136
range = round_down(end - len, align) - round_up(start, align);
drivers/gpu/drm/i915/i915_gem_gtt.c
151
return round_up(start, align);
drivers/gpu/drm/i915/i915_gem_gtt.c
214
if (unlikely(round_up(start, alignment) > round_down(end - size, alignment)))
drivers/gpu/drm/i915/i915_initial_plane.c
108
size = round_up(plane_config->base + plane_config->size,
drivers/gpu/drm/i915/i915_syncmap.c
288
above = round_up(above, SHIFT);
drivers/gpu/drm/i915/i915_vma.c
907
size = round_up(size, I915_GTT_PAGE_SIZE_2M);
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
1125
expected_vma_size = round_up(size, 1 << (ffs(vma->resource->page_sizes_gtt) - 1));
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
1129
expected_vma_size = round_up(size, I915_GTT_PAGE_SIZE_64K);
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
1130
expected_node_size = round_up(size, I915_GTT_PAGE_SIZE_64K);
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
460
u64 aligned_size = round_up(obj->base.size,
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
500
u64 aligned_size = round_up(obj->base.size,
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
539
u64 aligned_size = round_up(obj->base.size,
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
579
u64 aligned_size = round_up(obj->base.size,
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
672
addr += round_up(obj->base.size, min_alignment)) {
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
70
rem = round_up(obj->base.size, BIT(31)) >> 31;
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
752
for (addr = round_up(hole_start + min_alignment, step) - min_alignment;
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
958
addr += round_up(size, min_alignment);
drivers/gpu/drm/i915/selftests/i915_random.c
101
range = round_down(end - len, align) - round_up(start, align);
drivers/gpu/drm/i915/selftests/i915_random.c
108
return round_up(start, align);
drivers/gpu/drm/i915/selftests/i915_random.c
99
BUG_ON(round_up(start, align) > round_down(end - len, align));
drivers/gpu/drm/i915/selftests/intel_memory_region.c
1041
sz = round_up(prandom_u32_state(&prng) % SZ_32M, PAGE_SIZE);
drivers/gpu/drm/i915/selftests/intel_memory_region.c
190
size = round_up(size, PAGE_SIZE);
drivers/gpu/drm/i915/selftests/intel_memory_region.c
210
size = max_t(u32, round_up(size, PAGE_SIZE), PAGE_SIZE);
drivers/gpu/drm/i915/selftests/intel_memory_region.c
281
target = round_up(target, PAGE_SIZE);
drivers/gpu/drm/i915/selftests/intel_memory_region.c
876
size = round_up(size, PAGE_SIZE);
drivers/gpu/drm/i915/selftests/intel_memory_region.c
967
sz = round_up(prandom_u32_state(&prng) % SZ_32M, PAGE_SIZE);
drivers/gpu/drm/imagination/pvr_device.h
677
return round_up(size, slc_cacheline_size_bytes);
drivers/gpu/drm/imagination/pvr_hwrt.c
269
info.tile_max_x = round_up(info.num_tiles_x, 2) - 1;
drivers/gpu/drm/imagination/pvr_hwrt.c
270
info.tile_max_y = round_up(info.num_tiles_y, 2) - 1;
drivers/gpu/drm/imagination/pvr_hwrt.c
273
info.mtile_x[0] = round_up(DIV_ROUND_UP(info.num_tiles_x, 4), 4);
drivers/gpu/drm/imagination/pvr_hwrt.c
274
info.mtile_y[0] = round_up(DIV_ROUND_UP(info.num_tiles_y, 4), 4);
drivers/gpu/drm/imagination/pvr_vm.c
943
#define GET_RESERVED_SIZE(last_offset, last_size) round_up((last_offset) + (last_size), PAGE_SIZE)
drivers/gpu/drm/imx/dc/dc-fu.c
131
burst_size = round_up(burst_size, 8);
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
561
if (round_up(width_bytes, npb * cpp) <= stride)
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
568
if (round_up(width_bytes, npb * cpp * bursts) <= stride)
drivers/gpu/drm/mediatek/mtk_gem.c
83
size = round_up(size, PAGE_SIZE);
drivers/gpu/drm/meson/meson_overlay.c
336
afbc_bottom = round_up(vd_end_lines + 1, 4);
drivers/gpu/drm/meson/meson_overlay.c
338
afbc_bottom_src = round_up(h_in + 1, 4);
drivers/gpu/drm/meson/meson_overlay.c
380
afbc_right = round_up(w_in, 32);
drivers/gpu/drm/meson/meson_overlay.c
383
afbc_right = round_up(hd_end_lines + 1, 32);
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
102
layout->plane_pitch[2] = round_up(y_meta_stride, 64);
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
105
y_meta_scanlines = round_up(y_meta_scanlines, 16);
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
106
layout->plane_size[2] = round_up(layout->plane_pitch[2] *
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
110
layout->plane_pitch[3] = round_up(uv_meta_stride, 64);
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
113
uv_meta_scanlines = round_up(uv_meta_scanlines, 16);
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
114
layout->plane_size[3] = round_up(layout->plane_pitch[3] *
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
119
layout->plane_pitch[0] = round_up(fb->width * fmt->bpp, 256);
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
120
rgb_scanlines = round_up(fb->height, 16);
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
121
layout->plane_size[0] = round_up(layout->plane_pitch[0] *
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
131
layout->plane_pitch[2] = round_up(rgb_meta_stride, 64);
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
134
rgb_meta_scanlines = round_up(rgb_meta_scanlines, 16);
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
136
layout->plane_size[2] = round_up(layout->plane_pitch[2] *
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
73
stride = round_up(stride * 4 / 3, 256);
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
76
stride = round_up(fb->width * 2, 256);
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
80
sclines = round_up(fb->height, 16);
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
83
stride = round_up(fb->width, 128);
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
86
sclines = round_up(fb->height, 32);
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
91
layout->plane_size[0] = round_up(layout->plane_pitch[0] *
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
95
layout->plane_size[1] = round_up(layout->plane_pitch[1] *
drivers/gpu/drm/msm/msm_gem.c
693
pitch_align = round_up(args->width, 32) * DIV_ROUND_UP(args->bpp, SZ_8);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c
47
u32 tags = round_up(tiles / fb->ram->parts, 0x40);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv25.c
34
u32 tags = round_up(tiles / fb->ram->parts, 0x40);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c
53
u32 tags = round_up(tiles / fb->ram->parts, 0x40);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv35.c
34
u32 tags = round_up(tiles / fb->ram->parts, 0x40);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv36.c
34
u32 tags = round_up(tiles / fb->ram->parts, 0x40);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv40.c
34
u32 tags = round_up(tiles / fb->ram->parts, 0x100);
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv40.c
177
imem->base.reserved = round_up(imem->base.reserved, 4096);
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
217
txn->current_pa = round_up(txn->current_pa, 16);
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
218
txn->current_va = (void *)round_up((long)txn->current_va, 16);
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
692
*w = round_up(*w, geom[fmt].slot_w);
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
693
*h = round_up(*h, geom[fmt].slot_h);
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
715
return round_up(geom[fmt].cpp * w, PAGE_SIZE) * h;
drivers/gpu/drm/radeon/evergreen_cs.c
511
nbx = round_up(nbx, 16 * 8);
drivers/gpu/drm/radeon/evergreen_cs.c
513
nby = round_up(nby, track->npipes * 8);
drivers/gpu/drm/radeon/evergreen_cs.c
522
nbx = round_up(nbx, 64 * 8);
drivers/gpu/drm/radeon/evergreen_cs.c
523
nby = round_up(nby, 64 * 8);
drivers/gpu/drm/radeon/evergreen_cs.c
527
nbx = round_up(nbx, 64 * 8);
drivers/gpu/drm/radeon/evergreen_cs.c
528
nby = round_up(nby, 32 * 8);
drivers/gpu/drm/radeon/evergreen_cs.c
532
nbx = round_up(nbx, 32 * 8);
drivers/gpu/drm/radeon/evergreen_cs.c
533
nby = round_up(nby, 32 * 8);
drivers/gpu/drm/radeon/evergreen_cs.c
537
nbx = round_up(nbx, 32 * 8);
drivers/gpu/drm/radeon/evergreen_cs.c
538
nby = round_up(nby, 16 * 8);
drivers/gpu/drm/radeon/r600_cs.c
1432
nbx = round_up(nbx, block_align);
drivers/gpu/drm/radeon/r600_cs.c
1436
nby = round_up(nby, height_align);
drivers/gpu/drm/radeon/r600_cs.c
1450
offset = round_up(offset, base_align);
drivers/gpu/drm/radeon/r600_cs.c
654
nbx = round_up(nbx, 16 * 8);
drivers/gpu/drm/radeon/r600_cs.c
656
nby = round_up(nby, track->npipes * 8);
drivers/gpu/drm/radeon/r600_cs.c
665
nbx = round_up(nbx, 64 * 8);
drivers/gpu/drm/radeon/r600_cs.c
666
nby = round_up(nby, 64 * 8);
drivers/gpu/drm/radeon/r600_cs.c
670
nbx = round_up(nbx, 64 * 8);
drivers/gpu/drm/radeon/r600_cs.c
671
nby = round_up(nby, 32 * 8);
drivers/gpu/drm/radeon/r600_cs.c
675
nbx = round_up(nbx, 32 * 8);
drivers/gpu/drm/radeon/r600_cs.c
676
nby = round_up(nby, 32 * 8);
drivers/gpu/drm/radeon/r600_cs.c
680
nbx = round_up(nbx, 32 * 8);
drivers/gpu/drm/radeon/r600_cs.c
681
nby = round_up(nby, 16 * 8);
drivers/gpu/drm/rockchip/rockchip_drm_gem.c
290
size = round_up(size, PAGE_SIZE);
drivers/gpu/drm/sitronix/st7571.c
143
u32 npixels = st7571->ncols * round_up(st7571->nlines, ST7571_PAGE_HEIGHT) * st7571->bpp;
drivers/gpu/drm/sitronix/st7571.c
215
rect->y2 = min_t(unsigned int, round_up(rect->y2, ST7571_PAGE_HEIGHT), st7571->nlines);
drivers/gpu/drm/sitronix/st7571.c
241
rect->y2 = min_t(unsigned int, round_up(rect->y2, ST7571_PAGE_HEIGHT), st7571->nlines);
drivers/gpu/drm/sitronix/st7920.c
328
rect->y2 = min_t(unsigned int, round_up(rect->y2, PIXELS_PER_SEGMENT), st7920->height);
drivers/gpu/drm/solomon/ssd130x.c
1014
rect->y2 = min_t(unsigned int, round_up(rect->y2, SSD130X_PAGE_HEIGHT), ssd130x->height);
drivers/gpu/drm/solomon/ssd130x.c
1039
rect->x2 = min_t(unsigned int, round_up(rect->x2, SSD132X_SEGMENT_WIDTH),
drivers/gpu/drm/sysfb/ofdrm.c
949
fb_pgsize = fb_base - fb_pgbase + round_up(fb_size, PAGE_SIZE);
drivers/gpu/drm/tegra/fbdev.c
88
cmd.pitches[0] = round_up(sizes->surface_width * bytes_per_pixel,
drivers/gpu/drm/tegra/gem.c
312
size = round_up(size, PAGE_SIZE);
drivers/gpu/drm/tests/drm_buddy_test.c
225
size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps);
drivers/gpu/drm/tests/drm_buddy_test.c
247
size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps);
drivers/gpu/drm/tests/drm_buddy_test.c
284
bias_start = round_up(prandom_u32_state(&prng) % (mm_size - ps), ps);
drivers/gpu/drm/tests/drm_buddy_test.c
285
bias_end = round_up(bias_start + prandom_u32_state(&prng) % (mm_size - bias_start), ps);
drivers/gpu/drm/tests/drm_buddy_test.c
290
u32 size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps);
drivers/gpu/drm/tests/drm_buddy_test.c
310
bias_start -= round_up(prandom_u32_state(&prng) % bias_start, ps);
drivers/gpu/drm/tests/drm_buddy_test.c
312
bias_end += round_up(prandom_u32_state(&prng) % (mm_size - bias_end), ps);
drivers/gpu/drm/tests/drm_buddy_test.c
342
bias_start = round_up(prandom_u32_state(&prng) % (mm_size - ps), ps);
drivers/gpu/drm/tests/drm_buddy_test.c
343
bias_end = round_up(bias_start + prandom_u32_state(&prng) % (mm_size - bias_start), ps);
drivers/gpu/drm/tests/drm_buddy_test.c
348
size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps);
drivers/gpu/drm/vc4/vc4_plane.c
762
width = round_up(width / info->hsub, 4);
drivers/gpu/drm/vc4/vc4_validate.c
192
aligned_width = round_up(width, utile_w);
drivers/gpu/drm/vc4/vc4_validate.c
196
aligned_width = round_up(width, utile_w * 8);
drivers/gpu/drm/vc4/vc4_validate.c
197
aligned_height = round_up(height, utile_h * 8);
drivers/gpu/drm/vc4/vc4_validate.c
200
aligned_width = round_up(width, utile_w);
drivers/gpu/drm/vc4/vc4_validate.c
201
aligned_height = round_up(height, utile_h);
drivers/gpu/drm/vc4/vc4_validate.c
711
aligned_width = round_up(level_width, utile_w * 8);
drivers/gpu/drm/vc4/vc4_validate.c
712
aligned_height = round_up(level_height, utile_h * 8);
drivers/gpu/drm/vc4/vc4_validate.c
715
aligned_width = round_up(level_width, utile_w);
drivers/gpu/drm/vc4/vc4_validate.c
716
aligned_height = round_up(level_height, utile_h);
drivers/gpu/drm/vc4/vc4_validate.c
719
aligned_width = round_up(level_width, utile_w);
drivers/gpu/drm/xe/display/xe_initial_plane.c
106
size = round_up(plane_config->base + plane_config->size,
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
1654
size = round_up(size, pf_get_lmem_alignment(gt));
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
467
size = round_up(size, pf_get_ggtt_alignment(gt));
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
518
size = round_up(size, alignment);
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
903
unsigned int regs_size = round_up(num_regs, 4);
drivers/gpu/drm/xe/xe_lmtt.c
388
next = min(end, round_up(offset + 1, pte_addr_shift));
drivers/gpu/drm/xe/xe_pt.c
1570
xe_walk->modified_end = round_up(next, size);
drivers/gpu/drm/xe/xe_pt_walk.c
31
u64 tmp = round_up(addr + 1, size);
drivers/gpu/drm/xe/xe_pt_walk.h
130
return (round_up(end, pt_size) - round_down(addr, pt_size)) >>
drivers/gpu/drm/xe/xe_sriov_vf_ccs.c
139
return round_up(bb_pool_size * 2, SZ_1M);
drivers/gpu/drm/xe/xe_vram.c
91
offset = round_up(offset, SZ_128K); /* SW must round up to nearest 128K */
drivers/gpu/drm/xen/xen_drm_front_gem.c
141
size = round_up(size, PAGE_SIZE);
drivers/gpu/ipu-v3/ipu-image-convert.c
1144
resized_width = round_up(resized_width, 8);
drivers/gpu/ipu-v3/ipu-image-convert.c
1154
in_width = round_up(
drivers/gpu/ipu-v3/ipu-image-convert.c
1201
resized_height = round_up(resized_height, 2);
drivers/gpu/ipu-v3/ipu-image-convert.c
1211
in_height = round_up(
drivers/gpu/ipu-v3/ipu-image-convert.c
530
out_start = round_up(out_start, out_align);
drivers/hid/usbhid/hid-core.c
394
len = round_up(len, maxpacket);
drivers/hwtracing/coresight/coresight-trbe.c
515
limit = min(limit, round_up(wakeup, PAGE_SIZE));
drivers/i2c/busses/i2c-mlxbf.c
577
aligned_length = round_up(length, 4);
drivers/iio/adc/at91-sama5d2_adc.c
1008
round_up((AT91_SAMA5D2_TOUCH_SAMPLE_PERIOD_US *
drivers/iio/adc/at91-sama5d2_adc.c
981
pendbc = round_up(AT91_SAMA5D2_TOUCH_PEN_DETECT_DEBOUNCE_US *
drivers/iio/adc/at91_adc.c
1117
shtim = round_up((st->sample_hold_time * adc_clk_khz / 1000)
drivers/iio/adc/at91_adc.c
763
return round_up((startup_time * adc_clk_khz / 1000) - 1, 8) / 8;
drivers/iio/adc/at91_adc.c
866
st->ts_pendbc = round_up(TOUCH_PEN_DETECT_DEBOUNCE_US * adc_clk_khz /
drivers/iio/adc/at91_adc.c
886
st->ts_sample_period_val = round_up((TOUCH_SAMPLE_PERIOD_US_RL *
drivers/iio/adc/at91_adc.c
924
st->ts_sample_period_val = round_up((TOUCH_SAMPLE_PERIOD_US *
drivers/infiniband/hw/cxgb4/cm.c
256
ep->emss -= round_up(TCPOLEN_TIMESTAMP, 4);
drivers/infiniband/hw/hfi1/mad.c
4823
*out_mad_size = round_up(resp_len, 8);
drivers/infiniband/hw/irdma/ctrl.c
5311
size += round_up(hmc_info->hmc_obj[i].cnt *
drivers/infiniband/hw/irdma/ctrl.c
5316
size += round_up(pble_info->cnt * pble_info->size, 512);
drivers/infiniband/hw/irdma/ctrl.c
5578
size += round_up(hmc_info->hmc_obj[i].cnt *
drivers/infiniband/hw/irdma/ctrl.c
5654
timer_cnt = (round_up(qpwanted, 512) / 512 + 1) *
drivers/infiniband/hw/irdma/ctrl.c
5724
timer_cnt = (round_up(qpwanted, 512) / 512 + 1) *
drivers/infiniband/hw/irdma/ctrl.c
5916
hte = round_up(qpwanted + hmc_info->hmc_obj[IRDMA_HMC_IW_FSIMC].cnt, 512);
drivers/infiniband/hw/irdma/ctrl.c
5933
(round_up(qpwanted, 512) / 512 + 1) * hmc_fpm_misc->timer_bucket;
drivers/infiniband/hw/irdma/verbs.c
2104
kmem_buf.size = ALIGN(round_up(rsize, 256), 256);
drivers/infiniband/hw/irdma/verbs.c
2609
iwcq->kmem.size = ALIGN(round_up(rsize, 256), 256);
drivers/infiniband/hw/mlx5/dm.c
395
act_size = round_up(attr->length, MLX5_SW_ICM_BLOCK_SIZE(dev));
drivers/infiniband/ulp/srp/ib_srp.c
2193
cmd->add_cdb_len = round_up(scmnd->cmd_len - sizeof(cmd->cdb),
drivers/infiniband/ulp/srpt/ib_srpt.c
2338
alignment_offset = round_up(imm_data_offset, 512) -
drivers/input/touchscreen/apple_z2.c
199
hdr->len = cpu_to_le16(round_up(cal_size, 4) / 4);
drivers/input/touchscreen/apple_z2.c
323
fw_idx = round_up(fw_idx, 4);
drivers/md/dm-integrity.c
1841
io_loc.count = round_up(io_loc.count, alignment);
drivers/md/dm-integrity.c
4108
ic->metadata_run = round_up((__u64)ic->tag_size << (ic->sb->log2_interleave_sectors - ic->sb->log2_sectors_per_block),
drivers/md/md-llbitmap.c
553
size = round_up(size, cache_line_size());
drivers/md/raid1.c
569
len = round_up(start_sector + 1, BARRIER_UNIT_SECTOR_SIZE) -
drivers/md/raid5.c
5916
end = round_up(end, sectors_per_chunk);
drivers/media/i2c/tc358746.c
490
vb_size = round_up(fifo_sz, 32);
drivers/media/pci/cx18/cx18-ioctl.c
96
h = round_up(h, 32);
drivers/media/platform/allegro-dvt/allegro-core.c
1667
sps->crop_right = (round_up(channel->width, size_mb) - channel->width) / crop_unit_x;
drivers/media/platform/allegro-dvt/allegro-core.c
1669
sps->crop_bottom = (round_up(channel->height, size_mb) - channel->height) / crop_unit_y;
drivers/media/platform/allegro-dvt/allegro-core.c
1841
sps->pic_width_in_luma_samples = round_up(channel->width, 8);
drivers/media/platform/allegro-dvt/allegro-core.c
1842
sps->pic_height_in_luma_samples = round_up(channel->height, 8);
drivers/media/platform/allegro-dvt/allegro-core.c
2803
channel->stride = round_up(channel->width, 32);
drivers/media/platform/allegro-dvt/allegro-core.c
3453
f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 32);
drivers/media/platform/allegro-dvt/allegro-core.c
548
return round_up(offset + num_blocks * pcm_size + partition_table, 32);
drivers/media/platform/allegro-dvt/nal-rbsp.c
308
rbsp_bits(rbsp, round_up(rbsp->pos, 8) - rbsp->pos,
drivers/media/platform/chips-media/coda/coda-bit.c
1146
value = (round_up(q_data_src->rect.width, 16) &
drivers/media/platform/chips-media/coda/coda-bit.c
1148
value |= (round_up(q_data_src->rect.height, 16) &
drivers/media/platform/chips-media/coda/coda-bit.c
1990
width = round_up(width, 16);
drivers/media/platform/chips-media/coda/coda-bit.c
1991
height = round_up(height, 16);
drivers/media/platform/chips-media/coda/coda-bit.c
2093
coda_write(dev, round_up(q_data_dst->rect.width, 16),
drivers/media/platform/chips-media/coda/coda-bit.c
489
ysize = round_up(q_data->rect.width, 16) *
drivers/media/platform/chips-media/coda/coda-bit.c
490
round_up(q_data->rect.height, 16);
drivers/media/platform/chips-media/coda/coda-bit.c
492
ysize = round_up(q_data->rect.width, 8) * q_data->rect.height;
drivers/media/platform/chips-media/coda/coda-bit.c
495
ycbcr_size = round_up(ysize, 4096) + ysize / 2;
drivers/media/platform/chips-media/coda/coda-bit.c
533
cb = round_up(cb, 4096);
drivers/media/platform/chips-media/coda/coda-bit.c
649
u32 crop_right = round_up(r->width, 16) - r->width;
drivers/media/platform/chips-media/coda/coda-bit.c
650
u32 crop_bottom = round_up(r->height, 16) - r->height;
drivers/media/platform/chips-media/coda/coda-bit.c
780
size = round_up(size, 1024);
drivers/media/platform/chips-media/coda/coda-bit.c
843
iram_info->search_ram_size = round_up(mb_width * 16 *
drivers/media/platform/chips-media/coda/coda-common.c
1087
s->r.width = round_up(s->r.width, 2);
drivers/media/platform/chips-media/coda/coda-common.c
1088
s->r.height = round_up(s->r.height, 2);
drivers/media/platform/chips-media/coda/coda-common.c
2025
q_data_dst->width = round_up(q_data_src->width, 16);
drivers/media/platform/chips-media/coda/coda-common.c
2026
q_data_dst->height = round_up(q_data_src->height, 16);
drivers/media/platform/chips-media/coda/coda-common.c
2057
round_up(q_data_src->rect.width, 16) != q_data_dst->width) ||
drivers/media/platform/chips-media/coda/coda-common.c
2059
round_up(q_data_src->rect.height, 16) != q_data_dst->height)) {
drivers/media/platform/chips-media/coda/coda-common.c
569
err = vdoa_context_configure(NULL, round_up(f->fmt.pix.width, 16),
drivers/media/platform/chips-media/coda/coda-common.c
588
return round_up(clamp(sizeimage, width * height / 8,
drivers/media/platform/chips-media/coda/coda-common.c
622
f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16);
drivers/media/platform/chips-media/coda/coda-common.c
627
f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16) * 2;
drivers/media/platform/chips-media/coda/coda-common.c
632
f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16);
drivers/media/platform/chips-media/coda/coda-common.c
638
f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16);
drivers/media/platform/chips-media/coda/coda-common.c
719
f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16 >> hscale);
drivers/media/platform/chips-media/coda/coda-common.c
720
f->fmt.pix.height = round_up(f->fmt.pix.height, 16 >> vscale);
drivers/media/platform/chips-media/coda/coda-common.c
738
f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16) * 2;
drivers/media/platform/chips-media/coda/coda-common.c
842
round_up(f->fmt.pix.width, 16),
drivers/media/platform/chips-media/coda/coda-h264.c
392
crop_right = round_up(width, 16) - width;
drivers/media/platform/chips-media/coda/coda-h264.c
393
crop_bottom = round_up(height, 16) - height;
drivers/media/platform/chips-media/coda/coda-jpeg.c
1108
aligned_width = round_up(q_data_src->width, width_align[chroma_format]);
drivers/media/platform/chips-media/coda/coda-jpeg.c
1109
aligned_height = round_up(q_data_src->height,
drivers/media/platform/chips-media/coda/coda-jpeg.c
1367
aligned_width = round_up(q_data_src->width, width_align[chroma_format]);
drivers/media/platform/chips-media/coda/coda-jpeg.c
1368
aligned_height = round_up(q_data_src->height, height_align[chroma_format]);
drivers/media/platform/chips-media/coda/imx-vdoa.c
190
val = round_up(src_q_data->bytesperline * src_q_data->height, 4096);
drivers/media/platform/chips-media/coda/imx-vdoa.c
261
round_up(src_q_data->bytesperline * height, 4096) +
drivers/media/platform/imagination/e5010-jpeg-enc.c
525
s->r.width = round_up(s->r.width, queue->fmt->frmsize.step_width);
drivers/media/platform/imagination/e5010-jpeg-enc.c
526
s->r.height = round_up(s->r.height, queue->fmt->frmsize.step_height);
drivers/media/platform/imagination/e5010-jpeg-enc.c
527
s->r.left = round_up(s->r.left, queue->fmt->frmsize.step_width);
drivers/media/platform/imagination/e5010-jpeg-enc.c
528
s->r.top = round_up(s->r.top, 2);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
279
pfmt->sizeimage = round_up(pfmt->sizeimage, 128);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
286
pix_mp->height = clamp(round_up(pix_mp->height, fmt->v_align),
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
288
pix_mp->width = clamp(round_up(pix_mp->width, fmt->h_align),
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
896
round_up(vb2_get_plane_payload(src_buf, 0), 16);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
897
bs->size = round_up(vb2_plane_size(src_buf, 0), 128);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c
182
param->comp_w[i] = round_up(param->comp_w[i],
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c
184
param->img_stride[i] = i ? round_up(param->comp_w[i], 16)
drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_hw.c
185
: round_up(param->comp_w[i], 32);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c
171
img_stride = round_up(width, 16);
drivers/media/platform/mediatek/jpeg/mtk_jpeg_enc_hw.c
175
img_stride = round_up(width * 2, 32);
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_multi_if.c
1232
vsi_size = round_up(vsi_size, VCODEC_DEC_ALIGNED_64);
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_multi_if.c
1244
vsi_size = round_up(vsi_size, VCODEC_DEC_ALIGNED_64);
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_hevc_req_multi_if.c
879
vsi_size = round_up(sizeof(struct vdec_hevc_slice_vsi), VCODEC_DEC_ALIGNED_64);
drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c
177
return round_up(enc_prm->height, 16) - enc_prm->height;
drivers/media/platform/nxp/imx7-media-csi.c
1159
pixfmt->width = clamp(round_up(pixfmt->width, walign), walign,
drivers/media/platform/renesas/rcar_fdp1.c
1435
pix->plane_fmt[i].bytesperline = round_up(bpl, align);
drivers/media/platform/renesas/rcar_fdp1.c
1938
stride = round_up(q_data->format.width, 8);
drivers/media/platform/renesas/rcar_jpu.c
810
bpl = round_up(bpl, JPU_MEMALIGN);
drivers/media/platform/renesas/vsp1/vsp1_video.c
174
pix->plane_fmt[i].bytesperline = round_up(bpl, align);
drivers/media/platform/rockchip/rkvdec/rkvdec-hevc.c
454
regs->common.stream_len = round_up(rlc_len, 16) + 64;
drivers/media/platform/rockchip/rkvdec/rkvdec-vp9.c
373
aligned_height = round_up(buf->vp9.height, 64);
drivers/media/platform/rockchip/rkvdec/rkvdec-vp9.c
374
aligned_pitch = round_up(buf->vp9.width * buf->vp9.bit_depth, 512) / 8;
drivers/media/platform/rockchip/rkvdec/rkvdec-vp9.c
390
aligned_height = round_up(ref_buf->vp9.height, 64);
drivers/media/platform/rockchip/rkvdec/rkvdec-vp9.c
399
aligned_pitch = round_up(ref_buf->vp9.width * ref_buf->vp9.bit_depth, 512) / 8;
drivers/media/platform/rockchip/rkvdec/rkvdec-vp9.c
512
aligned_height = round_up(ctx->decoded_fmt.fmt.pix_mp.height, 64);
drivers/media/platform/rockchip/rkvdec/rkvdec-vp9.c
514
aligned_pitch = round_up(ctx->decoded_fmt.fmt.pix_mp.width *
drivers/media/platform/rockchip/rkvdec/rkvdec-vp9.c
676
aligned_width = round_up(dec_params->frame_width_minus_1 + 1, 64);
drivers/media/platform/rockchip/rkvdec/rkvdec-vp9.c
677
aligned_height = round_up(dec_params->frame_height_minus_1 + 1, 64);
drivers/media/platform/samsung/s3c-camif/camif-capture.c
737
wmin = round_up(wmin, pix_lim->out_width_align);
drivers/media/platform/samsung/s3c-camif/camif-capture.c
739
hmin = round_up(hmin, 8);
drivers/media/platform/verisilicon/hantro_hevc.c
264
size = round_up(MAX_TILE_COLS * MAX_TILE_ROWS * 4 * sizeof(u16) + 16, 16);
drivers/media/platform/verisilicon/hantro_hw.h
526
round_up((width + CBS_LUMA - 1) / CBS_LUMA, CBS_SIZE);
drivers/media/platform/verisilicon/hantro_hw.h
529
return round_up(pic_width_in_cbsy * pic_height_in_cbsy, CBS_SIZE);
drivers/media/platform/verisilicon/hantro_hw.h
536
round_up((width + CBS_CHROMA_W - 1) / CBS_CHROMA_W, CBS_SIZE);
drivers/media/platform/verisilicon/hantro_hw.h
539
return round_up(pic_width_in_cbsc * pic_height_in_cbsc, CBS_SIZE);
drivers/media/platform/verisilicon/hantro_v4l2.c
714
round_up(rect->width, MB_DIM) != ctx->src_fmt.width ||
drivers/media/platform/verisilicon/hantro_v4l2.c
715
round_up(rect->height, MB_DIM) != ctx->src_fmt.height) {
drivers/media/platform/verisilicon/hantro_v4l2.c
723
rect->width = round_up(rect->width, 4);
drivers/media/platform/verisilicon/hantro_vp8.c
156
segment_map_size = round_up(DIV_ROUND_UP(mb_width * mb_height, 4), 64);
drivers/media/test-drivers/vicodec/codec-fwht.c
697
width = round_up(width, 8);
drivers/media/test-drivers/vicodec/codec-fwht.c
698
height = round_up(height, 8);
drivers/media/test-drivers/vicodec/codec-fwht.c
847
width = round_up(width, 8);
drivers/media/test-drivers/vicodec/codec-fwht.c
848
height = round_up(height, 8);
drivers/media/test-drivers/vicodec/codec-fwht.h
64
#define vic_round_dim(dim, div) (round_up((dim) / (div), 8) * (div))
drivers/media/v4l2-core/v4l2-common.c
117
x = round_up(x, alignment);
drivers/misc/genwqe/card_dev.c
784
map_size = round_up(m->size + (m->addr & ~PAGE_MASK), PAGE_SIZE);
drivers/misc/genwqe/card_dev.c
814
map_size = round_up(m->size + (m->addr & ~PAGE_MASK), PAGE_SIZE);
drivers/mmc/core/core.c
1757
from_new = round_up(temp, card->erase_size);
drivers/mtd/nand/ecc-mtk.c
423
round_up(len, 4));
drivers/mtd/nand/ecc-mtk.c
538
max_eccdata_size = round_up(max_eccdata_size, 4);
drivers/mtd/nand/raw/arasan-nand-controller.c
668
nfc_op->pkt_reg |= PKT_SIZE(round_up(pktsize, 4)) |
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
335
geo->ecc_strength = round_up(ecc_strength, 2);
drivers/mtd/nand/raw/intel-nand-controller.c
476
bch_algo = round_up(start + 1, 4);
drivers/mtd/nand/raw/marvell_nand.c
1775
nfc_op->ndcb[3] |= round_up(len, FIFO_DEPTH);
drivers/mtd/nand/raw/marvell_nand.c
1789
nfc_op->ndcb[3] |= round_up(len, FIFO_DEPTH);
drivers/mtd/nand/raw/renesas-nand-controller.c
498
unsigned int real_len = round_up(req_offset + req_len - page_off,
drivers/mtd/nand/raw/renesas-nand-controller.c
644
unsigned int real_len = round_up(req_offset + req_len - page_off,
drivers/mtd/nand/raw/renesas-nand-controller.c
982
unsigned int eccbytes = round_up(chip->ecc.bytes, 4) * chip->ecc.steps;
drivers/mtd/nand/raw/renesas-nand-controller.c
997
unsigned int eccbytes = round_up(chip->ecc.bytes, 4) * chip->ecc.steps;
drivers/mtd/nand/raw/tegra_nand.c
214
oobregion->length = round_up(bytes_per_step * chip->ecc.steps, 4);
drivers/mtd/nand/raw/tegra_nand.c
241
oobregion->length = round_up(bytes_per_step * chip->ecc.steps, 4);
drivers/mtd/nand/raw/tegra_nand.c
870
bytes_per_page = round_up(bytes_per_step * chip->ecc.steps, 4);
drivers/mtd/nand/spi/core.c
477
nbytes = round_up(req->dataoffs + req->datalen,
drivers/mtd/spi-nor/core.c
2041
end = round_up(from + len, 2);
drivers/mtd/spi-nor/core.c
2156
end = round_up(to + len, 2);
drivers/mtd/spi-nor/sfdp.c
1245
dummy = round_up(dummy, 2);
drivers/net/can/spi/mcp251xfd/mcp251xfd-tx.c
111
len += round_up(len_sanitized, sizeof(u32));
drivers/net/can/spi/mcp251xfd/mcp251xfd-tx.c
113
len += round_up(cfd->len, sizeof(u32));
drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c
1735
pos = round_up(pos + 1, le16_to_cpu
drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c
688
pos = round_up(pos + 1,
drivers/net/can/usb/ucan.c
784
pos = round_up(pos, 4);
drivers/net/ethernet/allwinner/sun4i-emac.c
211
writesl(reg, data, round_up(count, 4) / 4);
drivers/net/ethernet/allwinner/sun4i-emac.c
216
readsl(reg, data, round_up(count, 4) / 4);
drivers/net/ethernet/asix/ax88796c_main.c
268
padlen = round_up(pkt_len, 4) - pkt_len;
drivers/net/ethernet/asix/ax88796c_main.c
514
w_count = round_up(pkt_len + 6, 4) >> 1;
drivers/net/ethernet/broadcom/bnxt/bnxt.c
9560
mem_size = round_up(mem_size, 4);
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
3917
round_up(fw_size, 4096), NULL,
drivers/net/ethernet/chelsio/cxgb4/sge.c
791
round_up(pkt_hdrlen, 16);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
970
tcpoptsz += round_up(TCPOLEN_TIMESTAMP, 4);
drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h
73
round_up(TCPOLEN_TIMESTAMP, 4) : 0);
drivers/net/ethernet/freescale/ucc_geth.c
2056
alloc = round_up(length, align);
drivers/net/ethernet/freescale/ucc_geth.c
2117
alloc = round_up(length, align);
drivers/net/ethernet/fungible/funeth/funeth_rx.c
429
skb->truesize += round_up(pkt_len, FUN_EPRQ_PKT_ALIGN);
drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c
165
max_frame_len = round_up(max_frame_len, HBG_PCU_FRAME_LEN_PLUS);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2093
u32 aligned_mps = round_up(hdev->mps, HCLGE_BUF_SIZE_UNIT);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
2206
min_rx_priv = round_up(min_rx_priv, HCLGE_BUF_SIZE_UNIT);
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
3738
if (length < round_up(buf_len, 4) + hdr_size) {
drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c
2956
hdr_len = round_up(hdr_len, IXGBE_HDR_LEN_ROUNDUP);
drivers/net/ethernet/lantiq_xrx200.c
120
return round_up(xrx200_max_frame_len(mtu), 4 * XRX200_DMA_BURST_LEN);
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c
187
sizeof(*mtt) * round_up(TRACER_BUFFER_PAGE_NUM, 2);
drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c
825
lan966x->rx.page_order = round_up(new_mtu, PAGE_SIZE) / PAGE_SIZE - 1;
drivers/net/ethernet/netronome/nfp/abm/ctrl.c
321
size = round_up(size, sizeof(u32));
drivers/net/ethernet/netronome/nfp/bpf/jit.c
1235
slice_end = min(off + slice_size, round_up(off + 1, 4));
drivers/net/ethernet/netronome/nfp/bpf/jit.c
2742
xfer_num = round_up(len, REG_WIDTH) / REG_WIDTH;
drivers/net/ethernet/netronome/nfp/bpf/jit.c
3267
stack_depth = round_up(nfp_prog->stack_frame_depth, STACK_FRAME_ALIGN);
drivers/net/ethernet/netronome/nfp/bpf/jit.c
3651
nfp_prog->stack_frame_depth = round_up(depth, 4);
drivers/net/ethernet/netronome/nfp/bpf/jit.c
3838
nfp_prog->stack_frame_depth = round_up(depth, 4);
drivers/net/ethernet/netronome/nfp/bpf/jit.c
745
xfer_num = round_up(len, 4) / 4;
drivers/net/ethernet/netronome/nfp/bpf/offload.c
361
if (round_up(offmap->map.key_size, 8) +
drivers/net/ethernet/netronome/nfp/bpf/offload.c
362
round_up(offmap->map.value_size, 8) > bpf->maps.max_elem_sz) {
drivers/net/ethernet/netronome/nfp/bpf/offload.c
364
round_up(offmap->map.key_size, 8) +
drivers/net/ethernet/netronome/nfp/bpf/offload.c
365
round_up(offmap->map.value_size, 8),
drivers/net/ethernet/netronome/nfp/bpf/offload.c
476
&cbe->data[round_up(pkt_size, 4)], data_size,
drivers/net/ethernet/netronome/nfp/bpf/verifier.c
715
frame_depths[frame] = round_up(frame_depths[frame], STACK_FRAME_ALIGN);
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
181
len = round_up(skb->len, 4);
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
321
data += round_up(length, 4);
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
486
max_reply_size = round_up(max_reply_size, 4);
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
503
max_len = max(max_reply_size, round_up(skb->len, 4));
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
700
max_size = round_up(max_size, 4);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c
1081
bufsz = struct_size(buf, data, round_up(len, NSP_SFF_EEPROM_BLOCK_LEN));
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c
114
symtab_size = round_up(symtab_size, 8);
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c
115
strtab_size = round_up(strtab_size, 8);
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
96
dword_len = round_up(length, 4) >> 2;
drivers/net/hyperv/netvsc.c
458
buf_size = round_up(buf_size, PAGE_SIZE);
drivers/net/wireless/ath/ath10k/htt_rx.c
1416
len = round_up(len, 4);
drivers/net/wireless/ath/ath10k/htt_rx.c
1492
(void *)hdr + round_up(hdr_len, bytes_aligned),
drivers/net/wireless/ath/ath10k/htt_rx.c
1597
(void *)hdr + round_up(hdr_len, bytes_aligned),
drivers/net/wireless/ath/ath10k/htt_rx.c
1644
rfc1042 += round_up(hdr_len, bytes_aligned) +
drivers/net/wireless/ath/ath10k/htt_rx.c
1645
round_up(crypto_len, bytes_aligned);
drivers/net/wireless/ath/ath10k/htt_rx.c
1704
(void *)hdr + round_up(hdr_len, bytes_aligned),
drivers/net/wireless/ath/ath10k/htt_rx.c
1751
(void *)hdr + round_up(hdr_len, bytes_aligned),
drivers/net/wireless/ath/ath10k/htt_rx.c
2266
subframe_hdr = (u8 *)hdr + round_up(hdr_len, bytes_aligned) +
drivers/net/wireless/ath/ath10k/wmi-tlv.c
3120
buf_len = round_up(buf_len, 4);
drivers/net/wireless/ath/ath10k/wmi-tlv.c
3123
len = round_up(len, 4);
drivers/net/wireless/ath/ath10k/wmi.c
2023
len = round_up(len, 4);
drivers/net/wireless/ath/ath10k/wmi.c
5368
pool_size = num_units * round_up(unit_len, 4);
drivers/net/wireless/ath/ath10k/wmi.c
5432
pool_size = num_units * round_up(unit_size, 4);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c
876
fillers = round_up(data_offset, 4) - data_offset;
drivers/net/wireless/mediatek/mt76/mt7615/usb.c
64
len = round_up(len, 4);
drivers/net/wireless/mediatek/mt76/mt7615/usb_mcu.c
31
pad = round_up(skb->len, 4) + 4 - skb->len;
drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c
212
pad = round_up(skb->len, 4) + 4 - skb->len;
drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c
214
pad = round_up(skb->len, 4) - skb->len;
drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c
56
info = FIELD_PREP(MT_TXD_INFO_LEN, round_up(skb->len, 4)) |
drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c
60
pad = round_up(skb->len, 4) + 4 - skb->len;
drivers/net/wireless/mediatek/mt76/mt7921/mac.c
798
pad = round_up(skb->len, 4) - skb->len;
drivers/net/wireless/mediatek/mt76/mt7921/sdio_mcu.c
42
pad = round_up(skb->len, 4) - skb->len;
drivers/net/wireless/mediatek/mt76/mt7921/usb.c
53
pad = round_up(skb->len, 4) + 4 - skb->len;
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
1428
pad = round_up(skb->len, 4) - skb->len;
drivers/net/wireless/mediatek/mt76/mt7925/usb.c
41
pad = round_up(skb->len, 4) + 4 - skb->len;
drivers/net/wireless/mediatek/mt76/mt792x_usb.c
55
len = round_up(len, 4);
drivers/net/wireless/mediatek/mt76/sdio.c
555
pad = round_up(skb->len, 4) - skb->len;
drivers/net/wireless/mediatek/mt76/sdio_txrx.c
134
round_up(len + 4, 4));
drivers/net/wireless/mediatek/mt76/sdio_txrx.c
142
buf += round_up(len + 4, 4);
drivers/net/wireless/mediatek/mt76/sdio_txrx.c
95
len += round_up(intr->rx.len[qid][i] + 4, 4);
drivers/net/wireless/mediatek/mt76/usb.c
172
len = round_up(len, 4);
drivers/net/wireless/mediatek/mt76/usb.c
197
len = round_up(len, 4);
drivers/net/wireless/mediatek/mt7601u/dma.h
72
FIELD_PREP(MT_TXD_INFO_LEN, round_up(skb->len, 4)) |
drivers/net/wireless/mediatek/mt7601u/dma.h
77
return skb_put_padto(skb, round_up(skb->len, 4) + 4);
drivers/net/wireless/mediatek/mt7601u/eeprom.c
70
u8 data[round_up(MT_EFUSE_USAGE_MAP_SIZE, 16)];
drivers/net/wireless/quantenna/qtnfmac/commands.c
179
round_up(len, QLINK_ALIGN));
drivers/net/wireless/quantenna/qtnfmac/commands.c
194
len += round_up(s->ssid_len, QLINK_ALIGN);
drivers/net/wireless/quantenna/qtnfmac/commands.c
195
len += round_up(s->beacon.head_len, QLINK_ALIGN);
drivers/net/wireless/quantenna/qtnfmac/commands.c
196
len += round_up(s->beacon.tail_len, QLINK_ALIGN);
drivers/net/wireless/quantenna/qtnfmac/commands.c
197
len += round_up(s->beacon.beacon_ies_len, QLINK_ALIGN);
drivers/net/wireless/quantenna/qtnfmac/commands.c
198
len += round_up(s->beacon.proberesp_ies_len, QLINK_ALIGN);
drivers/net/wireless/quantenna/qtnfmac/commands.c
199
len += round_up(s->beacon.assocresp_ies_len, QLINK_ALIGN);
drivers/net/wireless/quantenna/qtnfmac/commands.c
200
len += round_up(s->beacon.probe_resp_len, QLINK_ALIGN);
drivers/net/wireless/quantenna/qtnfmac/commands.c
210
round_up(acl_len, QLINK_ALIGN);
drivers/net/wireless/quantenna/qtnfmac/commands.c
2555
tlv = skb_put(cmd_skb, sizeof(*tlv) + round_up(acl_size, QLINK_ALIGN));
drivers/net/wireless/quantenna/qtnfmac/commands.c
326
round_up(sizeof(*s->ht_cap), QLINK_ALIGN));
drivers/net/wireless/quantenna/qtnfmac/commands.c
351
sizeof(*tlv) + round_up(acl_size, QLINK_ALIGN));
drivers/net/wireless/quantenna/qtnfmac/qlink_util.h
25
hdr = skb_put(skb, sizeof(*hdr) + round_up(arr_len, QLINK_ALIGN));
drivers/net/wireless/quantenna/qtnfmac/qlink_util.h
67
round_up(le16_to_cpu(_tlv->len), QLINK_ALIGN)))
drivers/net/wireless/quantenna/qtnfmac/qlink_util.h
71
(const u8 *)(_start) + round_up(_datalen, QLINK_ALIGN))
drivers/net/wireless/realtek/rtw88/usb.c
666
next_pkt = round_up(skb_len, 8);
drivers/net/wireless/silabs/wfx/bh.c
91
computed_len = round_up(computed_len, 2);
drivers/net/wireless/st/cw1200/cw1200_sdio.c
252
size = round_up(size, SDIO_BLOCK_SIZE);
drivers/net/wireless/st/cw1200/wsm.c
1805
size = round_up(size, FWLOAD_BLOCK_SIZE);
drivers/ntb/msi.c
139
mw_size = round_up(mw_size, size_align);
drivers/ntb/ntb_transport.c
852
xlat_size = round_up(size, xlat_align_size);
drivers/ntb/ntb_transport.c
853
buff_size = round_up(size, xlat_align);
drivers/ntb/test/ntb_perf.c
588
peer->inbuf_size = round_up(peer->inbuf_size, size_align);
drivers/ntb/test/ntb_tool.c
586
inmw->size = round_up(inmw->size, addr_align);
drivers/ntb/test/ntb_tool.c
587
inmw->size = round_up(inmw->size, size_align);
drivers/nvmem/imx-ocotp-ele.c
134
cell->raw_len = round_up(cell->bytes, 4);
drivers/nvmem/imx-ocotp-ele.c
82
num_bytes = round_up(bytes + skipbytes, 4);
drivers/nvmem/imx-ocotp-scu.c
142
num_bytes = round_up(bytes, 4);
drivers/nvmem/imx-ocotp.c
168
num_bytes = round_up((offset % 4) + bytes, 4);
drivers/nvmem/imx-ocotp.c
592
cell->raw_len = round_up(cell->bytes, 4);
drivers/nvmem/rockchip-otp.c
197
addr_end = round_up(offset + bytes, RK3588_NBYTES) / RK3588_NBYTES;
drivers/nvmem/stm32-bsec-optee-ta.c
163
num_bytes = round_up(offset + bytes - start, 4);
drivers/of/kexec.c
378
round_up(tmp_size, PAGE_SIZE));
drivers/pci/controller/pci-hyperv.c
2242
return round_up((1 + ~(bar_val & PCI_BASE_ADDRESS_MEM_MASK)),
drivers/pci/controller/pci-mvebu.c
1149
return round_up(start, max_t(resource_size_t, SZ_64K,
drivers/pci/controller/pci-mvebu.c
1152
return round_up(start, max_t(resource_size_t, SZ_1M,
drivers/perf/arm_spe_pmu.c
581
limit = min(limit, round_up(wakeup, PAGE_SIZE));
drivers/pinctrl/sunxi/pinctrl-sunxi.c
1682
pctl->chip->ngpio = round_up(last_pin, PINS_PER_BANK) -
drivers/platform/mellanox/mlxbf-tmfifo.c
856
vring->rem_padding = round_up(vring->rem_len, sizeof(u64));
drivers/platform/wmi/marshalling.c
171
alloc_length = round_up(length, 8);
drivers/platform/x86/intel/sdsi.c
215
round_up(packet_size, SDSI_SIZE_CMD));
drivers/platform/x86/intel/sdsi.c
371
info.size = round_up(count, SDSI_SIZE_CMD) + SDSI_SIZE_CMD;
drivers/s390/cio/css.c
1126
chunk_size = round_up(size, PAGE_SIZE);
drivers/scsi/arcmsr/arcmsr_hba.c
660
acb->message_wbuffer = (uint32_t *)round_up((unsigned long)acb->dma_coherent2 +
drivers/scsi/arcmsr/arcmsr_hba.c
665
host_buffer_dma = round_up(acb->dma_coherent_handle2 + acb->completeQ_size, 4);
drivers/scsi/elx/libefc_sli/sli4.c
5111
bytes = round_up(n_rpi * SLI4_HDR_TEMPLATE_SIZE, SLI_PAGE_SIZE);
drivers/scsi/mvumi.c
1007
tmp_size += round_up(mhba->max_target_id, sizeof(unsigned char) * 8) /
drivers/scsi/mvumi.c
129
size = round_up(size, 8);
drivers/scsi/mvumi.c
937
offset = round_up(p, 128) - p;
drivers/scsi/mvumi.c
952
offset = round_up(p, 8) - p;
drivers/scsi/mvumi.c
961
offset = round_up(p, 8) - p;
drivers/scsi/mvumi.c
969
offset = round_up(p, 4) - p;
drivers/scsi/mvumi.c
979
offset = round_up(p, 128) - p;
drivers/scsi/mvumi.c
988
tmp_size = round_up(tmp_size, 8);
drivers/scsi/sd.c
2351
round_up(resid, sector_size));
drivers/scsi/sd_zbc.c
623
nr_zones = round_up(sdkp->capacity, zone_blocks) >> ilog2(zone_blocks);
drivers/spi/spi-airoha-snfi.c
569
bytes = round_up(offs + len, 64);
drivers/spi/spi-airoha-snfi.c
762
bytes = round_up(offs + len, 64);
drivers/spi/spi-intel.c
573
round_up(addr + 1, SZ_4K)) - addr;
drivers/spi/spi-intel.c
630
round_up(addr + 1, SZ_4K)) - addr;
drivers/spi/spi-sprd.c
736
bits_per_word = round_up(bits_per_word, 16);
drivers/spi/spi-sprd.c
738
bits_per_word = round_up(bits_per_word, 8);
drivers/spi/spi-uniphier.c
209
ckdiv = round_up(ckdiv, 2);
drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_1.0/ia_css_anr_types.h
18
#define ANR_ELEMENT_BITS round_up(ANR_BPP, 8)
drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
471
frame->data_bytes = stride * round_up(height, 2);
drivers/staging/media/atomisp/pci/sh_css_defs.h
301
round_up(round_up(MAX(__ISP_PADDED_OUTPUT_WIDTH(out_width, \
drivers/staging/media/atomisp/pci/sh_css_internal.h
707
(round_up(SIZE_OF_PAYLOAD_UNION, 8) + \
drivers/staging/media/atomisp/pci/sh_css_internal.h
711
round_up(SIZE_OF_IA_CSS_CLOCK_TICK_STRUCT, 8))
drivers/staging/media/atomisp/pci/sh_css_param_dvs.h
25
#define DVS_NUM_BLOCKS_X(X) round_up(DIV_ROUND_UP((X), DVS_BLOCKDIM_X), 2)
drivers/staging/media/atomisp/pci/sh_css_param_dvs.h
47
round_up(sizeof(gdc_warp_param_mem_t), HIVE_ISP_DDR_WORD_BYTES)
drivers/staging/media/imx/imx-media-csc-scaler.c
367
s->r.width = round_up(s->r.width, 8);
drivers/staging/media/imx/imx-media-utils.c
548
width = round_up(mbus->width, 8);
drivers/staging/media/imx/imx-media-utils.c
552
stride = round_up(width, 16);
drivers/staging/media/imx/imx-media-utils.c
554
stride = round_up((width * cc->bpp) >> 3, 8);
drivers/staging/rtl8723bs/core/rtw_cmd.c
444
pcmd->cmdsz = round_up((pcmd->cmdsz), 4);
drivers/staging/rtl8723bs/core/rtw_security.c
494
pframe = (u8 *)round_up((SIZE_PTR)(pframe), 4);
drivers/staging/rtl8723bs/core/rtw_security.c
87
pframe = (u8 *)round_up((SIZE_PTR)(pframe), 4);
drivers/staging/rtl8723bs/core/rtw_security.c
988
pframe = (u8 *)round_up((SIZE_PTR)(pframe), 4);
drivers/staging/rtl8723bs/core/rtw_xmit.c
1156
mem_start = (unsigned char *)round_up(addr, 4) + hw_hdr_offset;
drivers/staging/rtl8723bs/core/rtw_xmit.c
835
payload = (u8 *)round_up((SIZE_PTR)(payload), 4);
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
349
pkt_offset = round_up(pkt_offset, 8);
drivers/staging/rtl8723bs/hal/sdio_ops.c
447
cnt = round_up(cnt, 4);
drivers/staging/rtl8723bs/hal/sdio_ops.c
505
n = round_up(cnt, 4);
drivers/staging/rtl8723bs/hal/sdio_ops.c
546
n = round_up(cnt, 4);
drivers/staging/rtl8723bs/hal/sdio_ops.c
797
readsize = round_up(size, 4);
drivers/target/iscsi/cxgbit/cxgbit_cm.c
767
csk->emss -= round_up(TCPOLEN_TIMESTAMP, 4);
drivers/target/target_core_user.c
1170
cmd_size = round_up(sizeof(*entry) + id_list_sz, TCMU_OP_ALIGN_SIZE);
drivers/target/target_core_user.c
663
size = round_up(size+offset, PAGE_SIZE);
drivers/target/target_core_user.c
907
round_up(scsi_command_size(se_cmd->t_task_cdb),
drivers/thunderbolt/property.c
624
size_t size = round_up(buflen, 4);
drivers/thunderbolt/property.c
662
size_t size = round_up(strlen(text) + 1, 4);
drivers/usb/chipidea/udc.c
613
rounded = round_up(rest, CI_HDRC_PAGE_SIZE);
drivers/vfio/pci/mlx5/cmd.c
323
sizeof(__be64) * round_up(npages, 2);
drivers/vfio/pci/mlx5/cmd.c
352
sizeof(__be64) * round_up(npages, 2);
drivers/vfio/pci/pds/dirty.c
549
round_up(pages, sizeof(u64) * BITS_PER_BYTE) / BITS_PER_BYTE;
drivers/vfio/pci/vfio_pci_config.c
1317
len = round_up(len, 16);
drivers/vfio/pci/vfio_pci_config.c
1431
bits = byte ? round_up(byte, 32) : 256;
drivers/vfio/pci/vfio_pci_config.c
361
size = round_up(size, 4);
drivers/video/fbdev/atafb.c
1641
var->xoffset = round_up(var->xoffset, 32);
drivers/video/fbdev/atafb.c
1646
var->xoffset = round_up(var->xoffset, 2);
drivers/video/fbdev/atafb.c
2264
var->xoffset = round_up(var->xoffset, 16);
drivers/video/fbdev/efifb.c
200
bmp_pitch = round_up(3 * bmp_width, 4);
drivers/virtio/virtio_balloon.c
861
pages_to_free = round_up(pages_to_free,
drivers/xen/balloon.c
281
balloon_hotplug = round_up(credit, PAGES_PER_SECTION);
drivers/xen/unpopulated-alloc.c
42
unsigned int i, alloc_pages = round_up(nr_pages, PAGES_PER_SECTION);
fs/afs/cm_security.c
18
#define xdr_round_up(x) (round_up((x), sizeof(__be32)))
fs/afs/cm_security.c
19
#define xdr_len_object(x) (4 + round_up((x), sizeof(__be32)))
fs/afs/dir.c
481
ctx->dir_ctx->pos = round_up(ctx->dir_ctx->pos, AFS_DIR_BLOCK_SIZE);
fs/afs/dir.c
500
dir_ctx->pos = round_up(dir_ctx->pos, sizeof(union afs_xdr_dirent));
fs/afs/dir_edit.c
198
n = round_up(12 + len + 1 + 4, AFS_DIR_DIRENT_SIZE);
fs/afs/fsclient.c
2011
size = round_up(size, 4);
fs/afs/fsclient.c
2114
size = round_up(acl->size, 4);
fs/afs/yfsclient.c
2048
size = round_up(size, 4);
fs/afs/yfsclient.c
2080
size = round_up(size, 4);
fs/afs/yfsclient.c
2207
size = round_up(acl->size, 4);
fs/afs/yfsclient.c
58
return sizeof(__be32) + round_up(len, sizeof(__be32));
fs/binfmt_elf.c
1616
size = round_up(size, PAGE_SIZE);
fs/binfmt_elf.c
755
step = round_up(pr->pr_datasz, ELF_GNU_PROPERTY_ALIGN);
fs/binfmt_elf.c
814
off = round_up(sizeof(note.nhdr) + NOTE_NAME_SZ,
fs/btrfs/defrag.c
1415
last_byte = round_up(last_byte, fs_info->sectorsize) - 1;
fs/btrfs/delalloc-space.c
150
len = round_up(start + len, fs_info->sectorsize) -
fs/btrfs/delalloc-space.c
205
len = round_up(start + len, fs_info->sectorsize) -
fs/btrfs/disk-io.c
3414
fs_info->block_min_order = ilog2(round_up(sectorsize, PAGE_SIZE) >> PAGE_SHIFT);
fs/btrfs/extent-tree.c
4756
ffe_ctl->search_start = round_up(ffe_ctl->found_offset,
fs/btrfs/fiemap.c
660
range_end = round_up(start + len, sectorsize);
fs/btrfs/file.c
1082
loff_t end_pos = round_up(pos + count, fs_info->sectorsize);
fs/btrfs/file.c
1147
reserve_bytes = round_up(*len + block_offset, fs_info->sectorsize);
fs/btrfs/file.c
1313
last_block = round_up(start + copied, fs_info->sectorsize);
fs/btrfs/file.c
1951
reserved_space = round_up(size - page_start, fs_info->sectorsize);
fs/btrfs/file.c
2193
round_up(*len, fs_info->sectorsize));
fs/btrfs/file.c
2242
const u64 page_lockstart = round_up(start, PAGE_SIZE);
fs/btrfs/file.c
2406
u64 ino_size = round_up(inode->vfs_inode.i_size, fs_info->sectorsize);
fs/btrfs/file.c
2677
ino_size = round_up(inode->i_size, fs_info->sectorsize);
fs/btrfs/file.c
2691
lockstart = round_up(offset, fs_info->sectorsize);
fs/btrfs/file.c
2869
range_end = round_up(end, root->fs_info->sectorsize);
fs/btrfs/file.c
2932
u64 alloc_end = round_up(offset + len, sectorsize);
fs/btrfs/file.c
3007
alloc_start = round_up(offset, sectorsize);
fs/btrfs/file.c
3040
alloc_end = round_up(offset + len, sectorsize);
fs/btrfs/file.c
3126
alloc_end = round_up(offset + len, blocksize);
fs/btrfs/file.c
3613
lockend = round_up(i_size, fs_info->sectorsize);
fs/btrfs/file.c
49
u64 block_len = round_up(pos + copied, fs_info->sectorsize) - block_start;
fs/btrfs/file.c
90
num_bytes = round_up(end_pos - start_pos, fs_info->sectorsize);
fs/btrfs/file.c
909
last_pos = round_up(pos + write_bytes, fs_info->sectorsize) - 1;
fs/btrfs/file.c
994
lockend = round_up(pos + *write_bytes,
fs/btrfs/free-space-cache.c
1453
for (int i = 0; i < round_up(i_size, PAGE_SIZE) / PAGE_SIZE; i++) {
fs/btrfs/free-space-tree.c
162
u32 bitmap_rounded_size = round_up(bitmap_size, sizeof(unsigned long));
fs/btrfs/inode.c
10003
folio_zero_range(folio, bytes, round_up(bytes, blocksize) - bytes);
fs/btrfs/inode.c
10004
ret = bio_add_folio(&cb->bbio.bio, folio, round_up(bytes, blocksize), 0);
fs/btrfs/inode.c
1076
total_in = round_up(total_in, fs_info->sectorsize);
fs/btrfs/inode.c
4222
round_up(i_size_read(vfs_inode), fs_info->sectorsize));
fs/btrfs/inode.c
7509
range_end = round_up(offset + nocow_args.file_extent.num_bytes,
fs/btrfs/inode.c
7854
const u64 i_size_up = round_up(inode->vfs_inode.i_size, fs_info->sectorsize);
fs/btrfs/inode.c
914
ret = bio_add_folio(bio, last_folio, round_up(foffset, blocksize) - foffset, foffset);
fs/btrfs/lzo.c
265
sector_bytes_left = round_up(*total_out, sectorsize) - *total_out;
fs/btrfs/lzo.c
464
round_up(len_in, sectorsize) < cb->compressed_len)) {
fs/btrfs/qgroup.c
4330
len = round_up(start + len, root->fs_info->sectorsize);
fs/btrfs/raid56.c
329
nr_sectors = round_up(PAGE_SIZE, fs_info->sectorsize) >> fs_info->sectorsize_bits;
fs/btrfs/send.c
6755
round_up(i_size, PAGE_SIZE) - 1);
fs/btrfs/sysfs.c
1448
u64 temp_value = round_up(value, sectorsize);
fs/btrfs/verity.c
88
u64 rounded = round_up(sz, MERKLE_START_ALIGN);
fs/btrfs/volumes.c
5631
ctl->stripe_size = min(round_up(div_u64(ctl->max_chunk_size,
fs/btrfs/volumes.c
6446
stripe_nr_end = round_up(offset + length, BTRFS_STRIPE_LEN) >>
fs/cachefiles/interface.c
124
ni_size = round_up(ni_size, CACHEFILES_DIO_BLOCK_SIZE);
fs/cachefiles/interface.c
241
dio_size = round_up(new_size, CACHEFILES_DIO_BLOCK_SIZE);
fs/cachefiles/io.c
228
if (round_up(off, granularity) >= start + len)
fs/cachefiles/io.c
240
off = round_up(off, granularity);
fs/cachefiles/io.c
445
off = round_up(off, cache->bsize);
fs/cachefiles/io.c
464
to = round_up(to, cache->bsize);
fs/cachefiles/io.c
540
*_len = round_up(len, PAGE_SIZE);
fs/cachefiles/key.c
27
return x ? round_up(ilog2(x) + 1, 4) / 4 : 0;
fs/cachefiles/key.c
71
n = round_up(keylen, 4);
fs/cachefiles/namei.c
478
ni_size = round_up(ni_size, CACHEFILES_DIO_BLOCK_SIZE);
fs/ceph/addr.c
1539
len = round_up(len, CEPH_FSCRYPT_BLOCK_SIZE);
fs/ceph/addr.c
199
new_end = umin(round_up(end, lo->stripe_unit), rreq->i_size);
fs/ceph/addr.c
707
ret = round_up(ret, CEPH_FSCRYPT_BLOCK_SIZE);
fs/ceph/addr.c
772
wlen = IS_ENCRYPTED(inode) ? round_up(len, CEPH_FSCRYPT_BLOCK_SIZE) : len;
fs/ceph/caps.c
1281
fc->size = cpu_to_le64(round_up(arg->size,
fs/ceph/file.c
2546
loff_t nearly = round_up(offset, PAGE_SIZE);
fs/ceph/inode.c
1153
if (size == round_up(fsize, CEPH_FSCRYPT_BLOCK_SIZE)) {
fs/ceph/inode.c
2730
cpu_to_le64(round_up(attr->ia_size,
fs/ceph/inode.c
2733
cpu_to_le64(round_up(isize,
fs/ceph/inode.c
2754
cpu_to_le64(round_up(attr->ia_size,
fs/ceph/inode.c
2757
cpu_to_le64(round_up(isize,
fs/crypto/fname.c
177
encrypted_len = round_up(encrypted_len, padding);
fs/dax.c
1297
loff_t pg_end = round_up(end, align_size);
fs/erofs/data.c
141
round_up(inode->i_size - map->m_la, blksz));
fs/erofs/erofs_fs.h
256
#define EROFS_XATTR_ALIGN(size) round_up(size, sizeof(struct erofs_xattr_entry))
fs/erofs/inode.c
187
inode->i_blocks = round_up(inode->i_size, sb->s_blocksize) >> 9;
fs/erofs/internal.h
216
#define erofs_iblks(i) (round_up((i)->i_size, i_blocksize(i)) >> (i)->i_blkbits)
fs/erofs/super.c
97
*offset = round_up(*offset, 4);
fs/erofs/zdata.c
1527
bvec->bv_offset = round_up(-zbv.offset, bs);
fs/erofs/zdata.c
1528
bvec->bv_len = round_up(zbv.end, bs) - bvec->bv_offset;
fs/erofs/zdata.c
1709
end = round_up(cur + pcl->pageofs_in + pcl->pclustersize,
fs/erofs/zdata.c
1850
cur = round_up(map->m_la + map->m_llen, PAGE_SIZE);
fs/erofs/zdata.c
1854
end = round_up(end, PAGE_SIZE);
fs/erofs/zdata.c
1856
end = round_up(map->m_la, PAGE_SIZE);
fs/erofs/zmap.c
514
erofs_off_t pos = round_up(Z_EROFS_MAP_HEADER_END(erofs_iloc(inode) +
fs/erofs/zmap.c
552
last = (lstart >= round_up(lend, 1 << vi->z_lclusterbits));
fs/exfat/dir.c
232
cpos = round_up(cpos, DENTRY_SIZE);
fs/exfat/file.c
264
inode->i_blocks = round_up(i_size_read(inode), sbi->cluster_size) >> 9;
fs/exfat/file.c
80
inode->i_blocks = round_up(size, sbi->cluster_size) >> 9;
fs/exfat/inode.c
650
inode->i_blocks = round_up(i_size_read(inode), sbi->cluster_size) >> 9;
fs/exfat/super.c
387
inode->i_blocks = round_up(i_size_read(inode), sbi->cluster_size) >> 9;
fs/ext4/ext4.h
370
(round_up((offset), i_blocksize(inode)) >> (inode)->i_blkbits)
fs/ext4/fast_commit.c
780
sbi->s_fc_bytes = round_up(sbi->s_fc_bytes, bsize);
fs/ext4/inode.c
4255
if (round_up(start, blocksize) >= round_down(end, blocksize))
fs/ext4/inode.c
4297
loff_t page_boundary = round_up(start, PAGE_SIZE);
fs/ext4/inode.c
4366
end = round_up(inode->i_size, sb->s_blocksize);
fs/ext4/page-io.c
548
unsigned int enc_bytes = round_up(len, i_blocksize(inode));
fs/ext4/verity.c
174
const u64 desc_pos = round_up(ext4_verity_metadata_pos(inode) +
fs/ext4/verity.c
178
const u64 desc_size_pos = round_up(desc_end + sizeof(desc_size_disk),
fs/ext4/verity.c
34
return round_up(inode->i_size, 65536);
fs/f2fs/compress.c
1264
return f2fs_do_truncate_blocks(inode, round_up(from, PAGE_SIZE), lock);
fs/f2fs/data.c
2644
max_nr_pages = round_up(index + nr_pages, cc.cluster_size) -
fs/f2fs/file.c
3924
count = round_up(count, fi->i_cluster_size);
fs/f2fs/file.c
4103
count = round_up(count, fi->i_cluster_size);
fs/f2fs/file.c
870
free_from = round_up(from,
fs/f2fs/verity.c
36
return round_up(inode->i_size, 65536);
fs/fat/inode.c
632
round_up(MSDOS_I(inode)->mmu_private,
fs/fuse/file.c
2813
return round_up(off, fc->max_pages << PAGE_SHIFT);
fs/gfs2/bmap.c
1184
loff_t hstart = round_up(pos + written, i_blocksize(inode));
fs/gfs2/bmap.c
2446
end = round_up(offset + length, blocksize) - 1;
fs/hfsplus/attributes.c
130
len = round_up(len, 2);
fs/hugetlbfs/inode.c
690
hole_start = round_up(offset, hpage_size);
fs/iomap/buffered-io.c
1898
end_aligned = round_up(end_pos, i_blocksize(inode));
fs/iomap/buffered-io.c
797
loff_t block_end = round_up(pos + len, block_size);
fs/netfs/fscache_cookie.c
283
buf_size = round_up(index_key_len, sizeof(__le32));
fs/netfs/fscache_volume.c
145
klen = round_up(a->key[0] + 1, sizeof(__le32));
fs/netfs/fscache_volume.c
249
hlen = round_up(1 + klen + 1, sizeof(__le32));
fs/netfs/misc.c
25
size = round_up(size, PAGE_SIZE);
fs/nfs/localio.c
365
start_end = round_up(offset, nf_dio_offset_align);
fs/nfs/write.c
1317
end = min(round_up(end, PAGE_SIZE), pagelen);
fs/nfsd/vfs.c
1128
dio_end = round_up((u64)offset + *count, nf->nf_dio_read_offset_align);
fs/nfsd/vfs.c
1324
prefix_end = round_up(offset, offset_align);
fs/ocfs2/file.c
2745
round_up(pos_out + len, PAGE_SIZE) - 1);
fs/overlayfs/inode.c
262
round_up(stat->size, stat->blksize) >> 9;
fs/proc/page.c
39
return round_up(max_pfn, PAGES_PER_SECTION);
fs/smb/client/reparse.c
578
*cc_len = round_up(sizeof(*cc) + dlen, 8);
fs/smb/client/smb2ops.c
4949
len = round_up(dw->len, PAGE_SIZE);
fs/smb/client/smb2pdu.c
2693
*len = round_up(sizeof(struct crt_sd_ctxt) + (sizeof(struct smb_ace) * 4), 8);
fs/smb/client/smb2pdu.c
2768
*len = round_up((unsigned int)(ptr - (__u8 *)buf), 8);
fs/smb/client/smb2pdu.c
2861
*out_size = round_up(*out_len * sizeof(__le16), 8);
fs/smb/client/smb2pdu.c
3131
copy_size = round_up(uni_path_len, 8);
fs/smb/server/smb2pdu.c
858
ctxt_size = round_up(ctxt_size, 8);
fs/smb/server/smb2pdu.c
872
ctxt_size = round_up(ctxt_size, 8);
fs/smb/server/smb2pdu.c
882
ctxt_size = round_up(ctxt_size, 8);
fs/squashfs/block.c
223
const u64 read_end = round_up(index + length, msblk->devblksize);
fs/ubifs/crypto.c
43
unsigned int pad_len = round_up(in_len, UBIFS_CIPHER_BLOCK_SIZE);
fs/verity/hash_algs.c
70
padded_salt_size = round_up(salt_size, alg->block_size);
fs/xfs/libxfs/xfs_ag.c
174
bno = round_up(XFS_AGFL_BLOCK(mp) + 1, M_IGEO(mp)->cluster_align);
fs/xfs/libxfs/xfs_da_format.h
818
return round_up(remotesize + nlen, XFS_ATTR_LEAF_NAME_ALIGN);
fs/xfs/libxfs/xfs_da_format.h
848
return round_up(localsize + nlen + vlen, XFS_ATTR_LEAF_NAME_ALIGN);
fs/xfs/libxfs/xfs_dir2_priv.h
196
return round_up(len, XFS_DIR2_DATA_ALIGN);
fs/xfs/libxfs/xfs_dir2_priv.h
210
return round_up(len, XFS_DIR2_DATA_ALIGN);
fs/xfs/libxfs/xfs_trans_resv.c
45
return round_up(sizeof(struct xlog_op_header) +
fs/xfs/scrub/attr_repair.c
911
for (dabno = round_up(got.br_startoff, geo->fsbcount);
fs/xfs/scrub/dir_repair.c
984
for (dabno = round_up(got.br_startoff, geo->fsbcount);
fs/xfs/scrub/xfarray.c
435
return round_up(array->obj_size, 8) + sizeof(xfarray_idx_t);
fs/xfs/xfs_bmap_util.c
600
round_up(XFS_ISIZE(ip), mp->m_sb.sb_blocksize),
fs/xfs/xfs_buf_item.c
260
*nbytes = round_up(bytes, 512);
fs/xfs/xfs_file.c
1346
len = round_up(offset + len, blksize) -
fs/xfs/xfs_handle.c
356
context->firstu -= round_up(offsetof(struct xfs_attrlist_ent, a_name) +
fs/xfs/xfs_handle.c
676
return round_up(sizeof(struct xfs_getparents_rec) + namelen + 1,
fs/xfs/xfs_inode.c
1130
for (off = round_up(got.br_startoff, geo->fsbcount);
fs/xfs/xfs_iomap.c
2071
end_byte = round_up(offset + length, i_blocksize(inode));
fs/xfs/xfs_iwalk.c
509
inodes = round_up(inodes, XFS_INODES_PER_CHUNK);
fs/xfs/xfs_log_cil.c
216
return round_up((sizeof(struct xfs_log_vec) +
fs/xfs/xfs_log_cil.c
449
lv->lv_buf_used = round_up(len, sizeof(uint64_t)) -
fs/xfs/xfs_log_priv.h
727
return round_up(nbytes, sizeof(uint64_t));
fs/xfs/xfs_log_recover.c
103
nbblks = round_up(nbblks, log->l_sectBBsize);
fs/xfs/xfs_log_recover.c
137
nbblks = round_up(nbblks, log->l_sectBBsize);
fs/xfs/xfs_pnfs.c
157
limit = max(limit, round_up(i_size_read(inode),
include/linux/bpf.h
539
bpf_long_memcpy(dst, src, round_up(size, 8));
include/linux/generic-radix-tree.h
325
iter->offset = round_up(iter->offset, GENRADIX_NODE_SIZE);
include/linux/iomap.h
322
return round_up(pos + written, i_blocksize(inode));
include/linux/perf_event.h
1412
size = round_up(sum + sizeof(u32), sizeof(u64));
include/linux/usb/gadget.h
536
return round_up(len, max_packet_size);
include/net/tcp_ao.h
78
return round_up(tcp_ao_len(key), 4);
init/initramfs.c
626
size = round_up(size, PAGE_SIZE);
kernel/bpf/arena.c
455
return round_up(ret, SZ_4G);
kernel/bpf/arena.c
46
#define GUARD_SZ round_up(1ull << sizeof_field(struct bpf_insn, off) * 8, PAGE_SIZE << 1)
kernel/bpf/arraymap.c
78
if (percpu && round_up(attr->value_size, 8) > PCPU_MIN_UNIT_SIZE)
kernel/bpf/arraymap.c
93
elem_size = round_up(attr->value_size, 8);
kernel/bpf/core.c
1041
bpf_jit_limit = min_t(u64, round_up(bpf_jit_limit_max >> 1,
kernel/bpf/core.c
106
size = round_up(size, __PAGE_SIZE);
kernel/bpf/core.c
1089
size = round_up(proglen + sizeof(*hdr) + 128, PAGE_SIZE);
kernel/bpf/core.c
1143
size = round_up(proglen + sizeof(*ro_header) + 16, BPF_PROG_CHUNK_SIZE);
kernel/bpf/core.c
2393
insn->imm = interpreters_args[(round_up(stack_depth, 32) / 32) - 1] -
kernel/bpf/core.c
2517
u32 idx = (round_up(stack_depth, 32) / 32) - 1;
kernel/bpf/core.c
264
size = round_up(size, PAGE_SIZE);
kernel/bpf/core.c
887
#define BPF_PROG_SIZE_TO_NBITS(size) (round_up(size, BPF_PROG_CHUNK_SIZE) / BPF_PROG_CHUNK_SIZE)
kernel/bpf/core.c
945
size = round_up(size, PAGE_SIZE);
kernel/bpf/hashtab.c
1024
u32 size = round_up(htab->map.value_size, 8);
kernel/bpf/hashtab.c
1139
size = round_up(size, 8);
kernel/bpf/hashtab.c
1700
u32 roundup_value_size = round_up(map->value_size, 8);
kernel/bpf/hashtab.c
1817
size = round_up(value_size, 8);
kernel/bpf/hashtab.c
187
return l->key + round_up(key_size, 8);
kernel/bpf/hashtab.c
2183
roundup_value_size = round_up(map->value_size, 8);
kernel/bpf/hashtab.c
2223
buf_size = round_up(map->value_size, 8) * num_possible_cpus();
kernel/bpf/hashtab.c
2315
u32 value_size = round_up(htab->map.value_size, 8);
kernel/bpf/hashtab.c
2481
size = round_up(map->value_size, 8);
kernel/bpf/hashtab.c
2710
round_up(map->key_size, 8));
kernel/bpf/hashtab.c
331
u32 size = round_up(htab->map.value_size, 8);
kernel/bpf/hashtab.c
459
if (percpu && round_up(attr->value_size, 8) > PCPU_MIN_UNIT_SIZE)
kernel/bpf/hashtab.c
584
round_up(htab->map.key_size, 8);
kernel/bpf/hashtab.c
588
htab->elem_size += round_up(htab->map.value_size, 8);
kernel/bpf/hashtab.c
651
round_up(htab->map.value_size, 8), true);
kernel/bpf/hashtab.c
784
round_up(map->key_size, 8));
kernel/bpf/hashtab.c
833
round_up(map->key_size, 8));
kernel/bpf/helpers.c
1095
return (void *)value - round_up(map->key_size, 8);
kernel/bpf/local_storage.c
206
size = round_up(_map->value_size, 8);
kernel/bpf/local_storage.c
246
size = round_up(_map->value_size, 8);
kernel/bpf/local_storage.c
492
*pages = round_up(sizeof(struct bpf_cgroup_storage) + size,
kernel/bpf/local_storage.c
496
*pages = round_up(round_up(size, 8) * num_possible_cpus(),
kernel/bpf/log.c
850
return round_up(max(pos + BPF_LOG_MIN_ALIGNMENT / 2, BPF_LOG_ALIGNMENT),
kernel/bpf/map_iter.c
131
value_size = round_up(map->value_size, 8) * num_possible_cpus();
kernel/bpf/ringbuf.c
460
return round_up(hdr_len + BPF_RINGBUF_HDR_SZ, 8);
kernel/bpf/ringbuf.c
472
len = round_up(size + BPF_RINGBUF_HDR_SZ, 8);
kernel/bpf/ringbuf.c
769
total_len = round_up(sample_len + BPF_RINGBUF_HDR_SZ, 8);
kernel/bpf/ringbuf.c
806
u32 rounded_size = round_up(size + BPF_RINGBUF_HDR_SZ, 8);
kernel/bpf/syscall.c
145
return round_up(map->value_size, 8) * num_possible_cpus();
kernel/bpf/verifier.c
1495
size = round_up(size, BPF_REG_SIZE);
kernel/bpf/verifier.c
24457
u16 stack_depth_roundup = round_up(stack_depth, 8) - stack_depth;
kernel/bpf/verifier.c
24485
stack_depth_roundup = round_up(stack_depth, 8) - stack_depth;
kernel/bpf/verifier.c
6726
return round_up(stack_depth, 16);
kernel/bpf/verifier.c
6731
return round_up(max_t(u32, stack_depth, 1), 32);
kernel/events/core.c
7825
stack_size = round_up(stack_size, sizeof(u64));
kernel/liveupdate/kexec_handover.c
615
scratch_size_lowmem = round_up(size, CMA_MIN_ALIGNMENT_BYTES);
kernel/liveupdate/kexec_handover.c
620
scratch_size_global = round_up(size, CMA_MIN_ALIGNMENT_BYTES);
kernel/liveupdate/kexec_handover.c
635
return round_up(size, CMA_MIN_ALIGNMENT_BYTES);
kernel/sched/fair.c
1580
rss = round_up(rss, nr_scan_pages);
lib/842/842_compress.c
169
int b = p->bit, bits = b + n, s = round_up(bits, 8) - bits;
lib/assoc_array.c
1489
keylen = round_up(shortcut->skip_to_level, ASSOC_ARRAY_KEY_CHUNK_SIZE);
lib/assoc_array.c
258
if (round_up(sc_level, ASSOC_ARRAY_KEY_CHUNK_SIZE) > shortcut->skip_to_level) {
lib/assoc_array.c
741
keylen = round_up(diff, ASSOC_ARRAY_KEY_CHUNK_SIZE);
lib/assoc_array.c
848
keylen = round_up(diff, ASSOC_ARRAY_KEY_CHUNK_SIZE);
lib/assoc_array.c
897
keylen = round_up(shortcut->skip_to_level, ASSOC_ARRAY_KEY_CHUNK_SIZE);
lib/crc/tests/crc_kunit.c
97
test_buflen = round_up(CRC_KUNIT_MAX_LEN, PAGE_SIZE);
lib/crypto/s390/chacha.h
33
state->x[12] += round_up(bytes, CHACHA_BLOCK_SIZE) /
lib/crypto/tests/hash-test-template.h
81
size_t alloc_len = round_up(TEST_BUF_LEN, PAGE_SIZE);
lib/crypto/tests/sha256_kunit.c
36
size_t full_len = round_up(len, PAGE_SIZE);
lib/crypto/x86/chacha.h
49
return round_up(len, CHACHA_BLOCK_SIZE) / CHACHA_BLOCK_SIZE;
lib/math/prime_numbers.c
136
sz = round_up(sz, BITS_PER_LONG);
lib/math/test_mul_u64_u64_div_u64.c
123
expected_result += test_values[i].round_up;
lib/math/test_mul_u64_u64_div_u64.c
13
typedef struct { u64 a; u64 b; u64 d; u64 result; uint round_up;} test_params;
lib/scatterlist.c
623
nent = round_up(length, PAGE_SIZE << order) >> (PAGE_SHIFT + order);
lib/test_bitmap.c
659
round_up(nbits, BITS_PER_LONG), nbits);
lib/test_bitmap.c
660
if (next_bit < round_up(nbits, BITS_PER_LONG)) {
lib/test_bitmap.c
687
next_bit = find_next_bit(bmap2, round_up(nbits, BITS_PER_LONG), nbits);
lib/test_bitmap.c
688
if (next_bit < round_up(nbits, BITS_PER_LONG)) {
mm/execmem.c
289
alloc_size = round_up(size, PMD_SIZE);
mm/filemap.c
2679
last_index = round_up(iocb->ki_pos + count,
mm/filemap.c
3227
pos = round_up((u64)pos + 1, seek_size);
mm/filemap.c
3389
ra_end = round_up(ra->start + ra->ra_pages, 1UL << ra->order);
mm/huge_memory.c
1195
loff_t off_align = round_up(off, size);
mm/hugetlb_cma.c
225
size = round_up(size, PAGE_SIZE << order);
mm/kasan/common.c
173
kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE),
mm/kasan/common.c
249
kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE),
mm/kasan/common.c
386
redzone_start = round_up((unsigned long)(object + size),
mm/kasan/common.c
388
redzone_end = round_up((unsigned long)(object + cache->object_size),
mm/kasan/common.c
437
redzone_start = round_up((unsigned long)(ptr + size), KASAN_GRANULE_SIZE);
mm/kasan/common.c
616
new_size = round_up(new_size, KASAN_GRANULE_SIZE);
mm/kasan/common.c
617
old_size = round_up(old_size, KASAN_GRANULE_SIZE);
mm/kasan/generic.c
228
size_t aligned_size = round_up(global->size, KASAN_GRANULE_SIZE);
mm/kasan/generic.c
303
size_t rounded_up_size = round_up(size, KASAN_GRANULE_SIZE);
mm/kasan/generic.c
304
size_t padding_size = round_up(size, KASAN_ALLOCA_REDZONE_SIZE) -
mm/kasan/hw_tags.c
375
redzone_start = round_up((unsigned long)start + size,
mm/kasan/hw_tags.c
377
redzone_size = round_up(redzone_start, PAGE_SIZE) - redzone_start;
mm/kasan/kasan.h
495
size = round_up(size, KASAN_GRANULE_SIZE);
mm/kasan/kasan_test_c.c
1311
((volatile char *)&elem[round_up(size, KASAN_GRANULE_SIZE)])[0]);
mm/kasan/kasan_test_c.c
1628
size = round_up(size, OOB_TAG_OFF);
mm/kasan/kasan_test_c.c
1654
size = round_up(size, OOB_TAG_OFF);
mm/kasan/kasan_test_c.c
1862
size = round_up(size, KASAN_GRANULE_SIZE);
mm/kasan/kasan_test_c.c
409
ptr2[round_up(size2, KASAN_GRANULE_SIZE)] = 'x');
mm/kasan/kasan_test_c.c
441
ptr2[round_up(size2, KASAN_GRANULE_SIZE)] = 'x');
mm/kasan/kasan_test_c.c
447
KUNIT_EXPECT_LE(test, round_up(size2, KASAN_GRANULE_SIZE),
mm/kasan/kasan_test_c.c
449
KUNIT_EXPECT_LE(test, round_up(middle, KASAN_GRANULE_SIZE),
mm/kasan/shadow.c
178
kasan_poison(addr, round_up(size, KASAN_GRANULE_SIZE), tag, false);
mm/kasan/shadow.c
650
size = round_up(size, KASAN_GRANULE_SIZE);
mm/kasan/shadow.c
666
shadow_size = round_up(scaled_size, PAGE_SIZE);
mm/khugepaged.c
2439
hstart = round_up(vma->vm_start, HPAGE_PMD_SIZE);
mm/memblock.c
2034
start = round_up(orig_start, align);
mm/memblock.c
246
cand = round_up(this_start, align);
mm/mm_init.c
1481
usemapsize = round_up(zonesize, pageblock_nr_pages);
mm/mm_init.c
1484
usemapsize = round_up(usemapsize, BITS_PER_LONG);
mm/mm_init.c
2403
numentries = round_up(numentries, SZ_1M / PAGE_SIZE);
mm/mm_init.c
458
round_up(required_movablecore, MAX_ORDER_NR_PAGES);
mm/mm_init.c
569
round_up(zone_movable_pfn[nid], MAX_ORDER_NR_PAGES);
mm/mm_init.c
995
end_pfn = round_up(end_pfn, PAGES_PER_SECTION);
mm/mm_init.c
997
end_pfn = round_up(end_pfn, MAX_ORDER_NR_PAGES);
mm/readahead.c
247
ra_folio_index = round_up(readahead_index(ractl) +
mm/shmem.c
1357
loff_t holebegin = round_up(newsize, PAGE_SIZE);
mm/shmem.c
3707
loff_t unmap_start = round_up(offset, PAGE_SIZE);
mm/shmem.c
614
aligned_index = round_up(index + 1, 1 << order);
mm/shmem.c
616
i_size = round_up(i_size, PAGE_SIZE);
mm/shrinker.c
153
int new_nr_max = round_up(new_id + 1, SHRINKER_UNIT_BITS);
mm/swapfile.c
1479
offset = round_up(offset, abs(nr_reclaimed));
mm/swapfile.c
1917
cluster_end = min(round_up(offset + 1, SWAPFILE_CLUSTER), end_offset);
mm/swapfile.c
3295
for (i = maxpages; i < round_up(maxpages, SWAPFILE_CLUSTER); i++) {
mm/truncate.c
782
loff_t holebegin = round_up(newsize, PAGE_SIZE);
mm/truncate.c
853
rounded_from = round_up(from, bsize);
mm/truncate.c
903
loff_t unmap_start = round_up(lstart, PAGE_SIZE);
mm/vmscan.c
3374
unsigned long start = round_up(*vm_end, size);
mm/vmscan.c
3765
end = round_up(end, P4D_SIZE);
net/core/sock_map.c
1118
round_up(htab->map.key_size, 8);
net/netfilter/nf_tables_api.c
5218
len += round_up(desc->field_len[i], sizeof(u32));
net/netfilter/nft_set_pipapo.c
2306
priv->width += round_up(len, sizeof(u32));
net/netfilter/nft_set_pipapo.h
44
(round_up((f)->groups / NFT_PIPAPO_GROUPS_PER_BYTE(f), sizeof(u32)))
net/rxrpc/key.c
186
keylen = round_up(keylen, 4);
net/rxrpc/key.c
193
tktlen = round_up(tktlen, 4);
net/rxrpc/key.c
239
token->rxgk->ticket.data = kzalloc(round_up(token->rxgk->ticket.len, 4),
net/rxrpc/rxgk_common.h
36
#define xdr_round_up(x) (round_up((x), sizeof(__be32)))
net/rxrpc/rxkad.c
170
alloc = round_up(shdr + part, RXKAD_ALIGN);
net/rxrpc/rxkad.c
319
txb->pkt_len = round_up(content, RXKAD_ALIGN);
net/rxrpc/txbuf.c
33
doff = round_up(jsize, data_align);
net/tls/tls_strp.c
427
strp->anchor->truesize = round_up(need_spc, PAGE_SIZE);
sound/hda/codecs/hdmi/atihdmi.c
220
pos = round_up(pos, 4);
sound/soc/codecs/cros_ec_codec.c
424
req = round_up(r.len, PAGE_SIZE);
sound/soc/codecs/cs35l56.c
506
slots = round_up(slots, 2);
tools/bpf/bpftool/map.c
101
step = round_up(map_info->value_size, 8);
tools/bpf/bpftool/map.c
159
step = round_up(info->value_size, 8);
tools/bpf/bpftool/map.c
279
step = round_up(info->value_size, 8);
tools/bpf/bpftool/map.c
335
step = round_up(info->value_size, 8);
tools/bpf/bpftool/map.c
65
return malloc(round_up(info->value_size, 8) *
tools/perf/arch/arm/util/cs-etm.c
402
sz = round_up(sz, page_size) / page_size;
tools/perf/arch/arm64/util/arm-spe.c
233
sz = round_up(sz, page_size) / page_size;
tools/perf/arch/x86/util/intel-bts.c
171
sz = round_up(sz, page_size) / page_size;
tools/perf/arch/x86/util/intel-pt.c
695
sz = round_up(sz, page_size) / page_size;
tools/perf/arch/x86/util/intel-pt.c
728
size_t sz = round_up(max_sz, page_size) / page_size;
tools/perf/builtin-script.c
1611
spacing = round_up(len + 4, 32);
tools/perf/util/auxtrace.c
2553
size = round_up(start, page_size) + page_size - args->start;
tools/perf/util/bpf_map.c
24
return malloc(round_up(bpf_map__value_size(map), 8) *
tools/perf/util/callchain.c
156
size = round_up(size, sizeof(u64));
tools/perf/util/evsel.c
1296
dump_size = round_up(dump_size, sizeof(u64));
tools/perf/util/genelf.h
87
#define GEN_ELF_TEXT_OFFSET round_up(sizeof(Elf_Ehdr) + sizeof(Elf_Phdr), 16)
tools/perf/util/symbol-elf.c
2359
kci->etext = round_up(kci->etext, page_size);
tools/perf/util/symbol-elf.c
2361
kci->etext = round_up(kci->last_symbol, page_size);
tools/perf/util/symbol-elf.c
2372
kci->last_module_symbol = round_up(kci->last_module_symbol,
tools/perf/util/symbol-elf.c
2544
offset = round_up(offset, page_size);
tools/sched_ext/scx_sdt.bpf.c
195
data_size = round_up(data_size, 8);
tools/sched_ext/scx_sdt.h
33
#ifndef round_up
tools/testing/selftests/bpf/bpf_arena_alloc.h
28
size = round_up(size, 8);
tools/testing/selftests/bpf/bpf_arena_alloc.h
9
#ifndef round_up
tools/testing/selftests/bpf/prog_tests/btf.c
5522
rounded_value_size = round_up(get_pprint_mapv_size(mapv_kind), 8);
tools/testing/selftests/ublk/batch.c
180
unsigned buf_size = round_up(t->dev->dev_info.queue_depth * 2, pg_sz);
tools/testing/selftests/ublk/batch.c
66
return round_up(total, page_sz);
tools/testing/selftests/ublk/kublk.c
407
return round_up(size, page_sz);