DIV_ROUND_UP 275 arch/arc/mm/cache.c num_lines = DIV_ROUND_UP(sz, L1_CACHE_BYTES); DIV_ROUND_UP 320 arch/arc/mm/cache.c num_lines = DIV_ROUND_UP(sz, L1_CACHE_BYTES); DIV_ROUND_UP 390 arch/arc/mm/cache.c num_lines = DIV_ROUND_UP(sz, L1_CACHE_BYTES); DIV_ROUND_UP 763 arch/arc/mm/cache.c num_lines = DIV_ROUND_UP(sz, l2_line_sz); DIV_ROUND_UP 281 arch/arm/crypto/aes-ce-glue.c int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; DIV_ROUND_UP 339 arch/arm/crypto/aes-ce-glue.c int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; DIV_ROUND_UP 471 arch/arm/crypto/aes-ce-glue.c int xts_blocks = DIV_ROUND_UP(req->cryptlen, DIV_ROUND_UP 543 arch/arm/crypto/aes-ce-glue.c int xts_blocks = DIV_ROUND_UP(req->cryptlen, DIV_ROUND_UP 68 arch/arm/include/asm/kprobes.h #define MAX_COPIED_INSN DIV_ROUND_UP(RELATIVEJUMP_SIZE, sizeof(kprobe_opcode_t)) DIV_ROUND_UP 56 arch/arm/mach-omap2/omap_twl.c return DIV_ROUND_UP(uv - 600000, 12500); DIV_ROUND_UP 127 arch/arm/mach-omap2/omap_twl.c return DIV_ROUND_UP(uv - 709000, 12660) + 1; DIV_ROUND_UP 129 arch/arm/mach-omap2/omap_twl.c return DIV_ROUND_UP(uv - 607700, 12660) + 1; DIV_ROUND_UP 623 arch/arm/mach-omap2/vc.c capacitance = DIV_ROUND_UP(sr_i2c_pcb_length, 8); DIV_ROUND_UP 67 arch/arm/mach-omap2/vp.c waittime = DIV_ROUND_UP(voltdm->pmic->step_size * sys_clk_rate, DIV_ROUND_UP 247 arch/arm/mach-pxa/am200epd.c am200_fb_info.modes->yres = DIV_ROUND_UP(totalsize, fw); DIV_ROUND_UP 185 arch/arm/mach-pxa/irq.c for (i = 0; i < DIV_ROUND_UP(pxa_internal_irq_nr, 32); i++) { DIV_ROUND_UP 204 arch/arm/mach-pxa/irq.c for (i = 0; i < DIV_ROUND_UP(pxa_internal_irq_nr, 32); i++) { DIV_ROUND_UP 43 arch/arm/mach-s3c24xx/cpufreq-utils.c refresh = DIV_ROUND_UP(refresh, (1000 * 1000)); /* apply scale */ DIV_ROUND_UP 88 arch/arm/mach-s3c24xx/iotiming-s3c2410.c return DIV_ROUND_UP(cyc, hclk_tns); DIV_ROUND_UP 66 arch/arm/mach-s3c24xx/iotiming-s3c2412.c return cyc_tns ? DIV_ROUND_UP(cyc_tns, clk_tns) : 0; DIV_ROUND_UP 272 arch/arm/mach-s3c24xx/iotiming-s3c2412.c refresh = DIV_ROUND_UP(refresh, (1000 * 1000)); /* apply scale */ DIV_ROUND_UP 294 arch/arm64/crypto/aes-glue.c int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; DIV_ROUND_UP 351 arch/arm64/crypto/aes-glue.c int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; DIV_ROUND_UP 542 arch/arm64/crypto/aes-glue.c int xts_blocks = DIV_ROUND_UP(req->cryptlen, DIV_ROUND_UP 614 arch/arm64/crypto/aes-glue.c int xts_blocks = DIV_ROUND_UP(req->cryptlen, DIV_ROUND_UP 337 arch/arm64/crypto/aes-neonbs-glue.c int xts_blocks = DIV_ROUND_UP(req->cryptlen, DIV_ROUND_UP 250 arch/arm64/kernel/module-plts.c ret += DIV_ROUND_UP(ret, (SZ_4K / sizeof(struct plt_entry))); DIV_ROUND_UP 1191 arch/arm64/kernel/ptrace.c .n = DIV_ROUND_UP(SVE_PT_SIZE(SVE_VQ_MAX, SVE_PT_REGS_SVE), DIV_ROUND_UP 118 arch/m68k/include/asm/delay.h __delay(DIV_ROUND_UP(nsec * DIV_ROUND_UP 82 arch/mips/lib/dump_tlb.c int asidwidth = DIV_ROUND_UP(ilog2(asidmask) + 1, 4); DIV_ROUND_UP 186 arch/nios2/kernel/time.c period = DIV_ROUND_UP(timer->freq, HZ); DIV_ROUND_UP 1358 arch/powerpc/kernel/prom_init.c cores = DIV_ROUND_UP(NR_CPUS, prom_count_smt_threads()); DIV_ROUND_UP 777 arch/powerpc/kvm/e500_mmu.c num_pages = DIV_ROUND_UP(cfg->array + array_len - 1, PAGE_SIZE) - DIV_ROUND_UP 1415 arch/powerpc/perf/imc-pmu.c int i, nr_cores = DIV_ROUND_UP(num_possible_cpus(), threads_per_core); DIV_ROUND_UP 1560 arch/powerpc/perf/imc-pmu.c nr_cores = DIV_ROUND_UP(num_possible_cpus(), threads_per_core); DIV_ROUND_UP 1600 arch/powerpc/perf/imc-pmu.c nr_cores = DIV_ROUND_UP(num_possible_cpus(), threads_per_core); DIV_ROUND_UP 101 arch/powerpc/platforms/powernv/opal-core.c buf += DIV_ROUND_UP(sizeof(*note), sizeof(Elf64_Word)); DIV_ROUND_UP 103 arch/powerpc/platforms/powernv/opal-core.c buf += DIV_ROUND_UP(namesz, sizeof(Elf64_Word)); DIV_ROUND_UP 105 arch/powerpc/platforms/powernv/opal-core.c buf += DIV_ROUND_UP(data_len, sizeof(Elf64_Word)); DIV_ROUND_UP 326 arch/s390/kernel/perf_cpum_sf.c CPUM_SF_SDB_DIAG_FACTOR = DIV_ROUND_UP(si.dsdes, si.bsdes); DIV_ROUND_UP 403 arch/s390/kernel/perf_cpum_sf.c n_sdb = DIV_ROUND_UP(freq, factor * ((PAGE_SIZE-64) / sample_size)); DIV_ROUND_UP 432 arch/s390/kernel/perf_cpum_sf.c return min_t(unsigned long, min, DIV_ROUND_UP(percent * base, 100)); DIV_ROUND_UP 473 arch/s390/kernel/perf_cpum_sf.c ratio = DIV_ROUND_UP(100 * OVERFLOW_REG(hwc) * cpuhw->sfb.num_sdb, DIV_ROUND_UP 1320 arch/s390/kernel/perf_cpum_sf.c OVERFLOW_REG(hwc) = DIV_ROUND_UP(OVERFLOW_REG(hwc) + DIV_ROUND_UP 1332 arch/s390/kernel/perf_cpum_sf.c SAMPL_RATE(hwc) += DIV_ROUND_UP(SAMPL_RATE(hwc), 10); DIV_ROUND_UP 1335 arch/s390/kernel/perf_cpum_sf.c DIV_ROUND_UP(SAMPL_RATE(hwc), 10)); DIV_ROUND_UP 56 arch/s390/kernel/suspend.c return DIV_ROUND_UP(pages, PAGE_KEY_DATA_SIZE); DIV_ROUND_UP 82 arch/s390/kernel/suspend.c size = DIV_ROUND_UP(pages, PAGE_KEY_DATA_SIZE); DIV_ROUND_UP 2167 arch/sparc/kernel/traps_64.c unsigned long page_cnt = DIV_ROUND_UP(ent->err_size, DIV_ROUND_UP 2399 arch/sparc/mm/init_64.c num_kernel_image_mappings = DIV_ROUND_UP(real_end - KERNBASE, 1 << ILOG2_4MB); DIV_ROUND_UP 1280 arch/um/drivers/ubd_kern.c if (*cow_offset == (DIV_ROUND_UP(bitmap_len, DIV_ROUND_UP 62 arch/x86/kernel/espfix_64.c #define ESPFIX_MAX_PAGES DIV_ROUND_UP(CONFIG_NR_CPUS, ESPFIX_STACKS_PER_PAGE) DIV_ROUND_UP 784 arch/x86/kernel/ftrace.c npages = DIV_ROUND_UP(*tramp_size, PAGE_SIZE); DIV_ROUND_UP 214 arch/x86/kernel/head64.c for (i = 0; i < DIV_ROUND_UP(_end - _text, PMD_SIZE); i++) { DIV_ROUND_UP 225 arch/x86/kernel/ldt.c nr_pages = DIV_ROUND_UP(ldt->nr_entries * LDT_ENTRY_SIZE, PAGE_SIZE); DIV_ROUND_UP 277 arch/x86/kernel/ldt.c nr_pages = DIV_ROUND_UP(ldt->nr_entries * LDT_ENTRY_SIZE, PAGE_SIZE); DIV_ROUND_UP 1415 arch/x86/kernel/smpboot.c __max_logical_packages = DIV_ROUND_UP(total_cpus, ncpus); DIV_ROUND_UP 37 arch/x86/kvm/hyperv.c #define KVM_HV_MAX_SPARSE_VCPU_SET_BITS DIV_ROUND_UP(KVM_MAX_VCPUS, 64) DIV_ROUND_UP 6435 arch/x86/kvm/mmu.c to_zap = ratio ? DIV_ROUND_UP(kvm->stat.nx_lpage_splits, ratio) : 0; DIV_ROUND_UP 106 arch/x86/mm/kaslr.c memory_tb = DIV_ROUND_UP(max_pfn << PAGE_SHIFT, 1UL << TB_SHIFT) + DIV_ROUND_UP 119 arch/x86/mm/kaslr.c kaslr_regions[2].size_tb = DIV_ROUND_UP(vmemmap_size, 1UL << TB_SHIFT); DIV_ROUND_UP 262 arch/x86/mm/mem_encrypt_identity.c entries += (DIV_ROUND_UP(len, PGDIR_SIZE) + 1) * sizeof(p4d_t) * PTRS_PER_P4D; DIV_ROUND_UP 263 arch/x86/mm/mem_encrypt_identity.c entries += (DIV_ROUND_UP(len, P4D_SIZE) + 1) * sizeof(pud_t) * PTRS_PER_PUD; DIV_ROUND_UP 264 arch/x86/mm/mem_encrypt_identity.c entries += (DIV_ROUND_UP(len, PUD_SIZE) + 1) * sizeof(pmd_t) * PTRS_PER_PMD; DIV_ROUND_UP 273 arch/x86/mm/mem_encrypt_identity.c tables += DIV_ROUND_UP(entries, PGDIR_SIZE) * sizeof(p4d_t) * PTRS_PER_P4D; DIV_ROUND_UP 274 arch/x86/mm/mem_encrypt_identity.c tables += DIV_ROUND_UP(entries, P4D_SIZE) * sizeof(pud_t) * PTRS_PER_PUD; DIV_ROUND_UP 275 arch/x86/mm/mem_encrypt_identity.c tables += DIV_ROUND_UP(entries, PUD_SIZE) * sizeof(pmd_t) * PTRS_PER_PMD; DIV_ROUND_UP 92 arch/x86/platform/efi/efi_64.c n_pgds = DIV_ROUND_UP((max_pfn << PAGE_SHIFT), PGDIR_SIZE); DIV_ROUND_UP 166 arch/x86/platform/efi/efi_64.c nr_pgds = DIV_ROUND_UP((max_pfn << PAGE_SHIFT) , PGDIR_SIZE); DIV_ROUND_UP 1297 block/bio.c nr_pages = DIV_ROUND_UP(offset + len, PAGE_SIZE); DIV_ROUND_UP 1417 block/bio.c npages = DIV_ROUND_UP(offs + bytes, PAGE_SIZE); DIV_ROUND_UP 1337 block/blk-iocost.c usage = DIV_ROUND_UP(usage * SURPLUS_SCALE_PCT, 100); DIV_ROUND_UP 250 block/kyber-iosched.c percentile_samples = DIV_ROUND_UP(samples * percentile, 100); DIV_ROUND_UP 596 block/sed-opal.c len = DIV_ROUND_UP(msb, 8); DIV_ROUND_UP 1356 crypto/tcrypt.c unsigned int pages = DIV_ROUND_UP(k, PAGE_SIZE); DIV_ROUND_UP 1568 crypto/tcrypt.c sg_init_table(sg, DIV_ROUND_UP(k, PAGE_SIZE)); DIV_ROUND_UP 43 drivers/acpi/acpi_cmos_rtc.c for (i = 0; i < DIV_ROUND_UP(bits, 8); ++i, ++address, ++value) DIV_ROUND_UP 181 drivers/acpi/hmat/hmat.c value = DIV_ROUND_UP(value, 10); DIV_ROUND_UP 187 drivers/acpi/hmat/hmat.c value = DIV_ROUND_UP(value, 1000); DIV_ROUND_UP 3000 drivers/ata/libata-eh.c rc, DIV_ROUND_UP(jiffies_to_msecs(delta), 1000)); DIV_ROUND_UP 232 drivers/ata/libata-sff.c DIV_ROUND_UP(tmout, 1000), status); DIV_ROUND_UP 75 drivers/ata/pata_bk3710.c t0 = DIV_ROUND_UP(pata_bk3710_udmatimings[mode].cycletime, DIV_ROUND_UP 77 drivers/ata/pata_bk3710.c tenv = DIV_ROUND_UP(20, ideclk_period) - 1; DIV_ROUND_UP 78 drivers/ata/pata_bk3710.c trp = DIV_ROUND_UP(pata_bk3710_udmatimings[mode].rptime, DIV_ROUND_UP 115 drivers/ata/pata_bk3710.c t0 = DIV_ROUND_UP(cycletime, ideclk_period); DIV_ROUND_UP 116 drivers/ata/pata_bk3710.c td = DIV_ROUND_UP(t->active, ideclk_period); DIV_ROUND_UP 160 drivers/ata/pata_bk3710.c t0 = DIV_ROUND_UP(cycletime, ideclk_period); DIV_ROUND_UP 161 drivers/ata/pata_bk3710.c t2 = DIV_ROUND_UP(t->active, ideclk_period); DIV_ROUND_UP 183 drivers/ata/pata_bk3710.c t0 = DIV_ROUND_UP(t->cyc8b, ideclk_period); DIV_ROUND_UP 184 drivers/ata/pata_bk3710.c t2 = DIV_ROUND_UP(t->act8b, ideclk_period); DIV_ROUND_UP 82 drivers/ata/pata_octeon_cf.c val = DIV_ROUND_UP(nsecs * (octeon_get_io_clock_rate() / 1000000), DIV_ROUND_UP 1278 drivers/atm/eni.c *res = DIV_ROUND_UP(TS_CLOCK, div)-1; DIV_ROUND_UP 609 drivers/atm/horizon.c pre = DIV_ROUND_UP(br, c<<div); DIV_ROUND_UP 642 drivers/atm/horizon.c pre = DIV_ROUND_UP(br, c<<div); DIV_ROUND_UP 672 drivers/atm/horizon.c *actual = DIV_ROUND_UP(br, pre<<div); DIV_ROUND_UP 1932 drivers/atm/horizon.c DIV_ROUND_UP(max_rx_size + ATM_AAL5_TRAILER, ATM_CELL_PAYLOAD)); DIV_ROUND_UP 502 drivers/atm/zatm.c cells = DIV_ROUND_UP(vcc->qos.rxtp.max_sdu + ATM_AAL5_TRAILER, DIV_ROUND_UP 827 drivers/atm/zatm.c m = DIV_ROUND_UP(ATM_OC3_PCR*255, max); DIV_ROUND_UP 108 drivers/base/regmap/regcache-lzo.c DIV_ROUND_UP(map->cache_size_raw, DIV_ROUND_UP 116 drivers/base/regmap/regcache-lzo.c (DIV_ROUND_UP(map->cache_size_raw, DIV_ROUND_UP 123 drivers/base/regmap/regcache-lzo.c return DIV_ROUND_UP(map->cache_size_raw, DIV_ROUND_UP 153 drivers/base/regmap/regcache.c map->cache_word_size = DIV_ROUND_UP(config->val_bits, 8); DIV_ROUND_UP 768 drivers/base/regmap/regmap.c map->format.reg_bytes = DIV_ROUND_UP(config->reg_bits, 8); DIV_ROUND_UP 770 drivers/base/regmap/regmap.c map->format.val_bytes = DIV_ROUND_UP(config->val_bits, 8); DIV_ROUND_UP 771 drivers/base/regmap/regmap.c map->format.buf_size = DIV_ROUND_UP(config->reg_bits + DIV_ROUND_UP 4824 drivers/block/drbd/drbd_receiver.c header_size * (DIV_ROUND_UP(c->bm_words, data_size) + 1) + DIV_ROUND_UP 1315 drivers/block/floppy.c srt = 16 - DIV_ROUND_UP(DP->srt * scale_dtr / 1000, NOMINAL_DTR); DIV_ROUND_UP 1322 drivers/block/floppy.c hlt = DIV_ROUND_UP(DP->hlt * scale_dtr / 2, NOMINAL_DTR); DIV_ROUND_UP 1328 drivers/block/floppy.c hut = DIV_ROUND_UP(DP->hut * scale_dtr / 16, NOMINAL_DTR); DIV_ROUND_UP 2295 drivers/block/floppy.c ssize = DIV_ROUND_UP(1 << SIZECODE, 4); DIV_ROUND_UP 2312 drivers/block/floppy.c DIV_ROUND_UP(in_sector_offset + current_count_sectors, ssize)) { DIV_ROUND_UP 2592 drivers/block/floppy.c ssize = DIV_ROUND_UP(1 << SIZECODE, 4); DIV_ROUND_UP 69 drivers/block/xen-blkback/common.h #define INDIRECT_PAGES(_segs) DIV_ROUND_UP(_segs, XEN_PAGES_PER_INDIRECT_FRAME) DIV_ROUND_UP 260 drivers/block/xen-blkfront.c DIV_ROUND_UP(_grants, GRANTS_PER_INDIRECT_FRAME) DIV_ROUND_UP 2212 drivers/block/xen-blkfront.c psegs = DIV_ROUND_UP(grants, GRANTS_PER_PSEG); DIV_ROUND_UP 727 drivers/bluetooth/btmrvl_sdio.c tx_blocks = DIV_ROUND_UP(txlen, blksz_dl); DIV_ROUND_UP 782 drivers/bluetooth/btmrvl_sdio.c num_blocks = DIV_ROUND_UP(buf_len, blksz); DIV_ROUND_UP 1159 drivers/bluetooth/btmrvl_sdio.c blksz = DIV_ROUND_UP(nb, SDIO_BLOCK_SIZE) * SDIO_BLOCK_SIZE; DIV_ROUND_UP 688 drivers/char/lp.c to_jiffies = DIV_ROUND_UP(tv_usec, 1000000/HZ); DIV_ROUND_UP 103 drivers/clk/actions/owl-factor.c cur_rate = DIV_ROUND_UP(parent_rate, clkt->div) * clkt->mul; DIV_ROUND_UP 152 drivers/clk/at91/clk-pll.c tmpdiv = DIV_ROUND_UP(parent_rate, characteristics->input.max); DIV_ROUND_UP 164 drivers/clk/at91/clk-pll.c maxdiv = DIV_ROUND_UP(parent_rate * PLL_MUL_MAX(layout), rate); DIV_ROUND_UP 194 drivers/clk/at91/clk-sam9x60-pll.c maxdiv = DIV_ROUND_UP(parent_rate * PLL_MUL_MAX, rate); DIV_ROUND_UP 122 drivers/clk/bcm/clk-iproc-asiu.c div = DIV_ROUND_UP(*parent_rate, rate); DIV_ROUND_UP 148 drivers/clk/bcm/clk-iproc-asiu.c div = DIV_ROUND_UP(parent_rate, rate); DIV_ROUND_UP 119 drivers/clk/clk-axi-clkgen.c d_min = max_t(unsigned long, DIV_ROUND_UP(fin, fpfd_max), 1); DIV_ROUND_UP 122 drivers/clk/clk-axi-clkgen.c m_min = max_t(unsigned long, DIV_ROUND_UP(fvco_min, fin) * d_min, 1); DIV_ROUND_UP 126 drivers/clk/clk-axi-clkgen.c _d_min = max(d_min, DIV_ROUND_UP(fin * m, fvco_max)); DIV_ROUND_UP 410 drivers/clk/clk-cdce925.c pdiv_min = (u16)max(1ul, DIV_ROUND_UP(CDCE925_PLL_FREQUENCY_MIN, rate)); DIV_ROUND_UP 64 drivers/clk/clk-clps711x.c f_pll = DIV_ROUND_UP(CLPS711X_OSC_FREQ * tmp, 2); DIV_ROUND_UP 78 drivers/clk/clk-clps711x.c f_bus = DIV_ROUND_UP(f_cpu, 2); DIV_ROUND_UP 95 drivers/clk/clk-pwm.c pargs.period != DIV_ROUND_UP(NSEC_PER_SEC, clk_pwm->fixed_rate)) { DIV_ROUND_UP 194 drivers/clk/clk-si514.c settings->hs_div = DIV_ROUND_UP(FVCO_MIN >> 1, ls_freq) << 1; DIV_ROUND_UP 353 drivers/clk/clk-versaclock5.c idiv = DIV_ROUND_UP(*parent_rate, rate); DIV_ROUND_UP 377 drivers/clk/clk-versaclock5.c idiv = DIV_ROUND_UP(parent_rate, rate); DIV_ROUND_UP 83 drivers/clk/imx/clk-composite-8m.c rate = DIV_ROUND_UP(*prate, prediv_value); DIV_ROUND_UP 85 drivers/clk/imx/clk-composite-8m.c return DIV_ROUND_UP(rate, div_value); DIV_ROUND_UP 414 drivers/clk/ingenic/cgu.c div = DIV_ROUND_UP(parent_rate, req_rate); DIV_ROUND_UP 453 drivers/clk/ingenic/cgu.c return DIV_ROUND_UP(*parent_rate, div); DIV_ROUND_UP 473 drivers/clk/ingenic/cgu.c rate = DIV_ROUND_UP(parent_rate, div); DIV_ROUND_UP 30 drivers/clk/mxs/clk-ssp.c clock_rate = DIV_ROUND_UP(ssp_clk, rate * clock_divide); DIV_ROUND_UP 971 drivers/clk/nxp/clk-lpc32xx.c return DIV_ROUND_UP(*prate, bestdiv); DIV_ROUND_UP 137 drivers/clk/qcom/clk-hfpll.c rrate = DIV_ROUND_UP(rate, *parent_rate) * *parent_rate; DIV_ROUND_UP 83 drivers/clk/qcom/clk-krait.c return DIV_ROUND_UP(*parent_rate, 2); DIV_ROUND_UP 118 drivers/clk/qcom/clk-krait.c return DIV_ROUND_UP(parent_rate, div); DIV_ROUND_UP 524 drivers/clk/qcom/clk-rcg2.c div = DIV_ROUND_UP((2 * parent_rate), req->rate) - 1; DIV_ROUND_UP 540 drivers/clk/qcom/clk-rcg2.c div = DIV_ROUND_UP((2 * parent_rate), rate) - 1; DIV_ROUND_UP 581 drivers/clk/qcom/clk-rcg2.c div = DIV_ROUND_UP((2 * parent_rate), rate) - 1; DIV_ROUND_UP 599 drivers/clk/qcom/clk-rcg2.c div = DIV_ROUND_UP((2 * parent_rate), rate) - 1; DIV_ROUND_UP 191 drivers/clk/qcom/clk-rpm.c u32 value = DIV_ROUND_UP(rate, 1000); /* to kHz */ DIV_ROUND_UP 199 drivers/clk/qcom/clk-rpm.c u32 value = DIV_ROUND_UP(rate, 1000); /* to kHz */ DIV_ROUND_UP 183 drivers/clk/qcom/clk-smd-rpm.c .value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */ DIV_ROUND_UP 197 drivers/clk/qcom/clk-smd-rpm.c .value = cpu_to_le32(DIV_ROUND_UP(rate, 1000)), /* to kHz */ DIV_ROUND_UP 119 drivers/clk/qcom/clk-spmi-pmic-div.c div = DIV_ROUND_UP(*parent_rate, rate); DIV_ROUND_UP 567 drivers/clk/renesas/r9a06g032-clocks.c return DIV_ROUND_UP(parent_rate, div); DIV_ROUND_UP 581 drivers/clk/renesas/r9a06g032-clocks.c u32 div = DIV_ROUND_UP(prate, rate + 1); DIV_ROUND_UP 592 drivers/clk/renesas/r9a06g032-clocks.c DIV_ROUND_UP(prate, clk->table[i]); DIV_ROUND_UP 594 drivers/clk/renesas/r9a06g032-clocks.c DIV_ROUND_UP(prate, clk->table[i + 1]) - DIV_ROUND_UP 612 drivers/clk/renesas/r9a06g032-clocks.c u32 div = DIV_ROUND_UP(*prate, rate); DIV_ROUND_UP 617 drivers/clk/renesas/r9a06g032-clocks.c clk->min, DIV_ROUND_UP(*prate, clk->min), DIV_ROUND_UP 618 drivers/clk/renesas/r9a06g032-clocks.c clk->max, DIV_ROUND_UP(*prate, clk->max)); DIV_ROUND_UP 636 drivers/clk/renesas/r9a06g032-clocks.c *prate, div, DIV_ROUND_UP(*prate, div)); DIV_ROUND_UP 637 drivers/clk/renesas/r9a06g032-clocks.c return DIV_ROUND_UP(*prate, div); DIV_ROUND_UP 646 drivers/clk/renesas/r9a06g032-clocks.c u32 div = DIV_ROUND_UP(parent_rate, rate + 1); DIV_ROUND_UP 148 drivers/clk/rockchip/clk-cpu.c alt_div = DIV_ROUND_UP(alt_prate, ndata->old_rate) - 1; DIV_ROUND_UP 191 drivers/clk/samsung/clk-cpu.c alt_div = DIV_ROUND_UP(alt_prate, tmp_rate) - 1; DIV_ROUND_UP 313 drivers/clk/samsung/clk-cpu.c alt_div = DIV_ROUND_UP(alt_prate, tmp_rate) - 1; DIV_ROUND_UP 32 drivers/clk/sunxi/clk-mod0.c div = DIV_ROUND_UP(req->parent_rate, req->rate); DIV_ROUND_UP 43 drivers/clk/sunxi/clk-mod0.c calcm = DIV_ROUND_UP(div, 1 << calcp); DIV_ROUND_UP 34 drivers/clk/sunxi/clk-sun6i-ar100.c div = DIV_ROUND_UP(req->parent_rate, req->rate); DIV_ROUND_UP 33 drivers/clk/sunxi/clk-sun9i-core.c n = DIV_ROUND_UP(req->rate, 6000000); DIV_ROUND_UP 106 drivers/clk/sunxi/clk-sun9i-core.c div = DIV_ROUND_UP(req->parent_rate, req->rate); DIV_ROUND_UP 161 drivers/clk/sunxi/clk-sun9i-core.c _p = order_base_2(DIV_ROUND_UP(req->parent_rate, req->rate)); DIV_ROUND_UP 241 drivers/clk/sunxi/clk-sun9i-core.c div = DIV_ROUND_UP(req->parent_rate, req->rate); DIV_ROUND_UP 84 drivers/clk/sunxi/clk-sun9i-cpus.c div = DIV_ROUND_UP(parent_rate, rate); DIV_ROUND_UP 93 drivers/clk/sunxi/clk-sun9i-cpus.c pre_div = DIV_ROUND_UP(div, 2); DIV_ROUND_UP 96 drivers/clk/sunxi/clk-sun9i-cpus.c pre_div = DIV_ROUND_UP(div, 3); DIV_ROUND_UP 99 drivers/clk/sunxi/clk-sun9i-cpus.c pre_div = DIV_ROUND_UP(div, 4); DIV_ROUND_UP 113 drivers/clk/sunxi/clk-sun9i-mmc.c count = DIV_ROUND_UP((resource_size(r)), SUN9I_MMC_WIDTH); DIV_ROUND_UP 218 drivers/clk/sunxi/clk-sunxi.c req->n = DIV_ROUND_UP(div, (req->k + 1)); DIV_ROUND_UP 240 drivers/clk/sunxi/clk-sunxi.c req->n = DIV_ROUND_UP(div, (req->k + 1)) - 1; DIV_ROUND_UP 266 drivers/clk/sunxi/clk-sunxi.c div = order_base_2(DIV_ROUND_UP(req->parent_rate, req->rate)); DIV_ROUND_UP 299 drivers/clk/sunxi/clk-sunxi.c div = DIV_ROUND_UP(req->parent_rate, req->rate); DIV_ROUND_UP 312 drivers/clk/sunxi/clk-sunxi.c calcm = DIV_ROUND_UP(div, 1 << calcp); DIV_ROUND_UP 353 drivers/clk/sunxi/clk-sunxi.c div = DIV_ROUND_UP(req->parent_rate, req->rate); DIV_ROUND_UP 393 drivers/clk/sunxi/clk-sunxi.c div = DIV_ROUND_UP(req->parent_rate, req->rate); DIV_ROUND_UP 404 drivers/clk/sunxi/clk-sunxi.c calcm = DIV_ROUND_UP(div, 1 << calcp); DIV_ROUND_UP 1143 drivers/clk/sunxi/clk-sunxi.c m = DIV_ROUND_UP(req->parent_rate, req->rate); DIV_ROUND_UP 583 drivers/clk/tegra/clk-dfll.c div = DIV_ROUND_UP(td->ref_rate, td->pwm_rate); DIV_ROUND_UP 722 drivers/clk/tegra/clk-dfll.c val = DIV_ROUND_UP(td->i2c_clk_rate, td->i2c_fs_rate * 8); DIV_ROUND_UP 772 drivers/clk/tegra/clk-dfll.c vsel = DIV_ROUND_UP((vinit - vmin), vstep); DIV_ROUND_UP 1399 drivers/clk/tegra/clk-dfll.c val = DIV_ROUND_UP(td->ref_rate, td->sample_rate * 32); DIV_ROUND_UP 72 drivers/clk/tegra/clk-divider.c return DIV_ROUND_UP(output_rate * mul, div + mul); DIV_ROUND_UP 591 drivers/clk/tegra/clk-pll.c cfg->output_rate = cfg->n * DIV_ROUND_UP(parent_rate, cfg->m); DIV_ROUND_UP 1185 drivers/clk/tegra/clk-pll.c p = DIV_ROUND_UP(pll->params->vco_min, rate); DIV_ROUND_UP 1218 drivers/clk/tegra/clk-pll.c return DIV_ROUND_UP(vco_min, parent_rate) * parent_rate; DIV_ROUND_UP 125 drivers/clk/tegra/clk-sdmmc-mux.c req->rate = DIV_ROUND_UP(output_rate * SDMMC_MUL, DIV_ROUND_UP 1415 drivers/clk/tegra/clk-tegra210.c p = DIV_ROUND_UP(params->vco_min, rate); DIV_ROUND_UP 1483 drivers/clk/tegra/clk-tegra210.c params->vco_min += DIV_ROUND_UP(parent_rate, PLL_SDM_COEFF); DIV_ROUND_UP 34 drivers/clk/tegra/cvb.c uv = DIV_ROUND_UP(uv, step) * align->step_uv + align->offset_uv; DIV_ROUND_UP 114 drivers/clk/ti/divider.c return DIV_ROUND_UP(parent_rate, div); DIV_ROUND_UP 167 drivers/clk/ti/divider.c return DIV_ROUND_UP(parent_rate, rate); DIV_ROUND_UP 213 drivers/clk/ti/divider.c now = DIV_ROUND_UP(parent_rate, i); DIV_ROUND_UP 236 drivers/clk/ti/divider.c return DIV_ROUND_UP(*prate, div); DIV_ROUND_UP 251 drivers/clk/ti/divider.c div = DIV_ROUND_UP(parent_rate, rate); DIV_ROUND_UP 425 drivers/clk/ti/fapll.c synth_post_div_m = DIV_ROUND_UP(frac_rate, rate); DIV_ROUND_UP 426 drivers/clk/ti/fapll.c r = DIV_ROUND_UP(frac_rate, synth_post_div_m); DIV_ROUND_UP 460 drivers/clk/ti/fapll.c post_div_m = DIV_ROUND_UP(frac_rate, rate); DIV_ROUND_UP 462 drivers/clk/ti/fapll.c post_rate = DIV_ROUND_UP(frac_rate, post_div_m); DIV_ROUND_UP 114 drivers/clk/zynqmp/pll.c fbdiv = DIV_ROUND_UP(PS_PLL_VCO_MIN, rate); DIV_ROUND_UP 170 drivers/clocksource/dw_apb_timer.c unsigned long period = DIV_ROUND_UP(dw_ced->timer.freq, HZ); DIV_ROUND_UP 181 drivers/clocksource/timer-digicolor.c dc_timer_dev.ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); DIV_ROUND_UP 192 drivers/clocksource/timer-keystone.c timer.hz_period = DIV_ROUND_UP(rate, HZ); DIV_ROUND_UP 137 drivers/clocksource/timer-of.c of_clk->period = DIV_ROUND_UP(of_clk->rate, HZ); DIV_ROUND_UP 135 drivers/clocksource/timer-oxnas-rps.c rps->timer_period = DIV_ROUND_UP(clk_rate, HZ); DIV_ROUND_UP 141 drivers/clocksource/timer-oxnas-rps.c rps->timer_period = DIV_ROUND_UP(timer_rate, HZ); DIV_ROUND_UP 146 drivers/clocksource/timer-oxnas-rps.c rps->timer_period = DIV_ROUND_UP(timer_rate, HZ); DIV_ROUND_UP 228 drivers/clocksource/timer-stm32.c to->of_clk.period = DIV_ROUND_UP(to->of_clk.rate, HZ); DIV_ROUND_UP 258 drivers/clocksource/timer-sun5i.c ce->timer.ticks_per_jiffy = DIV_ROUND_UP(ndata->new_rate, HZ); DIV_ROUND_UP 290 drivers/clocksource/timer-sun5i.c ce->timer.ticks_per_jiffy = DIV_ROUND_UP(rate, HZ); DIV_ROUND_UP 1120 drivers/cpufreq/intel_pstate.c freq = DIV_ROUND_UP(turbo_max * perf_pct, 100); DIV_ROUND_UP 2080 drivers/cpufreq/intel_pstate.c global_max = DIV_ROUND_UP(turbo_max * global.max_perf_pct, 100); DIV_ROUND_UP 2081 drivers/cpufreq/intel_pstate.c global_min = DIV_ROUND_UP(turbo_max * global.min_perf_pct, 100); DIV_ROUND_UP 2336 drivers/cpufreq/intel_pstate.c target_pstate = DIV_ROUND_UP(freqs.new, cpu->pstate.scaling); DIV_ROUND_UP 2367 drivers/cpufreq/intel_pstate.c target_pstate = DIV_ROUND_UP(target_freq, cpu->pstate.scaling); DIV_ROUND_UP 2408 drivers/cpufreq/intel_pstate.c min_freq = DIV_ROUND_UP(turbo_max * global.min_perf_pct, 100); DIV_ROUND_UP 2410 drivers/cpufreq/intel_pstate.c max_freq = DIV_ROUND_UP(turbo_max * global.max_perf_pct, 100); DIV_ROUND_UP 530 drivers/cpufreq/s3c24xx-cpufreq.c result = DIV_ROUND_UP(result, 1000 * 1000); DIV_ROUND_UP 321 drivers/cpuidle/cpuidle-powernv.c exit_latency = DIV_ROUND_UP(state->latency_ns, 1000); DIV_ROUND_UP 322 drivers/cpuidle/cpuidle-powernv.c target_residency = DIV_ROUND_UP(state->residency_ns, 1000); DIV_ROUND_UP 1027 drivers/crypto/atmel-aes.c blocks = DIV_ROUND_UP(datalen, AES_BLOCK_SIZE); DIV_ROUND_UP 280 drivers/crypto/atmel-i2c.c u32 no_of_bits = DIV_ROUND_UP(TWLO_USEC * bus_clk_rate, USEC_PER_SEC); DIV_ROUND_UP 283 drivers/crypto/atmel-i2c.c return DIV_ROUND_UP(no_of_bits, 8); DIV_ROUND_UP 581 drivers/crypto/atmel-sha.c len32 = DIV_ROUND_UP(length, sizeof(u32)); DIV_ROUND_UP 600 drivers/crypto/atmel-sha.c len32 = DIV_ROUND_UP(length1, sizeof(u32)); DIV_ROUND_UP 605 drivers/crypto/atmel-sha.c len32 = DIV_ROUND_UP(length2, sizeof(u32)); DIV_ROUND_UP 1578 drivers/crypto/atmel-sha.c num_words = DIV_ROUND_UP(ctx->bufcnt, sizeof(u32)); DIV_ROUND_UP 413 drivers/crypto/atmel-tdes.c len32 = DIV_ROUND_UP(length, sizeof(u8)); DIV_ROUND_UP 415 drivers/crypto/atmel-tdes.c len32 = DIV_ROUND_UP(length, sizeof(u16)); DIV_ROUND_UP 417 drivers/crypto/atmel-tdes.c len32 = DIV_ROUND_UP(length, sizeof(u32)); DIV_ROUND_UP 160 drivers/crypto/chelsio/chcr_algo.c nents += DIV_ROUND_UP(less, entlen); DIV_ROUND_UP 735 drivers/crypto/chelsio/chcr_algo.c htonl(FW_CRYPTO_LOOKASIDE_WR_LEN16_V(DIV_ROUND_UP(len16, 16))); DIV_ROUND_UP 743 drivers/crypto/chelsio/chcr_algo.c chcr_req->ulptx.len = htonl((DIV_ROUND_UP(len16, 16) - DIV_ROUND_UP 1097 drivers/crypto/chelsio/chcr_algo.c ctr_add_iv(iv, req->info, DIV_ROUND_UP(reqctx->processed, DIV_ROUND_UP 255 drivers/crypto/chelsio/chcr_algo.h htonl(FW_CRYPTO_LOOKASIDE_WR_LEN16_V(DIV_ROUND_UP((\ DIV_ROUND_UP 162 drivers/crypto/chelsio/chcr_ipsec.c ((DIV_ROUND_UP(keylen, 16)) << 4) + DIV_ROUND_UP 182 drivers/crypto/chelsio/chcr_ipsec.c memcpy(sa_entry->key + (DIV_ROUND_UP(sa_entry->enckey_len, 16) * DIV_ROUND_UP 184 drivers/crypto/chelsio/chcr_ipsec.c sa_entry->kctx_len = ((DIV_ROUND_UP(sa_entry->enckey_len, 16)) << 4) + DIV_ROUND_UP 324 drivers/crypto/chelsio/chcr_ipsec.c hdrlen += (DIV_ROUND_UP(sizeof(struct chcr_ipsec_aadiv), 16) DIV_ROUND_UP 342 drivers/crypto/chelsio/chcr_ipsec.c aadivlen = sa_entry->esn ? DIV_ROUND_UP(sizeof(struct chcr_ipsec_aadiv), DIV_ROUND_UP 353 drivers/crypto/chelsio/chcr_ipsec.c return DIV_ROUND_UP(skb->len + hdrlen, sizeof(__be64)); DIV_ROUND_UP 403 drivers/crypto/chelsio/chcr_ipsec.c len = DIV_ROUND_UP(sizeof(struct chcr_ipsec_aadiv), 16) << 4; DIV_ROUND_UP 419 drivers/crypto/chelsio/chcr_ipsec.c (DIV_ROUND_UP(sizeof(struct chcr_ipsec_aadiv), DIV_ROUND_UP 550 drivers/crypto/chelsio/chcr_ipsec.c ndesc = DIV_ROUND_UP(flits, 2); DIV_ROUND_UP 648 drivers/crypto/chelsio/chcr_ipsec.c return DIV_ROUND_UP(n, 8); DIV_ROUND_UP 273 drivers/crypto/chelsio/chtls/chtls_cm.c req->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*req), 16)) | DIV_ROUND_UP 77 drivers/crypto/chelsio/chtls/chtls_hw.c credits_needed = DIV_ROUND_UP(wrlen, 16); DIV_ROUND_UP 334 drivers/crypto/chelsio/chtls/chtls_hw.c cpu_to_be32(FW_WR_LEN16_V(DIV_ROUND_UP(len, 16) | DIV_ROUND_UP 345 drivers/crypto/chelsio/chtls/chtls_hw.c DIV_ROUND_UP(len - sizeof(kwr->wr), 16)); DIV_ROUND_UP 361 drivers/crypto/chelsio/chtls/chtls_hw.c csk->wr_credits -= DIV_ROUND_UP(len, 16); DIV_ROUND_UP 362 drivers/crypto/chelsio/chtls/chtls_hw.c csk->wr_unacked += DIV_ROUND_UP(len, 16); DIV_ROUND_UP 47 drivers/crypto/chelsio/chtls/chtls_io.c return DIV_ROUND_UP(size, csk->tlshws.mfs); DIV_ROUND_UP 80 drivers/crypto/chelsio/chtls/chtls_io.c flowclen16 = DIV_ROUND_UP(flowclen, 16); DIV_ROUND_UP 490 drivers/crypto/chelsio/chtls/chtls_io.c pdus = DIV_ROUND_UP(tls_len, hws->mfs); DIV_ROUND_UP 641 drivers/crypto/chelsio/chtls/chtls_io.c credits_needed = DIV_ROUND_UP(credit_len, 16); DIV_ROUND_UP 1983 drivers/crypto/hifn_795x.c if (dev->started + DIV_ROUND_UP(req->nbytes, PAGE_SIZE) <= HIFN_QUEUE_LENGTH) DIV_ROUND_UP 200 drivers/crypto/img-hash.c len32 = DIV_ROUND_UP(length, sizeof(u32)); DIV_ROUND_UP 587 drivers/crypto/mediatek/mtk-aes.c blocks = DIV_ROUND_UP(datalen, AES_BLOCK_SIZE); DIV_ROUND_UP 273 drivers/crypto/nx/nx-842.c DIV_ROUND_UP(p.iremain, c.maximum)); DIV_ROUND_UP 539 drivers/crypto/omap-sham.c len32 = DIV_ROUND_UP(length, sizeof(u32)); DIV_ROUND_UP 750 drivers/crypto/omap-sham.c new_len = DIV_ROUND_UP(new_len, bs) * bs; DIV_ROUND_UP 852 drivers/crypto/omap-sham.c xmit_len = DIV_ROUND_UP(xmit_len, bs) * bs; DIV_ROUND_UP 339 drivers/crypto/stm32/stm32-hash.c len32 = DIV_ROUND_UP(length, sizeof(u32)); DIV_ROUND_UP 613 drivers/crypto/stm32/stm32-hash.c DIV_ROUND_UP(ncp, sizeof(u32)) - ncp); DIV_ROUND_UP 615 drivers/crypto/stm32/stm32-hash.c DIV_ROUND_UP(ncp, sizeof(u32))); DIV_ROUND_UP 339 drivers/dma/altera-msgdma.c desc_cnt = DIV_ROUND_UP(len, MSGDMA_MAX_TRANS_LEN); DIV_ROUND_UP 402 drivers/dma/altera-msgdma.c desc_cnt += DIV_ROUND_UP(sg_dma_len(sg), MSGDMA_MAX_TRANS_LEN); DIV_ROUND_UP 187 drivers/dma/bcm2835-dma.c return DIV_ROUND_UP(len, max_len); DIV_ROUND_UP 758 drivers/dma/bcm2835-dma.c DIV_ROUND_UP(buf_len, period_len) * DIV_ROUND_UP 493 drivers/dma/dma-axi-dmac.c num_segments = DIV_ROUND_UP(period_len, chan->max_length); DIV_ROUND_UP 494 drivers/dma/dma-axi-dmac.c segment_size = DIV_ROUND_UP(period_len, num_segments); DIV_ROUND_UP 543 drivers/dma/dma-axi-dmac.c num_sgs += DIV_ROUND_UP(sg_dma_len(sg), chan->max_length); DIV_ROUND_UP 587 drivers/dma/dma-axi-dmac.c num_segments = DIV_ROUND_UP(period_len, chan->max_length); DIV_ROUND_UP 392 drivers/dma/img-mdc-dma.c mdesc->list_period_len = DIV_ROUND_UP(period_len, DIV_ROUND_UP 502 drivers/dma/k3dma.c num = DIV_ROUND_UP(len, DMA_MAX_SIZE); DIV_ROUND_UP 551 drivers/dma/k3dma.c num += DIV_ROUND_UP(avail, DMA_MAX_SIZE) - 1; DIV_ROUND_UP 608 drivers/dma/k3dma.c num += DIV_ROUND_UP(avail, modulo) - 1; DIV_ROUND_UP 506 drivers/dma/mediatek/mtk-cqdma.c nr_vd = DIV_ROUND_UP(len, MTK_CQDMA_MAX_LEN); DIV_ROUND_UP 428 drivers/dma/mediatek/mtk-hsdma.c num_sgs = DIV_ROUND_UP(hvd->len, MTK_HSDMA_MAX_LEN); DIV_ROUND_UP 1372 drivers/dma/mv_xor.c DIV_ROUND_UP(num_present_cpus(), 2)); DIV_ROUND_UP 944 drivers/dma/pxa_dma.c nb_desc = DIV_ROUND_UP(len, PDMA_MAX_DESC_BYTES); DIV_ROUND_UP 991 drivers/dma/pxa_dma.c nb_desc += DIV_ROUND_UP(sg_dma_len(sg), PDMA_MAX_DESC_BYTES); DIV_ROUND_UP 1050 drivers/dma/pxa_dma.c nb_desc = DIV_ROUND_UP(period_len, PDMA_MAX_DESC_BYTES); DIV_ROUND_UP 1051 drivers/dma/pxa_dma.c nb_desc *= DIV_ROUND_UP(len, period_len); DIV_ROUND_UP 627 drivers/dma/qcom/bam_dma.c num_alloc += DIV_ROUND_UP(sg_dma_len(sg), BAM_FIFO_SIZE); DIV_ROUND_UP 548 drivers/dma/sa11x0-dma.c j += DIV_ROUND_UP(len, DMA_MAX_SIZE & ~DMA_ALIGN) - 1; DIV_ROUND_UP 579 drivers/dma/sa11x0-dma.c unsigned mult = DIV_ROUND_UP(tlen, DIV_ROUND_UP 619 drivers/dma/sa11x0-dma.c sgperiod = DIV_ROUND_UP(period, DMA_MAX_SIZE & ~DMA_ALIGN); DIV_ROUND_UP 639 drivers/dma/sa11x0-dma.c unsigned mult = DIV_ROUND_UP(tlen, DMA_MAX_SIZE & ~DMA_ALIGN); DIV_ROUND_UP 572 drivers/dma/sh/shdma-base.c chunks += DIV_ROUND_UP(sg_dma_len(sg), schan->max_xfer_len); DIV_ROUND_UP 1045 drivers/dma/sh/shdma-base.c shdma_slave_used = kcalloc(DIV_ROUND_UP(slave_num, BITS_PER_LONG), DIV_ROUND_UP 214 drivers/dma/sh/usb-dmac.c DIV_ROUND_UP(sg->size, USB_DMAC_XFER_SIZE)); DIV_ROUND_UP 985 drivers/dma/stm32-dma.c num_sgs = DIV_ROUND_UP(len, STM32_DMA_ALIGNED_MAX_DATA_ITEMS); DIV_ROUND_UP 937 drivers/dma/stm32-mdma.c count = DIV_ROUND_UP(len, STM32_MDMA_MAX_BLOCK_LEN); DIV_ROUND_UP 739 drivers/dma/sun4i-dma.c nr_periods = DIV_ROUND_UP(len / period_len, 2); DIV_ROUND_UP 813 drivers/dma/xilinx/zynqmp_dma.c desc_cnt = DIV_ROUND_UP(len, ZYNQMP_DMA_MAX_TRANS_LEN); DIV_ROUND_UP 521 drivers/dma/zx_dma.c num = DIV_ROUND_UP(len, DMA_MAX_SIZE); DIV_ROUND_UP 565 drivers/dma/zx_dma.c num += DIV_ROUND_UP(avail, DMA_MAX_SIZE) - 1; DIV_ROUND_UP 235 drivers/firewire/core-card.c delayed ? DIV_ROUND_UP(HZ, 100) : 0)) DIV_ROUND_UP 330 drivers/firewire/core-card.c card->reset_jiffies + DIV_ROUND_UP(HZ, 8)); DIV_ROUND_UP 397 drivers/firewire/core-card.c fw_schedule_bm_work(card, DIV_ROUND_UP(HZ, 8)); DIV_ROUND_UP 421 drivers/firewire/core-card.c fw_schedule_bm_work(card, DIV_ROUND_UP(HZ, 8)); DIV_ROUND_UP 529 drivers/firewire/core-card.c DIV_ROUND_UP(DEFAULT_SPLIT_TIMEOUT * HZ, 8000); DIV_ROUND_UP 1250 drivers/firewire/core-cdev.c schedule_iso_resource(r, DIV_ROUND_UP(HZ, 3)); DIV_ROUND_UP 453 drivers/firewire/core-transaction.c long timeout = DIV_ROUND_UP(HZ, 10); DIV_ROUND_UP 1081 drivers/firewire/core-transaction.c card->split_timeout_jiffies = DIV_ROUND_UP(cycles * HZ, 8000); DIV_ROUND_UP 1336 drivers/firewire/net.c ptask->outstanding_pkts = DIV_ROUND_UP(dg_size, max_payload); DIV_ROUND_UP 79 drivers/firewire/ohci.c #define AR_BUFFERS_MIN DIV_ROUND_UP(AR_BUFFER_SIZE, PAGE_SIZE) DIV_ROUND_UP 85 drivers/firewire/ohci.c #define AR_WRAPAROUND_PAGES DIV_ROUND_UP(MAX_AR_PACKET_SIZE, PAGE_SIZE) DIV_ROUND_UP 3225 drivers/firewire/ohci.c header_z = DIV_ROUND_UP(p->header_length, sizeof(*d)); DIV_ROUND_UP 3316 drivers/firewire/ohci.c header_z = DIV_ROUND_UP(header_size, sizeof(*d)); DIV_ROUND_UP 3323 drivers/firewire/ohci.c z = DIV_ROUND_UP(payload_per_buffer + offset, PAGE_SIZE) + 1; DIV_ROUND_UP 3391 drivers/firewire/ohci.c z = DIV_ROUND_UP(offset + rest, PAGE_SIZE); DIV_ROUND_UP 822 drivers/firewire/sbp2.c sbp2_queue_work(lu, DIV_ROUND_UP(HZ, 5)); DIV_ROUND_UP 938 drivers/firewire/sbp2.c sbp2_queue_work(lu, DIV_ROUND_UP(HZ, 5)); DIV_ROUND_UP 1179 drivers/firewire/sbp2.c sbp2_queue_work(lu, DIV_ROUND_UP(HZ, 5)); DIV_ROUND_UP 105 drivers/firmware/broadcom/bcm47xx_nvram.c DIV_ROUND_UP(nvram_len, 4)); DIV_ROUND_UP 123 drivers/firmware/efi/capsule.c return DIV_ROUND_UP(count, SGLIST_PER_PAGE); DIV_ROUND_UP 229 drivers/firmware/efi/capsule.c count = DIV_ROUND_UP(imagesize, PAGE_SIZE); DIV_ROUND_UP 270 drivers/fpga/fpga-mgr.c nr_pages = DIV_ROUND_UP((unsigned long)buf + count, PAGE_SIZE) - DIV_ROUND_UP 24 drivers/fpga/ice40-spi.c #define ICE40_SPI_NUM_ACTIVATION_BYTES DIV_ROUND_UP(49, 8) DIV_ROUND_UP 119 drivers/gpio/gpio-74xx-mmio.c DIV_ROUND_UP(MMIO_74XX_BIT_CNT(priv->flags), 8), DIV_ROUND_UP 671 drivers/gpio/gpio-aspeed.c banks = DIV_ROUND_UP(gpio->chip.ngpio, 32); DIV_ROUND_UP 1186 drivers/gpio/gpio-aspeed.c banks = DIV_ROUND_UP(gpio->chip.ngpio, 32); DIV_ROUND_UP 228 drivers/gpio/gpio-davinci.c nirq = DIV_ROUND_UP(ngpio, 16); DIV_ROUND_UP 270 drivers/gpio/gpio-davinci.c nbank = DIV_ROUND_UP(ngpio, 32); DIV_ROUND_UP 189 drivers/gpio/gpio-omap.c debounce = DIV_ROUND_UP(debounce, 31) - 1; DIV_ROUND_UP 119 drivers/gpio/gpio-pca953x.c #define NBANK(chip) DIV_ROUND_UP(chip->gpio_chip.ngpio, BANK_SZ) DIV_ROUND_UP 99 drivers/gpio/gpio-pisosr.c unsigned int nbytes = DIV_ROUND_UP(chip->ngpio, 8); DIV_ROUND_UP 145 drivers/gpio/gpio-pisosr.c gpio->buffer_size = DIV_ROUND_UP(gpio->chip.ngpio, 8); DIV_ROUND_UP 349 drivers/gpio/gpio-pxa.c int i, gpio, nbanks = DIV_ROUND_UP(ngpio, 32); DIV_ROUND_UP 179 drivers/gpio/gpio-stmpe.c int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); DIV_ROUND_UP 373 drivers/gpio/gpio-stmpe.c int num_banks = DIV_ROUND_UP(stmpe->num_gpios, 8); DIV_ROUND_UP 374 drivers/gpio/gpio-stmpe.c u8 status[DIV_ROUND_UP(MAX_GPIOS, 8)]; DIV_ROUND_UP 226 drivers/gpio/gpio-tegra.c unsigned int debounce_ms = DIV_ROUND_UP(debounce, 1000); DIV_ROUND_UP 338 drivers/gpio/gpio-uniphier.c return DIV_ROUND_UP(ngpio, UNIPHIER_GPIO_LINES_PER_BANK); DIV_ROUND_UP 512 drivers/gpu/drm/amd/amdgpu/amdgpu.h unsigned long used[DIV_ROUND_UP(AMDGPU_MAX_WB, BITS_PER_LONG)]; DIV_ROUND_UP 766 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c DIV_ROUND_UP(args->bpp, 8), 0); DIV_ROUND_UP 56 drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c tmp = DIV_ROUND_UP(nom_min, *nom); DIV_ROUND_UP 63 drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c tmp = DIV_ROUND_UP(den_min, *den); DIV_ROUND_UP 227 drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c unsigned tmp = DIV_ROUND_UP(fb_div_min, fb_div); DIV_ROUND_UP 1983 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c num_loops = DIV_ROUND_UP(byte_count, max_bytes); DIV_ROUND_UP 2611 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c tmp = DIV_ROUND_UP(fls64(tmp) - 1, 9) - 1; DIV_ROUND_UP 305 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c num_nodes = DIV_ROUND_UP(mem->num_pages, pages_per_node); DIV_ROUND_UP 1115 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); DIV_ROUND_UP 1141 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); DIV_ROUND_UP 948 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); DIV_ROUND_UP 1050 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); DIV_ROUND_UP 695 drivers/gpu/drm/amd/amdkfd/kfd_process.c kzalloc(DIV_ROUND_UP(KFD_MAX_NUM_OF_QUEUES_PER_PROCESS, DIV_ROUND_UP 139 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c kzalloc(DIV_ROUND_UP(KFD_MAX_NUM_OF_QUEUES_PER_PROCESS, DIV_ROUND_UP 4577 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c value = DIV_ROUND_UP(value * 100, golden_value); DIV_ROUND_UP 4619 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c value = DIV_ROUND_UP(value * 100, golden_value); DIV_ROUND_UP 4759 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c value = DIV_ROUND_UP(value * 100, golden_value); DIV_ROUND_UP 4810 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c value = DIV_ROUND_UP(value * 100, golden_value); DIV_ROUND_UP 2519 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c value = DIV_ROUND_UP(value * 100, golden_value); DIV_ROUND_UP 2540 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c value = DIV_ROUND_UP(value * 100, golden_value); DIV_ROUND_UP 1452 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c value = DIV_ROUND_UP(value * 100, golden_value); DIV_ROUND_UP 1498 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c value = DIV_ROUND_UP(value * 100, golden_value); DIV_ROUND_UP 1780 drivers/gpu/drm/amd/powerplay/vega20_ppt.c value = DIV_ROUND_UP(value * 100, golden_value); DIV_ROUND_UP 31 drivers/gpu/drm/arm/display/komeda/komeda_kms.c u32 pitch = DIV_ROUND_UP(args->width * args->bpp, 8); DIV_ROUND_UP 467 drivers/gpu/drm/arm/malidp_drv.c args->pitch = ALIGN(DIV_ROUND_UP(args->width * args->bpp, 8), alignment); DIV_ROUND_UP 879 drivers/gpu/drm/armada/armada_crtc.c permillage = DIV_ROUND_UP(real_hz, desired_khz); DIV_ROUND_UP 110 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c div = DIV_ROUND_UP(prate, mode_rate); DIV_ROUND_UP 117 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c div = DIV_ROUND_UP(prate, mode_rate); DIV_ROUND_UP 497 drivers/gpu/drm/bridge/cdns-dsi.c unsigned int dsi_timing = DIV_ROUND_UP(dpi_timing * dpi_bpp, 8); DIV_ROUND_UP 763 drivers/gpu/drm/bridge/cdns-dsi.c ulpout = DIV_ROUND_UP(NSEC_PER_MSEC, sysclk_period); DIV_ROUND_UP 828 drivers/gpu/drm/bridge/cdns-dsi.c tmp = DIV_ROUND_UP(dsi_cfg.htotal, nlanes) - DIV_ROUND_UP 829 drivers/gpu/drm/bridge/cdns-dsi.c DIV_ROUND_UP(dsi_cfg.hsa, nlanes); DIV_ROUND_UP 832 drivers/gpu/drm/bridge/cdns-dsi.c tmp -= DIV_ROUND_UP(DSI_EOT_PKT_SIZE, nlanes); DIV_ROUND_UP 269 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c two_frames = DIV_ROUND_UP(MSEC_PER_SEC, refresh) * 2; DIV_ROUND_UP 743 drivers/gpu/drm/bridge/tc358767.c max_tu_symbol = DIV_ROUND_UP(in_bw * TU_SIZE_RECOMMENDED, out_bw); DIV_ROUND_UP 722 drivers/gpu/drm/drm_dp_helper.c return DIV_ROUND_UP((I2C_START_LEN + I2C_ADDR_LEN + DIV_ROUND_UP 739 drivers/gpu/drm/drm_dp_helper.c return DIV_ROUND_UP(i2c_time_us, aux_time_us + AUX_RETRY_INTERVAL); DIV_ROUND_UP 3183 drivers/gpu/drm/drm_dp_mst_topology.c num_slots = DIV_ROUND_UP(pbn, mgr->pbn_div); DIV_ROUND_UP 3276 drivers/gpu/drm/drm_dp_mst_topology.c req_slots = DIV_ROUND_UP(pbn, mgr->pbn_div); DIV_ROUND_UP 3390 drivers/gpu/drm/drm_dp_mst_topology.c DIV_ROUND_UP(pbn, mgr->pbn_div), ret); DIV_ROUND_UP 270 drivers/gpu/drm/drm_dsc.c groups_per_line = DIV_ROUND_UP(vdsc_cfg->slice_width / 2, DIV_ROUND_UP 274 drivers/gpu/drm/drm_dsc.c vdsc_cfg->slice_chunk_size = DIV_ROUND_UP(vdsc_cfg->slice_width / 2 * DIV_ROUND_UP 279 drivers/gpu/drm/drm_dsc.c groups_per_line = DIV_ROUND_UP(vdsc_cfg->slice_width, DIV_ROUND_UP 283 drivers/gpu/drm/drm_dsc.c vdsc_cfg->slice_chunk_size = DIV_ROUND_UP(vdsc_cfg->slice_width * DIV_ROUND_UP 334 drivers/gpu/drm/drm_dsc.c vdsc_cfg->nfl_bpg_offset = DIV_ROUND_UP((vdsc_cfg->first_line_bpg_offset << 11), DIV_ROUND_UP 349 drivers/gpu/drm/drm_dsc.c vdsc_cfg->slice_bpg_offset = DIV_ROUND_UP(((vdsc_cfg->rc_model_size - DIV_ROUND_UP 385 drivers/gpu/drm/drm_dsc.c DIV_ROUND_UP(vdsc_cfg->initial_xmit_delay * DIV_ROUND_UP 389 drivers/gpu/drm/drm_dsc.c hrd_delay = DIV_ROUND_UP((rbs_min * 16), vdsc_cfg->bits_per_pixel); DIV_ROUND_UP 72 drivers/gpu/drm/drm_dumb_buffers.c cpp = DIV_ROUND_UP(args->bpp, 8); DIV_ROUND_UP 4164 drivers/gpu/drm/drm_edid.c DIV_ROUND_UP(drm_eld_calc_baseline_block_size(eld), 4); DIV_ROUND_UP 674 drivers/gpu/drm/drm_fb_helper.c y2 = min_t(u32, DIV_ROUND_UP(max, info->fix.line_length), DIV_ROUND_UP 159 drivers/gpu/drm/drm_framebuffer.c return DIV_ROUND_UP(width, format->hsub); DIV_ROUND_UP 168 drivers/gpu/drm/drm_framebuffer.c return DIV_ROUND_UP(height, format->vsub); DIV_ROUND_UP 215 drivers/gpu/drm/drm_gem_cma_helper.c unsigned int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); DIV_ROUND_UP 254 drivers/gpu/drm/drm_gem_cma_helper.c args->pitch = DIV_ROUND_UP(args->width * args->bpp, 8); DIV_ROUND_UP 451 drivers/gpu/drm/drm_gem_shmem_helper.c u32 min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); DIV_ROUND_UP 140 drivers/gpu/drm/drm_rect.c return DIV_ROUND_UP(src, dst); DIV_ROUND_UP 147 drivers/gpu/drm/exynos/exynos7_drm_decon.c clkdiv = DIV_ROUND_UP(clk_get_rate(ctx->vclk), ideal_clk); DIV_ROUND_UP 551 drivers/gpu/drm/exynos/exynos_drm_dsi.c p_min = DIV_ROUND_UP(fin, (12 * MHZ)); DIV_ROUND_UP 663 drivers/gpu/drm/exynos/exynos_drm_dsi.c esc_div = DIV_ROUND_UP(byte_clk, dsi->esc_clk_rate); DIV_ROUND_UP 107 drivers/gpu/drm/exynos/exynos_drm_fb.c DIV_ROUND_UP(mode_cmd->height, info->vsub); DIV_ROUND_UP 355 drivers/gpu/drm/exynos/exynos_drm_ipp.c DIV_ROUND_UP(buf->buf.height, buf->format->vsub); DIV_ROUND_UP 573 drivers/gpu/drm/exynos/exynos_drm_ipp.c DIV_ROUND_UP(buf->buf.width, buf->format->hsub); DIV_ROUND_UP 182 drivers/gpu/drm/gma500/oaktrail_hdmi.c np_min = DIV_ROUND_UP(oaktrail_hdmi_limit.vco.min, target * 10); DIV_ROUND_UP 189 drivers/gpu/drm/gma500/oaktrail_hdmi.c nr_min = DIV_ROUND_UP((refclk * 1000), (target * 10 * np_max)); DIV_ROUND_UP 190 drivers/gpu/drm/gma500/oaktrail_hdmi.c nr_max = DIV_ROUND_UP((refclk * 1000), (target * 10 * np_min)); DIV_ROUND_UP 196 drivers/gpu/drm/gma500/oaktrail_hdmi.c np = DIV_ROUND_UP((refclk * 1000), (target * 10 * nr_max)); DIV_ROUND_UP 197 drivers/gpu/drm/gma500/oaktrail_hdmi.c nr = DIV_ROUND_UP((refclk * 1000), (target * 10 * np)); DIV_ROUND_UP 72 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); DIV_ROUND_UP 80 drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c args->pitch = ALIGN(args->width * DIV_ROUND_UP(args->bpp, 8), 16); DIV_ROUND_UP 285 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c DIV_ROUND_UP(phy->lane_byte_clk_kHz, MAX_TX_ESC_CLK); DIV_ROUND_UP 491 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c hline_time = DIV_ROUND_UP(tmp, pixel_clk_kHz); DIV_ROUND_UP 316 drivers/gpu/drm/i915/display/icl_dsi.c esc_clk_div_m = DIV_ROUND_UP(afe_clk_khz, DSI_MAX_ESC_CLK); DIV_ROUND_UP 924 drivers/gpu/drm/i915/display/icl_dsi.c hs_tx_timeout = DIV_ROUND_UP(intel_dsi->hs_tx_timeout * mul, DIV_ROUND_UP 926 drivers/gpu/drm/i915/display/icl_dsi.c lp_rx_timeout = DIV_ROUND_UP(intel_dsi->lp_rx_timeout * mul, divisor); DIV_ROUND_UP 927 drivers/gpu/drm/i915/display/icl_dsi.c ta_timeout = DIV_ROUND_UP(intel_dsi->turn_arnd_val * mul, divisor); DIV_ROUND_UP 1451 drivers/gpu/drm/i915/display/icl_dsi.c prepare_cnt = DIV_ROUND_UP(ths_prepare_ns * 4, tlpx_ns); DIV_ROUND_UP 1458 drivers/gpu/drm/i915/display/icl_dsi.c clk_zero_cnt = DIV_ROUND_UP(mipi_config->tclk_prepare_clkzero - DIV_ROUND_UP 1466 drivers/gpu/drm/i915/display/icl_dsi.c trail_cnt = DIV_ROUND_UP(tclk_trail_ns, tlpx_ns); DIV_ROUND_UP 1473 drivers/gpu/drm/i915/display/icl_dsi.c tclk_pre_cnt = DIV_ROUND_UP(mipi_config->tclk_pre, tlpx_ns); DIV_ROUND_UP 1480 drivers/gpu/drm/i915/display/icl_dsi.c tclk_post_cnt = DIV_ROUND_UP(mipi_config->tclk_post, tlpx_ns); DIV_ROUND_UP 1487 drivers/gpu/drm/i915/display/icl_dsi.c hs_zero_cnt = DIV_ROUND_UP(mipi_config->ths_prepare_hszero - DIV_ROUND_UP 1495 drivers/gpu/drm/i915/display/icl_dsi.c exit_zero_cnt = DIV_ROUND_UP(mipi_config->ths_exit, tlpx_ns); DIV_ROUND_UP 164 drivers/gpu/drm/i915/display/intel_bw.c deinterleave = DIV_ROUND_UP(num_channels, is_y_tile ? 4 : 2); DIV_ROUND_UP 393 drivers/gpu/drm/i915/display/intel_bw.c data_rate = DIV_ROUND_UP(data_rate, 1000); DIV_ROUND_UP 1190 drivers/gpu/drm/i915/display/intel_cdclk.c return DIV_ROUND_UP(cdclk, 25000); DIV_ROUND_UP 2207 drivers/gpu/drm/i915/display/intel_cdclk.c return DIV_ROUND_UP(pixel_rate, 2); DIV_ROUND_UP 2212 drivers/gpu/drm/i915/display/intel_cdclk.c return DIV_ROUND_UP(pixel_rate * 100, 95); DIV_ROUND_UP 2214 drivers/gpu/drm/i915/display/intel_cdclk.c return DIV_ROUND_UP(pixel_rate * 100, 90); DIV_ROUND_UP 2230 drivers/gpu/drm/i915/display/intel_cdclk.c min_cdclk = DIV_ROUND_UP(min_cdclk * 100, 95); DIV_ROUND_UP 2712 drivers/gpu/drm/i915/display/intel_cdclk.c DIV_ROUND_UP(dev_priv->cdclk.hw.cdclk, 1000)); DIV_ROUND_UP 2725 drivers/gpu/drm/i915/display/intel_display.c rot_info->plane[i].stride = DIV_ROUND_UP(fb->pitches[i], tile_width * cpp); DIV_ROUND_UP 2726 drivers/gpu/drm/i915/display/intel_display.c rot_info->plane[i].width = DIV_ROUND_UP(x + width, tile_width); DIV_ROUND_UP 2727 drivers/gpu/drm/i915/display/intel_display.c rot_info->plane[i].height = DIV_ROUND_UP(y + height, tile_height); DIV_ROUND_UP 2775 drivers/gpu/drm/i915/display/intel_display.c size = DIV_ROUND_UP((y + height) * fb->pitches[i] + DIV_ROUND_UP 2858 drivers/gpu/drm/i915/display/intel_display.c info->plane[i].stride = DIV_ROUND_UP(fb->pitches[i], DIV_ROUND_UP 2860 drivers/gpu/drm/i915/display/intel_display.c info->plane[i].width = DIV_ROUND_UP(x + width, tile_width); DIV_ROUND_UP 2861 drivers/gpu/drm/i915/display/intel_display.c info->plane[i].height = DIV_ROUND_UP(y + height, tile_height); DIV_ROUND_UP 9523 drivers/gpu/drm/i915/display/intel_display.c return DIV_ROUND_UP(bps, link_bw * 8); DIV_ROUND_UP 236 drivers/gpu/drm/i915/display/intel_dp.c return DIV_ROUND_UP(pixel_clock * bpp, 8); DIV_ROUND_UP 557 drivers/gpu/drm/i915/display/intel_dp.c min_slice_count = DIV_ROUND_UP(mode_clock, DIV_ROUND_UP 560 drivers/gpu/drm/i915/display/intel_dp.c min_slice_count = DIV_ROUND_UP(mode_clock, DIV_ROUND_UP 571 drivers/gpu/drm/i915/display/intel_dp.c DIV_ROUND_UP(mode_hdisplay, DIV_ROUND_UP 6496 drivers/gpu/drm/i915/display/intel_dp.c #define get_delay(field) (DIV_ROUND_UP(final->field, 10)) DIV_ROUND_UP 6605 drivers/gpu/drm/i915/display/intel_dp.c REG_FIELD_PREP(PANEL_POWER_CYCLE_DELAY_MASK, DIV_ROUND_UP(seq->t11_t12, 1000))); DIV_ROUND_UP 6611 drivers/gpu/drm/i915/display/intel_dp.c pp_ctl |= REG_FIELD_PREP(BXT_POWER_CYCLE_DELAY_MASK, DIV_ROUND_UP(seq->t11_t12, 1000)); DIV_ROUND_UP 616 drivers/gpu/drm/i915/display/intel_dsi_vbt.c intel_dsi->pclk += DIV_ROUND_UP(mode->vtotal * intel_dsi->pixel_overlap * 60, 1000); DIV_ROUND_UP 644 drivers/gpu/drm/i915/display/intel_dsi_vbt.c burst_mode_ratio = DIV_ROUND_UP( DIV_ROUND_UP 648 drivers/gpu/drm/i915/display/intel_dsi_vbt.c intel_dsi->pclk = DIV_ROUND_UP(intel_dsi->pclk * burst_mode_ratio, 100); DIV_ROUND_UP 852 drivers/gpu/drm/i915/display/intel_fbc.c params->gen9_wa_cfb_stride = DIV_ROUND_UP(cache->plane.src_w, DIV_ROUND_UP 134 drivers/gpu/drm/i915/display/intel_fbdev.c DIV_ROUND_UP(sizes->surface_bpp, 8), 64); DIV_ROUND_UP 224 drivers/gpu/drm/i915/display/intel_lvds.c DIV_ROUND_UP(pps->t4, 1000) + 1)); DIV_ROUND_UP 476 drivers/gpu/drm/i915/display/intel_opregion.c asle->cblv = DIV_ROUND_UP(bclp * 100, 255) | ASLE_CBLV_VALID; DIV_ROUND_UP 600 drivers/gpu/drm/i915/display/intel_panel.c return DIV_ROUND_UP(duty_ns * 100, CRC_PMIC_PWM_PERIOD_NS); DIV_ROUND_UP 673 drivers/gpu/drm/i915/display/intel_panel.c int duty_ns = DIV_ROUND_UP(level * CRC_PMIC_PWM_PERIOD_NS, 100); DIV_ROUND_UP 1871 drivers/gpu/drm/i915/display/intel_panel.c panel->backlight.level = DIV_ROUND_UP( DIV_ROUND_UP 71 drivers/gpu/drm/i915/display/intel_sprite.c return DIV_ROUND_UP(usecs * adjusted_mode->crtc_clock, DIV_ROUND_UP 110 drivers/gpu/drm/i915/display/intel_sprite.c vblank_start = DIV_ROUND_UP(vblank_start, 2); DIV_ROUND_UP 334 drivers/gpu/drm/i915/display/intel_vdsc.c vdsc_cfg->slice_width = DIV_ROUND_UP(vdsc_cfg->pic_width, DIV_ROUND_UP 47 drivers/gpu/drm/i915/display/vlv_dsi.c return DIV_ROUND_UP(DIV_ROUND_UP(pixels * bpp * burst_mode_ratio, DIV_ROUND_UP 55 drivers/gpu/drm/i915/display/vlv_dsi.c return DIV_ROUND_UP((clk_hs * lane_count * 8 * 100), DIV_ROUND_UP 1691 drivers/gpu/drm/i915/display/vlv_dsi.c intel_dsi->lp_byte_clk = DIV_ROUND_UP(tlpx_ns * ui_den, 8 * ui_num); DIV_ROUND_UP 1707 drivers/gpu/drm/i915/display/vlv_dsi.c prepare_cnt = DIV_ROUND_UP(ths_prepare_ns * ui_den, ui_num * mul); DIV_ROUND_UP 1715 drivers/gpu/drm/i915/display/vlv_dsi.c exit_zero_cnt = DIV_ROUND_UP( DIV_ROUND_UP 1735 drivers/gpu/drm/i915/display/vlv_dsi.c clk_zero_cnt = DIV_ROUND_UP( DIV_ROUND_UP 1746 drivers/gpu/drm/i915/display/vlv_dsi.c trail_cnt = DIV_ROUND_UP(tclk_trail_ns * ui_den, ui_num * mul); DIV_ROUND_UP 1767 drivers/gpu/drm/i915/display/vlv_dsi.c tlpx_ui = DIV_ROUND_UP(tlpx_ns * ui_den, ui_num); DIV_ROUND_UP 1772 drivers/gpu/drm/i915/display/vlv_dsi.c lp_to_hs_switch = DIV_ROUND_UP(4 * tlpx_ui + prepare_cnt * mul + DIV_ROUND_UP 1775 drivers/gpu/drm/i915/display/vlv_dsi.c hs_to_lp_switch = DIV_ROUND_UP(mipi_config->ths_trail + 2 * tlpx_ui, 8); DIV_ROUND_UP 1790 drivers/gpu/drm/i915/display/vlv_dsi.c DIV_ROUND_UP( DIV_ROUND_UP 1805 drivers/gpu/drm/i915/display/vlv_dsi.c DIV_ROUND_UP(2 * tlpx_ui + trail_cnt * 2 + 8, DIV_ROUND_UP 378 drivers/gpu/drm/i915/display/vlv_dsi_pll.c txesc1_div = DIV_ROUND_UP(div1_value, 2); DIV_ROUND_UP 380 drivers/gpu/drm/i915/display/vlv_dsi_pll.c txesc1_div = DIV_ROUND_UP(div1_value, 4); DIV_ROUND_UP 382 drivers/gpu/drm/i915/display/vlv_dsi_pll.c txesc1_div = DIV_ROUND_UP(div1_value, 6); DIV_ROUND_UP 384 drivers/gpu/drm/i915/display/vlv_dsi_pll.c txesc1_div = DIV_ROUND_UP(div1_value, 8); DIV_ROUND_UP 389 drivers/gpu/drm/i915/display/vlv_dsi_pll.c div2_value = DIV_ROUND_UP(div1_value, txesc1_div); DIV_ROUND_UP 429 drivers/gpu/drm/i915/display/vlv_dsi_pll.c tx_div = DIV_ROUND_UP(dsi_rate, 20000) - 1; DIV_ROUND_UP 434 drivers/gpu/drm/i915/display/vlv_dsi_pll.c rx_div = DIV_ROUND_UP(dsi_rate, 150000) - 1; DIV_ROUND_UP 470 drivers/gpu/drm/i915/display/vlv_dsi_pll.c dsi_ratio = DIV_ROUND_UP(dsi_clk * 2, BXT_REF_CLOCK_KHZ); DIV_ROUND_UP 1143 drivers/gpu/drm/i915/gt/intel_ringbuffer.c *cs++ = DIV_ROUND_UP(len, 4096) << 16 | 4096; DIV_ROUND_UP 17 drivers/gpu/drm/i915/gt/intel_sseu.h #define GEN_SSEU_STRIDE(max_entries) DIV_ROUND_UP(max_entries, BITS_PER_BYTE) DIV_ROUND_UP 1369 drivers/gpu/drm/i915/i915_cmd_parser.c const u32 batch_cmds = DIV_ROUND_UP(batch_len, sizeof(u32)); DIV_ROUND_UP 960 drivers/gpu/drm/i915/i915_drv.c mem_freq_khz = DIV_ROUND_UP((val & SKL_REQ_DATA_MASK) * DIV_ROUND_UP 1064 drivers/gpu/drm/i915/i915_drv.c mem_freq_khz = DIV_ROUND_UP((val & BXT_REQ_DATA_MASK) * DIV_ROUND_UP 36 drivers/gpu/drm/i915/i915_fixed.h return DIV_ROUND_UP(fp.val, 1 << 16); DIV_ROUND_UP 72 drivers/gpu/drm/i915/i915_fixed.h return DIV_ROUND_UP(val.val, d.val); DIV_ROUND_UP 194 drivers/gpu/drm/i915/i915_gem.c int cpp = DIV_ROUND_UP(args->bpp, 8); DIV_ROUND_UP 975 drivers/gpu/drm/i915/i915_gpu_error.c num_pages = DIV_ROUND_UP(10 * num_pages, 8); /* worstcase zlib growth */ DIV_ROUND_UP 788 drivers/gpu/drm/i915/i915_irq.c vbl_start = DIV_ROUND_UP(vbl_start, 2); DIV_ROUND_UP 973 drivers/gpu/drm/i915/i915_irq.c vbl_start = DIV_ROUND_UP(vbl_start, 2); DIV_ROUND_UP 299 drivers/gpu/drm/i915/intel_device_info.c DIV_ROUND_UP(sseu->eu_total, DIV_ROUND_UP 434 drivers/gpu/drm/i915/intel_device_info.c DIV_ROUND_UP(sseu->eu_total, DIV_ROUND_UP 538 drivers/gpu/drm/i915/intel_device_info.c DIV_ROUND_UP(sseu->eu_total, DIV_ROUND_UP 782 drivers/gpu/drm/i915/intel_pm.c entries = DIV_ROUND_UP(entries, wm->cacheline_size) + DIV_ROUND_UP 1170 drivers/gpu/drm/i915/intel_pm.c wm = DIV_ROUND_UP(wm, 64) + 2; DIV_ROUND_UP 1600 drivers/gpu/drm/i915/intel_pm.c ret = DIV_ROUND_UP(ret, 64); DIV_ROUND_UP 1717 drivers/gpu/drm/i915/intel_pm.c fifo_extra = DIV_ROUND_UP(fifo_left, num_active_planes ?: 1); DIV_ROUND_UP 2233 drivers/gpu/drm/i915/intel_pm.c entries = DIV_ROUND_UP(entries, I915_FIFO_LINE_SIZE); DIV_ROUND_UP 2244 drivers/gpu/drm/i915/intel_pm.c entries = DIV_ROUND_UP(entries, DIV_ROUND_UP 2394 drivers/gpu/drm/i915/intel_pm.c entries = DIV_ROUND_UP(entries, wm_info->cacheline_size); DIV_ROUND_UP 2457 drivers/gpu/drm/i915/intel_pm.c ret = DIV_ROUND_UP(ret, 64) + 2; DIV_ROUND_UP 2473 drivers/gpu/drm/i915/intel_pm.c ret = DIV_ROUND_UP(ret, 64) + 2; DIV_ROUND_UP 2491 drivers/gpu/drm/i915/intel_pm.c return DIV_ROUND_UP(pri_val * 64, horiz_pixels * cpp) + 2; DIV_ROUND_UP 3007 drivers/gpu/drm/i915/intel_pm.c wm[level] = max_t(u16, wm[level], DIV_ROUND_UP(min, 5)); DIV_ROUND_UP 4589 drivers/gpu/drm/i915/intel_pm.c wm_intermediate_val = DIV_ROUND_UP(wm_intermediate_val, DIV_ROUND_UP 4701 drivers/gpu/drm/i915/intel_pm.c interm_pbpl = DIV_ROUND_UP(wp->plane_bytes_per_line * DIV_ROUND_UP 4711 drivers/gpu/drm/i915/intel_pm.c interm_pbpl = DIV_ROUND_UP(wp->plane_bytes_per_line, DIV_ROUND_UP 4715 drivers/gpu/drm/i915/intel_pm.c interm_pbpl = DIV_ROUND_UP(wp->plane_bytes_per_line, DIV_ROUND_UP 4864 drivers/gpu/drm/i915/intel_pm.c DIV_ROUND_UP(res_blocks, 10); DIV_ROUND_UP 804 drivers/gpu/drm/mcde/mcde_display.c const int max_div = DIV_ROUND_UP(MCDE_MAX_WIDTH, fifo_size); DIV_ROUND_UP 104 drivers/gpu/drm/mediatek/mtk_drm_gem.c args->pitch = DIV_ROUND_UP(args->width * args->bpp, 8); DIV_ROUND_UP 82 drivers/gpu/drm/meson/meson_drv.c args->pitch = ALIGN(DIV_ROUND_UP(args->width * args->bpp, 8), SZ_64); DIV_ROUND_UP 154 drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c n = DIV_ROUND_UP(fetch_stride * nlines, smp->blk_size); DIV_ROUND_UP 739 drivers/gpu/drm/msm/dsi/dsi_host.c esc_div = DIV_ROUND_UP(byte_mhz, esc_mhz); DIV_ROUND_UP 101 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c tmin = DIV_ROUND_UP(temp, ui) - 2; DIV_ROUND_UP 191 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c tmin = DIV_ROUND_UP(60 * coeff + 3 * ui, ui_x8); DIV_ROUND_UP 207 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c tmin = DIV_ROUND_UP(60 * coeff + 4 * ui + 3 * ui, ui_x8); DIV_ROUND_UP 215 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c tmin = DIV_ROUND_UP(100 * coeff, ui_x8) - 1; DIV_ROUND_UP 223 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c tmin = DIV_ROUND_UP(temp, ui_x8) - 1; DIV_ROUND_UP 300 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c tmin = DIV_ROUND_UP(60 * coeff + 3 * ui, ui_x8); DIV_ROUND_UP 316 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c tmin = DIV_ROUND_UP(60 * coeff + 4 * ui, ui_x8) - 1; DIV_ROUND_UP 324 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c tmin = DIV_ROUND_UP(100 * coeff, ui_x8) - 1; DIV_ROUND_UP 332 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c tmin = DIV_ROUND_UP(temp, ui_x8) - 1; DIV_ROUND_UP 469 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c dataKBps = DIV_ROUND_UP(datakbps, 8); DIV_ROUND_UP 1103 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c for (i = 0; i < DIV_ROUND_UP(tpcmax, 4); i++) { DIV_ROUND_UP 49 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm200.c const u32 dist_nr = DIV_ROUND_UP(gr->tpc_total, 4); DIV_ROUND_UP 99 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c const u32 dist_nr = DIV_ROUND_UP(gr->tpc_total, 4); DIV_ROUND_UP 2282 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c const u32 magicgpc918 = DIV_ROUND_UP(0x00800000, gr->tpc_total); DIV_ROUND_UP 127 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf117.c const u32 magicgpc918 = DIV_ROUND_UP(0x00800000, gr->tpc_total); DIV_ROUND_UP 145 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gk20a.h return DIV_ROUND_UP(pll->m * clk->params->min_vco, DIV_ROUND_UP 501 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c nmin = DIV_ROUND_UP(pll->m * clk->base.params->min_vco, parent_rate); DIV_ROUND_UP 505 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c pll->pl = DIV_ROUND_UP(nmin * parent_rate, pll->m * rate); DIV_ROUND_UP 1048 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c clk_params->max_m = clk_params->min_m = DIV_ROUND_UP(clk_params->max_u, DIV_ROUND_UP 46 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c u32 tiles = DIV_ROUND_UP(size, 0x40); DIV_ROUND_UP 33 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv25.c u32 tiles = DIV_ROUND_UP(size, 0x40); DIV_ROUND_UP 52 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c u32 tiles = DIV_ROUND_UP(size, 0x40); DIV_ROUND_UP 33 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv35.c u32 tiles = DIV_ROUND_UP(size, 0x40); DIV_ROUND_UP 33 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv36.c u32 tiles = DIV_ROUND_UP(size, 0x40); DIV_ROUND_UP 33 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv40.c u32 tiles = DIV_ROUND_UP(size, 0x80); DIV_ROUND_UP 60 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c duty = DIV_ROUND_UP((uv - bios->base) * div, bios->pwm_range); DIV_ROUND_UP 87 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c mv = DIV_ROUND_UP(mv, v_scale); DIV_ROUND_UP 2146 drivers/gpu/drm/omapdrm/dss/dispc.c const int ds = DIV_ROUND_UP(height, out_height); DIV_ROUND_UP 2283 drivers/gpu/drm/omapdrm/dss/dispc.c return DIV_ROUND_UP(pclk, out_width) * width; DIV_ROUND_UP 2446 drivers/gpu/drm/omapdrm/dss/dispc.c / DIV_ROUND_UP(pclk, out_width); DIV_ROUND_UP 2449 drivers/gpu/drm/omapdrm/dss/dispc.c *decim_x = DIV_ROUND_UP(width, in_width_max); DIV_ROUND_UP 2544 drivers/gpu/drm/omapdrm/dss/dispc.c decim_x = DIV_ROUND_UP(DIV_ROUND_UP(width, out_width), maxhdownscale); DIV_ROUND_UP 2545 drivers/gpu/drm/omapdrm/dss/dispc.c decim_y = DIV_ROUND_UP(DIV_ROUND_UP(height, out_height), maxvdownscale); DIV_ROUND_UP 3692 drivers/gpu/drm/omapdrm/dss/dispc.c lckd_start = max(DIV_ROUND_UP(dispc_freq, lck_max), 1ul); DIV_ROUND_UP 3698 drivers/gpu/drm/omapdrm/dss/dispc.c pckd_start = max(DIV_ROUND_UP(lck, pck_max), pckd_hw_min); DIV_ROUND_UP 1219 drivers/gpu/drm/omapdrm/dss/dsi.c lp_clk_div = DIV_ROUND_UP(dsi_fclk, lp_clk_max * 2); DIV_ROUND_UP 1314 drivers/gpu/drm/omapdrm/dss/dsi.c cinfo->mX[HSDIV_DSI] = DIV_ROUND_UP(cinfo->clkdco, max_dsi_fck); DIV_ROUND_UP 3413 drivers/gpu/drm/omapdrm/dss/dsi.c width_bytes = DIV_ROUND_UP(vm->hactive * bpp, 8); DIV_ROUND_UP 3414 drivers/gpu/drm/omapdrm/dss/dsi.c bllp = hbp + hfp + hsa + DIV_ROUND_UP(width_bytes + 6, ndl); DIV_ROUND_UP 3581 drivers/gpu/drm/omapdrm/dss/dsi.c ths_eot = DIV_ROUND_UP(4, ndl); DIV_ROUND_UP 3583 drivers/gpu/drm/omapdrm/dss/dsi.c ddr_clk_pre = DIV_ROUND_UP(tclk_pre + tlpx + tclk_zero + tclk_prepare, DIV_ROUND_UP 3585 drivers/gpu/drm/omapdrm/dss/dsi.c ddr_clk_post = DIV_ROUND_UP(tclk_post + ths_trail, 4) + ths_eot; DIV_ROUND_UP 3599 drivers/gpu/drm/omapdrm/dss/dsi.c enter_hs_mode_lat = 1 + DIV_ROUND_UP(tlpx, 4) + DIV_ROUND_UP 3600 drivers/gpu/drm/omapdrm/dss/dsi.c DIV_ROUND_UP(ths_prepare, 4) + DIV_ROUND_UP 3601 drivers/gpu/drm/omapdrm/dss/dsi.c DIV_ROUND_UP(ths_zero + 3, 4); DIV_ROUND_UP 3603 drivers/gpu/drm/omapdrm/dss/dsi.c exit_hs_mode_lat = DIV_ROUND_UP(ths_trail + ths_exit, 4) + 1 + ths_eot; DIV_ROUND_UP 3628 drivers/gpu/drm/omapdrm/dss/dsi.c ((hsa == 0 && ndl == 3) ? 1 : DIV_ROUND_UP(4, ndl)) : 0; DIV_ROUND_UP 3630 drivers/gpu/drm/omapdrm/dss/dsi.c width_bytes = DIV_ROUND_UP(vm->hactive * bpp, 8); DIV_ROUND_UP 3633 drivers/gpu/drm/omapdrm/dss/dsi.c tl = DIV_ROUND_UP(4, ndl) + (hsync_end ? hsa : 0) + t_he + hfp + DIV_ROUND_UP 3634 drivers/gpu/drm/omapdrm/dss/dsi.c DIV_ROUND_UP(width_bytes + 6, ndl) + hbp; DIV_ROUND_UP 3764 drivers/gpu/drm/omapdrm/dss/dsi.c word_count = DIV_ROUND_UP(dsi->vm.hactive * bpp, 8); DIV_ROUND_UP 4218 drivers/gpu/drm/omapdrm/dss/dsi.c wc = DIV_ROUND_UP(t->hact * t->bitspp, 8); DIV_ROUND_UP 4219 drivers/gpu/drm/omapdrm/dss/dsi.c pps = DIV_ROUND_UP(wc + 6, t->ndl); /* pixel packet size */ DIV_ROUND_UP 4284 drivers/gpu/drm/omapdrm/dss/dsi.c dsi_hact = DIV_ROUND_UP(DIV_ROUND_UP(t->hact * t->bitspp, 8) + 6, t->ndl); DIV_ROUND_UP 4422 drivers/gpu/drm/omapdrm/dss/dsi.c dsi_hact = DIV_ROUND_UP(DIV_ROUND_UP(xres * bitspp, 8) + 6, ndl); DIV_ROUND_UP 4446 drivers/gpu/drm/omapdrm/dss/dsi.c hss = DIV_ROUND_UP(4, ndl); DIV_ROUND_UP 4452 drivers/gpu/drm/omapdrm/dss/dsi.c hse = DIV_ROUND_UP(4, ndl); DIV_ROUND_UP 630 drivers/gpu/drm/omapdrm/dss/dss.c fckd_stop = max(DIV_ROUND_UP(prate * m, fck_hw_max), 1ul); DIV_ROUND_UP 633 drivers/gpu/drm/omapdrm/dss/dss.c fck = DIV_ROUND_UP(prate, fckd) * m; DIV_ROUND_UP 684 drivers/gpu/drm/omapdrm/dss/dss.c fck_div = DIV_ROUND_UP(prate * dss->feat->dss_fck_multiplier, DIV_ROUND_UP 686 drivers/gpu/drm/omapdrm/dss/dss.c fck = DIV_ROUND_UP(prate, fck_div) DIV_ROUND_UP 187 drivers/gpu/drm/omapdrm/dss/pll.c m_start = max(DIV_ROUND_UP(clkdco, out_max), 1ul); DIV_ROUND_UP 221 drivers/gpu/drm/omapdrm/dss/pll.c n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); DIV_ROUND_UP 235 drivers/gpu/drm/omapdrm/dss/pll.c m_start = max(DIV_ROUND_UP(DIV_ROUND_UP(pll_min, fint), 2), DIV_ROUND_UP 278 drivers/gpu/drm/omapdrm/dss/pll.c n = DIV_ROUND_UP(clkin, hw->fint_max); DIV_ROUND_UP 283 drivers/gpu/drm/omapdrm/dss/pll.c m2 = DIV_ROUND_UP(min_dco, target_clkout); DIV_ROUND_UP 304 drivers/gpu/drm/omapdrm/dss/pll.c sd = DIV_ROUND_UP(fint * m, 250000000); DIV_ROUND_UP 454 drivers/gpu/drm/omapdrm/dss/pll.c sleep_time = DIV_ROUND_UP(1000*1000*1000, cinfo->fint); DIV_ROUND_UP 553 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c w = DIV_ROUND_UP(w, geom[fmt].slot_w); DIV_ROUND_UP 554 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c h = DIV_ROUND_UP(h, geom[fmt].slot_h); DIV_ROUND_UP 117 drivers/gpu/drm/omapdrm/omap_fbdev.c DIV_ROUND_UP(mode_cmd.width * sizes->surface_bpp, 8); DIV_ROUND_UP 175 drivers/gpu/drm/omapdrm/omap_gem.c const int m = DIV_ROUND_UP(omap_obj->width << fmt, PAGE_SIZE); DIV_ROUND_UP 400 drivers/gpu/drm/omapdrm/omap_gem.c const int m = DIV_ROUND_UP(omap_obj->width << fmt, PAGE_SIZE); DIV_ROUND_UP 596 drivers/gpu/drm/omapdrm/omap_gem.c args->pitch = DIV_ROUND_UP(args->width * args->bpp, 8); DIV_ROUND_UP 1260 drivers/gpu/drm/omapdrm/omap_gem.c npages = DIV_ROUND_UP(size, PAGE_SIZE); DIV_ROUND_UP 3675 drivers/gpu/drm/radeon/cik.c num_loops = DIV_ROUND_UP(size_in_bytes, 0x1fffff); DIV_ROUND_UP 9349 drivers/gpu/drm/radeon/cik.c radeon_crtc->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); DIV_ROUND_UP 595 drivers/gpu/drm/radeon/cik_sdma.c num_loops = DIV_ROUND_UP(size_in_bytes, 0x1fffff); DIV_ROUND_UP 2280 drivers/gpu/drm/radeon/evergreen.c radeon_crtc->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); DIV_ROUND_UP 124 drivers/gpu/drm/radeon/evergreen_dma.c num_loops = DIV_ROUND_UP(size_in_dw, 0xfffff); DIV_ROUND_UP 911 drivers/gpu/drm/radeon/r100.c num_loops = DIV_ROUND_UP(num_gpu_pages, 8191); DIV_ROUND_UP 3645 drivers/gpu/drm/radeon/r100.c rdev->mode_info.crtcs[0]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode1->crtc_hdisplay); DIV_ROUND_UP 3648 drivers/gpu/drm/radeon/r100.c rdev->mode_info.crtcs[1]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode2->crtc_hdisplay); DIV_ROUND_UP 98 drivers/gpu/drm/radeon/r200.c num_loops = DIV_ROUND_UP(size, 0x1FFFFF); DIV_ROUND_UP 2979 drivers/gpu/drm/radeon/r600.c num_loops = DIV_ROUND_UP(size_in_bytes, 0x1fffff); DIV_ROUND_UP 460 drivers/gpu/drm/radeon/r600_dma.c num_loops = DIV_ROUND_UP(size_in_dw, 0xFFFE); DIV_ROUND_UP 897 drivers/gpu/drm/radeon/radeon_display.c tmp = DIV_ROUND_UP(nom_min, *nom); DIV_ROUND_UP 904 drivers/gpu/drm/radeon/radeon_display.c tmp = DIV_ROUND_UP(den_min, *den); DIV_ROUND_UP 1071 drivers/gpu/drm/radeon/radeon_display.c unsigned tmp = DIV_ROUND_UP(fb_div_min, fb_div); DIV_ROUND_UP 759 drivers/gpu/drm/radeon/radeon_gem.c DIV_ROUND_UP(args->bpp, 8), 0); DIV_ROUND_UP 478 drivers/gpu/drm/radeon/radeon_legacy_crtc.c crtc_pitch = DIV_ROUND_UP(pitch_pixels * target_fb->format->cpp[0] * 8, DIV_ROUND_UP 253 drivers/gpu/drm/radeon/rs690.c rdev->mode_info.crtcs[0]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode1->crtc_hdisplay); DIV_ROUND_UP 256 drivers/gpu/drm/radeon/rs690.c rdev->mode_info.crtcs[1]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode2->crtc_hdisplay); DIV_ROUND_UP 58 drivers/gpu/drm/radeon/rv770_dma.c num_loops = DIV_ROUND_UP(size_in_dw, 0xFFFF); DIV_ROUND_UP 2431 drivers/gpu/drm/radeon/si.c radeon_crtc->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); DIV_ROUND_UP 247 drivers/gpu/drm/radeon/si_dma.c num_loops = DIV_ROUND_UP(size_in_bytes, 0xfffff); DIV_ROUND_UP 71 drivers/gpu/drm/rcar-du/rcar_du_drv.h #define RCAR_DU_MAX_GROUPS DIV_ROUND_UP(RCAR_DU_MAX_CRTCS, 2) DIV_ROUND_UP 275 drivers/gpu/drm/rcar-du/rcar_du_group.c index = rcdu->info->gen < 3 ? 0 : DIV_ROUND_UP(rcdu->num_crtcs, 2) - 1; DIV_ROUND_UP 289 drivers/gpu/drm/rcar-du/rcar_du_kms.c unsigned int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); DIV_ROUND_UP 668 drivers/gpu/drm/rcar-du/rcar_du_kms.c num_groups = DIV_ROUND_UP(rcdu->num_crtcs, 2); DIV_ROUND_UP 245 drivers/gpu/drm/rcar-du/rcar_lvds.c m_min = max_t(unsigned int, 1, DIV_ROUND_UP(fin, 24000000)); DIV_ROUND_UP 262 drivers/gpu/drm/rcar-du/rcar_lvds.c n_min = max_t(unsigned int, 60, DIV_ROUND_UP(900000000, fpfd)); DIV_ROUND_UP 346 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c return DIV_ROUND_UP(ns * dsi->lane_mbps / 8, 1000); DIV_ROUND_UP 354 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c return DIV_ROUND_UP(ns * dsi->lane_mbps, 1000); DIV_ROUND_UP 496 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c mpclk = DIV_ROUND_UP(mode->clock, MSEC_PER_SEC); DIV_ROUND_UP 511 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c min_prediv = DIV_ROUND_UP(fin, 40 * USEC_PER_SEC); DIV_ROUND_UP 550 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c dsi->lane_mbps = DIV_ROUND_UP(best_freq, USEC_PER_SEC); DIV_ROUND_UP 53 drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); DIV_ROUND_UP 416 drivers/gpu/drm/rockchip/rockchip_drm_gem.c int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); DIV_ROUND_UP 849 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, yrgb_vir, DIV_ROUND_UP(fb->pitches[0], 4)); DIV_ROUND_UP 869 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, uv_vir, DIV_ROUND_UP(fb->pitches[1], 4)); DIV_ROUND_UP 1077 drivers/gpu/drm/rockchip/rockchip_drm_vop.c adjusted_mode->clock = DIV_ROUND_UP(rate, 1000); DIV_ROUND_UP 187 drivers/gpu/drm/selftests/test-drm_framebuffer.c .handles = { 1, 1, 1 }, .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP 188 drivers/gpu/drm/selftests/test-drm_framebuffer.c DIV_ROUND_UP(MAX_WIDTH, 2) }, DIV_ROUND_UP 193 drivers/gpu/drm/selftests/test-drm_framebuffer.c .handles = { 1, 1, 1 }, .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2) - 1, DIV_ROUND_UP 194 drivers/gpu/drm/selftests/test-drm_framebuffer.c DIV_ROUND_UP(MAX_WIDTH, 2) }, DIV_ROUND_UP 199 drivers/gpu/drm/selftests/test-drm_framebuffer.c .handles = { 1, 1, 1 }, .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2) + 1, DIV_ROUND_UP 200 drivers/gpu/drm/selftests/test-drm_framebuffer.c DIV_ROUND_UP(MAX_WIDTH, 2) + 7 }, DIV_ROUND_UP 207 drivers/gpu/drm/selftests/test-drm_framebuffer.c .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2) + 1, DIV_ROUND_UP(MAX_WIDTH, 2) + 7 }, DIV_ROUND_UP 213 drivers/gpu/drm/selftests/test-drm_framebuffer.c .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP(MAX_WIDTH, 2) }, DIV_ROUND_UP 219 drivers/gpu/drm/selftests/test-drm_framebuffer.c .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP(MAX_WIDTH, 2) }, DIV_ROUND_UP 226 drivers/gpu/drm/selftests/test-drm_framebuffer.c .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP(MAX_WIDTH, 2) }, DIV_ROUND_UP 233 drivers/gpu/drm/selftests/test-drm_framebuffer.c .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP(MAX_WIDTH, 2) }, DIV_ROUND_UP 241 drivers/gpu/drm/selftests/test-drm_framebuffer.c .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP(MAX_WIDTH, 2) }, DIV_ROUND_UP 249 drivers/gpu/drm/selftests/test-drm_framebuffer.c .pitches = { MAX_WIDTH, DIV_ROUND_UP(MAX_WIDTH, 2), DIV_ROUND_UP(MAX_WIDTH, 2) }, DIV_ROUND_UP 743 drivers/gpu/drm/sti/sti_hqvdp.c inv_zy = DIV_ROUND_UP(src_h, dst_h); DIV_ROUND_UP 42 drivers/gpu/drm/stm/drv.c unsigned int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); DIV_ROUND_UP 36 drivers/gpu/drm/sun4i/sun4i_drv.c args->pitch = ALIGN(DIV_ROUND_UP(args->width * args->bpp, 8), 2); DIV_ROUND_UP 509 drivers/gpu/drm/sun4i/sun4i_frontend.c chroma_width = DIV_ROUND_UP(luma_width, fb->format->hsub); DIV_ROUND_UP 510 drivers/gpu/drm/sun4i/sun4i_frontend.c chroma_height = DIV_ROUND_UP(luma_height, fb->format->vsub); DIV_ROUND_UP 89 drivers/gpu/drm/tegra/dpaux.c for (i = 0; i < DIV_ROUND_UP(size, 4); i++) { DIV_ROUND_UP 105 drivers/gpu/drm/tegra/dpaux.c for (i = 0; i < DIV_ROUND_UP(size, 4); i++) { DIV_ROUND_UP 604 drivers/gpu/drm/tegra/dsi.c delay = DIV_ROUND_UP(delay * mul, div * lanes); DIV_ROUND_UP 608 drivers/gpu/drm/tegra/dsi.c bclk = DIV_ROUND_UP(mode->htotal * mul, div * lanes); DIV_ROUND_UP 609 drivers/gpu/drm/tegra/dsi.c bclk_ganged = DIV_ROUND_UP(bclk * lanes / 2, lanes); DIV_ROUND_UP 983 drivers/gpu/drm/tegra/dsi.c plld = DIV_ROUND_UP(state->bclk * 8, USEC_PER_SEC) * USEC_PER_SEC; DIV_ROUND_UP 219 drivers/gpu/drm/tegra/fb.c bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); DIV_ROUND_UP 410 drivers/gpu/drm/tegra/gem.c unsigned int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); DIV_ROUND_UP 81 drivers/gpu/drm/udl/udl_gem.c args->pitch = args->width * DIV_ROUND_UP(args->bpp, 8); DIV_ROUND_UP 476 drivers/gpu/drm/vc4/vc4_bo.c int min_pitch = DIV_ROUND_UP(args->width * args->bpp, 8); DIV_ROUND_UP 737 drivers/gpu/drm/vc4/vc4_dsi.c return roundup(ui + DIV_ROUND_UP(ns, ui_ns), 8); DIV_ROUND_UP 746 drivers/gpu/drm/vc4/vc4_dsi.c return DIV_ROUND_UP(ns, ESC_TIME_NS); DIV_ROUND_UP 949 drivers/gpu/drm/vc4/vc4_dsi.c ui_ns = DIV_ROUND_UP(500000000, hs_clock); DIV_ROUND_UP 530 drivers/gpu/drm/vc4/vc4_plane.c vscale_factor = DIV_ROUND_UP(vc4_state->src_h[i], DIV_ROUND_UP 105 drivers/gpu/drm/vc4/vc4_render_cl.c (DIV_ROUND_UP(exec->args->width, 32) * y + x); DIV_ROUND_UP 388 drivers/gpu/drm/vc4/vc4_render_cl.c u32 render_tiles_stride = DIV_ROUND_UP(exec->args->width, 32); DIV_ROUND_UP 82 drivers/gpu/drm/vgem/vgem_drv.c num_pages = DIV_ROUND_UP(obj->base.size, PAGE_SIZE); DIV_ROUND_UP 213 drivers/gpu/drm/vgem/vgem_drv.c pitch = args->width * DIV_ROUND_UP(args->bpp, 8); DIV_ROUND_UP 53 drivers/gpu/drm/vkms/vkms_gem.c num_pages = DIV_ROUND_UP(obj->gem.size, PAGE_SIZE); DIV_ROUND_UP 129 drivers/gpu/drm/vkms/vkms_gem.c pitch = args->width * DIV_ROUND_UP(args->bpp, 8); DIV_ROUND_UP 582 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c DIV_ROUND_UP(var->bits_per_pixel, 8), DIV_ROUND_UP 396 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c data_size = DIV_ROUND_UP(data_size, PAGE_SIZE); DIV_ROUND_UP 510 drivers/gpu/drm/vmwgfx/vmwgfx_mob.c unsigned long num_pt_pages = DIV_ROUND_UP(pt_size, PAGE_SIZE); DIV_ROUND_UP 181 drivers/gpu/drm/xen/xen_drm_front.c buf_cfg.num_pages = DIV_ROUND_UP(size, PAGE_SIZE); DIV_ROUND_UP 399 drivers/gpu/drm/xen/xen_drm_front.c args->pitch = DIV_ROUND_UP(args->width * args->bpp, 8); DIV_ROUND_UP 47 drivers/gpu/drm/xen/xen_drm_front_gem.c xen_obj->num_pages = DIV_ROUND_UP(buf_size, PAGE_SIZE); DIV_ROUND_UP 118 drivers/gpu/drm/xen/xen_drm_front_gem.c xen_obj->num_pages = DIV_ROUND_UP(size, PAGE_SIZE); DIV_ROUND_UP 408 drivers/gpu/drm/zte/zx_vga.c div = DIV_ROUND_UP(ref / 1000, 400 * 4) - 1; DIV_ROUND_UP 39 drivers/gpu/host1x/hw/intr_hw.c for (i = 0; i < DIV_ROUND_UP(host->info->nb_pts, 32); i++) { DIV_ROUND_UP 56 drivers/gpu/host1x/hw/intr_hw.c for (i = 0; i < DIV_ROUND_UP(host->info->nb_pts, 32); ++i) { DIV_ROUND_UP 296 drivers/gpu/host1x/intr.c err = host1x_hw_intr_init_host_sync(host, DIV_ROUND_UP(hz, 1000000), DIV_ROUND_UP 1157 drivers/gpu/ipu-v3/ipu-image-convert.c (DIV_ROUND_UP(last_output * resize_coeff_h, 8192) + 1) DIV_ROUND_UP 1214 drivers/gpu/ipu-v3/ipu-image-convert.c (DIV_ROUND_UP(last_output * resize_coeff_v, 8192) + 1) DIV_ROUND_UP 177 drivers/gpu/ipu-v3/ipu-pre.c pre->safe_window_end = DIV_ROUND_UP(height, 4) - 1; DIV_ROUND_UP 258 drivers/hid/hid-sensor-hub.c report_size = DIV_ROUND_UP(report->field[field_index]->report_size, DIV_ROUND_UP 393 drivers/hid/usbhid/hid-core.c padlen = DIV_ROUND_UP(len, maxpacket); DIV_ROUND_UP 1201 drivers/hwmon/dell-smm-hwmon.c i8k_pwm_mult = DIV_ROUND_UP(255, i8k_fan_max); DIV_ROUND_UP 722 drivers/hwmon/fschmd.c data->watchdog_preset = DIV_ROUND_UP(timeout, resolution); DIV_ROUND_UP 264 drivers/hwmon/ftsteutates.c timeout = DIV_ROUND_UP(timeout, 60) * 60; DIV_ROUND_UP 192 drivers/hwmon/gpio-fan.c speed_index = DIV_ROUND_UP(pwm * (fan_data->num_speed - 1), 255); DIV_ROUND_UP 164 drivers/hwmon/max16065.c for (i = 0; i < DIV_ROUND_UP(data->num_adc, 8); i++) DIV_ROUND_UP 531 drivers/hwmon/max16065.c for (i = 0; i < DIV_ROUND_UP(data->num_adc, 4); i++) { DIV_ROUND_UP 82 drivers/hwmon/pwm-fan.c state.duty_cycle = DIV_ROUND_UP(pwm * (period - 1), MAX_PWM); DIV_ROUND_UP 440 drivers/hwmon/pwm-fan.c duty = DIV_ROUND_UP(ctx->pwm_value * (pargs.period - 1), MAX_PWM); DIV_ROUND_UP 283 drivers/hwmon/sch56xx-common.c data->watchdog_preset = DIV_ROUND_UP(timeout, resolution); DIV_ROUND_UP 1195 drivers/hwmon/w83793.c mtimeout = DIV_ROUND_UP(timeout, 60); DIV_ROUND_UP 270 drivers/hwtracing/coresight/coresight-catu.c nr_tpages = DIV_ROUND_UP(size, SZ_1M) / CATU_PAGES_PER_SYSPAGE; DIV_ROUND_UP 352 drivers/hwtracing/coresight/coresight-tmc-etr.c int npages = DIV_ROUND_UP(size, PAGE_SIZE); DIV_ROUND_UP 568 drivers/hwtracing/coresight/coresight-tmc-etr.c nr_tpages = DIV_ROUND_UP(nr_entries, ETR_SG_PTRS_PER_SYSPAGE); DIV_ROUND_UP 62 drivers/hwtracing/intel_th/msu-sink.c nents = DIV_ROUND_UP(size, PAGE_SIZE); DIV_ROUND_UP 883 drivers/i2c/busses/i2c-aspeed.c divisor = DIV_ROUND_UP(bus->parent_clk_frequency, bus->bus_frequency); DIV_ROUND_UP 56 drivers/i2c/busses/i2c-at91-master.c div = max(0, (int)DIV_ROUND_UP(clk_get_rate(dev->clk), DIV_ROUND_UP 74 drivers/i2c/busses/i2c-at91-master.c hold = DIV_ROUND_UP(t->sda_hold_ns DIV_ROUND_UP 88 drivers/i2c/busses/i2c-bcm2835.c u32 divider = DIV_ROUND_UP(parent_rate, rate); DIV_ROUND_UP 140 drivers/i2c/busses/i2c-bcm2835.c return DIV_ROUND_UP(*parent_rate, divider); DIV_ROUND_UP 149 drivers/i2c/busses/i2c-bcm2835.c return DIV_ROUND_UP(parent_rate, divider); DIV_ROUND_UP 692 drivers/i2c/busses/i2c-cadence.c div_b = DIV_ROUND_UP(input_clk, 22 * fscl * (div_a + 1)); DIV_ROUND_UP 269 drivers/i2c/busses/i2c-digicolor.c clocktime = DIV_ROUND_UP(clk_rate, 64 * i2c->frequency); DIV_ROUND_UP 65 drivers/i2c/busses/i2c-diolan-u2c.c #define U2C_I2C_SPEED(f) ((DIV_ROUND_UP(1000000, (f)) - 10) / 2 + 1) DIV_ROUND_UP 402 drivers/i2c/busses/i2c-efm32.c clkdiv = DIV_ROUND_UP(rate, 8 * ddata->frequency) - 1; DIV_ROUND_UP 1252 drivers/i2c/busses/i2c-img-scb.c data = DIV_ROUND_UP(timing.tckl, clk_period); DIV_ROUND_UP 1269 drivers/i2c/busses/i2c-img-scb.c tsdh = DIV_ROUND_UP(timing.tsdh, clk_period); DIV_ROUND_UP 135 drivers/i2c/busses/i2c-meson.c div = DIV_ROUND_UP(clk_rate, freq * i2c->data->div_factor); DIV_ROUND_UP 463 drivers/i2c/busses/i2c-mt65xx.c opt_div = DIV_ROUND_UP(clk_src >> 1, target_speed); DIV_ROUND_UP 473 drivers/i2c/busses/i2c-mt65xx.c step_cnt = DIV_ROUND_UP(opt_div, sample_cnt); DIV_ROUND_UP 696 drivers/i2c/busses/i2c-mxs.c divider = DIV_ROUND_UP(clk, speed); DIV_ROUND_UP 738 drivers/i2c/busses/i2c-mxs.c leadin = DIV_ROUND_UP(600 * (clk / 1000000), 1000); DIV_ROUND_UP 739 drivers/i2c/busses/i2c-mxs.c bus_free = DIV_ROUND_UP(1300 * (clk / 1000000), 1000); DIV_ROUND_UP 744 drivers/i2c/busses/i2c-mxs.c leadin = DIV_ROUND_UP(4700 * (clk / 1000000), 1000); DIV_ROUND_UP 745 drivers/i2c/busses/i2c-mxs.c bus_free = DIV_ROUND_UP(4700 * (clk / 1000000), 1000); DIV_ROUND_UP 379 drivers/i2c/busses/i2c-nomadik.c slsu = DIV_ROUND_UP(100, ns); /* Fast */ DIV_ROUND_UP 382 drivers/i2c/busses/i2c-nomadik.c slsu = DIV_ROUND_UP(10, ns); /* High */ DIV_ROUND_UP 386 drivers/i2c/busses/i2c-nomadik.c slsu = DIV_ROUND_UP(250, ns); /* Standard */ DIV_ROUND_UP 161 drivers/i2c/busses/i2c-owl.c val = DIV_ROUND_UP(i2c_dev->clk_rate, i2c_dev->bus_freq * 16); DIV_ROUND_UP 505 drivers/i2c/busses/i2c-qup.c qup->blk.count = DIV_ROUND_UP(msg->len, qup->blk_xfer_limit); DIV_ROUND_UP 315 drivers/i2c/busses/i2c-riic.c total_ticks = DIV_ROUND_UP(rate, t->bus_freq_hz); DIV_ROUND_UP 611 drivers/i2c/busses/i2c-rk3x.c min_high_ns = max(min_high_ns, DIV_ROUND_UP( DIV_ROUND_UP 613 drivers/i2c/busses/i2c-rk3x.c min_high_ns = max(min_high_ns, DIV_ROUND_UP( DIV_ROUND_UP 622 drivers/i2c/busses/i2c-rk3x.c clk_rate_khz = DIV_ROUND_UP(clk_rate, 1000); DIV_ROUND_UP 629 drivers/i2c/busses/i2c-rk3x.c min_total_div = DIV_ROUND_UP(clk_rate_khz, scl_rate_khz * 8); DIV_ROUND_UP 632 drivers/i2c/busses/i2c-rk3x.c min_low_div = DIV_ROUND_UP(clk_rate_khz * min_low_ns, 8 * 1000000); DIV_ROUND_UP 633 drivers/i2c/busses/i2c-rk3x.c min_high_div = DIV_ROUND_UP(clk_rate_khz * min_high_ns, 8 * 1000000); DIV_ROUND_UP 668 drivers/i2c/busses/i2c-rk3x.c ideal_low_div = DIV_ROUND_UP(clk_rate_khz * min_low_ns, DIV_ROUND_UP 777 drivers/i2c/busses/i2c-rk3x.c clk_rate_khz = DIV_ROUND_UP(clk_rate, 1000); DIV_ROUND_UP 779 drivers/i2c/busses/i2c-rk3x.c min_total_div = DIV_ROUND_UP(clk_rate_khz, scl_rate_khz * 8); DIV_ROUND_UP 782 drivers/i2c/busses/i2c-rk3x.c min_high_div = DIV_ROUND_UP(clk_rate_khz * min_high_ns, 8 * 1000000); DIV_ROUND_UP 785 drivers/i2c/busses/i2c-rk3x.c min_low_div = DIV_ROUND_UP(clk_rate_khz * min_low_ns, 8 * 1000000); DIV_ROUND_UP 817 drivers/i2c/busses/i2c-rk3x.c extra_low_div = DIV_ROUND_UP(min_low_div * extra_div, DIV_ROUND_UP 829 drivers/i2c/busses/i2c-rk3x.c max_hold_data_ns = DIV_ROUND_UP((sda_update_cfg DIV_ROUND_UP 832 drivers/i2c/busses/i2c-rk3x.c min_setup_data_ns = DIV_ROUND_UP(((8 - sda_update_cfg) DIV_ROUND_UP 842 drivers/i2c/busses/i2c-rk3x.c stp_sta_cfg = DIV_ROUND_UP(clk_rate_khz * min_setup_start_ns DIV_ROUND_UP 847 drivers/i2c/busses/i2c-rk3x.c stp_sto_cfg = DIV_ROUND_UP(clk_rate_khz * min_setup_stop_ns DIV_ROUND_UP 874 drivers/i2c/busses/i2c-s3c2410.c sda_delay = DIV_ROUND_UP(sda_delay, 1000000); DIV_ROUND_UP 875 drivers/i2c/busses/i2c-s3c2410.c sda_delay = DIV_ROUND_UP(sda_delay, 5); DIV_ROUND_UP 299 drivers/i2c/busses/i2c-sh_mobile.c pd->iccl = DIV_ROUND_UP(clks_per_cycle * 5 / 9 - 1, pd->clks_per_count); DIV_ROUND_UP 300 drivers/i2c/busses/i2c-sh_mobile.c pd->icch = DIV_ROUND_UP(clks_per_cycle * 4 / 9 - 5, pd->clks_per_count); DIV_ROUND_UP 157 drivers/i2c/busses/i2c-stm32f4.c freq = DIV_ROUND_UP(i2c_dev->parent_rate, HZ_TO_MHZ); DIV_ROUND_UP 193 drivers/i2c/busses/i2c-stm32f4.c u32 freq = DIV_ROUND_UP(i2c_dev->parent_rate, HZ_TO_MHZ); DIV_ROUND_UP 266 drivers/i2c/busses/i2c-stm32f4.c val = DIV_ROUND_UP(i2c_dev->parent_rate, 400000 * 3); DIV_ROUND_UP 23 drivers/i2c/busses/i2c-synquacer.c ndelay(DIV_ROUND_UP(DIV_ROUND_UP(1000000000, rate), n) + 10) DIV_ROUND_UP 70 drivers/i2c/busses/i2c-synquacer.c DIV_ROUND_UP(DIV_ROUND_UP((rate), 100000) - 2, 2) DIV_ROUND_UP 73 drivers/i2c/busses/i2c-synquacer.c DIV_ROUND_UP((DIV_ROUND_UP((rate), 400000) - 2) * 2, 3) DIV_ROUND_UP 174 drivers/i2c/busses/i2c-synquacer.c return DIV_ROUND_UP((bit_count * 9 + num * 10) * 3, 200) + 10; DIV_ROUND_UP 352 drivers/i2c/busses/i2c-synquacer.c udelay(DIV_ROUND_UP(2 * 1000, i2c->speed_khz)); DIV_ROUND_UP 811 drivers/i2c/busses/i2c-tegra.c udelay(DIV_ROUND_UP(2 * 1000000, i2c_dev->bus_clk_rate)); DIV_ROUND_UP 314 drivers/i2c/busses/i2c-xlp9xx.c prescale = DIV_ROUND_UP(priv->ip_clk_hz, priv->clk_hz); DIV_ROUND_UP 416 drivers/i2c/busses/i2c-xlr.c clk_div = DIV_ROUND_UP(clk_rate, 2 * busfreq); DIV_ROUND_UP 528 drivers/i3c/master/dw-i3c-master.c core_period = DIV_ROUND_UP(1000000000, core_rate); DIV_ROUND_UP 530 drivers/i3c/master/dw-i3c-master.c hcnt = DIV_ROUND_UP(I3C_BUS_THIGH_MAX_NS, core_period) - 1; DIV_ROUND_UP 534 drivers/i3c/master/dw-i3c-master.c lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_TYP_I3C_SCL_RATE) - hcnt; DIV_ROUND_UP 544 drivers/i3c/master/dw-i3c-master.c lcnt = DIV_ROUND_UP(I3C_BUS_TLOW_OD_MIN_NS, core_period); DIV_ROUND_UP 548 drivers/i3c/master/dw-i3c-master.c lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR1_SCL_RATE) - hcnt; DIV_ROUND_UP 550 drivers/i3c/master/dw-i3c-master.c lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR2_SCL_RATE) - hcnt; DIV_ROUND_UP 552 drivers/i3c/master/dw-i3c-master.c lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR3_SCL_RATE) - hcnt; DIV_ROUND_UP 554 drivers/i3c/master/dw-i3c-master.c lcnt = DIV_ROUND_UP(core_rate, I3C_BUS_SDR4_SCL_RATE) - hcnt; DIV_ROUND_UP 571 drivers/i3c/master/dw-i3c-master.c core_period = DIV_ROUND_UP(1000000000, core_rate); DIV_ROUND_UP 573 drivers/i3c/master/dw-i3c-master.c lcnt = DIV_ROUND_UP(I3C_BUS_I2C_FMP_TLOW_MIN_NS, core_period); DIV_ROUND_UP 574 drivers/i3c/master/dw-i3c-master.c hcnt = DIV_ROUND_UP(core_rate, I3C_BUS_I2C_FM_PLUS_SCL_RATE) - lcnt; DIV_ROUND_UP 579 drivers/i3c/master/dw-i3c-master.c lcnt = DIV_ROUND_UP(I3C_BUS_I2C_FM_TLOW_MIN_NS, core_period); DIV_ROUND_UP 580 drivers/i3c/master/dw-i3c-master.c hcnt = DIV_ROUND_UP(core_rate, I3C_BUS_I2C_FM_SCL_RATE) - lcnt; DIV_ROUND_UP 846 drivers/i3c/master/dw-i3c-master.c nrxwords += DIV_ROUND_UP(i3c_xfers[i].len, 4); DIV_ROUND_UP 848 drivers/i3c/master/dw-i3c-master.c ntxwords += DIV_ROUND_UP(i3c_xfers[i].len, 4); DIV_ROUND_UP 974 drivers/i3c/master/dw-i3c-master.c nrxwords += DIV_ROUND_UP(i2c_xfers[i].len, 4); DIV_ROUND_UP 976 drivers/i3c/master/dw-i3c-master.c ntxwords += DIV_ROUND_UP(i2c_xfers[i].len, 4); DIV_ROUND_UP 753 drivers/i3c/master/i3c-master-cdns.c rxslots += DIV_ROUND_UP(xfers[i].len, 4); DIV_ROUND_UP 755 drivers/i3c/master/i3c-master-cdns.c txslots += DIV_ROUND_UP(xfers[i].len, 4); DIV_ROUND_UP 824 drivers/i3c/master/i3c-master-cdns.c nrxwords += DIV_ROUND_UP(xfers[i].len, 4); DIV_ROUND_UP 826 drivers/i3c/master/i3c-master-cdns.c ntxwords += DIV_ROUND_UP(xfers[i].len, 4); DIV_ROUND_UP 1105 drivers/i3c/master/i3c-master-cdns.c i3c_lim_period = DIV_ROUND_UP(1000000000, master->i3c_scl_lim); DIV_ROUND_UP 1106 drivers/i3c/master/i3c-master-cdns.c ncycles = DIV_ROUND_UP(i3c_lim_period, pres_step); DIV_ROUND_UP 1214 drivers/i3c/master/i3c-master-cdns.c pres = DIV_ROUND_UP(sysclk_rate, (bus->scl_rate.i3c * 4)) - 1; DIV_ROUND_UP 1238 drivers/i3c/master/i3c-master-cdns.c ncycles = DIV_ROUND_UP(I3C_BUS_TLOW_OD_MIN_NS, pres_step) - 2; DIV_ROUND_UP 537 drivers/ide/cmd640.c cycle_count = DIV_ROUND_UP(cycle_time, clock_time); DIV_ROUND_UP 539 drivers/ide/cmd640.c setup_count = DIV_ROUND_UP(setup_time, clock_time); DIV_ROUND_UP 541 drivers/ide/cmd640.c active_count = DIV_ROUND_UP(active_time, clock_time); DIV_ROUND_UP 545 drivers/ide/cmd640.c recovery_count = DIV_ROUND_UP(recovery_time, clock_time); DIV_ROUND_UP 72 drivers/ide/palm_bk3710.c t0 = DIV_ROUND_UP(palm_bk3710_udmatimings[mode].cycletime, DIV_ROUND_UP 74 drivers/ide/palm_bk3710.c tenv = DIV_ROUND_UP(20, ideclk_period) - 1; DIV_ROUND_UP 75 drivers/ide/palm_bk3710.c trp = DIV_ROUND_UP(palm_bk3710_udmatimings[mode].rptime, DIV_ROUND_UP 112 drivers/ide/palm_bk3710.c t0 = DIV_ROUND_UP(cycletime, ideclk_period); DIV_ROUND_UP 113 drivers/ide/palm_bk3710.c td = DIV_ROUND_UP(t->active, ideclk_period); DIV_ROUND_UP 141 drivers/ide/palm_bk3710.c t0 = DIV_ROUND_UP(cycletime, ideclk_period); DIV_ROUND_UP 142 drivers/ide/palm_bk3710.c t2 = DIV_ROUND_UP(t->active, ideclk_period); DIV_ROUND_UP 163 drivers/ide/palm_bk3710.c t0 = DIV_ROUND_UP(t->cyc8b, ideclk_period); DIV_ROUND_UP 164 drivers/ide/palm_bk3710.c t2 = DIV_ROUND_UP(t->act8b, ideclk_period); DIV_ROUND_UP 35 drivers/ide/tx4938ide.c wt = DIV_ROUND_UP(t->act8b, cycle) - 2; DIV_ROUND_UP 37 drivers/ide/tx4938ide.c wt = max_t(int, wt, DIV_ROUND_UP(35, cycle)); DIV_ROUND_UP 43 drivers/ide/tx4938ide.c shwt = DIV_ROUND_UP(t->setup, cycle); DIV_ROUND_UP 195 drivers/iio/adc/ad_sigma_delta.c size = DIV_ROUND_UP(reset_length, 8); DIV_ROUND_UP 315 drivers/iio/adc/ad_sigma_delta.c DIV_ROUND_UP(chan->scan_type.realbits + chan->scan_type.shift, 8), DIV_ROUND_UP 414 drivers/iio/adc/ad_sigma_delta.c reg_size = DIV_ROUND_UP(reg_size, 8); DIV_ROUND_UP 1455 drivers/iio/adc/at91-sama5d2_adc.c unsigned int pages = DIV_ROUND_UP(AT91_HWFIFO_MAX_SIZE * DIV_ROUND_UP 1510 drivers/iio/adc/at91-sama5d2_adc.c unsigned int pages = DIV_ROUND_UP(AT91_HWFIFO_MAX_SIZE * DIV_ROUND_UP 1054 drivers/iio/adc/at91_adc.c tssctim = DIV_ROUND_UP(TOUCH_SCTIM_US * adc_clk_khz / 1000, 4); DIV_ROUND_UP 109 drivers/iio/adc/ep93xx_adc.c ep93xx_adc_delay(DIV_ROUND_UP(1000000, 925), DIV_ROUND_UP 110 drivers/iio/adc/ep93xx_adc.c DIV_ROUND_UP(1000000, 925)); DIV_ROUND_UP 179 drivers/iio/adc/ingenic-adc.c div_main = DIV_ROUND_UP(parent_rate, 8000000); DIV_ROUND_UP 188 drivers/iio/adc/ingenic-adc.c div_10us = DIV_ROUND_UP(rate, 100000); DIV_ROUND_UP 148 drivers/iio/adc/lpc18xx_adc.c clkdiv = DIV_ROUND_UP(rate, LPC18XX_ADC_CLK_TARGET); DIV_ROUND_UP 404 drivers/iio/adc/mcp320x.c adc->transfer[1].len = DIV_ROUND_UP(chip_info->resolution, 8); DIV_ROUND_UP 100 drivers/iio/adc/spear_adc.c count = DIV_ROUND_UP(apb_clk, val); DIV_ROUND_UP 366 drivers/iio/adc/ti-ads1015.c conv_time = DIV_ROUND_UP(USEC_PER_SEC, data->data_rate[dr_old]); DIV_ROUND_UP 367 drivers/iio/adc/ti-ads1015.c conv_time += DIV_ROUND_UP(USEC_PER_SEC, data->data_rate[dr]); DIV_ROUND_UP 295 drivers/iio/buffer/industrialio-buffer-dma.c size = DIV_ROUND_UP(queue->buffer.bytes_per_datum * DIV_ROUND_UP 34 drivers/iio/common/st_sensors/st_sensors_buffer.c DIV_ROUND_UP(channel->scan_type.realbits + DIV_ROUND_UP 543 drivers/iio/common/st_sensors/st_sensors_core.c byte_for_channel = DIV_ROUND_UP(ch->scan_type.realbits + DIV_ROUND_UP 183 drivers/iio/frequency/adf4350.c band_sel_div = DIV_ROUND_UP(st->fpfd, ADF4350_MAX_BANDSEL_CLK); DIV_ROUND_UP 305 drivers/iio/frequency/adf4371.c cp_bleed = DIV_ROUND_UP(400 * 1750, st->integer * 375); DIV_ROUND_UP 519 drivers/iio/frequency/adf4371.c vco_band_div = DIV_ROUND_UP(st->fpfd, 2400000U); DIV_ROUND_UP 73 drivers/iio/light/apds9300.c tmp = DIV_ROUND_UP(ch1 * 100, ch0); DIV_ROUND_UP 310 drivers/iio/light/ltr501.c ratio = DIV_ROUND_UP(ir_data * 100, ir_data + vis_data); DIV_ROUND_UP 482 drivers/iio/light/ltr501.c new_val = DIV_ROUND_UP(period, samp_period); DIV_ROUND_UP 502 drivers/iio/light/ltr501.c new_val = DIV_ROUND_UP(period, samp_period); DIV_ROUND_UP 198 drivers/infiniband/core/rw.c ctx->nr_ops = DIV_ROUND_UP(sg_cnt, max_sge); DIV_ROUND_UP 652 drivers/infiniband/core/rw.c return DIV_ROUND_UP(maxpages, mr_pages); DIV_ROUND_UP 403 drivers/infiniband/hw/bnxt_re/ib_verbs.c #define BNXT_RE_FENCE_PBL_SIZE DIV_ROUND_UP(BNXT_RE_FENCE_BYTES, PAGE_SIZE) DIV_ROUND_UP 605 drivers/infiniband/hw/cxgb4/cm.c flowclen16 = DIV_ROUND_UP(flowclen, 16); DIV_ROUND_UP 1970 drivers/infiniband/hw/cxgb4/cm.c req->len16_pkd = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*req), 16))); DIV_ROUND_UP 4008 drivers/infiniband/hw/cxgb4/cm.c req->len16_pkd = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*req), 16))); DIV_ROUND_UP 53 drivers/infiniband/hw/cxgb4/cq.c res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); DIV_ROUND_UP 131 drivers/infiniband/hw/cxgb4/cq.c res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); DIV_ROUND_UP 481 drivers/infiniband/hw/cxgb4/cq.c idx += DIV_ROUND_UP(pwr->len16 * 16, T4_EQ_ENTRY_SIZE); DIV_ROUND_UP 89 drivers/infiniband/hw/cxgb4/mem.c req->wr.wr_mid = cpu_to_be32(FW_WR_LEN16_V(DIV_ROUND_UP(wr_len, 16))); DIV_ROUND_UP 94 drivers/infiniband/hw/cxgb4/mem.c req->len16 = cpu_to_be32(DIV_ROUND_UP(wr_len-sizeof(req->wr), 16)); DIV_ROUND_UP 127 drivers/infiniband/hw/cxgb4/mem.c num_wqe = DIV_ROUND_UP(len, C4IW_MAX_INLINE_SIZE); DIV_ROUND_UP 154 drivers/infiniband/hw/cxgb4/mem.c FW_WR_LEN16_V(DIV_ROUND_UP(wr_len, 16))); DIV_ROUND_UP 158 drivers/infiniband/hw/cxgb4/mem.c DIV_ROUND_UP(copy_len, T4_ULPTX_MIN_IO))); DIV_ROUND_UP 159 drivers/infiniband/hw/cxgb4/mem.c req->len16 = cpu_to_be32(DIV_ROUND_UP(wr_len-sizeof(req->wr), DIV_ROUND_UP 320 drivers/infiniband/hw/cxgb4/qp.c res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); DIV_ROUND_UP 550 drivers/infiniband/hw/cxgb4/qp.c *len16 = DIV_ROUND_UP(size, 16); DIV_ROUND_UP 601 drivers/infiniband/hw/cxgb4/qp.c *len16 = DIV_ROUND_UP(size, 16); DIV_ROUND_UP 656 drivers/infiniband/hw/cxgb4/qp.c *len16 = DIV_ROUND_UP(size, 16); DIV_ROUND_UP 685 drivers/infiniband/hw/cxgb4/qp.c *len16 = DIV_ROUND_UP(sizeof(wqe->read), 16); DIV_ROUND_UP 753 drivers/infiniband/hw/cxgb4/qp.c idx = DIV_ROUND_UP(len16 * 16, T4_EQ_ENTRY_SIZE); DIV_ROUND_UP 768 drivers/infiniband/hw/cxgb4/qp.c *len16 = DIV_ROUND_UP( DIV_ROUND_UP 782 drivers/infiniband/hw/cxgb4/qp.c *len16 = DIV_ROUND_UP(sizeof(wqe->recv) + DIV_ROUND_UP 816 drivers/infiniband/hw/cxgb4/qp.c *len16 = DIV_ROUND_UP(sizeof(*fr), 16); DIV_ROUND_UP 856 drivers/infiniband/hw/cxgb4/qp.c *len16 = DIV_ROUND_UP(sizeof(wqe->fr) + sizeof(*sglp), 16); DIV_ROUND_UP 877 drivers/infiniband/hw/cxgb4/qp.c *len16 = DIV_ROUND_UP(sizeof(wqe->fr) + sizeof(*imdp) DIV_ROUND_UP 888 drivers/infiniband/hw/cxgb4/qp.c *len16 = DIV_ROUND_UP(sizeof(wqe->inv), 16); DIV_ROUND_UP 1248 drivers/infiniband/hw/cxgb4/qp.c idx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); DIV_ROUND_UP 1326 drivers/infiniband/hw/cxgb4/qp.c idx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); DIV_ROUND_UP 1412 drivers/infiniband/hw/cxgb4/qp.c idx += DIV_ROUND_UP(len16 * 16, T4_EQ_ENTRY_SIZE); DIV_ROUND_UP 1579 drivers/infiniband/hw/cxgb4/qp.c FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*wqe), 16))); DIV_ROUND_UP 1712 drivers/infiniband/hw/cxgb4/qp.c FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*wqe), 16))); DIV_ROUND_UP 1734 drivers/infiniband/hw/cxgb4/qp.c init->u.write.len16 = DIV_ROUND_UP( DIV_ROUND_UP 1743 drivers/infiniband/hw/cxgb4/qp.c init->u.read.len16 = DIV_ROUND_UP(sizeof(init->u.read), 16); DIV_ROUND_UP 1776 drivers/infiniband/hw/cxgb4/qp.c FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*wqe), 16))); DIV_ROUND_UP 2498 drivers/infiniband/hw/cxgb4/qp.c res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); DIV_ROUND_UP 2588 drivers/infiniband/hw/cxgb4/qp.c res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); DIV_ROUND_UP 435 drivers/infiniband/hw/cxgb4/t4.h srq->wq_pidx += DIV_ROUND_UP(len16 * 16, T4_EQ_ENTRY_SIZE); DIV_ROUND_UP 505 drivers/infiniband/hw/cxgb4/t4.h wq->rq.wq_pidx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); DIV_ROUND_UP 552 drivers/infiniband/hw/cxgb4/t4.h wq->sq.wq_pidx += DIV_ROUND_UP(len16*16, T4_EQ_ENTRY_SIZE); DIV_ROUND_UP 1107 drivers/infiniband/hw/efa/efa_verbs.c chunk_list_size = DIV_ROUND_UP(page_cnt, EFA_PTRS_PER_CHUNK); DIV_ROUND_UP 1235 drivers/infiniband/hw/efa/efa_verbs.c u32 size_in_pages = DIV_ROUND_UP(pbl->pbl_buf_size_in_bytes, PAGE_SIZE); DIV_ROUND_UP 1450 drivers/infiniband/hw/efa/efa_verbs.c params.page_num = DIV_ROUND_UP(length + (start & (pg_sz - 1)), DIV_ROUND_UP 600 drivers/infiniband/hw/hfi1/pio.c release_credits = DIV_ROUND_UP(mtu, PIO_BLOCK_SIZE); DIV_ROUND_UP 1436 drivers/infiniband/hw/hfi1/pio.c #define dwords_to_blocks(x) DIV_ROUND_UP(x, BLOCK_DWORDS) DIV_ROUND_UP 3320 drivers/infiniband/hw/hfi1/tid_rdma.c DIV_ROUND_UP(wqe->length, priv->tid_req.seg_len); DIV_ROUND_UP 3679 drivers/infiniband/hw/hfi1/tid_rdma.c num_segs = DIV_ROUND_UP(len, qpriv->tid_rdma.local.max_len); DIV_ROUND_UP 92 drivers/infiniband/hw/hfi1/user_pages.c size = DIV_ROUND_UP(size, PAGE_SIZE); DIV_ROUND_UP 5567 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ba_num = DIV_ROUND_UP(PAGE_ALIGN(eq->entries * eq->eqe_size), DIV_ROUND_UP 5569 drivers/infiniband/hw/hns/hns_roce_hw_v2.c bt_num = DIV_ROUND_UP(ba_num, bt_chk_sz / BA_BYTE_LEN); DIV_ROUND_UP 462 drivers/infiniband/hw/hns/hns_roce_qp.c buf_cnt = DIV_ROUND_UP(buf_size, page_size); DIV_ROUND_UP 474 drivers/infiniband/hw/hns/hns_roce_qp.c buf_cnt = DIV_ROUND_UP(buf_size, page_size); DIV_ROUND_UP 486 drivers/infiniband/hw/hns/hns_roce_qp.c buf_cnt = DIV_ROUND_UP(buf_size, page_size); DIV_ROUND_UP 217 drivers/infiniband/hw/hns/hns_roce_srq.c buf->npages = DIV_ROUND_UP(ib_umem_page_count(srq->idx_que.umem), DIV_ROUND_UP 315 drivers/infiniband/hw/mlx4/qp.c DIV_ROUND_UP(MLX4_IB_UD_HEADER_SIZE, DIV_ROUND_UP 93 drivers/infiniband/hw/mlx5/cmd.c u32 num_pages = DIV_ROUND_UP(length, PAGE_SIZE); DIV_ROUND_UP 164 drivers/infiniband/hw/mlx5/cmd.c u32 num_pages = DIV_ROUND_UP(length, PAGE_SIZE); DIV_ROUND_UP 2320 drivers/infiniband/hw/mlx5/main.c DIV_ROUND_UP(dm->size, PAGE_SIZE)); DIV_ROUND_UP 2442 drivers/infiniband/hw/mlx5/main.c DIV_ROUND_UP(dm->size, PAGE_SIZE)); DIV_ROUND_UP 90 drivers/infiniband/hw/mlx5/mem.c *ncont = DIV_ROUND_UP(i, (1 << m)); DIV_ROUND_UP 4949 drivers/infiniband/hw/mlx5/qp.c qp->sq.cur_post += DIV_ROUND_UP(size * 16, MLX5_SEND_WQE_BB); DIV_ROUND_UP 22 drivers/infiniband/hw/mlx5/srq_cmd.c u32 rq_num_pas = DIV_ROUND_UP(rq_sz_po, page_size); DIV_ROUND_UP 368 drivers/infiniband/hw/mthca/mthca_memfree.c num_icm = DIV_ROUND_UP(nobj, obj_per_chunk); DIV_ROUND_UP 579 drivers/infiniband/hw/qedr/verbs.c num_pbls = DIV_ROUND_UP(num_pbes, NUM_PBES_ON_PAGE(pbl_size)); DIV_ROUND_UP 673 drivers/infiniband/ulp/iser/iser_verbs.c sg_tablesize = DIV_ROUND_UP(max_sectors * 512, SIZE_4K); DIV_ROUND_UP 1154 drivers/infiniband/ulp/isert/ib_isert.c sg_nents = max(1UL, DIV_ROUND_UP(imm_data_len, PAGE_SIZE)); DIV_ROUND_UP 1220 drivers/infiniband/ulp/isert/ib_isert.c sg_nents = max(1UL, DIV_ROUND_UP(unsol_data_len, PAGE_SIZE)); DIV_ROUND_UP 345 drivers/input/keyboard/gpio_keys_polled.c bdata->threshold = DIV_ROUND_UP(button->debounce_interval, DIV_ROUND_UP 149 drivers/input/keyboard/pmic8xxx-keypad.c udelay((2 * DIV_ROUND_UP(USEC_PER_SEC, KEYP_CLOCK_FREQ)) + 1); DIV_ROUND_UP 203 drivers/input/keyboard/pmic8xxx-keypad.c udelay((4 * DIV_ROUND_UP(USEC_PER_SEC, KEYP_CLOCK_FREQ)) + 1); DIV_ROUND_UP 671 drivers/input/keyboard/tegra-kbc.c kbc->repoll_dly = DIV_ROUND_UP(kbc->repoll_dly, KBC_CYCLE_MS); DIV_ROUND_UP 640 drivers/input/rmi4/rmi_f11.c sensor->pkt_size = DIV_ROUND_UP(sensor->nbr_fingers, 4); DIV_ROUND_UP 668 drivers/input/rmi4/rmi_f11.c DIV_ROUND_UP(query->nr_touch_shapes + 1, 8); DIV_ROUND_UP 676 drivers/input/rmi4/rmi_f11.c i = DIV_ROUND_UP(sensor->nbr_fingers, 4); DIV_ROUND_UP 33 drivers/input/rmi4/rmi_f30.c #define RMI_F30_CTRL_MAX_BYTES DIV_ROUND_UP(RMI_F30_CTRL_MAX_REGS, 8) DIV_ROUND_UP 296 drivers/input/rmi4/rmi_f30.c f30->register_count = DIV_ROUND_UP(f30->gpioled_count, 8); DIV_ROUND_UP 2581 drivers/input/touchscreen/atmel_mxt_ts.c dbg->t37_pages = DIV_ROUND_UP(data->xsize * DIV_ROUND_UP 382 drivers/input/touchscreen/fsl-imx25-tcq.c debounce_cnt = DIV_ROUND_UP(priv->pen_debounce, adc_period * 8) - 1; DIV_ROUND_UP 383 drivers/input/touchscreen/fsl-imx25-tcq.c settling_cnt = DIV_ROUND_UP(priv->settling_time, adc_period * 8) - 1; DIV_ROUND_UP 662 drivers/input/touchscreen/wdt87xx_i2c.c time_delay = DIV_ROUND_UP(length, 1024); DIV_ROUND_UP 118 drivers/iommu/intel-iommu.c return DIV_ROUND_UP(width - 30, LEVEL_STRIDE); DIV_ROUND_UP 51 drivers/iommu/io-pgtable-arm.c DIV_ROUND_UP((d)->pgd_size, ARM_LPAE_GRANULE(d)) DIV_ROUND_UP 773 drivers/iommu/io-pgtable-arm.c data->levels = DIV_ROUND_UP(va_bits, data->bits_per_level); DIV_ROUND_UP 221 drivers/irqchip/irq-atmel-aic-common.c nchips = DIV_ROUND_UP(nirqs, 32); DIV_ROUND_UP 367 drivers/irqchip/irq-atmel-aic5.c smr_cache = kcalloc(DIV_ROUND_UP(NR_SAMA5D2_IRQS, 32) * 32, DIV_ROUND_UP 139 drivers/irqchip/irq-dw-apb-ictl.c for (i = 0; i < DIV_ROUND_UP(nrirqs, 32); i++) { DIV_ROUND_UP 76 drivers/irqchip/irq-gic.c u32 saved_spi_enable[DIV_ROUND_UP(1020, 32)]; DIV_ROUND_UP 77 drivers/irqchip/irq-gic.c u32 saved_spi_active[DIV_ROUND_UP(1020, 32)]; DIV_ROUND_UP 78 drivers/irqchip/irq-gic.c u32 saved_spi_conf[DIV_ROUND_UP(1020, 16)]; DIV_ROUND_UP 79 drivers/irqchip/irq-gic.c u32 saved_spi_target[DIV_ROUND_UP(1020, 4)]; DIV_ROUND_UP 592 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(gic_irqs, 16); i++) DIV_ROUND_UP 596 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(gic_irqs, 4); i++) DIV_ROUND_UP 600 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++) DIV_ROUND_UP 604 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++) DIV_ROUND_UP 633 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(gic_irqs, 16); i++) DIV_ROUND_UP 637 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(gic_irqs, 4); i++) DIV_ROUND_UP 641 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(gic_irqs, 4); i++) DIV_ROUND_UP 645 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++) { DIV_ROUND_UP 652 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(gic_irqs, 32); i++) { DIV_ROUND_UP 679 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(32, 32); i++) DIV_ROUND_UP 683 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(32, 32); i++) DIV_ROUND_UP 687 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(32, 16); i++) DIV_ROUND_UP 709 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(32, 32); i++) { DIV_ROUND_UP 716 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(32, 32); i++) { DIV_ROUND_UP 723 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(32, 16); i++) DIV_ROUND_UP 726 drivers/irqchip/irq-gic.c for (i = 0; i < DIV_ROUND_UP(32, 4); i++) DIV_ROUND_UP 771 drivers/irqchip/irq-gic.c gic->saved_ppi_enable = __alloc_percpu(DIV_ROUND_UP(32, 32) * 4, DIV_ROUND_UP 776 drivers/irqchip/irq-gic.c gic->saved_ppi_active = __alloc_percpu(DIV_ROUND_UP(32, 32) * 4, DIV_ROUND_UP 781 drivers/irqchip/irq-gic.c gic->saved_ppi_conf = __alloc_percpu(DIV_ROUND_UP(32, 16) * 4, DIV_ROUND_UP 911 drivers/irqchip/irq-gic.c for (i = 8; i < DIV_ROUND_UP(gic_irqs, 4); i++) { DIV_ROUND_UP 181 drivers/irqchip/irq-imx-irqsteer.c data->irq_count = DIV_ROUND_UP(irqs_num, 64); DIV_ROUND_UP 159 drivers/irqchip/irq-mips-gic.c DIV_ROUND_UP(gic_shared_intrs, 64)); DIV_ROUND_UP 162 drivers/irqchip/irq-mips-gic.c DIV_ROUND_UP(gic_shared_intrs, 32)); DIV_ROUND_UP 221 drivers/irqchip/irq-pic32-evic.c nchips = DIV_ROUND_UP(NR_IRQS, 32); DIV_ROUND_UP 345 drivers/leds/leds-lm3601x.c led_cdev->max_brightness = DIV_ROUND_UP(led->torch_current_max, DIV_ROUND_UP 87 drivers/leds/trigger/ledtrig-cpu.c DIV_ROUND_UP(LED_FULL * active_cpus, total_cpus)); DIV_ROUND_UP 628 drivers/lightnvm/pblk-init.c lm->emeta_sec[1] = DIV_ROUND_UP( DIV_ROUND_UP 635 drivers/lightnvm/pblk-init.c lm->emeta_sec[2] = DIV_ROUND_UP(lm->dsec_per_line * sizeof(u64), DIV_ROUND_UP 639 drivers/lightnvm/pblk-init.c lm->emeta_sec[3] = DIV_ROUND_UP(l_mg->nr_lines * sizeof(u32), DIV_ROUND_UP 693 drivers/lightnvm/pblk-init.c blk_meta = DIV_ROUND_UP(sec_meta, geo->clba); DIV_ROUND_UP 982 drivers/lightnvm/pblk-init.c lm->min_blk_line += DIV_ROUND_UP(lm->smeta_sec + DIV_ROUND_UP 222 drivers/lightnvm/pblk-rl.c blk_meta = DIV_ROUND_UP(sec_meta, geo->clba); DIV_ROUND_UP 1337 drivers/lightnvm/pblk.h return DIV_ROUND_UP(100, pblk->op) * lm->blk_per_line; DIV_ROUND_UP 765 drivers/md/bcache/bcache.h DIV_ROUND_UP((size_t) (c)->sb.nbuckets, prios_per_bucket(c)) DIV_ROUND_UP 265 drivers/md/bcache/bset.h DIV_ROUND_UP(__set_bytes(i, k), block_bytes) DIV_ROUND_UP 83 drivers/md/bcache/movinggc.c DIV_ROUND_UP(KEY_SIZE(&io->w->key), PAGE_SECTORS)); DIV_ROUND_UP 149 drivers/md/bcache/movinggc.c * DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS), DIV_ROUND_UP 928 drivers/md/bcache/request.c DIV_ROUND_UP(s->insert_bio_sectors, PAGE_SECTORS), DIV_ROUND_UP 254 drivers/md/bcache/writeback.c DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS)); DIV_ROUND_UP 460 drivers/md/bcache/writeback.c DIV_ROUND_UP(KEY_SIZE(&w->key), DIV_ROUND_UP 607 drivers/md/dm-integrity.c unsigned n_bitmap_pages = DIV_ROUND_UP(ic->n_bitmap_blocks, PAGE_SIZE / BITMAP_BLOCK_SIZE); DIV_ROUND_UP 3949 drivers/md/dm-integrity.c ic->n_bitmap_blocks = DIV_ROUND_UP(n_bitmap_bits, BITMAP_BLOCK_SIZE * 8); DIV_ROUND_UP 4031 drivers/md/dm-integrity.c unsigned n_bitmap_pages = DIV_ROUND_UP(ic->n_bitmap_blocks, PAGE_SIZE / BITMAP_BLOCK_SIZE); DIV_ROUND_UP 938 drivers/md/dm-kcopyd.c reserve_pages = DIV_ROUND_UP(kc->sub_job_size << SECTOR_SHIFT, PAGE_SIZE); DIV_ROUND_UP 786 drivers/md/md-bitmap.c bytes = DIV_ROUND_UP(chunks, 8); DIV_ROUND_UP 790 drivers/md/md-bitmap.c num_pages = DIV_ROUND_UP(bytes, PAGE_SIZE); DIV_ROUND_UP 824 drivers/md/md-bitmap.c roundup(DIV_ROUND_UP(num_pages*4, 8), sizeof(unsigned long)), DIV_ROUND_UP 1107 drivers/md/md-bitmap.c node_offset = bitmap->cluster_slot * (DIV_ROUND_UP(store->bytes, PAGE_SIZE)); DIV_ROUND_UP 2092 drivers/md/md-bitmap.c bytes = DIV_ROUND_UP(bitmap->counts.chunks, 8); DIV_ROUND_UP 2095 drivers/md/md-bitmap.c space = DIV_ROUND_UP(bytes, 512); DIV_ROUND_UP 2104 drivers/md/md-bitmap.c bytes = DIV_ROUND_UP(chunks, 8); DIV_ROUND_UP 2123 drivers/md/md-bitmap.c pages = DIV_ROUND_UP(chunks, PAGE_COUNTER_RATIO); DIV_ROUND_UP 260 drivers/media/dvb-frontends/horus3a.c fc_lpf = (u8)DIV_ROUND_UP(symbol_rate * 47, 40000); DIV_ROUND_UP 262 drivers/media/dvb-frontends/horus3a.c fc_lpf = (u8)DIV_ROUND_UP(symbol_rate * 27, 40000) + 5; DIV_ROUND_UP 520 drivers/media/dvb-frontends/m88ds3103.c u16tmp = DIV_ROUND_UP(target_mclk, dev->cfg->ts_clk); DIV_ROUND_UP 522 drivers/media/dvb-frontends/m88ds3103.c u8tmp2 = DIV_ROUND_UP(u16tmp, 2) - 1; DIV_ROUND_UP 74 drivers/media/firewire/firedtv-fw.c #define N_PAGES DIV_ROUND_UP(N_PACKETS, PACKETS_PER_PAGE) DIV_ROUND_UP 56 drivers/media/i2c/aptina-pll.c mf_min = DIV_ROUND_UP(limits->m_min, pll->m); DIV_ROUND_UP 63 drivers/media/i2c/aptina-pll.c mf_max = min(mf_max, DIV_ROUND_UP(limits->n_max * limits->p1_max, div)); DIV_ROUND_UP 128 drivers/media/i2c/aptina-pll.c p1_min = max(limits->p1_min, DIV_ROUND_UP(limits->out_clock_min * div, DIV_ROUND_UP 138 drivers/media/i2c/aptina-pll.c mf_low = roundup(max(mf_min, DIV_ROUND_UP(pll->ext_clock * p1, DIV_ROUND_UP 248 drivers/media/i2c/mt9p031.c div = DIV_ROUND_UP(pdata->ext_freq, pdata->target_freq); DIV_ROUND_UP 389 drivers/media/i2c/ov2685.c return DIV_ROUND_UP(cycles, OV2685_XVCLK_FREQ / 1000 / 1000); DIV_ROUND_UP 754 drivers/media/i2c/ov7251.c wait_us = DIV_ROUND_UP(65536 * 1000, DIV_ROUND_UP 755 drivers/media/i2c/ov7251.c DIV_ROUND_UP(ov7251->xclk_freq, 1000)); DIV_ROUND_UP 198 drivers/media/i2c/smiapp-pll.c DIV_ROUND_UP(limits->max_pll_multiplier, mul)); DIV_ROUND_UP 203 drivers/media/i2c/smiapp-pll.c more_mul_min = DIV_ROUND_UP(limits->min_pll_op_freq_hz, DIV_ROUND_UP 210 drivers/media/i2c/smiapp-pll.c DIV_ROUND_UP(limits->min_pll_multiplier, mul)); DIV_ROUND_UP 286 drivers/media/i2c/smiapp-pll.c min_vt_div = DIV_ROUND_UP(op_pll->pix_clk_div * op_pll->sys_clk_div DIV_ROUND_UP 294 drivers/media/i2c/smiapp-pll.c DIV_ROUND_UP(pll->pll_op_clk_freq_hz, DIV_ROUND_UP 306 drivers/media/i2c/smiapp-pll.c DIV_ROUND_UP(pll->pll_op_clk_freq_hz, DIV_ROUND_UP 318 drivers/media/i2c/smiapp-pll.c DIV_ROUND_UP(min_vt_div, DIV_ROUND_UP 331 drivers/media/i2c/smiapp-pll.c DIV_ROUND_UP(max_vt_div, DIV_ROUND_UP 335 drivers/media/i2c/smiapp-pll.c DIV_ROUND_UP(pll->pll_op_clk_freq_hz, DIV_ROUND_UP 349 drivers/media/i2c/smiapp-pll.c uint16_t pix_div = DIV_ROUND_UP(vt_div, sys_div); DIV_ROUND_UP 370 drivers/media/i2c/smiapp-pll.c pll->vt.sys_clk_div = DIV_ROUND_UP(min_vt_div, best_pix_div); DIV_ROUND_UP 426 drivers/media/i2c/smiapp-pll.c / DIV_ROUND_UP(pll->bits_per_pixel, DIV_ROUND_UP 443 drivers/media/i2c/smiapp-pll.c DIV_ROUND_UP(pll->ext_clk_freq_hz, DIV_ROUND_UP 456 drivers/media/i2c/smiapp-pll.c DIV_ROUND_UP(mul * pll->ext_clk_freq_hz, DIV_ROUND_UP 225 drivers/media/i2c/smiapp/smiapp-core.c DIV_ROUND_UP(pll->op.sys_clk_freq_hz, 1000000 / 256 / 256)); DIV_ROUND_UP 676 drivers/media/i2c/tc358743.c return DIV_ROUND_UP(bps, bps_pr_lane); DIV_ROUND_UP 91 drivers/media/pci/intel/ipu3/ipu3-cio2.c return DIV_ROUND_UP(width, 50) * 64; DIV_ROUND_UP 186 drivers/media/pci/intel/ipu3/ipu3-cio2.c DIV_ROUND_UP(remaining, CIO2_PAGE_SIZE); DIV_ROUND_UP 355 drivers/media/pci/intel/ipu3/ipu3-cio2.c static const int FBPT_WIDTH = DIV_ROUND_UP(CIO2_MAX_LOPS, DIV_ROUND_UP 846 drivers/media/pci/intel/ipu3/ipu3-cio2.c unsigned int pages = DIV_ROUND_UP(vb->planes[0].length, CIO2_PAGE_SIZE); DIV_ROUND_UP 847 drivers/media/pci/intel/ipu3/ipu3-cio2.c unsigned int lops = DIV_ROUND_UP(pages + 1, entries_per_page); DIV_ROUND_UP 69 drivers/media/pci/pt3/pt3.h #define MAX_DESC_BUFS DIV_ROUND_UP(MAX_NUM_XFERS, DESCS_IN_PAGE) DIV_ROUND_UP 172 drivers/media/pci/pt3/pt3_dma.c DIV_ROUND_UP(adap->num_bufs * DATA_BUF_XFERS, DESCS_IN_PAGE); DIV_ROUND_UP 924 drivers/media/pci/tw686x/tw686x-video.c int max_rates = DIV_ROUND_UP(max_fps, 2); DIV_ROUND_UP 586 drivers/media/platform/coda/coda-bit.c size = (DIV_ROUND_UP(q_data->rect.width, 16) * DIV_ROUND_UP 587 drivers/media/platform/coda/coda-bit.c DIV_ROUND_UP(q_data->rect.height, 16)) * 3200 / 8 + 512; DIV_ROUND_UP 834 drivers/media/platform/coda/coda-bit.c mb_width = DIV_ROUND_UP(q_data_src->rect.width, 16); DIV_ROUND_UP 874 drivers/media/platform/coda/coda-bit.c mb_width = DIV_ROUND_UP(q_data_dst->width, 16); DIV_ROUND_UP 426 drivers/media/platform/coda/coda-h264.c *size = 5 + DIV_ROUND_UP(sps.pos, 8); DIV_ROUND_UP 252 drivers/media/platform/meson/ao-cec-g12a.c return DIV_ROUND_UP(100000000, p1 + p2); DIV_ROUND_UP 854 drivers/media/platform/omap3isp/ispccdc.c div = DIV_ROUND_UP(l3_ick, pipe->max_rate); DIV_ROUND_UP 400 drivers/media/platform/omap3isp/ispccp2.c vpclk_div = max_t(unsigned int, DIV_ROUND_UP(l3_ick, pipe->max_rate), DIV_ROUND_UP 219 drivers/media/platform/omap3isp/ispcsiphy.c reg |= (DIV_ROUND_UP(25 * csi2_ddrclk_khz, 2000000) - 1) DIV_ROUND_UP 222 drivers/media/platform/omap3isp/ispcsiphy.c reg |= (DIV_ROUND_UP(90 * csi2_ddrclk_khz, 1000000) + 3) DIV_ROUND_UP 1188 drivers/media/platform/omap3isp/isppreview.c minimum = DIV_ROUND_UP(cycles_per_request, 32); DIV_ROUND_UP 1197 drivers/media/platform/omap3isp/isppreview.c requests_per_frame = DIV_ROUND_UP(ifmt->width * 2, 256) * ifmt->height; DIV_ROUND_UP 577 drivers/media/platform/omap3isp/ispresizer.c minimum = DIV_ROUND_UP(cycles_per_request, granularity); DIV_ROUND_UP 586 drivers/media/platform/omap3isp/ispresizer.c requests_per_frame = DIV_ROUND_UP(res->crop.active.width * 2, 256) DIV_ROUND_UP 692 drivers/media/platform/qcom/venus/helpers.c y_meta_stride = ALIGN(DIV_ROUND_UP(width, 32), 64); DIV_ROUND_UP 693 drivers/media/platform/qcom/venus/helpers.c y_meta_plane = y_meta_stride * ALIGN(DIV_ROUND_UP(height, 8), 16); DIV_ROUND_UP 699 drivers/media/platform/qcom/venus/helpers.c uv_meta_stride = ALIGN(DIV_ROUND_UP(width / 2, 16), 64); DIV_ROUND_UP 700 drivers/media/platform/qcom/venus/helpers.c uv_meta_plane = uv_meta_stride * ALIGN(DIV_ROUND_UP(height / 2, 8), 16); DIV_ROUND_UP 2268 drivers/media/platform/s5p-jpeg/jpeg-core.c bitstream_size = DIV_ROUND_UP(ctx->out_q.size, 16); DIV_ROUND_UP 2272 drivers/media/platform/s5p-jpeg/jpeg-core.c bitstream_size = DIV_ROUND_UP(ctx->out_q.size, 32); DIV_ROUND_UP 69 drivers/media/platform/s5p-mfc/regs-mfc-v10.h + ((y * 64) + 1280) * DIV_ROUND_UP(x, 8)) DIV_ROUND_UP 73 drivers/media/platform/s5p-mfc/regs-mfc-v10.h + (DIV_ROUND_UP(x * y, 64) * 32)) DIV_ROUND_UP 77 drivers/media/platform/s5p-mfc/regs-mfc-v10.h + (DIV_ROUND_UP(x * y, 128) * 16)) DIV_ROUND_UP 84 drivers/media/platform/s5p-mfc/regs-mfc-v10.h + ((y * 128) + 1280) * DIV_ROUND_UP(x, 4)) DIV_ROUND_UP 379 drivers/media/platform/s5p-mfc/regs-mfc-v6.h (((((imw + 127) / 64) * 16) * DIV_ROUND_UP(imh, 64) * 256) + \ DIV_ROUND_UP 380 drivers/media/platform/s5p-mfc/regs-mfc-v6.h (DIV_ROUND_UP((mbw) * (mbh), 32) * 16)) DIV_ROUND_UP 111 drivers/media/platform/s5p-mfc/regs-mfc-v8.h ((DIV_ROUND_UP((mbw * 16), 64) * DIV_ROUND_UP((mbh * 16), 64) * 256) \ DIV_ROUND_UP 112 drivers/media/platform/s5p-mfc/regs-mfc-v8.h + (DIV_ROUND_UP((mbw) * (mbh), 32) * 16)) DIV_ROUND_UP 426 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c mbX = DIV_ROUND_UP(width, S5P_FIMV_NUM_PIXELS_IN_MB_ROW_V6); DIV_ROUND_UP 427 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c mbY = DIV_ROUND_UP(height, S5P_FIMV_NUM_PIXELS_IN_MB_COL_V6); DIV_ROUND_UP 20 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.h #define MB_WIDTH(x_size) DIV_ROUND_UP(x_size, 16) DIV_ROUND_UP 21 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.h #define MB_HEIGHT(y_size) DIV_ROUND_UP(y_size, 16) DIV_ROUND_UP 26 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.h #define S5P_MFC_LCU_WIDTH(x_size) DIV_ROUND_UP(x_size, 32) DIV_ROUND_UP 27 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.h #define S5P_MFC_LCU_HEIGHT(y_size) DIV_ROUND_UP(y_size, 32) DIV_ROUND_UP 30 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.h (DIV_ROUND_UP(x, 64) * DIV_ROUND_UP(y, 64) * 256 + 512) DIV_ROUND_UP 286 drivers/media/platform/vsp1/vsp1_video.c pipe->partitions = DIV_ROUND_UP(format->width, div_size); DIV_ROUND_UP 498 drivers/media/rc/ite-cir.c mdelay(DIV_ROUND_UP(remaining_us, 1000)); DIV_ROUND_UP 305 drivers/media/rc/lirc_dev.c txbuf[i] = DIV_ROUND_UP(raw[i].duration, 1000); DIV_ROUND_UP 547 drivers/media/rc/lirc_dev.c val = DIV_ROUND_UP(dev->min_timeout, 1000); DIV_ROUND_UP 579 drivers/media/rc/lirc_dev.c val = DIV_ROUND_UP(dev->timeout, 1000); DIV_ROUND_UP 183 drivers/media/rc/nuvoton-cir.c tolerance = DIV_ROUND_UP(count, 10); DIV_ROUND_UP 688 drivers/media/rc/nuvoton-cir.c val = DIV_ROUND_UP(raw[i].duration, 1000L) / SAMPLE_PERIOD; DIV_ROUND_UP 221 drivers/media/tuners/msi001.c uitmp = DIV_ROUND_UP(k_thresh, 4095); DIV_ROUND_UP 713 drivers/media/tuners/mt2063.c n0 = DIV_ROUND_UP(f_LO2 - d, f_LO1 - f_LO2); DIV_ROUND_UP 146 drivers/media/tuners/qm1d1b0004.c lpf = DIV_ROUND_UP(lpf_freq, 2000) - 2; DIV_ROUND_UP 809 drivers/media/usb/em28xx/em28xx-audio.c bytes_per_transfer = DIV_ROUND_UP(48000 * 2 * 2, 125 * interval); DIV_ROUND_UP 815 drivers/media/usb/em28xx/em28xx-audio.c num_urb = DIV_ROUND_UP(bytes_per_transfer, ep_size); DIV_ROUND_UP 833 drivers/media/usb/em28xx/em28xx-audio.c npackets = DIV_ROUND_UP(urb_size, ep_size); DIV_ROUND_UP 512 drivers/media/usb/uvc/uvc_driver.c format->bpp = DIV_ROUND_UP(8 * n, div); DIV_ROUND_UP 1604 drivers/media/usb/uvc/uvc_video.c npackets = DIV_ROUND_UP(size, psize); DIV_ROUND_UP 382 drivers/media/v4l2-core/v4l2-common.c DIV_ROUND_UP(aligned_width, hdiv) * DIV_ROUND_UP 383 drivers/media/v4l2-core/v4l2-common.c DIV_ROUND_UP(aligned_height, vdiv); DIV_ROUND_UP 397 drivers/media/v4l2-core/v4l2-common.c info->bpp[i] * DIV_ROUND_UP(aligned_width, hdiv); DIV_ROUND_UP 399 drivers/media/v4l2-core/v4l2-common.c plane->bytesperline * DIV_ROUND_UP(aligned_height, vdiv); DIV_ROUND_UP 436 drivers/media/v4l2-core/v4l2-common.c DIV_ROUND_UP(aligned_width, hdiv) * DIV_ROUND_UP 437 drivers/media/v4l2-core/v4l2-common.c DIV_ROUND_UP(aligned_height, vdiv); DIV_ROUND_UP 125 drivers/memory/atmel-ebi.c ncycles = DIV_ROUND_UP(val, clk_period_ns); DIV_ROUND_UP 155 drivers/memory/atmel-ebi.c ncycles = DIV_ROUND_UP(val, clk_period_ns); DIV_ROUND_UP 437 drivers/memory/emif.c val = max(min_tck->tWTR, DIV_ROUND_UP(timings->tWTR, t_ck)) - 1; DIV_ROUND_UP 441 drivers/memory/emif.c val = DIV_ROUND_UP(timings->tFAW, t_ck*4); DIV_ROUND_UP 443 drivers/memory/emif.c val = max(min_tck->tRRD, DIV_ROUND_UP(timings->tRRD, t_ck)); DIV_ROUND_UP 446 drivers/memory/emif.c val = DIV_ROUND_UP(timings->tRAS_min + timings->tRPab, t_ck) - 1; DIV_ROUND_UP 449 drivers/memory/emif.c val = max(min_tck->tRASmin, DIV_ROUND_UP(timings->tRAS_min, t_ck)); DIV_ROUND_UP 452 drivers/memory/emif.c val = max(min_tck->tWR, DIV_ROUND_UP(timings->tWR, t_ck)) - 1; DIV_ROUND_UP 455 drivers/memory/emif.c val = max(min_tck->tRCD, DIV_ROUND_UP(timings->tRCD, t_ck)) - 1; DIV_ROUND_UP 458 drivers/memory/emif.c val = max(min_tck->tRPab, DIV_ROUND_UP(timings->tRPab, t_ck)) - 1; DIV_ROUND_UP 470 drivers/memory/emif.c val = max(min_tck->tWTR, DIV_ROUND_UP(timings->tWTR, t_ck)) - 1; DIV_ROUND_UP 478 drivers/memory/emif.c val = DIV_ROUND_UP(timings->tFAW + 7500, 4 * t_ck) - 1; DIV_ROUND_UP 480 drivers/memory/emif.c val = DIV_ROUND_UP(timings->tRRD + 1875, t_ck); DIV_ROUND_UP 485 drivers/memory/emif.c val = DIV_ROUND_UP(timings->tRAS_min + timings->tRPab + 1875, t_ck); DIV_ROUND_UP 488 drivers/memory/emif.c val = DIV_ROUND_UP(timings->tRAS_min + 1875, t_ck); DIV_ROUND_UP 492 drivers/memory/emif.c val = max(min_tck->tWR, DIV_ROUND_UP(timings->tWR, t_ck)) - 1; DIV_ROUND_UP 495 drivers/memory/emif.c val = max(min_tck->tRCD, DIV_ROUND_UP(timings->tRCD + 1875, t_ck)); DIV_ROUND_UP 498 drivers/memory/emif.c val = max(min_tck->tRPab, DIV_ROUND_UP(timings->tRPab + 1875, t_ck)); DIV_ROUND_UP 514 drivers/memory/emif.c val = max(min_tck->tRTP, DIV_ROUND_UP(timings->tRTP, t_ck)) - 1; DIV_ROUND_UP 518 drivers/memory/emif.c val = DIV_ROUND_UP(addressing->tRFCab_ps + 10000, t_ck) - 1; DIV_ROUND_UP 524 drivers/memory/emif.c val = max(min_tck->tXP, DIV_ROUND_UP(timings->tXP, t_ck)) - 1; DIV_ROUND_UP 541 drivers/memory/emif.c val = DIV_ROUND_UP(addressing->tRFCab_ps, t_ck) - 1; DIV_ROUND_UP 547 drivers/memory/emif.c val = DIV_ROUND_UP(t_dqsck + 1000, t_ck) - 1; DIV_ROUND_UP 549 drivers/memory/emif.c val = DIV_ROUND_UP(t_dqsck, t_ck) - 1; DIV_ROUND_UP 553 drivers/memory/emif.c val = DIV_ROUND_UP(timings->tZQCS, t_ck) - 1; DIV_ROUND_UP 556 drivers/memory/emif.c val = DIV_ROUND_UP(timings->tCKESR, t_ck); DIV_ROUND_UP 563 drivers/memory/emif.c val = DIV_ROUND_UP(EMIF_T_PDLL_UL, 128) - 1; DIV_ROUND_UP 578 drivers/memory/emif.c val = DIV_ROUND_UP(T_ZQCL_DEFAULT_NS, T_ZQCS_DEFAULT_NS) - 1; DIV_ROUND_UP 581 drivers/memory/emif.c val = DIV_ROUND_UP(T_ZQINIT_DEFAULT_NS, T_ZQCL_DEFAULT_NS) - 1; DIV_ROUND_UP 677 drivers/memory/emif.c val = RL + DIV_ROUND_UP(timings->tDQSCK_max, t_ck) - 1; DIV_ROUND_UP 706 drivers/memory/emif.c phy |= ((cl + DIV_ROUND_UP(EMIF_PHY_TOTAL_READ_LATENCY_INTELLIPHY_PS, DIV_ROUND_UP 68 drivers/memory/pl172.c cycles = DIV_ROUND_UP(val * pl172->rate, NSEC_PER_MSEC) - start; DIV_ROUND_UP 144 drivers/memory/ti-aemif.c result = DIV_ROUND_UP((wanted * clk), NSEC_PER_MSEC) - 1; DIV_ROUND_UP 1275 drivers/memstick/core/ms_block.c DIV_ROUND_UP(data_size + page_offset, msb->page_size) * DIV_ROUND_UP 102 drivers/mfd/fsl-imx25-tsadc.c clk_div = DIV_ROUND_UP(clk_get_rate(tsadc->clk), 1750000); DIV_ROUND_UP 567 drivers/mfd/qcom-pm8xxx.c chip->num_blocks = DIV_ROUND_UP(data->num_irqs, 8); DIV_ROUND_UP 568 drivers/mfd/qcom-pm8xxx.c chip->num_masters = DIV_ROUND_UP(chip->num_blocks, 8); DIV_ROUND_UP 271 drivers/mfd/stmpe.c int numregs = DIV_ROUND_UP(stmpe->num_gpios * af_bits, 8); DIV_ROUND_UP 1086 drivers/mfd/stmpe.c int num = DIV_ROUND_UP(variant->num_irqs, 8); DIV_ROUND_UP 1145 drivers/mfd/stmpe.c int num = DIV_ROUND_UP(variant->num_irqs, 8); DIV_ROUND_UP 84 drivers/mfd/twl4030-irq.c .bytes_ixr = DIV_ROUND_UP(nbits, 8), \ DIV_ROUND_UP 86 drivers/mfd/twl4030-irq.c .bytes_edr = DIV_ROUND_UP((2*(nbits)), 8), \ DIV_ROUND_UP 633 drivers/misc/eeprom/at24.c num_addresses = DIV_ROUND_UP(byte_len, DIV_ROUND_UP 450 drivers/misc/genwqe/card_dev.c dma_map->nr_pages = DIV_ROUND_UP(vsize, PAGE_SIZE); DIV_ROUND_UP 296 drivers/misc/genwqe/card_utils.c sgl->nr_pages = DIV_ROUND_UP(sgl->fpage_offs + user_size, PAGE_SIZE); DIV_ROUND_UP 585 drivers/misc/genwqe/card_utils.c m->nr_pages = DIV_ROUND_UP(offs + size, PAGE_SIZE); DIV_ROUND_UP 550 drivers/misc/mei/mei_dev.h return DIV_ROUND_UP(length, MEI_SLOT_SIZE); DIV_ROUND_UP 563 drivers/misc/mei/mei_dev.h return DIV_ROUND_UP(sizeof(struct mei_msg_hdr) + length, MEI_SLOT_SIZE); DIV_ROUND_UP 61 drivers/misc/sgi-gru/gruhandles.h #define GRU_DS_BYTES_TO_AU(n) DIV_ROUND_UP(n, GRU_DSR_AU_BYTES) DIV_ROUND_UP 62 drivers/misc/sgi-gru/gruhandles.h #define GRU_CB_COUNT_TO_AU(n) DIV_ROUND_UP(n, GRU_CBR_AU_SIZE) DIV_ROUND_UP 806 drivers/misc/sgi-gru/grukservices.c clines = DIV_ROUND_UP(bytes, GRU_CACHE_LINE_BYTES); DIV_ROUND_UP 238 drivers/misc/vmw_vmci/vmci_queue_pair.c (DIV_ROUND_UP(_QPE.produce_size, PAGE_SIZE) + \ DIV_ROUND_UP 239 drivers/misc/vmw_vmci/vmci_queue_pair.c DIV_ROUND_UP(_QPE.consume_size, PAGE_SIZE) + 2)) DIV_ROUND_UP 254 drivers/misc/vmw_vmci/vmci_queue_pair.c for (i = 0; i < DIV_ROUND_UP(size, PAGE_SIZE) + 1; i++) { DIV_ROUND_UP 280 drivers/misc/vmw_vmci/vmci_queue_pair.c num_pages = DIV_ROUND_UP(size, PAGE_SIZE) + 1; DIV_ROUND_UP 533 drivers/misc/vmw_vmci/vmci_queue_pair.c num_pages = DIV_ROUND_UP(size, PAGE_SIZE) + 1; DIV_ROUND_UP 881 drivers/misc/vmw_vmci/vmci_queue_pair.c const u64 num_ppns = DIV_ROUND_UP(produce_size, PAGE_SIZE) + DIV_ROUND_UP 882 drivers/misc/vmw_vmci/vmci_queue_pair.c DIV_ROUND_UP(consume_size, PAGE_SIZE) + 2; DIV_ROUND_UP 1095 drivers/misc/vmw_vmci/vmci_queue_pair.c DIV_ROUND_UP(produce_size, PAGE_SIZE) + 1; DIV_ROUND_UP 1097 drivers/misc/vmw_vmci/vmci_queue_pair.c DIV_ROUND_UP(consume_size, PAGE_SIZE) + 1; DIV_ROUND_UP 1376 drivers/misc/vmw_vmci/vmci_queue_pair.c (DIV_ROUND_UP(entry->qp.produce_size, PAGE_SIZE) + 1); DIV_ROUND_UP 977 drivers/mmc/core/block.c unsigned int ms = DIV_ROUND_UP(data->timeout_ns, 1000000); DIV_ROUND_UP 982 drivers/mmc/core/block.c ms += DIV_ROUND_UP(data->timeout_clks, khz); DIV_ROUND_UP 1896 drivers/mmc/core/mmc.c unsigned int timeout_ms = DIV_ROUND_UP(card->ext_csd.sa_timeout, 10000); DIV_ROUND_UP 338 drivers/mmc/core/mmc_test.c unsigned long max_page_cnt = DIV_ROUND_UP(max_sz, PAGE_SIZE); DIV_ROUND_UP 339 drivers/mmc/core/mmc_test.c unsigned long min_page_cnt = DIV_ROUND_UP(min_sz, PAGE_SIZE); DIV_ROUND_UP 340 drivers/mmc/core/mmc_test.c unsigned long max_seg_page_cnt = DIV_ROUND_UP(max_seg_sz, PAGE_SIZE); DIV_ROUND_UP 151 drivers/mmc/core/sdio_ops.c nents = DIV_ROUND_UP(left_size, seg_size); DIV_ROUND_UP 668 drivers/mmc/host/alcor.c tmp_div = DIV_ROUND_UP(cfg->clk_src_freq, clock); DIV_ROUND_UP 672 drivers/mmc/host/alcor.c tmp_clock = DIV_ROUND_UP(cfg->clk_src_freq, tmp_div); DIV_ROUND_UP 722 drivers/mmc/host/atmel-mci.c unsigned int us = DIV_ROUND_UP(ns, 1000); DIV_ROUND_UP 725 drivers/mmc/host/atmel-mci.c return us * (DIV_ROUND_UP(host->bus_hz, 2000000)); DIV_ROUND_UP 1416 drivers/mmc/host/atmel-mci.c clkdiv = DIV_ROUND_UP(host->bus_hz, clock_min) - 2; DIV_ROUND_UP 1431 drivers/mmc/host/atmel-mci.c clkdiv = DIV_ROUND_UP(host->bus_hz, 2 * clock_min) - 1; DIV_ROUND_UP 2242 drivers/mmc/host/atmel-mci.c mmc->f_min = DIV_ROUND_UP(host->bus_hz, 512); DIV_ROUND_UP 642 drivers/mmc/host/bcm2835.c timeout = DIV_ROUND_UP(cmd->busy_timeout, 1000) * HZ + HZ; DIV_ROUND_UP 133 drivers/mmc/host/dw_mmc-rockchip.c (DIV_ROUND_UP((i) * 360, num_phases)) DIV_ROUND_UP 189 drivers/mmc/host/dw_mmc-rockchip.c i += DIV_ROUND_UP(20 * priv->num_phases, 360); DIV_ROUND_UP 1222 drivers/mmc/host/dw_mmc.c div = (host->bus_hz != clock) ? DIV_ROUND_UP(div, 2) : 0; DIV_ROUND_UP 518 drivers/mmc/host/meson-gx-mmc.c max_dly = DIV_ROUND_UP(clk_get_rate(host->mux_clk), DIV_ROUND_UP 386 drivers/mmc/host/mmci.c clk = DIV_ROUND_UP(host->mclk, desired) - 2; DIV_ROUND_UP 1904 drivers/mmc/host/mmci.c mmc->f_min = DIV_ROUND_UP(host->mclk, 257); DIV_ROUND_UP 1906 drivers/mmc/host/mmci.c mmc->f_min = DIV_ROUND_UP(host->mclk, 2046); DIV_ROUND_UP 1910 drivers/mmc/host/mmci.c mmc->f_min = DIV_ROUND_UP(host->mclk, 512); DIV_ROUND_UP 187 drivers/mmc/host/mmci_stm32_sdmmc.c clk = DIV_ROUND_UP(host->mclk, 2 * desired); DIV_ROUND_UP 2271 drivers/mmc/host/mtk-sd.c mmc->f_min = DIV_ROUND_UP(host->src_clk_freq, 4 * 255); DIV_ROUND_UP 2273 drivers/mmc/host/mtk-sd.c mmc->f_min = DIV_ROUND_UP(host->src_clk_freq, 4 * 4095); DIV_ROUND_UP 88 drivers/mmc/host/mvsdio.c tmout = DIV_ROUND_UP(data->timeout_ns, host->ns_per_clk); DIV_ROUND_UP 613 drivers/mmc/host/mvsdio.c u32 m = DIV_ROUND_UP(host->base_clock, ios->clock) - 1; DIV_ROUND_UP 740 drivers/mmc/host/mvsdio.c mmc->f_min = DIV_ROUND_UP(host->base_clock, MVSD_BASE_DIV_MAX); DIV_ROUND_UP 177 drivers/mmc/host/omap.c tick_ns = DIV_ROUND_UP(NSEC_PER_SEC, slot->fclk_freq); DIV_ROUND_UP 435 drivers/mmc/host/omap.c tick_ns = DIV_ROUND_UP(NSEC_PER_SEC, slot->fclk_freq); DIV_ROUND_UP 477 drivers/mmc/host/omap.c timeout = DIV_ROUND_UP(120 * USEC_PER_SEC, slot->fclk_freq); DIV_ROUND_UP 678 drivers/mmc/host/omap.c nwords = DIV_ROUND_UP(n, 2); DIV_ROUND_UP 525 drivers/mmc/host/omap_hsmmc.c dsor = DIV_ROUND_UP(clk_get_rate(host->fclk), ios->clock); DIV_ROUND_UP 200 drivers/mmc/host/sdhci-of-at91.c preset_div = DIV_ROUND_UP(real_gck_rate, 24000000) - 1; DIV_ROUND_UP 203 drivers/mmc/host/sdhci-of-at91.c preset_div = DIV_ROUND_UP(real_gck_rate, 50000000) - 1; DIV_ROUND_UP 206 drivers/mmc/host/sdhci-of-at91.c preset_div = DIV_ROUND_UP(real_gck_rate, 100000000) - 1; DIV_ROUND_UP 209 drivers/mmc/host/sdhci-of-at91.c preset_div = DIV_ROUND_UP(real_gck_rate, 120000000) - 1; DIV_ROUND_UP 212 drivers/mmc/host/sdhci-of-at91.c preset_div = DIV_ROUND_UP(real_gck_rate, 50000000) - 1; DIV_ROUND_UP 377 drivers/mmc/host/sdhci-omap.c DIV_ROUND_UP(13 * max_len, 16) * 4); DIV_ROUND_UP 379 drivers/mmc/host/sdhci-omap.c phase_delay = max_window + DIV_ROUND_UP(9 * max_len, 16) * 4; DIV_ROUND_UP 381 drivers/mmc/host/sdhci-omap.c phase_delay = max_window + DIV_ROUND_UP(8 * max_len, 16) * 4; DIV_ROUND_UP 383 drivers/mmc/host/sdhci-omap.c phase_delay = max_window + DIV_ROUND_UP(7 * max_len, 16) * 4; DIV_ROUND_UP 385 drivers/mmc/host/sdhci-omap.c phase_delay = max_window + DIV_ROUND_UP(5 * max_len, 16) * 4; DIV_ROUND_UP 387 drivers/mmc/host/sdhci-omap.c phase_delay = max_window + DIV_ROUND_UP(4 * max_len, 16) * 4; DIV_ROUND_UP 389 drivers/mmc/host/sdhci-omap.c phase_delay = max_window + DIV_ROUND_UP(3 * max_len, 16) * 4; DIV_ROUND_UP 630 drivers/mmc/host/sdhci-omap.c dsor = DIV_ROUND_UP(clk_get_rate(host->clk), clock); DIV_ROUND_UP 852 drivers/mmc/host/sdhci.c target_timeout = DIV_ROUND_UP(data->timeout_ns, 1000); DIV_ROUND_UP 1427 drivers/mmc/host/sdhci.c timeout += DIV_ROUND_UP(cmd->busy_timeout, 1000) * HZ + HZ; DIV_ROUND_UP 3937 drivers/mmc/host/sdhci.c DIV_ROUND_UP(host->ops->get_timeout_clock(host), DIV_ROUND_UP 525 drivers/mmc/host/sh_mmcif.c clkdiv = (fls(DIV_ROUND_UP(current_clk, clk) - 1) - 1) << 16; DIV_ROUND_UP 754 drivers/mmc/host/usdhi6rol0.c roundup_pow_of_two(DIV_ROUND_UP(host->imclk, rate)); DIV_ROUND_UP 1776 drivers/mtd/chips/cfi_cmdset_0001.c words = DIV_ROUND_UP(len - word_gap, map_bankwidth(map)); DIV_ROUND_UP 114 drivers/mtd/chips/gen_probe.c mapsize = sizeof(long) * DIV_ROUND_UP(max_chips, BITS_PER_LONG); DIV_ROUND_UP 982 drivers/mtd/devices/docg3.c nbpages = DIV_ROUND_UP(docg3->max_block + 1, 8 * DOC_LAYOUT_PAGE_SIZE); DIV_ROUND_UP 1814 drivers/mtd/devices/docg3.c bbt_nbpages = DIV_ROUND_UP(docg3->max_block + 1, DIV_ROUND_UP 333 drivers/mtd/devices/spear_smi.c prescale = DIV_ROUND_UP(rate, dev->clk_rate); DIV_ROUND_UP 1908 drivers/mtd/devices/st_spi_fsm.c clk_div = 2 * DIV_ROUND_UP(emi_freq, 2 * spi_freq); DIV_ROUND_UP 1925 drivers/mtd/devices/st_spi_fsm.c fsm->fifo_dir_delay = DIV_ROUND_UP(clk_div, 10); DIV_ROUND_UP 397 drivers/mtd/ftl.c nbam = DIV_ROUND_UP(part->BlocksPerUnit * sizeof(uint32_t) + DIV_ROUND_UP 321 drivers/mtd/mtdoops.c DIV_ROUND_UP(mtdoops_pages, DIV_ROUND_UP 27 drivers/mtd/nand/bbt.c unsigned int nwords = DIV_ROUND_UP(nblocks * bits_per_block, DIV_ROUND_UP 1201 drivers/mtd/nand/raw/atmel/nand-controller.c ncycles = DIV_ROUND_UP(conf->timings.sdr.tWP_min, mckperiodps); DIV_ROUND_UP 1222 drivers/mtd/nand/raw/atmel/nand-controller.c ncycles = DIV_ROUND_UP(timeps, mckperiodps); DIV_ROUND_UP 1240 drivers/mtd/nand/raw/atmel/nand-controller.c ncycles = DIV_ROUND_UP(timeps, mckperiodps); DIV_ROUND_UP 1250 drivers/mtd/nand/raw/atmel/nand-controller.c ncycles = DIV_ROUND_UP(conf->timings.sdr.tWC_min, mckperiodps); DIV_ROUND_UP 1276 drivers/mtd/nand/raw/atmel/nand-controller.c ncycles = DIV_ROUND_UP(timeps, mckperiodps); DIV_ROUND_UP 1282 drivers/mtd/nand/raw/atmel/nand-controller.c ncycles = DIV_ROUND_UP(conf->timings.sdr.tRHZ_max, mckperiodps); DIV_ROUND_UP 1304 drivers/mtd/nand/raw/atmel/nand-controller.c ncycles = DIV_ROUND_UP(conf->timings.sdr.tRP_min, mckperiodps); DIV_ROUND_UP 1320 drivers/mtd/nand/raw/atmel/nand-controller.c ncycles = DIV_ROUND_UP(conf->timings.sdr.tRC_min, mckperiodps); DIV_ROUND_UP 1340 drivers/mtd/nand/raw/atmel/nand-controller.c ncycles = DIV_ROUND_UP(conf->timings.sdr.tCLR_min, mckperiodps); DIV_ROUND_UP 1347 drivers/mtd/nand/raw/atmel/nand-controller.c ncycles = DIV_ROUND_UP(conf->timings.sdr.tADL_min, mckperiodps); DIV_ROUND_UP 1365 drivers/mtd/nand/raw/atmel/nand-controller.c ncycles = DIV_ROUND_UP(conf->timings.sdr.tAR_min, mckperiodps); DIV_ROUND_UP 1372 drivers/mtd/nand/raw/atmel/nand-controller.c ncycles = DIV_ROUND_UP(conf->timings.sdr.tRR_min, mckperiodps); DIV_ROUND_UP 1379 drivers/mtd/nand/raw/atmel/nand-controller.c ncycles = DIV_ROUND_UP(conf->timings.sdr.tWB_max, mckperiodps); DIV_ROUND_UP 316 drivers/mtd/nand/raw/atmel/pmecc.c nbytes = DIV_ROUND_UP(strength * fls(8 * req->ecc.sectorsize), DIV_ROUND_UP 1139 drivers/mtd/nand/raw/brcmnand/brcmnand.c ecc->bytes = DIV_ROUND_UP(ecc_level * 14, 8); DIV_ROUND_UP 2165 drivers/mtd/nand/raw/brcmnand/brcmnand.c brcmnand_wr_corr_thresh(host, DIV_ROUND_UP(chip->ecc.strength * 3, 4)); DIV_ROUND_UP 801 drivers/mtd/nand/raw/denali.c acc_clks = DIV_ROUND_UP(timings->tREA_max, t_x); DIV_ROUND_UP 810 drivers/mtd/nand/raw/denali.c re_2_we = DIV_ROUND_UP(timings->tRHW_min, t_x); DIV_ROUND_UP 819 drivers/mtd/nand/raw/denali.c re_2_re = DIV_ROUND_UP(timings->tRHZ_max, t_x); DIV_ROUND_UP 833 drivers/mtd/nand/raw/denali.c we_2_re = DIV_ROUND_UP(max(timings->tCCS_min, timings->tWHR_min), t_x); DIV_ROUND_UP 848 drivers/mtd/nand/raw/denali.c addr_2_data = DIV_ROUND_UP(timings->tADL_min, t_x); DIV_ROUND_UP 857 drivers/mtd/nand/raw/denali.c rdwr_en_hi = DIV_ROUND_UP(max(timings->tREH_min, timings->tWH_min), DIV_ROUND_UP 867 drivers/mtd/nand/raw/denali.c rdwr_en_lo = DIV_ROUND_UP(max(timings->tRP_min, timings->tWP_min), t_x); DIV_ROUND_UP 868 drivers/mtd/nand/raw/denali.c rdwr_en_lo_hi = DIV_ROUND_UP(max(timings->tRC_min, timings->tWC_min), DIV_ROUND_UP 880 drivers/mtd/nand/raw/denali.c cs_setup = max3((int)DIV_ROUND_UP(timings->tCS_min, t_x) - rdwr_en_lo, DIV_ROUND_UP 881 drivers/mtd/nand/raw/denali.c (int)DIV_ROUND_UP(timings->tCEA_max, t_x) - acc_clks, DIV_ROUND_UP 896 drivers/mtd/nand/raw/denali.c return DIV_ROUND_UP(strength * fls(step_size * 8), 16) * 2; DIV_ROUND_UP 285 drivers/mtd/nand/raw/fsmc_nand.c tims->tar = DIV_ROUND_UP(sdrt->tAR_min / 1000, hclkn) - 1; DIV_ROUND_UP 288 drivers/mtd/nand/raw/fsmc_nand.c tims->tclr = DIV_ROUND_UP(sdrt->tCLR_min / 1000, hclkn) - 1; DIV_ROUND_UP 293 drivers/mtd/nand/raw/fsmc_nand.c tims->thiz = DIV_ROUND_UP(thiz / 1000, hclkn); DIV_ROUND_UP 306 drivers/mtd/nand/raw/fsmc_nand.c tims->thold = DIV_ROUND_UP(thold / 1000, hclkn); DIV_ROUND_UP 313 drivers/mtd/nand/raw/fsmc_nand.c tims->twait = DIV_ROUND_UP(twait / 1000, hclkn) - 1; DIV_ROUND_UP 321 drivers/mtd/nand/raw/fsmc_nand.c tims->tset = DIV_ROUND_UP(tset / 1000, hclkn) - 1; DIV_ROUND_UP 1364 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c eccbytes = DIV_ROUND_UP(offset + eccbits, 8); DIV_ROUND_UP 88 drivers/mtd/nand/raw/lpc32xx_slc.c #define SLCTAC_CLOCKS(c, n, s) (min_t(u32, DIV_ROUND_UP(c, n) - 1, 0xF) << s) DIV_ROUND_UP 453 drivers/mtd/nand/raw/marvell_nand.c #define TO_CYCLES(ps, period_ns) (DIV_ROUND_UP(ps / 1000, period_ns)) DIV_ROUND_UP 491 drivers/mtd/nand/raw/marvell_nand.c udelay(DIV_ROUND_UP(ns, 1000)); DIV_ROUND_UP 2334 drivers/mtd/nand/raw/marvell_nand.c nfc_tmg.tRP = TO_CYCLES(DIV_ROUND_UP(sdr->tRC_min, 2), period_ns) - 1; DIV_ROUND_UP 2336 drivers/mtd/nand/raw/marvell_nand.c nfc_tmg.tWP = TO_CYCLES(DIV_ROUND_UP(sdr->tWC_min, 2), period_ns) - 1; DIV_ROUND_UP 206 drivers/mtd/nand/raw/meson_nand.c ecc_bytes = DIV_ROUND_UP(strength * fls(step_size * 8), 8); DIV_ROUND_UP 905 drivers/mtd/nand/raw/meson_nand.c delay_idle = DIV_ROUND_UP(PSEC_TO_NSEC(instr->delay_ns), DIV_ROUND_UP 1111 drivers/mtd/nand/raw/meson_nand.c div = DIV_ROUND_UP((timings->tRC_min / 1000), NFC_CLK_CYCLE); DIV_ROUND_UP 1116 drivers/mtd/nand/raw/meson_nand.c meson_chip->twb = DIV_ROUND_UP(PSEC_TO_NSEC(timings->tWB_max), DIV_ROUND_UP 1118 drivers/mtd/nand/raw/meson_nand.c meson_chip->tadl = DIV_ROUND_UP(PSEC_TO_NSEC(timings->tADL_min), DIV_ROUND_UP 1126 drivers/mtd/nand/raw/meson_nand.c bt_min = DIV_ROUND_UP(bt_min, 1000); DIV_ROUND_UP 1127 drivers/mtd/nand/raw/meson_nand.c bt_max = DIV_ROUND_UP(bt_max, 1000); DIV_ROUND_UP 527 drivers/mtd/nand/raw/mtk_nand.c tpoecs = DIV_ROUND_UP(tpoecs * rate, 1000000); DIV_ROUND_UP 531 drivers/mtd/nand/raw/mtk_nand.c tprecs = DIV_ROUND_UP(tprecs * rate, 1000000); DIV_ROUND_UP 538 drivers/mtd/nand/raw/mtk_nand.c tw2r = DIV_ROUND_UP(tw2r * rate, 1000000); DIV_ROUND_UP 539 drivers/mtd/nand/raw/mtk_nand.c tw2r = DIV_ROUND_UP(tw2r - 1, 2); DIV_ROUND_UP 543 drivers/mtd/nand/raw/mtk_nand.c twh = DIV_ROUND_UP(twh * rate, 1000000) - 1; DIV_ROUND_UP 558 drivers/mtd/nand/raw/mtk_nand.c twst = DIV_ROUND_UP(twst * rate, 1000000) - 1; DIV_ROUND_UP 568 drivers/mtd/nand/raw/mtk_nand.c trlt = DIV_ROUND_UP(trlt * rate, 1000000) - 1; DIV_ROUND_UP 581 drivers/mtd/nand/raw/mtk_nand.c tsel = DIV_ROUND_UP(tsel * rate, 1000000); DIV_ROUND_UP 654 drivers/mtd/nand/raw/mtk_nand.c end = DIV_ROUND_UP(offset + len, chip->ecc.size); DIV_ROUND_UP 924 drivers/mtd/nand/raw/mtk_nand.c end = DIV_ROUND_UP(data_offs + readlen, chip->ecc.size); DIV_ROUND_UP 1164 drivers/mtd/nand/raw/mtk_nand.c ecc_bytes = DIV_ROUND_UP(nand->ecc.strength * DIV_ROUND_UP 5805 drivers/mtd/nand/raw/nand_base.c mtd->bitflip_threshold = DIV_ROUND_UP(mtd->ecc_strength * 3, 4); DIV_ROUND_UP 117 drivers/mtd/nand/raw/nand_bch.c eccbytes = DIV_ROUND_UP(eccstrength * fls(8 * eccsize), 8); DIV_ROUND_UP 260 drivers/mtd/nand/raw/s3c2410.c result = DIV_ROUND_UP((wanted * clk), NS_IN_KHZ); DIV_ROUND_UP 827 drivers/mtd/nand/raw/s3c2410.c pdata->tacls = DIV_ROUND_UP(tacls, 1000); DIV_ROUND_UP 828 drivers/mtd/nand/raw/s3c2410.c pdata->twrph0 = DIV_ROUND_UP(timings->tWP_min, 1000); DIV_ROUND_UP 829 drivers/mtd/nand/raw/s3c2410.c pdata->twrph1 = DIV_ROUND_UP(timings->tCLH_min, 1000); DIV_ROUND_UP 1468 drivers/mtd/nand/raw/stm32_fmc2_nand.c timing = DIV_ROUND_UP(tar, hclkp) - 1; DIV_ROUND_UP 1472 drivers/mtd/nand/raw/stm32_fmc2_nand.c timing = DIV_ROUND_UP(tclr, hclkp) - 1; DIV_ROUND_UP 1486 drivers/mtd/nand/raw/stm32_fmc2_nand.c timing = DIV_ROUND_UP(twait, hclkp); DIV_ROUND_UP 1502 drivers/mtd/nand/raw/stm32_fmc2_nand.c timing = DIV_ROUND_UP(tset_mem, hclkp); DIV_ROUND_UP 1520 drivers/mtd/nand/raw/stm32_fmc2_nand.c timing = DIV_ROUND_UP(thold_mem, hclkp); DIV_ROUND_UP 1543 drivers/mtd/nand/raw/stm32_fmc2_nand.c timing = DIV_ROUND_UP(tset_att, hclkp); DIV_ROUND_UP 1582 drivers/mtd/nand/raw/stm32_fmc2_nand.c timing = DIV_ROUND_UP(thold_att, hclkp); DIV_ROUND_UP 1161 drivers/mtd/nand/raw/sunxi_nand.c i < DIV_ROUND_UP(data_offs + readlen, ecc->size); i++) { DIV_ROUND_UP 1185 drivers/mtd/nand/raw/sunxi_nand.c int nchunks = DIV_ROUND_UP(data_offs + readlen, nand->ecc.size); DIV_ROUND_UP 1253 drivers/mtd/nand/raw/sunxi_nand.c i < DIV_ROUND_UP(data_offs + data_len, ecc->size); i++) { DIV_ROUND_UP 1364 drivers/mtd/nand/raw/sunxi_nand.c u32 clk_cycles = DIV_ROUND_UP(duration, clk_period); DIV_ROUND_UP 1431 drivers/mtd/nand/raw/sunxi_nand.c min_clk_period = DIV_ROUND_UP(timings->tRR_min, 3); DIV_ROUND_UP 1447 drivers/mtd/nand/raw/sunxi_nand.c min_clk_period = DIV_ROUND_UP(timings->tRC_min, 2); DIV_ROUND_UP 1451 drivers/mtd/nand/raw/sunxi_nand.c min_clk_period = DIV_ROUND_UP(timings->tWC_min, 2); DIV_ROUND_UP 1455 drivers/mtd/nand/raw/sunxi_nand.c min_clk_period = DIV_ROUND_UP(timings->tWB_max, 20); DIV_ROUND_UP 1458 drivers/mtd/nand/raw/sunxi_nand.c min_clk_period = DIV_ROUND_UP(timings->tADL_min, 32); DIV_ROUND_UP 1461 drivers/mtd/nand/raw/sunxi_nand.c min_clk_period = DIV_ROUND_UP(timings->tWHR_min, 32); DIV_ROUND_UP 1464 drivers/mtd/nand/raw/sunxi_nand.c min_clk_period = DIV_ROUND_UP(timings->tRHW_min, 20); DIV_ROUND_UP 1487 drivers/mtd/nand/raw/sunxi_nand.c tADL = DIV_ROUND_UP(timings->tADL_min, min_clk_period) >> 3; DIV_ROUND_UP 1493 drivers/mtd/nand/raw/sunxi_nand.c tWHR = DIV_ROUND_UP(timings->tWHR_min, min_clk_period) >> 3; DIV_ROUND_UP 1519 drivers/mtd/nand/raw/sunxi_nand.c min_clk_period = DIV_ROUND_UP(min_clk_period, 1000); DIV_ROUND_UP 1680 drivers/mtd/nand/raw/sunxi_nand.c ecc->bytes = DIV_ROUND_UP(ecc->strength * fls(8 * 1024), 8); DIV_ROUND_UP 516 drivers/mtd/nand/raw/tango_nand.c ecc->bytes = DIV_ROUND_UP(ecc->strength * FIELD_ORDER, BITS_PER_BYTE); DIV_ROUND_UP 204 drivers/mtd/nand/raw/tegra_nand.c int bytes_per_step = DIV_ROUND_UP(BITS_PER_STEP_RS * chip->ecc.strength, DIV_ROUND_UP 231 drivers/mtd/nand/raw/tegra_nand.c int bytes_per_step = DIV_ROUND_UP(BITS_PER_STEP_BCH * chip->ecc.strength, DIV_ROUND_UP 784 drivers/mtd/nand/raw/tegra_nand.c unsigned int period = DIV_ROUND_UP(1000000, rate); DIV_ROUND_UP 787 drivers/mtd/nand/raw/tegra_nand.c val = DIV_ROUND_UP(max3(timings->tAR_min, timings->tRR_min, DIV_ROUND_UP 791 drivers/mtd/nand/raw/tegra_nand.c val = DIV_ROUND_UP(max(max(timings->tCS_min, timings->tCH_min), DIV_ROUND_UP 796 drivers/mtd/nand/raw/tegra_nand.c val = DIV_ROUND_UP(max(timings->tRP_min, timings->tREA_max) + 6000, DIV_ROUND_UP 800 drivers/mtd/nand/raw/tegra_nand.c reg |= TIMING_TWB(OFFSET(DIV_ROUND_UP(timings->tWB_max, period), 1)); DIV_ROUND_UP 801 drivers/mtd/nand/raw/tegra_nand.c reg |= TIMING_TWHR(OFFSET(DIV_ROUND_UP(timings->tWHR_min, period), 1)); DIV_ROUND_UP 802 drivers/mtd/nand/raw/tegra_nand.c reg |= TIMING_TWH(OFFSET(DIV_ROUND_UP(timings->tWH_min, period), 1)); DIV_ROUND_UP 803 drivers/mtd/nand/raw/tegra_nand.c reg |= TIMING_TWP(OFFSET(DIV_ROUND_UP(timings->tWP_min, period), 1)); DIV_ROUND_UP 804 drivers/mtd/nand/raw/tegra_nand.c reg |= TIMING_TRH(OFFSET(DIV_ROUND_UP(timings->tREH_min, period), 1)); DIV_ROUND_UP 808 drivers/mtd/nand/raw/tegra_nand.c val = DIV_ROUND_UP(timings->tADL_min, period); DIV_ROUND_UP 860 drivers/mtd/nand/raw/tegra_nand.c bytes_per_step = DIV_ROUND_UP(bits_per_step * strength_sel, DIV_ROUND_UP 1017 drivers/mtd/nand/raw/tegra_nand.c chip->ecc.bytes = DIV_ROUND_UP(bits_per_step, BITS_PER_BYTE); DIV_ROUND_UP 250 drivers/mtd/nand/raw/txx9ndfmc.c DIV_ROUND_UP((ns) * DIV_ROUND_UP(gbusclk, 1000), 1000000) DIV_ROUND_UP 771 drivers/mtd/spi-nor/cadence-quadspi.c ticks = DIV_ROUND_UP(ticks * ns_val, 1000000); DIV_ROUND_UP 787 drivers/mtd/spi-nor/cadence-quadspi.c tsclk = DIV_ROUND_UP(ref_clk_hz, cqspi->sclk); DIV_ROUND_UP 816 drivers/mtd/spi-nor/cadence-quadspi.c div = DIV_ROUND_UP(ref_clk_hz, 2 * cqspi->sclk) - 1; DIV_ROUND_UP 1409 drivers/mtd/spi-nor/cadence-quadspi.c cqspi->wr_delay = 5 * DIV_ROUND_UP(NSEC_PER_SEC, DIV_ROUND_UP 314 drivers/mtd/ssfdc.c DIV_ROUND_UP(ssfdc->map_len, MAX_PHYS_BLK_PER_ZONE)); DIV_ROUND_UP 759 drivers/net/can/kvaser_pciefd.c return DIV_ROUND_UP(packet_size, 4); DIV_ROUND_UP 1605 drivers/net/can/kvaser_pciefd.c pos += DIV_ROUND_UP(data_len, 4); DIV_ROUND_UP 598 drivers/net/can/rcar/rcar_canfd.c lwords = DIV_ROUND_UP(cf->len, sizeof(u32)); DIV_ROUND_UP 609 drivers/net/can/rcar/rcar_canfd.c lwords = DIV_ROUND_UP(cf->len, sizeof(u32)); DIV_ROUND_UP 164 drivers/net/ethernet/amazon/ena/ena_eth_com.h num_entries_needed += DIV_ROUND_UP(descs_after_first_entry, DIV_ROUND_UP 57 drivers/net/ethernet/atheros/ag71xx.c #define AG71XX_TX_RING_DS_PER_PKT DIV_ROUND_UP(AG71XX_TX_MTU_LEN, \ DIV_ROUND_UP 615 drivers/net/ethernet/aurora/nb8800.c ict = DIV_ROUND_UP(phy_clk, clk_get_rate(priv->clk)); DIV_ROUND_UP 1282 drivers/net/ethernet/aurora/nb8800.c clk_div = DIV_ROUND_UP(clk_get_rate(priv->clk), 2 * MAX_MDC_CLOCK); DIV_ROUND_UP 569 drivers/net/ethernet/broadcom/bcmsysport.c reg |= DIV_ROUND_UP(usecs * 1000, 8192) << RDMA_TIMEOUT_SHIFT; DIV_ROUND_UP 583 drivers/net/ethernet/broadcom/bcmsysport.c reg |= DIV_ROUND_UP(ec->tx_coalesce_usecs * 1000, 8192) << DIV_ROUND_UP 1087 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h #define CNIC_ILT_LINES DIV_ROUND_UP(CNIC_CID_MAX, ILT_PAGE_CIDS) DIV_ROUND_UP 1100 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h #define TM_ILT_LINES DIV_ROUND_UP(TM_ILT_SZ, TM_ILT_PAGE_SZ) DIV_ROUND_UP 1109 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h #define SRC_ILT_LINES DIV_ROUND_UP(SRC_ILT_SZ, SRC_ILT_PAGE_SZ) DIV_ROUND_UP 1668 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h #define L2_ILT_LINES(bp) (DIV_ROUND_UP(BNX2X_L2_CID_COUNT(bp),\ DIV_ROUND_UP 8654 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c line += DIV_ROUND_UP(bp->qm_cid_count * QM_QUEUES_PER_FUNC * 4, DIV_ROUND_UP 2039 drivers/net/ethernet/broadcom/bnxt/bnxt.c DIV_ROUND_UP(fw_health->polling_dsecs * HZ, DIV_ROUND_UP 4276 drivers/net/ethernet/broadcom/bnxt/bnxt.c tmo_count += DIV_ROUND_UP(timeout, HWRM_MIN_TIMEOUT); DIV_ROUND_UP 4886 drivers/net/ethernet/broadcom/bnxt/bnxt.c nr_ctxs = DIV_ROUND_UP(bp->rx_nr_rings, 64); DIV_ROUND_UP 5761 drivers/net/ethernet/broadcom/bnxt/bnxt.c cpu_to_le16(DIV_ROUND_UP(ring_grps, 64)); DIV_ROUND_UP 5807 drivers/net/ethernet/broadcom/bnxt/bnxt.c req->num_rsscos_ctxs = cpu_to_le16(DIV_ROUND_UP(ring_grps, 64)); DIV_ROUND_UP 6654 drivers/net/ethernet/broadcom/bnxt/bnxt.c ctx_pg->nr_pages = DIV_ROUND_UP(mem_size, BNXT_PAGE_SIZE); DIV_ROUND_UP 6667 drivers/net/ethernet/broadcom/bnxt/bnxt.c nr_tbls = DIV_ROUND_UP(ctx_pg->nr_pages, MAX_CTX_PAGES); DIV_ROUND_UP 6695 drivers/net/ethernet/broadcom/bnxt/bnxt.c rmem->nr_pages = DIV_ROUND_UP(mem_size, BNXT_PAGE_SIZE); DIV_ROUND_UP 7593 drivers/net/ethernet/broadcom/bnxt/bnxt.c nr_ctxs = DIV_ROUND_UP(bp->rx_nr_rings, 64); DIV_ROUND_UP 636 drivers/net/ethernet/broadcom/genet/bcmgenet.c reg |= DIV_ROUND_UP(usecs * 1000, 8192); DIV_ROUND_UP 146 drivers/net/ethernet/broadcom/sb1250-mac.c #define NUMCACHEBLKS(x) DIV_ROUND_UP(x, SMP_CACHE_BYTES) DIV_ROUND_UP 13473 drivers/net/ethernet/broadcom/tg3.c num_pkts = DIV_ROUND_UP(val, TG3_TSO_MSS); DIV_ROUND_UP 434 drivers/net/ethernet/cadence/macb_main.c ferr = DIV_ROUND_UP(ferr, rate / 100000); DIV_ROUND_UP 1831 drivers/net/ethernet/cadence/macb_main.c desc_cnt = DIV_ROUND_UP((skb_headlen(skb) - hdrlen), bp->max_tx_length) + 1; DIV_ROUND_UP 1833 drivers/net/ethernet/cadence/macb_main.c desc_cnt = DIV_ROUND_UP(skb_headlen(skb), bp->max_tx_length); DIV_ROUND_UP 1837 drivers/net/ethernet/cadence/macb_main.c desc_cnt += DIV_ROUND_UP(frag_size, bp->max_tx_length); DIV_ROUND_UP 527 drivers/net/ethernet/cavium/liquidio/octeon_droq.c return DIV_ROUND_UP(total_len, buf_size); DIV_ROUND_UP 69 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h (1 + DIV_ROUND_UP((3 * MAX_SKB_FRAGS) / 2 + (MAX_SKB_FRAGS & 1), 8)) DIV_ROUND_UP 2633 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c return DIV_ROUND_UP(utxq_info->ntxq, 4); DIV_ROUND_UP 2644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c return ciq ? DIV_ROUND_UP(urxq_info->nciq, 4) : DIV_ROUND_UP 2645 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c DIV_ROUND_UP(urxq_info->nrxq, 4); DIV_ROUND_UP 2670 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c eth_entries = DIV_ROUND_UP(adap->sge.ethqsets, 4); DIV_ROUND_UP 2671 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c ctrl_entries = DIV_ROUND_UP(MAX_CTRL_QUEUES, 4); DIV_ROUND_UP 3012 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c return DIV_ROUND_UP(adap->sge.ethqsets, 4) + DIV_ROUND_UP 3014 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c DIV_ROUND_UP(MAX_CTRL_QUEUES, 4) + 1; DIV_ROUND_UP 96 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c txpkt->len = htonl(DIV_ROUND_UP(sizeof(*abort_req), 16)); DIV_ROUND_UP 111 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c txpkt->len = htonl(DIV_ROUND_UP(sizeof(*abort_rpl), 16)); DIV_ROUND_UP 129 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c txpkt->len = htonl(DIV_ROUND_UP(sizeof(*req), 16)); DIV_ROUND_UP 3644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ncmds = DIV_ROUND_UP(sgt->nents, HMA_MAX_ADDR_IN_CMD); DIV_ROUND_UP 4718 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c DIV_ROUND_UP(adap->tids.nftids, 3); DIV_ROUND_UP 4720 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c DIV_ROUND_UP(adap->tids.nftids, 3); DIV_ROUND_UP 60 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h (w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(sizeof(*w), 16)) | \ DIV_ROUND_UP 73 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h (w)->wr.wr_mid = htonl(FW_WR_LEN16_V(DIV_ROUND_UP(wrlen, 16)) | \ DIV_ROUND_UP 775 drivers/net/ethernet/chelsio/cxgb4/sge.c return DIV_ROUND_UP(n, 8); DIV_ROUND_UP 822 drivers/net/ethernet/chelsio/cxgb4/sge.c return DIV_ROUND_UP(skb->len + hdrlen, sizeof(__be64)); DIV_ROUND_UP 1467 drivers/net/ethernet/chelsio/cxgb4/sge.c wr_mid = FW_WR_LEN16_V(DIV_ROUND_UP(flits, 2)); DIV_ROUND_UP 1675 drivers/net/ethernet/chelsio/cxgb4/sge.c return DIV_ROUND_UP(skb->len + sizeof(struct cpl_tx_pkt), DIV_ROUND_UP 1781 drivers/net/ethernet/chelsio/cxgb4/sge.c wr_mid = FW_WR_LEN16_V(DIV_ROUND_UP(flits, 2)); DIV_ROUND_UP 1800 drivers/net/ethernet/chelsio/cxgb4/sge.c WARN_ON(DIV_ROUND_UP(T4VF_ETHTXQ_MAX_HDR, TXD_PER_EQ_UNIT) > 1); DIV_ROUND_UP 2062 drivers/net/ethernet/chelsio/cxgb4/sge.c ndesc = DIV_ROUND_UP(skb->len, sizeof(struct tx_desc)); DIV_ROUND_UP 2187 drivers/net/ethernet/chelsio/cxgb4/sge.c return DIV_ROUND_UP(skb->len, 8); DIV_ROUND_UP 2541 drivers/net/ethernet/chelsio/cxgb4/sge.c ndesc = flits_to_desc(DIV_ROUND_UP(len, 8)); DIV_ROUND_UP 3186 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c u32 exprom_header_buf[DIV_ROUND_UP(sizeof(struct exprom_header), DIV_ROUND_UP 3695 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c i = DIV_ROUND_UP(size, sf_sec_size); /* # of sectors spanned */ DIV_ROUND_UP 7980 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c size_t len16 = DIV_ROUND_UP(offsetof(struct fw_vi_mac_cmd, DIV_ROUND_UP 8068 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c size_t len16 = DIV_ROUND_UP(offsetof(struct fw_vi_mac_cmd, DIV_ROUND_UP 10160 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c i = DIV_ROUND_UP(FLASH_CFG_MAX_SIZE, /* # of sectors spanned */ DIV_ROUND_UP 2056 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c int eth_entries = DIV_ROUND_UP(adapter->sge.ethqsets, QPL); DIV_ROUND_UP 2152 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c return DIV_ROUND_UP(adapter->sge.ethqsets, QPL) + 1 + DIV_ROUND_UP 2209 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c int eth_entries = DIV_ROUND_UP(adapter->sge.ethqsets, QPL); DIV_ROUND_UP 2298 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c return DIV_ROUND_UP(adapter->sge.ethqsets, QPL) + 1 + DIV_ROUND_UP 114 drivers/net/ethernet/chelsio/cxgb4vf/sge.c ETHTXQ_STOP_THRES = 1 + DIV_ROUND_UP(ETHTXQ_MAX_FLITS, TXD_PER_EQ_UNIT), DIV_ROUND_UP 822 drivers/net/ethernet/chelsio/cxgb4vf/sge.c return DIV_ROUND_UP(flits, TXD_PER_EQ_UNIT); DIV_ROUND_UP 861 drivers/net/ethernet/chelsio/cxgb4vf/sge.c return DIV_ROUND_UP(skb->len + sizeof(struct cpl_tx_pkt), DIV_ROUND_UP 1244 drivers/net/ethernet/chelsio/cxgb4vf/sge.c wr_mid = FW_WR_LEN16_V(DIV_ROUND_UP(flits, 2)); DIV_ROUND_UP 1265 drivers/net/ethernet/chelsio/cxgb4vf/sge.c BUG_ON(DIV_ROUND_UP(ETHTXQ_MAX_HDR, TXD_PER_EQ_UNIT) > 1); DIV_ROUND_UP 638 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c len16 = DIV_ROUND_UP(offsetof(struct fw_params_cmd, DIV_ROUND_UP 676 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c len16 = DIV_ROUND_UP(offsetof(struct fw_params_cmd, DIV_ROUND_UP 1544 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c size_t len16 = DIV_ROUND_UP(offsetof(struct fw_vi_mac_cmd, DIV_ROUND_UP 1628 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c size_t len16 = DIV_ROUND_UP(offsetof(struct fw_vi_mac_cmd, DIV_ROUND_UP 1696 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c size_t len16 = DIV_ROUND_UP(offsetof(struct fw_vi_mac_cmd, DIV_ROUND_UP 1741 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c size_t len16 = DIV_ROUND_UP(offsetof(struct fw_vi_mac_cmd, DIV_ROUND_UP 1783 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c size_t len16 = DIV_ROUND_UP(len, 16); DIV_ROUND_UP 65 drivers/net/ethernet/cisco/enic/vnic_rq.h DIV_ROUND_UP(entries, VNIC_RQ_BUF_BLK_ENTRIES(entries)) DIV_ROUND_UP 77 drivers/net/ethernet/cisco/enic/vnic_wq.h DIV_ROUND_UP(entries, VNIC_WQ_BUF_BLK_ENTRIES(entries)) DIV_ROUND_UP 28 drivers/net/ethernet/ezchip/nps_enet.c u32 i, len = DIV_ROUND_UP(frame_len, sizeof(u32)); DIV_ROUND_UP 383 drivers/net/ethernet/ezchip/nps_enet.c u32 i, len = DIV_ROUND_UP(length, sizeof(u32)); DIV_ROUND_UP 1095 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c DIV_ROUND_UP(sizeof(struct qman_fq), DIV_ROUND_UP 2106 drivers/net/ethernet/freescale/fec_main.c mii_speed = DIV_ROUND_UP(clk_get_rate(fep->clk_ipg), 5000000); DIV_ROUND_UP 2129 drivers/net/ethernet/freescale/fec_main.c holdtime = DIV_ROUND_UP(clk_get_rate(fep->clk_ipg), 100000000) - 1; DIV_ROUND_UP 2782 drivers/net/ethernet/freescale/fman/fman.c fman->dts_params.clk_freq = DIV_ROUND_UP(clk_rate, 1000000); DIV_ROUND_UP 217 drivers/net/ethernet/freescale/gianfar_ethtool.c return DIV_ROUND_UP(usecs * 1000, count); DIV_ROUND_UP 718 drivers/net/ethernet/hisilicon/hisi_femac.c time_ms = DIV_ROUND_UP(time_us, 1000); DIV_ROUND_UP 1065 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c time_ms = DIV_ROUND_UP(time_us, 1000); DIV_ROUND_UP 29 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c #define hns3_tx_bd_count(S) DIV_ROUND_UP(S, HNS3_MAX_BD_SIZE) DIV_ROUND_UP 9664 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c cmd_num = DIV_ROUND_UP(regs_num + nodata_num, DIV_ROUND_UP 9718 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c cmd_num = DIV_ROUND_UP(regs_num + nodata_len, DIV_ROUND_UP 548 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h #define MAX_KEY_DWORDS DIV_ROUND_UP(MAX_KEY_LENGTH / 8, 4) DIV_ROUND_UP 134 drivers/net/ethernet/ibm/emac/mal.h return DIV_ROUND_UP(len, MAL_MAX_TX_SIZE); DIV_ROUND_UP 1225 drivers/net/ethernet/ibm/ibmveth.c DIV_ROUND_UP(skb->len - hdr_len, DIV_ROUND_UP 1036 drivers/net/ethernet/intel/e1000e/ich8lan.c value = DIV_ROUND_UP(value, BIT(5)); DIV_ROUND_UP 5847 drivers/net/ethernet/intel/e1000e/netdev.c count += DIV_ROUND_UP(len, adapter->tx_fifo_limit); DIV_ROUND_UP 5851 drivers/net/ethernet/intel/e1000e/netdev.c count += DIV_ROUND_UP(skb_frag_size(&skb_shinfo(skb)->frags[f]), DIV_ROUND_UP 5916 drivers/net/ethernet/intel/e1000e/netdev.c DIV_ROUND_UP(PAGE_SIZE, DIV_ROUND_UP 438 drivers/net/ethernet/intel/fm10k/fm10k.h #define TXD_USE_COUNT(S) DIV_ROUND_UP((S), FM10K_MAX_DATA_PER_TXD) DIV_ROUND_UP 1748 drivers/net/ethernet/intel/fm10k/fm10k_main.c int rqpv = DIV_ROUND_UP(rxr_remaining, q_vectors - v_idx); DIV_ROUND_UP 1749 drivers/net/ethernet/intel/fm10k/fm10k_main.c int tqpv = DIV_ROUND_UP(txr_remaining, q_vectors - v_idx); DIV_ROUND_UP 3293 drivers/net/ethernet/intel/i40e/i40e_main.c rx_ctx.dbuff = DIV_ROUND_UP(ring->rx_buf_len, DIV_ROUND_UP 4215 drivers/net/ethernet/intel/i40e/i40e_main.c num_ringpairs = DIV_ROUND_UP(qp_remaining, q_vectors - v_start); DIV_ROUND_UP 1179 drivers/net/ethernet/intel/i40e/i40e_txrx.c itr += DIV_ROUND_UP(avg_wire_size, i40e_itr_divisor(q_vector)) * DIV_ROUND_UP 589 drivers/net/ethernet/intel/iavf/iavf_txrx.c itr += DIV_ROUND_UP(avg_wire_size, iavf_itr_divisor(q_vector)) * DIV_ROUND_UP 1370 drivers/net/ethernet/intel/ice/ice_lib.c tx_rings_per_v = DIV_ROUND_UP(tx_rings_rem, q_vectors - v_id); DIV_ROUND_UP 1386 drivers/net/ethernet/intel/ice/ice_lib.c rx_rings_per_v = DIV_ROUND_UP(rx_rings_rem, q_vectors - v_id); DIV_ROUND_UP 1211 drivers/net/ethernet/intel/ice/ice_sched.c num = DIV_ROUND_UP(num, hw->max_children[i]); DIV_ROUND_UP 1144 drivers/net/ethernet/intel/ice/ice_txrx.c itr += DIV_ROUND_UP(17 * (avg_pkt_size + 24), DIV_ROUND_UP 1148 drivers/net/ethernet/intel/ice/ice_txrx.c itr += DIV_ROUND_UP(34 * (avg_pkt_size + 24), DIV_ROUND_UP 1152 drivers/net/ethernet/intel/ice/ice_txrx.c itr += DIV_ROUND_UP(43 * (avg_pkt_size + 24), DIV_ROUND_UP 1156 drivers/net/ethernet/intel/ice/ice_txrx.c itr += DIV_ROUND_UP(68 * (avg_pkt_size + 24), DIV_ROUND_UP 1160 drivers/net/ethernet/intel/ice/ice_txrx.c itr += DIV_ROUND_UP(85 * (avg_pkt_size + 24), DIV_ROUND_UP 1166 drivers/net/ethernet/intel/ice/ice_txrx.c itr += DIV_ROUND_UP(170 * (avg_pkt_size + 24), DIV_ROUND_UP 747 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c res = DIV_ROUND_UP(res, 2); DIV_ROUND_UP 186 drivers/net/ethernet/intel/igb/igb.h #define TXD_USE_COUNT(S) DIV_ROUND_UP((S), IGB_MAX_DATA_PER_TXD) DIV_ROUND_UP 1346 drivers/net/ethernet/intel/igb/igb_main.c int rqpv = DIV_ROUND_UP(rxr_remaining, q_vectors - v_idx); DIV_ROUND_UP 1347 drivers/net/ethernet/intel/igb/igb_main.c int tqpv = DIV_ROUND_UP(txr_remaining, q_vectors - v_idx); DIV_ROUND_UP 2303 drivers/net/ethernet/intel/igb/igb_main.c min_rx_space = DIV_ROUND_UP(MAX_JUMBO_FRAME_SIZE, 1024); DIV_ROUND_UP 2312 drivers/net/ethernet/intel/igb/igb_main.c min_tx_space = DIV_ROUND_UP(min_tx_space, 512); DIV_ROUND_UP 177 drivers/net/ethernet/intel/igc/igc.h #define TXD_USE_COUNT(S) DIV_ROUND_UP((S), IGC_MAX_DATA_PER_TXD) DIV_ROUND_UP 3633 drivers/net/ethernet/intel/igc/igc_main.c int rqpv = DIV_ROUND_UP(rxr_remaining, q_vectors - v_idx); DIV_ROUND_UP 3634 drivers/net/ethernet/intel/igc/igc_main.c int tqpv = DIV_ROUND_UP(txr_remaining, q_vectors - v_idx); DIV_ROUND_UP 206 drivers/net/ethernet/intel/ixgbe/ixgbe.h #define TXD_USE_COUNT(S) DIV_ROUND_UP((S), IXGBE_MAX_DATA_PER_TXD) DIV_ROUND_UP 569 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c first->gso_segs = DIV_ROUND_UP(skb->len - *hdr_len, DIV_ROUND_UP 1079 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c int rqpv = DIV_ROUND_UP(rxr_remaining, q_vectors - v_idx); DIV_ROUND_UP 1080 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c int tqpv = DIV_ROUND_UP(txr_remaining, q_vectors - v_idx); DIV_ROUND_UP 1081 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c int xqpv = DIV_ROUND_UP(xdp_remaining, q_vectors - v_idx); DIV_ROUND_UP 1650 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c skb_shinfo(skb)->gso_size = DIV_ROUND_UP((skb->len - hdr_len), DIV_ROUND_UP 2390 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c total_rx_packets += DIV_ROUND_UP(ddp_bytes, DIV_ROUND_UP 2653 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c itr += DIV_ROUND_UP(avg_wire_size, DIV_ROUND_UP 2662 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c itr += DIV_ROUND_UP(avg_wire_size, DIV_ROUND_UP 23 drivers/net/ethernet/intel/ixgbevf/ixgbevf.h #define TXD_USE_COUNT(S) DIV_ROUND_UP((S), IXGBE_MAX_DATA_PER_TXD) DIV_ROUND_UP 2861 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c int rqpv = DIV_ROUND_UP(rxr_remaining, q_vectors); DIV_ROUND_UP 2875 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c int rqpv = DIV_ROUND_UP(rxr_remaining, q_vectors); DIV_ROUND_UP 2876 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c int tqpv = DIV_ROUND_UP(txr_remaining, q_vectors); DIV_ROUND_UP 2877 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c int xqpv = DIV_ROUND_UP(xdp_remaining, q_vectors); DIV_ROUND_UP 1080 drivers/net/ethernet/mediatek/mtk_eth_soc.c nfrags += DIV_ROUND_UP(skb_frag_size(frag), DIV_ROUND_UP 616 drivers/net/ethernet/mellanox/mlx4/alloc.c buf->nbufs = DIV_ROUND_UP(size, PAGE_SIZE); DIV_ROUND_UP 428 drivers/net/ethernet/mellanox/mlx4/icm.c num_icm = DIV_ROUND_UP(nobj, obj_per_chunk); DIV_ROUND_UP 127 drivers/net/ethernet/mellanox/mlx5/core/alloc.c buf->npages = DIV_ROUND_UP(size, PAGE_SIZE); DIV_ROUND_UP 145 drivers/net/ethernet/mellanox/mlx5/core/cmd.c return DIV_ROUND_UP(blen, MLX5_CMD_DATA_BLOCK_SIZE); DIV_ROUND_UP 190 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c DIV_ROUND_UP(TRACER_BUFFER_PAGE_NUM, 2)); DIV_ROUND_UP 204 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c DIV_ROUND_UP(TRACER_BUFFER_PAGE_NUM, 2)); DIV_ROUND_UP 149 drivers/net/ethernet/mellanox/mlx5/core/en.h (DIV_ROUND_UP(MLX5E_UMR_WQE_INLINE_SZ, MLX5_SEND_WQE_BB)) DIV_ROUND_UP 218 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c wi->num_wqebbs = DIV_ROUND_UP(ds_count, MLX5_SEND_WQEBB_NUM_DS); DIV_ROUND_UP 47 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h DIV_ROUND_UP(MLX5E_XDP_INLINE_WQE_SZ_THRSD, MLX5_SEND_WQE_DS) DIV_ROUND_UP 173 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h u16 ds_cnt = DIV_ROUND_UP(ds_len, MLX5_SEND_WQE_DS); DIV_ROUND_UP 17 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h (DIV_ROUND_UP(MLX5E_KTLS_STATIC_UMR_WQE_SZ, MLX5_SEND_WQE_BB)) DIV_ROUND_UP 23 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h (DIV_ROUND_UP(MLX5E_KTLS_PROGRESS_WQE_SZ, MLX5_SEND_WQE_BB)) DIV_ROUND_UP 31 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h (DIV_ROUND_UP(sizeof(struct mlx5e_dump_wqe), MLX5_SEND_WQE_BB)) DIV_ROUND_UP 105 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h (nfrags + DIV_ROUND_UP(sync_len, sq->hw_mtu)); DIV_ROUND_UP 60 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c DIV_ROUND_UP(MLX5E_KTLS_STATIC_UMR_WQE_SZ, MLX5_SEND_WQE_DS) DIV_ROUND_UP 93 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c DIV_ROUND_UP(MLX5E_KTLS_PROGRESS_WQE_SZ, MLX5_SEND_WQE_DS) DIV_ROUND_UP 171 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c skb_shinfo(nskb)->gso_segs = DIV_ROUND_UP(data_len, mss); DIV_ROUND_UP 238 drivers/net/ethernet/mellanox/mlx5/core/en_main.c u8 ds_cnt = DIV_ROUND_UP(MLX5E_UMR_WQE_INLINE_SZ, MLX5_SEND_WQE_DS); DIV_ROUND_UP 993 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c skb_shinfo(skb)->gso_size = DIV_ROUND_UP(cqe_bcnt, lro_num_seg); DIV_ROUND_UP 314 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c ds_cnt_inl = DIV_ROUND_UP(ihs - INL_HDR_START_SZ, MLX5_SEND_WQE_DS); DIV_ROUND_UP 318 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); DIV_ROUND_UP 635 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c ds_cnt_inl = DIV_ROUND_UP(ihs - INL_HDR_START_SZ, MLX5_SEND_WQE_DS); DIV_ROUND_UP 639 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); DIV_ROUND_UP 2783 drivers/net/ethernet/mellanox/mlxsw/reg.h return DIV_ROUND_UP(block_num, 4); DIV_ROUND_UP 886 drivers/net/ethernet/mellanox/mlxsw/spectrum.c delay = mlxsw_sp_bytes_cells(mlxsw_sp, DIV_ROUND_UP(delay, DIV_ROUND_UP 96 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c bit_count = DIV_ROUND_UP(size, part->indexes_per_usage_bit); DIV_ROUND_UP 138 drivers/net/ethernet/mellanox/mlxsw/spectrum2_kvdl.c bit_count = DIV_ROUND_UP(size, part->indexes_per_usage_bit); DIV_ROUND_UP 130 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c return DIV_ROUND_UP(bytes, mlxsw_sp->sb->cell_size); DIV_ROUND_UP 349 drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c prob = DIV_ROUND_UP(prob, 1 << 16); DIV_ROUND_UP 350 drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c prob = DIV_ROUND_UP(prob, 1 << 16); DIV_ROUND_UP 74 drivers/net/ethernet/mscc/ocelot_police.c cir = DIV_ROUND_UP(cir, 100); DIV_ROUND_UP 76 drivers/net/ethernet/mscc/ocelot_police.c cbs = DIV_ROUND_UP(cbs, 4096); DIV_ROUND_UP 88 drivers/net/ethernet/mscc/ocelot_police.c pir = DIV_ROUND_UP(pir, 100); DIV_ROUND_UP 90 drivers/net/ethernet/mscc/ocelot_police.c pbs = DIV_ROUND_UP(pbs, 4096); DIV_ROUND_UP 98 drivers/net/ethernet/mscc/ocelot_police.c pir = DIV_ROUND_UP(pir, 100); DIV_ROUND_UP 495 drivers/net/ethernet/neterion/s2io.c #define TXD_MEM_PAGE_CNT(len, per_each) DIV_ROUND_UP(len, per_each) DIV_ROUND_UP 320 drivers/net/ethernet/netronome/nfp/abm/ctrl.c size = DIV_ROUND_UP(size * abm->num_prios, BITS_PER_BYTE); DIV_ROUND_UP 260 drivers/net/ethernet/netronome/nfp/bpf/offload.c for (i = 0; i < DIV_ROUND_UP(nfp_map->offmap->map.value_size, 4); i++) DIV_ROUND_UP 274 drivers/net/ethernet/netronome/nfp/bpf/offload.c for (i = 0; i < DIV_ROUND_UP(nfp_map->offmap->map.value_size, 4); i++) DIV_ROUND_UP 378 drivers/net/ethernet/netronome/nfp/bpf/offload.c use_map_size = DIV_ROUND_UP(offmap->map.value_size, 4) * DIV_ROUND_UP 314 drivers/net/ethernet/netronome/nfp/ccm_mbox.c cnt = DIV_ROUND_UP(length, 4); DIV_ROUND_UP 264 drivers/net/ethernet/netronome/nfp/nfp_net_main.c DIV_ROUND_UP(irqs_left, vnics_left)); DIV_ROUND_UP 514 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c nseg = DIV_ROUND_UP(max_size, chunk_size); DIV_ROUND_UP 526 drivers/net/ethernet/qlogic/qed/qed_cxt.c *p_line += DIV_ROUND_UP(p_blk->total_size, p_blk->real_size_in_page); DIV_ROUND_UP 924 drivers/net/ethernet/qlogic/qed/qed_cxt.c p_mngr->t2_num_pages = DIV_ROUND_UP(total_size, psz); DIV_ROUND_UP 1047 drivers/net/ethernet/qlogic/qed/qed_cxt.c lines = DIV_ROUND_UP(sz_left, p_blk->real_size_in_page) - lines_to_skip; DIV_ROUND_UP 1152 drivers/net/ethernet/qlogic/qed/qed_cxt.c size = DIV_ROUND_UP(cid_count, DIV_ROUND_UP 1313 drivers/net/ethernet/qlogic/qed/qed_cxt.c len = DIV_ROUND_UP(p_map->max_count, DIV_ROUND_UP 1325 drivers/net/ethernet/qlogic/qed/qed_cxt.c len = DIV_ROUND_UP(p_map->max_count, DIV_ROUND_UP 2231 drivers/net/ethernet/qlogic/qed/qed_cxt.c total_lines = DIV_ROUND_UP(p_fl_seg->total_size, DIV_ROUND_UP 2541 drivers/net/ethernet/qlogic/qed/qed_cxt.c total_lines = DIV_ROUND_UP(p_seg->total_size, p_seg->real_size_in_page); DIV_ROUND_UP 327 drivers/net/ethernet/qlogic/qed/qed_debug.c #define CEIL_DWORDS(size) DIV_ROUND_UP(size, 32) DIV_ROUND_UP 3721 drivers/net/ethernet/qlogic/qed/qed_debug.c for (i = 0; i < DIV_ROUND_UP(ram_size, BRB_REG_BIG_RAM_DATA_SIZE); DIV_ROUND_UP 4751 drivers/net/ethernet/qlogic/qed/qed_debug.c DIV_ROUND_UP(trace_data_size_bytes + sizeof(struct mcp_trace), DIV_ROUND_UP 57 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c #define QM_PQ_MEM_4KB(pq_size) (pq_size ? DIV_ROUND_UP((pq_size + 1) * \ DIV_ROUND_UP 60 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c #define QM_PQ_SIZE_256B(pq_size) (pq_size ? DIV_ROUND_UP(pq_size, \ DIV_ROUND_UP 487 drivers/net/ethernet/qlogic/qed/qed_mcp.c u32 cnt = 0, msecs = DIV_ROUND_UP(usecs, 1000); DIV_ROUND_UP 630 drivers/net/ethernet/qlogic/qed/qed_mcp.c max_retries = DIV_ROUND_UP(max_retries, 1000); DIV_ROUND_UP 3555 drivers/net/ethernet/qlogic/qed/qed_mcp.c DIV_ROUND_UP(p_params->retry_interval, DIV_ROUND_UP 323 drivers/net/ethernet/qlogic/qed/qed_rdma.c DIV_ROUND_UP(bmap->max_count % (64 * 8), 64); DIV_ROUND_UP 461 drivers/net/ethernet/renesas/sh_eth.c u32 *maxp = p + DIV_ROUND_UP(len, sizeof(u32)); DIV_ROUND_UP 2110 drivers/net/ethernet/renesas/sh_eth.c len = DIV_ROUND_UP(SH_ETH_REG_DUMP_MAX_REGS, 32); DIV_ROUND_UP 1313 drivers/net/ethernet/sfc/ef10.c DIV_ROUND_UP(efx->n_tx_channels, DIV_ROUND_UP 1802 drivers/net/ethernet/sfc/efx.c efx->irq_mod_step_us = DIV_ROUND_UP(efx->timer_quantum_ns, 1000); DIV_ROUND_UP 2054 drivers/net/ethernet/sfc/efx.c return DIV_ROUND_UP(ticks * efx->timer_quantum_ns, 1000); DIV_ROUND_UP 1667 drivers/net/ethernet/sfc/falcon/efx.c efx->irq_mod_step_us = DIV_ROUND_UP(efx->timer_quantum_ns, 1000); DIV_ROUND_UP 1904 drivers/net/ethernet/sfc/falcon/efx.c return DIV_ROUND_UP(ticks * efx->timer_quantum_ns, 1000); DIV_ROUND_UP 371 drivers/net/ethernet/sfc/falcon/falcon.c .timeout = DIV_ROUND_UP(HZ, 20), DIV_ROUND_UP 530 drivers/net/ethernet/sfc/falcon/falcon.c unsigned long timeout = jiffies + 1 + DIV_ROUND_UP(HZ, 10); DIV_ROUND_UP 668 drivers/net/ethernet/sfc/falcon/falcon.c unsigned long timeout = jiffies + 1 + DIV_ROUND_UP(HZ, 100); DIV_ROUND_UP 46 drivers/net/ethernet/sfc/falcon/rx.c #define EF4_RX_MAX_FRAGS DIV_ROUND_UP(EF4_MAX_FRAME_LEN(EF4_MAX_MTU), \ DIV_ROUND_UP 101 drivers/net/ethernet/sfc/falcon/rx.c efx->rx_pages_per_batch = DIV_ROUND_UP(EF4_RX_PREFERRED_BATCH, DIV_ROUND_UP 101 drivers/net/ethernet/sfc/falcon/tx.c DIV_ROUND_UP(GSO_MAX_SIZE, EF4_PAGE_SIZE)); DIV_ROUND_UP 535 drivers/net/ethernet/sfc/falcon/tx.c return DIV_ROUND_UP(tx_queue->ptr_mask + 1, PAGE_SIZE >> EF4_TX_CB_ORDER); DIV_ROUND_UP 298 drivers/net/ethernet/sfc/mcdi.c data_len = DIV_ROUND_UP(mcdi->resp_data_len, 4); DIV_ROUND_UP 194 drivers/net/ethernet/sfc/mcdi.h efx_dword_t _name[DIV_ROUND_UP(_len, 4)] DIV_ROUND_UP 169 drivers/net/ethernet/sfc/ptp.c u32 words[DIV_ROUND_UP(PTP_V1_UUID_LENGTH, 4)]; DIV_ROUND_UP 46 drivers/net/ethernet/sfc/rx.c #define EFX_RX_MAX_FRAGS DIV_ROUND_UP(EFX_MAX_FRAME_LEN(EFX_MAX_MTU), \ DIV_ROUND_UP 101 drivers/net/ethernet/sfc/rx.c efx->rx_pages_per_batch = DIV_ROUND_UP(EFX_RX_PREFERRED_BATCH, DIV_ROUND_UP 747 drivers/net/ethernet/sfc/siena.c unsigned int inlen_dw = DIV_ROUND_UP(sdu_len, 4); DIV_ROUND_UP 782 drivers/net/ethernet/sfc/siena.c unsigned int outlen_dw = DIV_ROUND_UP(outlen, 4); DIV_ROUND_UP 118 drivers/net/ethernet/sfc/tx.c DIV_ROUND_UP(GSO_MAX_SIZE, EFX_PAGE_SIZE)); DIV_ROUND_UP 792 drivers/net/ethernet/sfc/tx.c return DIV_ROUND_UP(tx_queue->ptr_mask + 1, PAGE_SIZE >> EFX_TX_CB_ORDER); DIV_ROUND_UP 1558 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c num_pages = DIV_ROUND_UP(priv->dma_buf_sz, PAGE_SIZE); DIV_ROUND_UP 3390 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c len = DIV_ROUND_UP(priv->dma_buf_sz, PAGE_SIZE) * PAGE_SIZE; DIV_ROUND_UP 284 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c msleep(DIV_ROUND_UP(delays[0], 1000)); DIV_ROUND_UP 288 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c msleep(DIV_ROUND_UP(delays[1], 1000)); DIV_ROUND_UP 292 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c msleep(DIV_ROUND_UP(delays[2], 1000)); DIV_ROUND_UP 1254 drivers/net/ethernet/sun/sunvnet_common.c gso_segs = DIV_ROUND_UP(skb->len - hlen, datalen); DIV_ROUND_UP 1294 drivers/net/ethernet/sun/sunvnet_common.c DIV_ROUND_UP(curr->len - hlen, gso_size); DIV_ROUND_UP 1453 drivers/net/ethernet/ti/cpsw.c val = DIV_ROUND_UP(bw, priv->shp_cfg_speed * 10); DIV_ROUND_UP 92 drivers/net/ethernet/ti/cpsw_ale.h #define ALE_ENTRY_WORDS DIV_ROUND_UP(ALE_ENTRY_BITS, 32) DIV_ROUND_UP 467 drivers/net/ethernet/ti/davinci_cpdma.c send_cnt = DIV_ROUND_UP(min_send_cnt, ch->rate); DIV_ROUND_UP 817 drivers/net/ethernet/ti/davinci_cpdma.c return DIV_ROUND_UP(divident, divisor); DIV_ROUND_UP 468 drivers/net/hyperv/netvsc.c map_words = DIV_ROUND_UP(net_device->send_section_cnt, BITS_PER_LONG); DIV_ROUND_UP 469 drivers/net/hyperv/netvsc_drv.c slots = DIV_ROUND_UP(offset + len, PAGE_SIZE); DIV_ROUND_UP 1027 drivers/net/thunderbolt.c nframes = DIV_ROUND_UP(data_len, TBNET_MAX_PAYLOAD_SIZE); DIV_ROUND_UP 2745 drivers/net/virtio_net.c unsigned int min_buf_len = DIV_ROUND_UP(buf_len, rq_size); DIV_ROUND_UP 1522 drivers/net/vmxnet3/vmxnet3_drv.c DIV_ROUND_UP(skb->len - DIV_ROUND_UP 858 drivers/net/wan/sbni.c nl->tx_frameno = DIV_ROUND_UP(len, nl->maxframe); DIV_ROUND_UP 112 drivers/net/wireless/ath/ath10k/htc.c credits = DIV_ROUND_UP(skb->len, htc->target_credit_size); DIV_ROUND_UP 111 drivers/net/wireless/ath/ath10k/mac.c return DIV_ROUND_UP(bitrate, 5) | DIV_ROUND_UP 147 drivers/net/wireless/ath/ath5k/pcu.c bitrate = DIV_ROUND_UP(bitrate, 2); DIV_ROUND_UP 153 drivers/net/wireless/ath/ath5k/pcu.c bitrate = DIV_ROUND_UP(bitrate, 4); DIV_ROUND_UP 163 drivers/net/wireless/ath/ath5k/pcu.c symbols = DIV_ROUND_UP(bits * 10, symbol_bits); DIV_ROUND_UP 2916 drivers/net/wireless/ath/ath6kl/cfg80211.c inactivity_timeout = DIV_ROUND_UP(inactivity_timeout, DIV_ROUND_UP 552 drivers/net/wireless/ath/ath6kl/htc_mbox.c DIV_ROUND_UP(len, target->tgt_cred_sz) : 1; DIV_ROUND_UP 142 drivers/net/wireless/ath/ath9k/ath9k.h DIV_ROUND_UP(ATH_AGGR_MINPLEN - (_len), ATH_AGGR_DELIM_SZ)) DIV_ROUND_UP 85 drivers/net/wireless/ath/ath9k/common-beacon.c bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); DIV_ROUND_UP 190 drivers/net/wireless/ath/ath9k/hw.c numSymbols = DIV_ROUND_UP(numBits, bitsPerSymbol); DIV_ROUND_UP 199 drivers/net/wireless/ath/ath9k/hw.c numSymbols = DIV_ROUND_UP(numBits, bitsPerSymbol); DIV_ROUND_UP 206 drivers/net/wireless/ath/ath9k/hw.c numSymbols = DIV_ROUND_UP(numBits, bitsPerSymbol); DIV_ROUND_UP 2989 drivers/net/wireless/ath/ath9k/hw.c channel->max_power = DIV_ROUND_UP(reg->max_power_level, 2); DIV_ROUND_UP 149 drivers/net/wireless/ath/ath9k/wow.c mask_len = DIV_ROUND_UP(patterns[i].pattern_len, 8); DIV_ROUND_UP 112 drivers/net/wireless/ath/carl9170/carl9170.h #define CARL9170_BAW_LEN (DIV_ROUND_UP(CARL9170_BAW_BITS, BITS_PER_BYTE)) DIV_ROUND_UP 310 drivers/net/wireless/ath/carl9170/main.c for (i = 0; i < DIV_ROUND_UP(ar->fw.mem_blocks, BITS_PER_LONG); i++) DIV_ROUND_UP 72 drivers/net/wireless/ath/carl9170/tx.c return (DIV_ROUND_UP(IEEE80211_MAX_FRAME_LEN, ar->fw.mem_block_size) > DIV_ROUND_UP 198 drivers/net/wireless/ath/carl9170/tx.c chunks = DIV_ROUND_UP(skb->len, ar->fw.mem_block_size); DIV_ROUND_UP 253 drivers/net/wireless/ath/carl9170/tx.c atomic_add(DIV_ROUND_UP(skb->len, ar->fw.mem_block_size), DIV_ROUND_UP 1671 drivers/net/wireless/ath/carl9170/tx.c for (i = 0; i < DIV_ROUND_UP(skb->len, 4); i++) { DIV_ROUND_UP 109 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h #define BRCMF_EVENTING_MASK_LEN DIV_ROUND_UP(BRCMF_E_LAST, 8) DIV_ROUND_UP 1021 drivers/net/wireless/intel/iwlwifi/dvm/lib.c int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); DIV_ROUND_UP 410 drivers/net/wireless/intel/iwlwifi/dvm/rxon.c if (tx_power > DIV_ROUND_UP(priv->nvm_data->max_tx_pwr_half_dbm, 2)) { DIV_ROUND_UP 633 drivers/net/wireless/intel/iwlwifi/fw/dbg.c nents = DIV_ROUND_UP(size, PAGE_SIZE); DIV_ROUND_UP 112 drivers/net/wireless/intel/iwlwifi/fw/paging.c DIV_ROUND_UP(num_of_pages, NUM_OF_PAGE_PER_GROUP); DIV_ROUND_UP 462 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (api_index >= DIV_ROUND_UP(NUM_IWL_UCODE_TLV_API, 32)) { DIV_ROUND_UP 483 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (api_index >= DIV_ROUND_UP(NUM_IWL_UCODE_TLV_CAPA, 32)) { DIV_ROUND_UP 466 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c DIV_ROUND_UP(max_txp_avg_halfdbm, 2)); DIV_ROUND_UP 410 drivers/net/wireless/intel/iwlwifi/mvm/d3.c int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); DIV_ROUND_UP 451 drivers/net/wireless/intel/iwlwifi/mvm/d3.c int mask_len = DIV_ROUND_UP(wowlan->patterns[i].pattern_len, 8); DIV_ROUND_UP 150 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c cmd->req_timeout = DIV_ROUND_UP(req->timeout, 100); DIV_ROUND_UP 4426 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c DIV_ROUND_UP(chsw->delay, vif->bss_conf.beacon_int); DIV_ROUND_UP 414 drivers/net/wireless/intel/iwlwifi/mvm/power.c keep_alive = DIV_ROUND_UP(ieee80211_tu_to_usec(3 * dtimper * bi), DIV_ROUND_UP 114 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c num_fetch_chunks = DIV_ROUND_UP(filled_tfd_size, 64) - 1; DIV_ROUND_UP 125 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c len = DIV_ROUND_UP(len, 4); DIV_ROUND_UP 270 drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c hdr_room = DIV_ROUND_UP(total_len, mss) * DIV_ROUND_UP 236 drivers/net/wireless/intel/iwlwifi/pcie/tx.c len = DIV_ROUND_UP(len, 4); DIV_ROUND_UP 2132 drivers/net/wireless/intel/iwlwifi/pcie/tx.c hdr_room = DIV_ROUND_UP(total_len, mss) * DIV_ROUND_UP 239 drivers/net/wireless/marvell/libertas/if_spi.c DIV_ROUND_UP((100 + (delay * 10)), 1000); DIV_ROUND_UP 3221 drivers/net/wireless/marvell/mwifiex/cfg80211.c for (j = 0; j < DIV_ROUND_UP(pat->pattern_len, 8); j++) { DIV_ROUND_UP 1563 drivers/net/wireless/marvell/mwifiex/sdio.c rx_blocks = DIV_ROUND_UP(rx_len, MWIFIEX_SDIO_BLOCK_SIZE); DIV_ROUND_UP 757 drivers/net/wireless/mediatek/mt76/mac80211.c *dbm = DIV_ROUND_UP(dev->txpower_cur, 2); DIV_ROUND_UP 35 drivers/net/wireless/mediatek/mt76/mmio.c __iowrite32_copy(dev->mmio.regs + offset, data, DIV_ROUND_UP(len, 4)); DIV_ROUND_UP 41 drivers/net/wireless/mediatek/mt76/mmio.c __ioread32_copy(data, dev->mmio.regs + offset, DIV_ROUND_UP(len, 4)); DIV_ROUND_UP 496 drivers/net/wireless/mediatek/mt76/mt7603/init.c target_power = DIV_ROUND_UP(target_power, 2); DIV_ROUND_UP 201 drivers/net/wireless/mediatek/mt76/mt7615/init.c target_power = DIV_ROUND_UP(target_power, 2); DIV_ROUND_UP 18 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c #define MT_MAP_READS DIV_ROUND_UP(MT_EFUSE_USAGE_MAP_SIZE, 16) DIV_ROUND_UP 167 drivers/net/wireless/mediatek/mt76/mt76x2/init.c chan->orig_mpwr = DIV_ROUND_UP(chan->orig_mpwr, 2); DIV_ROUND_UP 157 drivers/net/wireless/mediatek/mt76/usb.c for (i = 0; i < DIV_ROUND_UP(len, 4); i++) { DIV_ROUND_UP 69 drivers/net/wireless/mediatek/mt7601u/eeprom.c const int map_reads = DIV_ROUND_UP(MT_EFUSE_USAGE_MAP_SIZE, 16); DIV_ROUND_UP 1229 drivers/net/wireless/ralink/rt2x00/rt2x00queue.c queue->threshold = DIV_ROUND_UP(queue->limit, 10); DIV_ROUND_UP 515 drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c plcp_len = DIV_ROUND_UP(16 * (skb->len + 4), DIV_ROUND_UP 1469 drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c hw_eifs = DIV_ROUND_UP(eifs, 4); DIV_ROUND_UP 1486 drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c hw_eifs = DIV_ROUND_UP(eifs - difs, 4); DIV_ROUND_UP 1231 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c DIV_ROUND_UP(ack_timeout, 4)); DIV_ROUND_UP 443 drivers/net/wireless/realtek/rtlwifi/core.c mask_len = DIV_ROUND_UP(patterns[i].pattern_len, 8); DIV_ROUND_UP 492 drivers/net/wireless/realtek/rtw88/fw.c return DIV_ROUND_UP(len, page_size); DIV_ROUND_UP 172 drivers/net/wireless/ti/wlcore/scan.c min_dwell_time_active = DIV_ROUND_UP(min_dwell_time_active, 1000); DIV_ROUND_UP 173 drivers/net/wireless/ti/wlcore/scan.c max_dwell_time_active = DIV_ROUND_UP(max_dwell_time_active, 1000); DIV_ROUND_UP 174 drivers/net/wireless/ti/wlcore/scan.c dwell_time_passive = DIV_ROUND_UP(dwell_time_passive, 1000); DIV_ROUND_UP 175 drivers/net/wireless/ti/wlcore/scan.c dwell_time_dfs = DIV_ROUND_UP(dwell_time_dfs, 1000); DIV_ROUND_UP 1196 drivers/net/xen-netback/netback.c DIV_ROUND_UP(skb->len - hdrlen, mss); DIV_ROUND_UP 46 drivers/net/xen-netback/rx.c needed = DIV_ROUND_UP(skb->len, XEN_PAGE_SIZE); DIV_ROUND_UP 206 drivers/nfc/fdp/fdp.c DIV_ROUND_UP(fw->size, max_size)); DIV_ROUND_UP 44 drivers/nvdimm/label.c return ALIGN(sizeof(struct nd_namespace_index) + DIV_ROUND_UP(nslot, 8), DIV_ROUND_UP 462 drivers/nvdimm/label.c DIV_ROUND_UP(config_size, max_xfer); DIV_ROUND_UP 469 drivers/nvdimm/label.c read_size = min(DIV_ROUND_UP(read_size, max_xfer) * max_xfer, DIV_ROUND_UP 513 drivers/nvdimm/label.c label_read_size = DIV_ROUND_UP(label_read_size, max_xfer) * DIV_ROUND_UP 887 drivers/nvme/host/fabrics.c opts->max_reconnects = DIV_ROUND_UP(ctrl_loss_tmo, DIV_ROUND_UP 344 drivers/nvme/host/pci.c unsigned nprps = DIV_ROUND_UP(size + dev->ctrl.page_size, DIV_ROUND_UP 346 drivers/nvme/host/pci.c return DIV_ROUND_UP(8 * nprps, PAGE_SIZE - 8); DIV_ROUND_UP 355 drivers/nvme/host/pci.c return DIV_ROUND_UP(num_seg * sizeof(struct nvme_sgl_desc), PAGE_SIZE); DIV_ROUND_UP 513 drivers/nvme/host/pci.c avg_seg_size = DIV_ROUND_UP(blk_rq_payload_bytes(req), nseg); DIV_ROUND_UP 621 drivers/nvme/host/pci.c nprps = DIV_ROUND_UP(length, page_size); DIV_ROUND_UP 82 drivers/nvme/target/admin-cmd.c data_units_read = DIV_ROUND_UP(part_stat_read(ns->bdev->bd_part, DIV_ROUND_UP 85 drivers/nvme/target/admin-cmd.c data_units_written = DIV_ROUND_UP(part_stat_read(ns->bdev->bd_part, DIV_ROUND_UP 114 drivers/nvme/target/admin-cmd.c data_units_read += DIV_ROUND_UP( DIV_ROUND_UP 117 drivers/nvme/target/admin-cmd.c data_units_written += DIV_ROUND_UP( DIV_ROUND_UP 633 drivers/nvme/target/admin-cmd.c req->sq->ctrl->kato = DIV_ROUND_UP(val32, 1000); DIV_ROUND_UP 1293 drivers/nvme/target/core.c ctrl->kato = DIV_ROUND_UP(kato, 1000); DIV_ROUND_UP 288 drivers/nvme/target/tcp.c cmd->nr_mapped = DIV_ROUND_UP(length, PAGE_SIZE); DIV_ROUND_UP 290 drivers/nvme/target/tcp.c cmd->sg_idx = DIV_ROUND_UP(offset, PAGE_SIZE); DIV_ROUND_UP 148 drivers/nvmem/core.c cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset, DIV_ROUND_UP 324 drivers/nvmem/core.c cell->bytes = DIV_ROUND_UP( DIV_ROUND_UP 931 drivers/nvmem/core.c extra = cell->bytes - DIV_ROUND_UP(cell->nbits, BITS_PER_BYTE); DIV_ROUND_UP 206 drivers/nvmem/imx-ocotp.c relax = DIV_ROUND_UP(clk_rate * TIMING_RELAX_NS, 1000000000) - 1; DIV_ROUND_UP 207 drivers/nvmem/imx-ocotp.c strobe_read = DIV_ROUND_UP(clk_rate * TIMING_STROBE_READ_NS, DIV_ROUND_UP 218 drivers/nvmem/lpc18xx_eeprom.c clk_rate = DIV_ROUND_UP(clk_rate, LPC18XX_EEPROM_CLOCK_HZ) - 1; DIV_ROUND_UP 44 drivers/pinctrl/bcm/pinctrl-bcm2835.c DIV_ROUND_UP(BCM2835_NUM_GPIOS, sizeof(unsigned long) * 8) DIV_ROUND_UP 1279 drivers/pinctrl/intel/pinctrl-intel.c ngpps = DIV_ROUND_UP(community->npins, community->gpp_size); DIV_ROUND_UP 1312 drivers/pinctrl/intel/pinctrl-intel.c padown_num += DIV_ROUND_UP(gpps[i].size * 4, 32); DIV_ROUND_UP 546 drivers/pinctrl/mvebu/pinctrl-armada-xp.c nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); DIV_ROUND_UP 560 drivers/pinctrl/mvebu/pinctrl-armada-xp.c nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); DIV_ROUND_UP 627 drivers/pinctrl/mvebu/pinctrl-armada-xp.c nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); DIV_ROUND_UP 203 drivers/pinctrl/nomadik/pinctrl-nomadik.c #define NMK_MAX_BANKS DIV_ROUND_UP(512, NMK_GPIO_PER_CHIP) DIV_ROUND_UP 368 drivers/pinctrl/spear/pinctrl-plgpio.c regs_count = DIV_ROUND_UP(count, MAX_GPIO_PER_REG); DIV_ROUND_UP 542 drivers/pinctrl/spear/pinctrl-plgpio.c DIV_ROUND_UP(plgpio->chip.ngpio, MAX_GPIO_PER_REG), DIV_ROUND_UP 617 drivers/pinctrl/spear/pinctrl-plgpio.c int i, reg_count = DIV_ROUND_UP(plgpio->chip.ngpio, MAX_GPIO_PER_REG); DIV_ROUND_UP 656 drivers/pinctrl/spear/pinctrl-plgpio.c int i, reg_count = DIV_ROUND_UP(plgpio->chip.ngpio, MAX_GPIO_PER_REG); DIV_ROUND_UP 750 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c nregs = DIV_ROUND_UP(count * width, 32); DIV_ROUND_UP 142 drivers/platform/x86/dell-wmi-led.c on_eighths = DIV_ROUND_UP(*delay_on, 125); DIV_ROUND_UP 146 drivers/platform/x86/dell-wmi-led.c off_eighths = DIV_ROUND_UP(*delay_off, 125); DIV_ROUND_UP 510 drivers/platform/x86/intel_scu_ipc.c int inbuflen = DIV_ROUND_UP(inlen, 4); DIV_ROUND_UP 108 drivers/pwm/pwm-img.c output_clk_hz = DIV_ROUND_UP(NSEC_PER_SEC, period_ns); DIV_ROUND_UP 110 drivers/pwm/pwm-img.c mul = DIV_ROUND_UP(input_clk_hz, output_clk_hz); DIV_ROUND_UP 113 drivers/pwm/pwm-img.c timebase = DIV_ROUND_UP(mul, 1); DIV_ROUND_UP 116 drivers/pwm/pwm-img.c timebase = DIV_ROUND_UP(mul, 8); DIV_ROUND_UP 119 drivers/pwm/pwm-img.c timebase = DIV_ROUND_UP(mul, 64); DIV_ROUND_UP 122 drivers/pwm/pwm-img.c timebase = DIV_ROUND_UP(mul, 512); DIV_ROUND_UP 129 drivers/pwm/pwm-img.c duty = DIV_ROUND_UP(timebase * duty_ns, period_ns); DIV_ROUND_UP 201 drivers/pwm/pwm-imx27.c period_ms = DIV_ROUND_UP(pwm_get_period(pwm), DIV_ROUND_UP 370 drivers/pwm/pwm-lpc18xx-sct.c lpc18xx_pwm->min_period_ns = DIV_ROUND_UP(NSEC_PER_SEC, DIV_ROUND_UP 61 drivers/pwm/pwm-twl-led.c int duty_cycle = DIV_ROUND_UP(duty_ns * TWL4030_LED_MAX, period_ns) + 1; DIV_ROUND_UP 63 drivers/pwm/pwm-twl.c int duty_cycle = DIV_ROUND_UP(duty_ns * TWL_PWM_MAX, period_ns) + 1; DIV_ROUND_UP 101 drivers/regulator/ad5398.c selector = DIV_ROUND_UP((min_uA - chip->min_uA) * chip->current_level, DIV_ROUND_UP 3198 drivers/regulator/core.c return DIV_ROUND_UP(abs(new_uV - old_uV), ramp_delay); DIV_ROUND_UP 202 drivers/regulator/da903x.c sel = DIV_ROUND_UP(thresh - min_uV, info->desc.uV_step); DIV_ROUND_UP 205 drivers/regulator/da903x.c sel = DIV_ROUND_UP(min_uV - thresh, info->desc.uV_step); DIV_ROUND_UP 192 drivers/regulator/da9052-regulator.c DIV_ROUND_UP(min_uV - DA9052_CONST_3uV, DIV_ROUND_UP 195 drivers/regulator/da9052-regulator.c sel = DIV_ROUND_UP(min_uV - info->min_uV, info->step_uV); DIV_ROUND_UP 380 drivers/regulator/helpers.c ret = DIV_ROUND_UP(min_uV - rdev->desc->min_uV, rdev->desc->uV_step); DIV_ROUND_UP 434 drivers/regulator/helpers.c ret = DIV_ROUND_UP(min_uV - range->min_uV, DIV_ROUND_UP 500 drivers/regulator/helpers.c ret = DIV_ROUND_UP(min_uV - range->min_uV, DIV_ROUND_UP 79 drivers/regulator/max8649.c return DIV_ROUND_UP(voltage, rate); DIV_ROUND_UP 110 drivers/regulator/max8925-regulator.c data = DIV_ROUND_UP(uV - SD1_DVM_VMIN, SD1_DVM_STEP); DIV_ROUND_UP 388 drivers/regulator/max8997-regulator.c i = DIV_ROUND_UP(min_vol - desc->min, desc->step); DIV_ROUND_UP 523 drivers/regulator/max8997-regulator.c return DIV_ROUND_UP(desc->step * (new_selector - old_selector), DIV_ROUND_UP 356 drivers/regulator/max8998.c return DIV_ROUND_UP(difference, (val & 0x0f) + 1); DIV_ROUND_UP 185 drivers/regulator/qcom-rpmh-regulator.c cmd.data = DIV_ROUND_UP(regulator_list_voltage_linear_range(rdev, DIV_ROUND_UP 610 drivers/regulator/qcom_spmi-regulator.c voltage_sel = DIV_ROUND_UP(uV - range->min_uV, range->step_uV); DIV_ROUND_UP 733 drivers/regulator/qcom_spmi-regulator.c uV = DIV_ROUND_UP(uV - range->min_uV, range->step_uV); DIV_ROUND_UP 821 drivers/regulator/qcom_spmi-regulator.c return DIV_ROUND_UP(diff_uV, vreg->slew_rate); DIV_ROUND_UP 43 drivers/regulator/rc5t583-regulator.c return DIV_ROUND_UP(curr_uV, reg_info->enable_uv_per_us); DIV_ROUND_UP 87 drivers/regulator/s2mpa01.c return DIV_ROUND_UP(abs(new_volt - old_volt), ramp_delay); DIV_ROUND_UP 107 drivers/regulator/s2mps11.c return DIV_ROUND_UP(abs(new_volt - old_volt), ramp_delay); DIV_ROUND_UP 262 drivers/regulator/s5m8767.c selector = DIV_ROUND_UP(min_vol - desc->min, desc->step); DIV_ROUND_UP 344 drivers/regulator/s5m8767.c return DIV_ROUND_UP(rdev->desc->uV_step * (new_sel - old_sel), DIV_ROUND_UP 81 drivers/regulator/tps51632-regulator.c (DIV_ROUND_UP(uV - TPS51632_MIN_VOLTAGE, \ DIV_ROUND_UP 103 drivers/regulator/tps51632-regulator.c bit = DIV_ROUND_UP(ramp_delay, 6000) - 1; DIV_ROUND_UP 284 drivers/regulator/tps62360-regulator.c tps->desc.ramp_delay = DIV_ROUND_UP(32000, BIT(ramp_ctrl)); DIV_ROUND_UP 353 drivers/regulator/tps80031-regulator.c mdelay(DIV_ROUND_UP(ri->rinfo->desc.enable_time, 1000)); DIV_ROUND_UP 422 drivers/regulator/twl-regulator.c int vsel = DIV_ROUND_UP(min_uV - 600000, 12500); DIV_ROUND_UP 404 drivers/regulator/twl6030-regulator.c vsel = DIV_ROUND_UP(min_uV - 600000, 12500); DIV_ROUND_UP 427 drivers/regulator/twl6030-regulator.c vsel = DIV_ROUND_UP(min_uV - 700000, 12500); DIV_ROUND_UP 448 drivers/regulator/twl6030-regulator.c vsel = DIV_ROUND_UP(min_uV - 1852000, 38600); DIV_ROUND_UP 456 drivers/regulator/twl6030-regulator.c vsel = DIV_ROUND_UP(min_uV - 2161000, 38600); DIV_ROUND_UP 127 drivers/regulator/vctrl-regulator.c delay = DIV_ROUND_UP(uV - next_uV, vctrl->min_slew_down_rate); DIV_ROUND_UP 128 drivers/regulator/vctrl-regulator.c usleep_range(delay, delay + DIV_ROUND_UP(delay, 10)); DIV_ROUND_UP 194 drivers/regulator/vctrl-regulator.c delay = DIV_ROUND_UP(vctrl->vtable[vctrl->sel].out - DIV_ROUND_UP 197 drivers/regulator/vctrl-regulator.c usleep_range(delay, delay + DIV_ROUND_UP(delay, 10)); DIV_ROUND_UP 184 drivers/reset/reset-lpc18xx.c rc->delay_us = DIV_ROUND_UP(fcclk, firc * firc); DIV_ROUND_UP 155 drivers/rtc/rtc-ac100.c tmp_prate = DIV_ROUND_UP(prate, ac100_clkout_prediv[i].val); DIV_ROUND_UP 7601 drivers/scsi/advansys.c DIV_ROUND_UP(sg_dma_len(slp), 512)); DIV_ROUND_UP 7703 drivers/scsi/advansys.c DIV_ROUND_UP(sg_dma_len(slp), 512)); DIV_ROUND_UP 714 drivers/scsi/csiostor/csio_hw.c i = DIV_ROUND_UP(size, sf_sec_size); /* # of sectors spanned */ DIV_ROUND_UP 1692 drivers/scsi/csiostor/csio_lnode.c wr_len = DIV_ROUND_UP(wr_len, 16); DIV_ROUND_UP 213 drivers/scsi/csiostor/csio_scsi.c DIV_ROUND_UP(size, 16))); DIV_ROUND_UP 373 drivers/scsi/csiostor/csio_scsi.c FW_WR_LEN16_V(DIV_ROUND_UP(size, 16))); DIV_ROUND_UP 426 drivers/scsi/csiostor/csio_scsi.c FW_WR_LEN16_V(DIV_ROUND_UP(size, 16))); DIV_ROUND_UP 656 drivers/scsi/csiostor/csio_scsi.c DIV_ROUND_UP(size, 16))); DIV_ROUND_UP 1237 drivers/scsi/csiostor/csio_scsi.c int count = DIV_ROUND_UP(tmo, CSIO_SCSI_ABORT_Q_POLL_MS); DIV_ROUND_UP 1277 drivers/scsi/csiostor/csio_scsi.c int count = DIV_ROUND_UP(60 * 1000, CSIO_SCSI_ABORT_Q_POLL_MS); DIV_ROUND_UP 1323 drivers/scsi/csiostor/csio_scsi.c int count = DIV_ROUND_UP(60 * 1000, CSIO_SCSI_ABORT_Q_POLL_MS); DIV_ROUND_UP 2134 drivers/scsi/csiostor/csio_scsi.c count = DIV_ROUND_UP((ioreq->tmo + 10) * 1000, CSIO_SCSI_TM_POLL_MS); DIV_ROUND_UP 577 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c return DIV_ROUND_UP(skb->len, 8); DIV_ROUND_UP 595 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c flowclen16 = DIV_ROUND_UP(flowclen, 16); DIV_ROUND_UP 733 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c credits_needed = DIV_ROUND_UP(dlen, 16); DIV_ROUND_UP 735 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c credits_needed = DIV_ROUND_UP( DIV_ROUND_UP 740 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c credits_needed += DIV_ROUND_UP( DIV_ROUND_UP 1804 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c DIV_ROUND_UP(sizeof(struct cpl_abort_req), 16); DIV_ROUND_UP 1905 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c req->len16 = htonl(DIV_ROUND_UP(wr_len - sizeof(req->wr), 16)); DIV_ROUND_UP 755 drivers/scsi/cxlflash/vlun.c new_size = DIV_ROUND_UP(nsectors, MC_CHUNK_SIZE); DIV_ROUND_UP 1517 drivers/scsi/esp_scsi.c stp = DIV_ROUND_UP(period << 2, one_clock); DIV_ROUND_UP 79 drivers/scsi/fnic/vnic_rq.h DIV_ROUND_UP(entries, VNIC_RQ_BUF_BLK_ENTRIES) DIV_ROUND_UP 84 drivers/scsi/fnic/vnic_wq.h DIV_ROUND_UP(entries, VNIC_WQ_BUF_BLK_ENTRIES) DIV_ROUND_UP 8004 drivers/scsi/hpsa.c h->cmd_pool_bits = kcalloc(DIV_ROUND_UP(h->nr_cmds, BITS_PER_LONG), DIV_ROUND_UP 490 drivers/scsi/libfc/fc_exch.c sp->cnt += DIV_ROUND_UP((fr_len(fp) - sizeof(*fh)), DIV_ROUND_UP 788 drivers/scsi/megaraid/megaraid_sas_fusion.c dma_alloc_count = DIV_ROUND_UP(msix_count, RDPQ_MAX_INDEX_IN_ONE_CHUNK); DIV_ROUND_UP 657 drivers/scsi/pm8001/pm8001_ctl.c loopcount = DIV_ROUND_UP(partitionSize + HEADER_LEN, DIV_ROUND_UP 3104 drivers/scsi/pmcraid.c ioadl_count = DIV_ROUND_UP(le16_to_cpu(ioarcb->add_cmd_param_length), 16); DIV_ROUND_UP 2404 drivers/scsi/qla2xxx/qla_target.c prm->req_cnt += DIV_ROUND_UP(prm->seg_cnt - DIV_ROUND_UP 2411 drivers/scsi/qla2xxx/qla_target.c prm->seg_cnt = DIV_ROUND_UP(cmd->bufflen, cmd->blk_sz); DIV_ROUND_UP 2427 drivers/scsi/qla2xxx/qla_target.c prm->prot_seg_cnt = DIV_ROUND_UP(cmd->bufflen, DIV_ROUND_UP 3911 drivers/scsi/smartpqi/smartpqi_init.c DIV_ROUND_UP(iu_length, DIV_ROUND_UP 69 drivers/scsi/snic/vnic_wq.h DIV_ROUND_UP(entries, VNIC_WQ_BUF_DFLT_BLK_ENTRIES) DIV_ROUND_UP 71 drivers/scsi/snic/vnic_wq.h DIV_ROUND_UP(entries, VNIC_WQ_BUF_DFLT_BLK_ENTRIES) DIV_ROUND_UP 634 drivers/scsi/st.c DIV_ROUND_UP(bytes, PAGE_SIZE << mdata->page_order); DIV_ROUND_UP 698 drivers/siox/siox-core.c smaster->poll_interval = DIV_ROUND_UP(HZ, 40); DIV_ROUND_UP 237 drivers/slimbus/qcom-ctrl.c DIV_ROUND_UP(len, 4)); DIV_ROUND_UP 79 drivers/soc/imx/gpc.c udelay(DIV_ROUND_UP(iso + iso2sw, pd->ipg_rate_mhz)); DIV_ROUND_UP 589 drivers/soc/qcom/qcom-geni-se.c divider = DIV_ROUND_UP(tbl[i], req_freq); DIV_ROUND_UP 1204 drivers/soc/tegra/pmc.c value = DIV_ROUND_UP(1000000000, rate); DIV_ROUND_UP 1205 drivers/soc/tegra/pmc.c value = DIV_ROUND_UP(200, value); DIV_ROUND_UP 408 drivers/spi/atmel-quadspi.c scbr = DIV_ROUND_UP(src_rate, spi->max_speed_hz); DIV_ROUND_UP 123 drivers/spi/spi-altera.c hw->bytes_per_word = DIV_ROUND_UP(t->bits_per_word, 8); DIV_ROUND_UP 224 drivers/spi/spi-armada-3700.c prescale = DIV_ROUND_UP(clk_get_rate(a3700_spi->clk), speed_hz); DIV_ROUND_UP 231 drivers/spi/spi-armada-3700.c prescale = A3700_SPI_CLK_EVEN_OFFS + DIV_ROUND_UP(prescale, 2); DIV_ROUND_UP 886 drivers/spi/spi-armada-3700.c master->min_speed_hz = DIV_ROUND_UP(clk_get_rate(spi->clk), DIV_ROUND_UP 331 drivers/spi/spi-at91-usart.c DIV_ROUND_UP(aus->spi_clk, xfer->speed_hz)); DIV_ROUND_UP 553 drivers/spi/spi-at91-usart.c controller->max_speed_hz = DIV_ROUND_UP(clk_get_rate(clk), DIV_ROUND_UP 555 drivers/spi/spi-at91-usart.c controller->min_speed_hz = DIV_ROUND_UP(clk_get_rate(clk), DIV_ROUND_UP 187 drivers/spi/spi-ath79.c rate = DIV_ROUND_UP(clk_get_rate(sp->clk), MHZ); DIV_ROUND_UP 856 drivers/spi/spi-atmel.c scbr = DIV_ROUND_UP(bus_hz, xfer->speed_hz); DIV_ROUND_UP 135 drivers/spi/spi-axi-spi-engine.c clk_div = DIV_ROUND_UP(clk_get_rate(spi_engine->ref_clk), DIV_ROUND_UP 174 drivers/spi/spi-axi-spi-engine.c t = DIV_ROUND_UP(delay * spi_clk, (clk_div + 1) * 2); DIV_ROUND_UP 1083 drivers/spi/spi-bcm2835.c cdiv = DIV_ROUND_UP(clk_hz, spi_hz); DIV_ROUND_UP 366 drivers/spi/spi-bcm2835aux.c speed = DIV_ROUND_UP(clk_hz, 2 * spi_hz) - 1; DIV_ROUND_UP 134 drivers/spi/spi-bcm63xx-hsspi.c reg = DIV_ROUND_UP(2048, DIV_ROUND_UP(bs->speed_hz, hz)); DIV_ROUND_UP 253 drivers/spi/spi-davinci.c ret = DIV_ROUND_UP(clk_get_rate(dspi->clk), max_speed_hz) - 1; DIV_ROUND_UP 317 drivers/spi/spi-dw.c chip->clk_div = (DIV_ROUND_UP(dws->max_freq, transfer->speed_hz) + 1) & 0xfffe; DIV_ROUND_UP 324 drivers/spi/spi-dw.c dws->n_bytes = DIV_ROUND_UP(transfer->bits_per_word, BITS_PER_BYTE); DIV_ROUND_UP 325 drivers/spi/spi-dw.c dws->dma_width = DIV_ROUND_UP(transfer->bits_per_word, BITS_PER_BYTE); DIV_ROUND_UP 133 drivers/spi/spi-efm32.c clkdiv = 64 * (DIV_ROUND_UP(2 * clkfreq, speed) - 4); DIV_ROUND_UP 194 drivers/spi/spi-efm32.c t->len * DIV_ROUND_UP(t->bits_per_word, 8); DIV_ROUND_UP 321 drivers/spi/spi-ep93xx.c nents = DIV_ROUND_UP(len, PAGE_SIZE); DIV_ROUND_UP 337 drivers/spi/spi-fsl-espi.c pm = DIV_ROUND_UP(espi->spibrg, hz * 4) - 1; DIV_ROUND_UP 341 drivers/spi/spi-fsl-espi.c pm = DIV_ROUND_UP(espi->spibrg, hz * 16 * 4) - 1; DIV_ROUND_UP 696 drivers/spi/spi-fsl-espi.c master->min_speed_hz = DIV_ROUND_UP(espi->spibrg, 4 * 16 * 16); DIV_ROUND_UP 697 drivers/spi/spi-fsl-espi.c master->max_speed_hz = DIV_ROUND_UP(espi->spibrg, 4); DIV_ROUND_UP 177 drivers/spi/spi-fsl-lpspi.c return DIV_ROUND_UP(bpw, BITS_PER_BYTE); DIV_ROUND_UP 111 drivers/spi/spi-geni-qcom.c *clk_div = DIV_ROUND_UP(sclk_freq, mas->oversampling * speed_hz); DIV_ROUND_UP 404 drivers/spi/spi-geni-qcom.c return roundup_pow_of_two(DIV_ROUND_UP(mas->cur_bits_per_word, DIV_ROUND_UP 503 drivers/spi/spi-img-spfi.c div = DIV_ROUND_UP(clk_get_rate(spfi->spfi_clk), xfer->speed_hz); DIV_ROUND_UP 451 drivers/spi/spi-imx.c pre = DIV_ROUND_UP(fin, fspi << post) - 1; DIV_ROUND_UP 1109 drivers/spi/spi-imx.c spi_imx->txfifo >= DIV_ROUND_UP(spi_imx->remainder, DIV_ROUND_UP 374 drivers/spi/spi-meson-spicc.c DIV_ROUND_UP(spicc->xfer->bits_per_word, 8); DIV_ROUND_UP 287 drivers/spi/spi-mt65xx.c div = DIV_ROUND_UP(spi_clk_hz, xfer->speed_hz); DIV_ROUND_UP 109 drivers/spi/spi-mt7621.c rate = DIV_ROUND_UP(rs->sys_freq, speed); DIV_ROUND_UP 172 drivers/spi/spi-mxs.c const int sgs = DIV_ROUND_UP(len, desc_len); DIV_ROUND_UP 360 drivers/spi/spi-npcm-fiu.c for (i = 0; i < DIV_ROUND_UP(data_size, 4); i++) DIV_ROUND_UP 390 drivers/spi/spi-npcm-fiu.c for (i = 0; i < DIV_ROUND_UP(data_size, 4); i++) DIV_ROUND_UP 414 drivers/spi/spi-npcm-pspi.c master->max_speed_hz = DIV_ROUND_UP(clk_hz, NPCM_PSPI_MIN_CLK_DIVIDER); DIV_ROUND_UP 415 drivers/spi/spi-npcm-pspi.c master->min_speed_hz = DIV_ROUND_UP(clk_hz, NPCM_PSPI_MAX_CLK_DIVIDER); DIV_ROUND_UP 66 drivers/spi/spi-oc-tiny.c return min(DIV_ROUND_UP(hw->freq, hz * 2), (1U << hw->baudwidth)) - 1; DIV_ROUND_UP 159 drivers/spi/spi-orion.c unsigned divider = DIV_ROUND_UP(tclk_hz, speed); DIV_ROUND_UP 209 drivers/spi/spi-orion.c rate = DIV_ROUND_UP(tclk_hz, speed); DIV_ROUND_UP 671 drivers/spi/spi-orion.c DIV_ROUND_UP(tclk_hz, devdata->min_divisor)); DIV_ROUND_UP 674 drivers/spi/spi-orion.c DIV_ROUND_UP(tclk_hz, devdata->min_divisor); DIV_ROUND_UP 677 drivers/spi/spi-orion.c master->min_speed_hz = DIV_ROUND_UP(tclk_hz, devdata->max_divisor); DIV_ROUND_UP 419 drivers/spi/spi-pic32.c pic32s->fifo_n_elm = DIV_ROUND_UP(pic32s->fifo_n_byte, DIV_ROUND_UP 1032 drivers/spi/spi-pl022.c pages = DIV_ROUND_UP(pl022->cur_transfer->len, PAGE_SIZE); DIV_ROUND_UP 824 drivers/spi/spi-pxa2xx.c q1 = DIV_ROUND_UP(fref1, rate); DIV_ROUND_UP 849 drivers/spi/spi-pxa2xx.c q2 = DIV_ROUND_UP(fref2, rate); DIV_ROUND_UP 874 drivers/spi/spi-pxa2xx.c q1 = DIV_ROUND_UP(fref, rate); DIV_ROUND_UP 906 drivers/spi/spi-pxa2xx.c return (DIV_ROUND_UP(ssp_clk, 2 * rate) - 1) & 0xff; DIV_ROUND_UP 908 drivers/spi/spi-pxa2xx.c return (DIV_ROUND_UP(ssp_clk, rate) - 1) & 0xfff; DIV_ROUND_UP 1769 drivers/spi/spi-pxa2xx.c DIV_ROUND_UP(controller->max_speed_hz, 4096); DIV_ROUND_UP 1772 drivers/spi/spi-pxa2xx.c DIV_ROUND_UP(controller->max_speed_hz, 512); DIV_ROUND_UP 267 drivers/spi/spi-qup.c remainder = DIV_ROUND_UP(spi_qup_len(controller) - controller->rx_bytes, DIV_ROUND_UP 353 drivers/spi/spi-qup.c remainder = DIV_ROUND_UP(spi_qup_len(controller) - controller->tx_bytes, DIV_ROUND_UP 583 drivers/spi/spi-qup.c remainder_tx = DIV_ROUND_UP(spi_qup_len(controller) - DIV_ROUND_UP 586 drivers/spi/spi-qup.c remainder_rx = DIV_ROUND_UP(spi_qup_len(controller) - DIV_ROUND_UP 679 drivers/spi/spi-qup.c controller->w_size = DIV_ROUND_UP(xfer->bits_per_word, 8); DIV_ROUND_UP 857 drivers/spi/spi-qup.c timeout = DIV_ROUND_UP(xfer->speed_hz, MSEC_PER_SEC); DIV_ROUND_UP 858 drivers/spi/spi-qup.c timeout = DIV_ROUND_UP(min_t(unsigned long, SPI_MAX_XFER, DIV_ROUND_UP 911 drivers/spi/spi-qup.c n_words = xfer->len / DIV_ROUND_UP(xfer->bits_per_word, 8); DIV_ROUND_UP 529 drivers/spi/spi-rockchip.c writel_relaxed(2 * DIV_ROUND_UP(rs->freq, 2 * xfer->speed_hz), DIV_ROUND_UP 258 drivers/spi/spi-rspi.c spbr = DIV_ROUND_UP(clk_get_rate(rspi->clk), DIV_ROUND_UP 306 drivers/spi/spi-rspi.c spbr = DIV_ROUND_UP(clksrc, 2 * rspi->max_speed_hz) - 1; DIV_ROUND_UP 341 drivers/spi/spi-rspi.c spbr = DIV_ROUND_UP(clk_get_rate(rspi->clk), 2 * rspi->max_speed_hz); DIV_ROUND_UP 144 drivers/spi/spi-s3c24xx.c div = DIV_ROUND_UP(clk, hz * 2) - 1; DIV_ROUND_UP 277 drivers/spi/spi-sh-msiof.c div = DIV_ROUND_UP(parent_rate, spi_hz); DIV_ROUND_UP 174 drivers/spi/spi-sifive.c cr = DIV_ROUND_UP(clk_get_rate(spi->clk) >> 1, t->speed_hz) - 1; DIV_ROUND_UP 910 drivers/spi/spi-sirf.c sspi->word_width = DIV_ROUND_UP(bits_per_word, 8); DIV_ROUND_UP 181 drivers/spi/spi-sprd.c u32 bit_time_us = DIV_ROUND_UP(USEC_PER_SEC, ss->hw_speed_hz); DIV_ROUND_UP 188 drivers/spi/spi-sprd.c u32 interval_time_us = DIV_ROUND_UP(interval_cycle * USEC_PER_SEC, DIV_ROUND_UP 665 drivers/spi/spi-sprd.c u32 clk_div = DIV_ROUND_UP(ss->src_clk, speed_hz << 1) - 1; DIV_ROUND_UP 691 drivers/spi/spi-sprd.c interval = DIV_ROUND_UP(word_delay - 10, 4); DIV_ROUND_UP 454 drivers/spi/spi-stm32-qspi.c presc = DIV_ROUND_UP(qspi->clk_rate, spi->max_speed_hz) - 1; DIV_ROUND_UP 445 drivers/spi/spi-stm32.c div = DIV_ROUND_UP(spi->clk_rate, speed_hz); DIV_ROUND_UP 1530 drivers/spi/spi-stm32.c u32 sck_period_ns = DIV_ROUND_UP(SPI_1HZ_NS, spi->cur_speed); DIV_ROUND_UP 1531 drivers/spi/spi-stm32.c u32 midi = min((u32)DIV_ROUND_UP(spi->cur_midi, sck_period_ns), DIV_ROUND_UP 1621 drivers/spi/spi-stm32.c nb_words = DIV_ROUND_UP(transfer->len * 8, 16); DIV_ROUND_UP 1623 drivers/spi/spi-stm32.c nb_words = DIV_ROUND_UP(transfer->len * 8, 32); DIV_ROUND_UP 268 drivers/spi/spi-synquacer.c div = DIV_ROUND_UP(rate, speed); DIV_ROUND_UP 268 drivers/spi/spi-tegra114.c tspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8); DIV_ROUND_UP 311 drivers/spi/spi-tegra114.c max_n_32bit = DIV_ROUND_UP(nbytes, 4); DIV_ROUND_UP 548 drivers/spi/spi-tegra114.c len = DIV_ROUND_UP(tspi->curr_dma_words * tspi->bytes_per_word, DIV_ROUND_UP 164 drivers/spi/spi-tegra20-sflash.c tsd->bytes_per_word = DIV_ROUND_UP(t->bits_per_word, 8); DIV_ROUND_UP 265 drivers/spi/spi-tegra20-slink.c tspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8); DIV_ROUND_UP 308 drivers/spi/spi-tegra20-slink.c max_n_32bit = DIV_ROUND_UP(nbytes, 4); DIV_ROUND_UP 490 drivers/spi/spi-tegra20-slink.c len = DIV_ROUND_UP(tspi->curr_dma_words * tspi->bytes_per_word, DIV_ROUND_UP 161 drivers/spi/spi-ti-qspi.c clk_div = DIV_ROUND_UP(clk_rate, qspi->spi_max_frequency) - 1; DIV_ROUND_UP 190 drivers/spi/spi-txx9.c int n = DIV_ROUND_UP(c->baseclk, speed_hz) - 1; DIV_ROUND_UP 355 drivers/spi/spi-txx9.c master->min_speed_hz = DIV_ROUND_UP(c->baseclk, SPI_MAX_DIVIDER + 1); DIV_ROUND_UP 196 drivers/spi/spi-uniphier.c ckdiv = DIV_ROUND_UP(clk_get_rate(priv->clk), speed); DIV_ROUND_UP 310 drivers/spi/spi-uniphier.c fifo_threshold = DIV_ROUND_UP(priv->rx_bytes, bpw); DIV_ROUND_UP 316 drivers/spi/spi-uniphier.c DIV_ROUND_UP(priv->rx_bytes - priv->tx_bytes, bpw); DIV_ROUND_UP 409 drivers/spi/spi-uniphier.c threshold = DIV_ROUND_UP(SSI_POLL_TIMEOUT_US * priv->speed_hz, DIV_ROUND_UP 528 drivers/spi/spi-uniphier.c master->max_speed_hz = DIV_ROUND_UP(clk_rate, SSI_MIN_CLK_DIVIDER); DIV_ROUND_UP 529 drivers/spi/spi-uniphier.c master->min_speed_hz = DIV_ROUND_UP(clk_rate, SSI_MAX_CLK_DIVIDER); DIV_ROUND_UP 81 drivers/spi/spi-xcomm.c divider = DIV_ROUND_UP(SPI_XCOMM_CLOCK, t->speed_hz); DIV_ROUND_UP 147 drivers/spi/spi-xlp.c fdiv = DIV_ROUND_UP(xspi->spi_clk, spi->max_speed_hz); DIV_ROUND_UP 829 drivers/spi/spi.c sgs = DIV_ROUND_UP(len + offset_in_page(buf), desc_len); DIV_ROUND_UP 832 drivers/spi/spi.c sgs = DIV_ROUND_UP(len, desc_len); DIV_ROUND_UP 1100 drivers/spi/spi.c u32 us = DIV_ROUND_UP(ns, 1000); DIV_ROUND_UP 1105 drivers/spi/spi.c usleep_range(us, us + DIV_ROUND_UP(us, 10)); DIV_ROUND_UP 1135 drivers/spi/spi.c delay *= DIV_ROUND_UP(1000000000, hz); DIV_ROUND_UP 2903 drivers/spi/spi.c count = DIV_ROUND_UP(xfer->len, maxsize); DIV_ROUND_UP 443 drivers/ssb/driver_chipcommon.c tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; /* Waitcount-3 = 10ns */ DIV_ROUND_UP 444 drivers/ssb/driver_chipcommon.c tmp |= DIV_ROUND_UP(40, ns) << SSB_PROG_WCNT_1_SHIFT; /* Waitcount-1 = 40ns */ DIV_ROUND_UP 445 drivers/ssb/driver_chipcommon.c tmp |= DIV_ROUND_UP(240, ns); /* Waitcount-0 = 240ns */ DIV_ROUND_UP 449 drivers/ssb/driver_chipcommon.c tmp = DIV_ROUND_UP(10, ns) << SSB_FLASH_WCNT_3_SHIFT; /* Waitcount-3 = 10nS */ DIV_ROUND_UP 450 drivers/ssb/driver_chipcommon.c tmp |= DIV_ROUND_UP(10, ns) << SSB_FLASH_WCNT_1_SHIFT; /* Waitcount-1 = 10nS */ DIV_ROUND_UP 451 drivers/ssb/driver_chipcommon.c tmp |= DIV_ROUND_UP(120, ns); /* Waitcount-0 = 120nS */ DIV_ROUND_UP 462 drivers/ssb/driver_chipcommon.c tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; /* Waitcount-3 = 10ns */ DIV_ROUND_UP 463 drivers/ssb/driver_chipcommon.c tmp |= DIV_ROUND_UP(20, ns) << SSB_PROG_WCNT_2_SHIFT; /* Waitcount-2 = 20ns */ DIV_ROUND_UP 464 drivers/ssb/driver_chipcommon.c tmp |= DIV_ROUND_UP(100, ns) << SSB_PROG_WCNT_1_SHIFT; /* Waitcount-1 = 100ns */ DIV_ROUND_UP 465 drivers/ssb/driver_chipcommon.c tmp |= DIV_ROUND_UP(120, ns); /* Waitcount-0 = 120ns */ DIV_ROUND_UP 94 drivers/ssb/driver_extif.c tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; DIV_ROUND_UP 95 drivers/ssb/driver_extif.c tmp |= DIV_ROUND_UP(40, ns) << SSB_PROG_WCNT_1_SHIFT; DIV_ROUND_UP 96 drivers/ssb/driver_extif.c tmp |= DIV_ROUND_UP(120, ns); DIV_ROUND_UP 100 drivers/ssb/driver_extif.c tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; DIV_ROUND_UP 101 drivers/ssb/driver_extif.c tmp |= DIV_ROUND_UP(20, ns) << SSB_PROG_WCNT_2_SHIFT; DIV_ROUND_UP 102 drivers/ssb/driver_extif.c tmp |= DIV_ROUND_UP(100, ns) << SSB_PROG_WCNT_1_SHIFT; DIV_ROUND_UP 103 drivers/ssb/driver_extif.c tmp |= DIV_ROUND_UP(120, ns); DIV_ROUND_UP 427 drivers/staging/comedi/drivers.c num_samples = DIV_ROUND_UP(cmd->scan_end_arg, bits_per_sample); DIV_ROUND_UP 280 drivers/staging/comedi/drivers/addi_apci_3120.c divisor = DIV_ROUND_UP(ns, timer_base); DIV_ROUND_UP 496 drivers/staging/comedi/drivers/addi_apci_3xxx.c timer = DIV_ROUND_UP(*ns, base); DIV_ROUND_UP 186 drivers/staging/comedi/drivers/adv_pci1760.c divisor = DIV_ROUND_UP(ns, PCI1760_PWM_TIMEBASE); DIV_ROUND_UP 649 drivers/staging/comedi/drivers/amplc_pci230.c div += DIV_ROUND_UP(rem, timebase); DIV_ROUND_UP 1998 drivers/staging/comedi/drivers/cb_pcidas64.c divisor = DIV_ROUND_UP(ns, TIMER_BASE); DIV_ROUND_UP 449 drivers/staging/comedi/drivers/comedi_8254.c divisor = DIV_ROUND_UP(*nanosec, i8254->osc_base); DIV_ROUND_UP 591 drivers/staging/comedi/drivers/das1800.c arg = DIV_ROUND_UP(arg, 1000); DIV_ROUND_UP 383 drivers/staging/comedi/drivers/dt282x.c divider = DIV_ROUND_UP(*ns, base); DIV_ROUND_UP 361 drivers/staging/comedi/drivers/dt3000.c divider = DIV_ROUND_UP(*nanosec, base); DIV_ROUND_UP 371 drivers/staging/comedi/drivers/ni_labpc_common.c pacer->next_div = DIV_ROUND_UP(convert_period, DIV_ROUND_UP 373 drivers/staging/comedi/drivers/ni_labpc_common.c pacer->next_div2 = DIV_ROUND_UP(scan_period, DIV_ROUND_UP 1942 drivers/staging/comedi/drivers/ni_mio_common.c divider = DIV_ROUND_UP(nanosec, devpriv->clock_ns); DIV_ROUND_UP 4193 drivers/staging/comedi/drivers/ni_mio_common.c DIV_ROUND_UP(data[2], devpriv->clock_ns); DIV_ROUND_UP 4208 drivers/staging/comedi/drivers/ni_mio_common.c DIV_ROUND_UP(data[4], devpriv->clock_ns); DIV_ROUND_UP 4253 drivers/staging/comedi/drivers/ni_mio_common.c DIV_ROUND_UP(data[2], devpriv->clock_ns); DIV_ROUND_UP 4268 drivers/staging/comedi/drivers/ni_mio_common.c DIV_ROUND_UP(data[4], devpriv->clock_ns); DIV_ROUND_UP 520 drivers/staging/comedi/drivers/ni_pcidio.c divider = DIV_ROUND_UP(*nanosec, base); DIV_ROUND_UP 1794 drivers/staging/comedi/drivers/ni_tio.c counter_dev->num_chips = DIV_ROUND_UP(num_counters, counters_per_chip); DIV_ROUND_UP 388 drivers/staging/comedi/drivers/rtd520.c divider = DIV_ROUND_UP(*nanosec, base); DIV_ROUND_UP 886 drivers/staging/comedi/drivers/rtd520.c DIV_ROUND_UP(devpriv->xfer_count, DIV_ROUND_UP 1642 drivers/staging/comedi/drivers/s626.c divider = DIV_ROUND_UP(*nanosec, base); DIV_ROUND_UP 121 drivers/staging/fbtft/fb_sh1106.c page_end = DIV_ROUND_UP(offset + len, 8 * 2 * xres); DIV_ROUND_UP 888 drivers/staging/gasket/gasket_core.c DIV_ROUND_UP(mappable_region.length_bytes, PAGE_SIZE) * DIV_ROUND_UP 770 drivers/staging/gasket/gasket_page_table.c num_lvl0_pages = DIV_ROUND_UP(num_pages, GASKET_PAGES_PER_SUBTABLE); DIV_ROUND_UP 1258 drivers/staging/gasket/gasket_page_table.c unsigned int num_pages = DIV_ROUND_UP(size, PAGE_SIZE); DIV_ROUND_UP 206 drivers/staging/greybus/fw-download.c req_count = DIV_ROUND_UP(fw_req->fw->size, MIN_FETCH_SIZE); DIV_ROUND_UP 973 drivers/staging/iio/adc/ad7280a.c st->readback_delay_us = DIV_ROUND_UP(st->readback_delay_us, 1000); DIV_ROUND_UP 30 drivers/staging/kpc2000/kpc_dma/fileops.c return DIV_ROUND_UP(sg_dma_len(sg), 0x80000); DIV_ROUND_UP 582 drivers/staging/media/allegro-dvt/allegro-core.c unsigned int num_blocks = DIV_ROUND_UP(width, SIZE_MACROBLOCK) * DIV_ROUND_UP 583 drivers/staging/media/allegro-dvt/allegro-core.c DIV_ROUND_UP(height, SIZE_MACROBLOCK); DIV_ROUND_UP 593 drivers/staging/media/allegro-dvt/allegro-core.c unsigned int pic_width_in_mb = DIV_ROUND_UP(width, SIZE_MACROBLOCK); DIV_ROUND_UP 594 drivers/staging/media/allegro-dvt/allegro-core.c unsigned int frame_height_in_mb = DIV_ROUND_UP(height, SIZE_MACROBLOCK); DIV_ROUND_UP 1339 drivers/staging/media/allegro-dvt/allegro-core.c DIV_ROUND_UP(channel->width, size_mb) - 1; DIV_ROUND_UP 1341 drivers/staging/media/allegro-dvt/allegro-core.c DIV_ROUND_UP(channel->height, size_mb) - 1; DIV_ROUND_UP 435 drivers/staging/media/allegro-dvt/nal-h264.c u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8); DIV_ROUND_UP 438 drivers/staging/media/allegro-dvt/nal-h264.c if (DIV_ROUND_UP(rbsp->pos, 8) + i > rbsp->size) { DIV_ROUND_UP 453 drivers/staging/media/allegro-dvt/nal-h264.c u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8); DIV_ROUND_UP 456 drivers/staging/media/allegro-dvt/nal-h264.c if (DIV_ROUND_UP(rbsp->pos, 8) + i > rbsp->size) { DIV_ROUND_UP 471 drivers/staging/media/allegro-dvt/nal-h264.c u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8); DIV_ROUND_UP 475 drivers/staging/media/allegro-dvt/nal-h264.c i = rbsp->size - DIV_ROUND_UP(rbsp->pos, 8) - 1; DIV_ROUND_UP 482 drivers/staging/media/allegro-dvt/nal-h264.c u8 *p = rbsp->data + DIV_ROUND_UP(rbsp->pos, 8); DIV_ROUND_UP 485 drivers/staging/media/allegro-dvt/nal-h264.c if (DIV_ROUND_UP(rbsp->pos, 8) > rbsp->size) { DIV_ROUND_UP 775 drivers/staging/media/allegro-dvt/nal-h264.c return DIV_ROUND_UP(rbsp.pos, 8); DIV_ROUND_UP 822 drivers/staging/media/allegro-dvt/nal-h264.c return DIV_ROUND_UP(rbsp.pos, 8); DIV_ROUND_UP 867 drivers/staging/media/allegro-dvt/nal-h264.c return DIV_ROUND_UP(rbsp.pos, 8); DIV_ROUND_UP 904 drivers/staging/media/allegro-dvt/nal-h264.c return DIV_ROUND_UP(rbsp.pos, 8); DIV_ROUND_UP 947 drivers/staging/media/allegro-dvt/nal-h264.c return DIV_ROUND_UP(rbsp.pos, 8); DIV_ROUND_UP 999 drivers/staging/media/allegro-dvt/nal-h264.c return DIV_ROUND_UP(rbsp.pos, 8); DIV_ROUND_UP 30 drivers/staging/media/hantro/hantro.h #define VP8_MB_WIDTH(w) DIV_ROUND_UP(w, VP8_MB_DIM) DIV_ROUND_UP 31 drivers/staging/media/hantro/hantro.h #define VP8_MB_HEIGHT(h) DIV_ROUND_UP(h, VP8_MB_DIM) DIV_ROUND_UP 34 drivers/staging/media/hantro/hantro.h #define H264_MB_WIDTH(w) DIV_ROUND_UP(w, H264_MB_DIM) DIV_ROUND_UP 35 drivers/staging/media/hantro/hantro.h #define H264_MB_HEIGHT(h) DIV_ROUND_UP(h, H264_MB_DIM) DIV_ROUND_UP 38 drivers/staging/media/hantro/hantro.h #define MPEG2_MB_WIDTH(w) DIV_ROUND_UP(w, MPEG2_MB_DIM) DIV_ROUND_UP 39 drivers/staging/media/hantro/hantro.h #define MPEG2_MB_HEIGHT(h) DIV_ROUND_UP(h, MPEG2_MB_DIM) DIV_ROUND_UP 42 drivers/staging/media/hantro/hantro.h #define JPEG_MB_WIDTH(w) DIV_ROUND_UP(w, JPEG_MB_DIM) DIV_ROUND_UP 43 drivers/staging/media/hantro/hantro.h #define JPEG_MB_HEIGHT(h) DIV_ROUND_UP(h, JPEG_MB_DIM) DIV_ROUND_UP 249 drivers/staging/media/hantro/hantro_v4l2.c 128 * DIV_ROUND_UP(pix_mp->width, 16) * DIV_ROUND_UP 250 drivers/staging/media/hantro/hantro_v4l2.c DIV_ROUND_UP(pix_mp->height, 16); DIV_ROUND_UP 154 drivers/staging/media/hantro/hantro_vp8.c mb_width = DIV_ROUND_UP(ctx->dst_fmt.width, 16); DIV_ROUND_UP 155 drivers/staging/media/hantro/hantro_vp8.c mb_height = DIV_ROUND_UP(ctx->dst_fmt.height, 16); DIV_ROUND_UP 156 drivers/staging/media/hantro/hantro_vp8.c segment_map_size = round_up(DIV_ROUND_UP(mb_width * mb_height, 4), 64); DIV_ROUND_UP 386 drivers/staging/media/ipu3/ipu3-abi.h #define IMGU_VER_CNTX_WORDS DIV_ROUND_UP((IMGU_SCALER_OUT_BPP + \ DIV_ROUND_UP 389 drivers/staging/media/ipu3/ipu3-abi.h #define IMGU_HOR_CNTX_WORDS DIV_ROUND_UP((IMGU_SCALER_INTR_BPP + \ DIV_ROUND_UP 417 drivers/staging/media/ipu3/ipu3-abi.h (DIV_ROUND_UP(IMGU_OSYS_BLOCK_HEIGHT, IMGU_VMEM2_ELEMS_PER_VEC)) DIV_ROUND_UP 59 drivers/staging/media/ipu3/ipu3-css-fw.c unsigned int width = DIV_ROUND_UP(bi->info.isp.sp.internal.max_width, DIV_ROUND_UP 61 drivers/staging/media/ipu3/ipu3-css-fw.c unsigned int height = DIV_ROUND_UP(bi->info.isp.sp.internal.max_height, DIV_ROUND_UP 154 drivers/staging/media/ipu3/ipu3-css-params.c target_width = DIV_ROUND_UP(target_height * input_width, DIV_ROUND_UP 241 drivers/staging/media/ipu3/ipu3-css-params.c return DIV_ROUND_UP(stripe_offset_inp - phase_init, phase_step); DIV_ROUND_UP 272 drivers/staging/media/ipu3/ipu3-css-params.c stripe_width_inp = DIV_ROUND_UP(stripe_width_inp - phase_init, DIV_ROUND_UP 730 drivers/staging/media/ipu3/ipu3-css-params.c stripe_input_width_uv = max(DIV_ROUND_UP( DIV_ROUND_UP 1853 drivers/staging/media/ipu3/ipu3-css-params.c DIV_ROUND_UP(css_pipe->rect[IPU3_CSS_RECT_BDS].width, f) DIV_ROUND_UP 2872 drivers/staging/media/ipu3/ipu3-css-params.c unsigned int blocks_x = ALIGN(DIV_ROUND_UP(frame_out_x, DIV_ROUND_UP 2874 drivers/staging/media/ipu3/ipu3-css-params.c unsigned int blocks_y = DIV_ROUND_UP(frame_out_y, IMGU_DVS_BLOCK_H); DIV_ROUND_UP 2891 drivers/staging/media/ipu3/ipu3-css-params.c gdc_luma.in_block_width_a = DIV_ROUND_UP(gdc_luma.in_block_width, DIV_ROUND_UP 2893 drivers/staging/media/ipu3/ipu3-css-params.c gdc_luma.in_block_width_b = DIV_ROUND_UP(gdc_luma.in_block_width, DIV_ROUND_UP 2913 drivers/staging/media/ipu3/ipu3-css-params.c gdc_chroma.in_block_width_a = DIV_ROUND_UP(gdc_chroma.in_block_width, DIV_ROUND_UP 2915 drivers/staging/media/ipu3/ipu3-css-params.c gdc_chroma.in_block_width_b = DIV_ROUND_UP(gdc_chroma.in_block_width, DIV_ROUND_UP 154 drivers/staging/media/ipu3/ipu3-css.c f->plane_fmt[0].bytesperline = DIV_ROUND_UP(queue->width_pad * DIV_ROUND_UP 160 drivers/staging/media/ipu3/ipu3-css.c DIV_ROUND_UP(f->width, DIV_ROUND_UP 831 drivers/staging/media/ipu3/ipu3-css.c ALIGN(DIV_ROUND_UP(css_pipe->rect[IPU3_CSS_RECT_GDC].width, DIV_ROUND_UP 834 drivers/staging/media/ipu3/ipu3-css.c DIV_ROUND_UP(css_pipe->rect[IPU3_CSS_RECT_GDC].height, DIV_ROUND_UP 204 drivers/staging/media/omap4iss/iss_csiphy.c csi2phy.ths_term = DIV_ROUND_UP(25 * csi2_ddrclk_khz, 2000000) - 1; DIV_ROUND_UP 205 drivers/staging/media/omap4iss/iss_csiphy.c csi2phy.ths_settle = DIV_ROUND_UP(90 * csi2_ddrclk_khz, 1000000) + 3; DIV_ROUND_UP 48 drivers/staging/media/sunxi/cedrus/cedrus_h264.c size_t count = DIV_ROUND_UP(len, 4); DIV_ROUND_UP 504 drivers/staging/media/sunxi/cedrus/cedrus_h264.c field_size = DIV_ROUND_UP(ctx->src_fmt.width, 16) * DIV_ROUND_UP 505 drivers/staging/media/sunxi/cedrus/cedrus_h264.c DIV_ROUND_UP(ctx->src_fmt.height, 16) * 16; DIV_ROUND_UP 206 drivers/staging/media/sunxi/cedrus/cedrus_mpeg2.c reg = src_buf_addr + DIV_ROUND_UP(slice_params->bit_size, 8); DIV_ROUND_UP 104 drivers/staging/media/sunxi/cedrus/cedrus_regs.h SHIFT_AND_MASK_BITS(DIV_ROUND_UP((w), 16), 15, 8) DIV_ROUND_UP 106 drivers/staging/media/sunxi/cedrus/cedrus_regs.h SHIFT_AND_MASK_BITS(DIV_ROUND_UP((h), 16), 7, 0) DIV_ROUND_UP 48 drivers/staging/most/dim2/hal.c #define ROUND_UP_TO(x, d) (DIV_ROUND_UP(x, (d)) * (d)) DIV_ROUND_UP 116 drivers/staging/most/dim2/hal.c u32 const blocks = DIV_ROUND_UP(size, DBR_BLOCK_SIZE); DIV_ROUND_UP 136 drivers/staging/most/dim2/hal.c u32 const blocks = DIV_ROUND_UP(size, DBR_BLOCK_SIZE); DIV_ROUND_UP 327 drivers/staging/mt7621-dma/mtk-hsdma.c chan->desc->num_sgs = DIV_ROUND_UP(len, HSDMA_MAX_PLEN); DIV_ROUND_UP 768 drivers/staging/octeon-usb/octeon-hcd.c divisor = DIV_ROUND_UP(octeon_get_clock_rate(), 125000000); DIV_ROUND_UP 1459 drivers/staging/octeon-usb/octeon-hcd.c packets_to_transfer = DIV_ROUND_UP(bytes_to_transfer, DIV_ROUND_UP 1703 drivers/staging/octeon-usb/octeon-hcd.c DIV_ROUND_UP(bytes_to_transfer, pipe->max_packet); DIV_ROUND_UP 576 drivers/staging/ralink-gdma/ralink-gdma.c num_periods = DIV_ROUND_UP(len, xfer_count); DIV_ROUND_UP 2038 drivers/staging/rtl8188eu/core/rtw_recv.c tmp_s = DIV_ROUND_UP(tmp_s, _alpha); DIV_ROUND_UP 2044 drivers/staging/rtl8188eu/core/rtw_recv.c tmp_q = DIV_ROUND_UP(tmp_q, _alpha); DIV_ROUND_UP 564 drivers/staging/unisys/include/iochannel.h #define SIZEOF_CMDRSP (64 * DIV_ROUND_UP(sizeof(struct uiscmdrsp), 64)) DIV_ROUND_UP 373 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c num_pages = DIV_ROUND_UP(count + offset, PAGE_SIZE); DIV_ROUND_UP 361 drivers/staging/wusbcore/host/whci/qset.c std->num_pointers = DIV_ROUND_UP(ep - sp, WHCI_PAGE_SIZE); DIV_ROUND_UP 498 drivers/staging/wusbcore/host/whci/qset.c num_pointers = DIV_ROUND_UP(ep - sp, WHCI_PAGE_SIZE); DIV_ROUND_UP 659 drivers/staging/wusbcore/host/whci/qset.c ntds_remaining = DIV_ROUND_UP(remaining, QTD_MAX_XFER_SIZE); DIV_ROUND_UP 134 drivers/staging/wusbcore/rh.c size = DIV_ROUND_UP(wusbhc->ports_max + 1, 8); DIV_ROUND_UP 638 drivers/staging/wusbcore/wa-xfer.c xfer->segs = DIV_ROUND_UP(urb->transfer_buffer_length, DIV_ROUND_UP 1034 drivers/staging/wusbcore/wa-xfer.c nents = DIV_ROUND_UP((bytes_to_transfer + DIV_ROUND_UP 1323 drivers/target/iscsi/cxgbit/cxgbit_cm.c DIV_ROUND_UP(sizeof(struct cpl_abort_req), 16); DIV_ROUND_UP 1403 drivers/target/iscsi/cxgbit/cxgbit_cm.c flowclen16 = DIV_ROUND_UP(flowclen, 16); DIV_ROUND_UP 88 drivers/target/iscsi/cxgbit/cxgbit_ddp.c req->len16 = htonl(DIV_ROUND_UP(wr_len - sizeof(req->wr), 16)); DIV_ROUND_UP 118 drivers/target/iscsi/cxgbit/cxgbit_target.c return DIV_ROUND_UP(skb->len, 8); DIV_ROUND_UP 148 drivers/target/iscsi/cxgbit/cxgbit_target.c cpl->mpdu = htons(DIV_ROUND_UP(iso_info->mpdu, 4)); DIV_ROUND_UP 149 drivers/target/iscsi/cxgbit/cxgbit_target.c cpl->burst_size = htonl(DIV_ROUND_UP(iso_info->burst_len, 4)); DIV_ROUND_UP 218 drivers/target/iscsi/cxgbit/cxgbit_target.c credits_needed = DIV_ROUND_UP(dlen + iso_cpl_len, 16); DIV_ROUND_UP 220 drivers/target/iscsi/cxgbit/cxgbit_target.c credits_needed = DIV_ROUND_UP((8 * DIV_ROUND_UP 225 drivers/target/iscsi/cxgbit/cxgbit_target.c credits_needed += DIV_ROUND_UP( DIV_ROUND_UP 912 drivers/target/iscsi/cxgbit/cxgbit_target.c u32 sg_nents = max(1UL, DIV_ROUND_UP(pdu_cb->dlen, PAGE_SIZE)); DIV_ROUND_UP 1075 drivers/target/iscsi/cxgbit/cxgbit_target.c sg_nents = max(1UL, DIV_ROUND_UP(skip + data_len, PAGE_SIZE)); DIV_ROUND_UP 984 drivers/target/iscsi/iscsi_target.c u32 iov_count = max(1UL, DIV_ROUND_UP(cmd->se_cmd.data_length, PAGE_SIZE)); DIV_ROUND_UP 329 drivers/target/iscsi/iscsi_target_auth.c challenge_len = DIV_ROUND_UP(strlen(challenge), 2); DIV_ROUND_UP 1558 drivers/target/sbp/sbp_target.c STATUS_BLOCK_LEN(DIV_ROUND_UP(status_data_len, 4) + 1) | DIV_ROUND_UP 761 drivers/target/target_core_user.c count = DIV_ROUND_UP(se_cmd->data_length, DATA_BLOCK_SIZE); DIV_ROUND_UP 515 drivers/tee/optee/call.c int pages = DIV_ROUND_UP(num_entries, PAGELIST_ENTRIES_PER_PAGE); DIV_ROUND_UP 135 drivers/thermal/broadcom/brcmstb_thermal.c return (u32)(DIV_ROUND_UP(AVS_TMON_TEMP_OFFSET - temp, DIV_ROUND_UP 118 drivers/thermal/hisi_thermal.c return DIV_ROUND_UP(temp - HI6220_TEMP_BASE, HI6220_TEMP_STEP); DIV_ROUND_UP 136 drivers/thermal/hisi_thermal.c return DIV_ROUND_UP(temp - HI3660_TEMP_BASE, HI3660_TEMP_STEP); DIV_ROUND_UP 172 drivers/thermal/hisi_thermal.c writel(DIV_ROUND_UP(value, HI6220_TEMP_STEP) & 0x1F, DIV_ROUND_UP 224 drivers/thermal/hisi_thermal.c writel(DIV_ROUND_UP(value, HI3660_TEMP_STEP) & 0x7F, DIV_ROUND_UP 827 drivers/thermal/imx_thermal.c measure_freq = DIV_ROUND_UP(32768, 10); /* 10 Hz */ DIV_ROUND_UP 914 drivers/thunderbolt/nhi.c u32 throttle = DIV_ROUND_UP(128 * NSEC_PER_USEC, 256); DIV_ROUND_UP 65 drivers/tty/serial/8250/8250_lpc18xx.c rs485_dly_reg = DIV_ROUND_UP(rs485->delay_rts_after_send DIV_ROUND_UP 332 drivers/tty/serial/8250/8250_mtk.c quot = DIV_ROUND_UP(port->uartclk, 256 * baud); DIV_ROUND_UP 1970 drivers/tty/serial/amba-pl011.c uap->dmarx.poll_rate = DIV_ROUND_UP(10000000, baud); DIV_ROUND_UP 466 drivers/tty/serial/mvebu-uart.c d_divisor = DIV_ROUND_UP(port->uartclk, baud * m_divisor); DIV_ROUND_UP 1081 drivers/tty/serial/mxs-auart.c baud_min = DIV_ROUND_UP(u->uartclk * 32, DIV_ROUND_UP 290 drivers/tty/serial/qcom_geni_serial.c timeout_us = DIV_ROUND_UP(timeout_us, 10) * 10; DIV_ROUND_UP 273 drivers/tty/serial/serial-tegra.c udelay(DIV_ROUND_UP(cycles * 1000000, tup->current_baud * 16)); DIV_ROUND_UP 281 drivers/tty/serial/serial-tegra.c udelay(DIV_ROUND_UP(syms * tup->symb_bit * 1000000, DIV_ROUND_UP 918 drivers/tty/serial/serial-tegra.c unsigned long char_time = DIV_ROUND_UP(10000000, tup->current_baud); DIV_ROUND_UP 1727 drivers/tty/serial/sh-sci.c mod_timer(&s->rx_fifo_timer, jiffies + DIV_ROUND_UP( DIV_ROUND_UP 2612 drivers/tty/serial/sh-sci.c udelay(DIV_ROUND_UP(10 * 1000000, baud)); DIV_ROUND_UP 467 drivers/tty/serial/sifive.c div = DIV_ROUND_UP(ssp->clkin_rate, ssp->baud_rate) - 1; DIV_ROUND_UP 4867 drivers/tty/synclink_gt.c if (DIV_ROUND_UP(size, DMABUFSIZE) > free_tbuf_count(info)) DIV_ROUND_UP 911 drivers/usb/cdns3/gadget.c td_size = DIV_ROUND_UP(length, DIV_ROUND_UP 1607 drivers/usb/core/devio.c num_sgs = DIV_ROUND_UP(uurb->buffer_length, USB_SG_SIZE); DIV_ROUND_UP 3857 drivers/usb/core/hub.c u1_sel = DIV_ROUND_UP(udev->u1_params.sel, 1000); DIV_ROUND_UP 3858 drivers/usb/core/hub.c u1_pel = DIV_ROUND_UP(udev->u1_params.pel, 1000); DIV_ROUND_UP 3859 drivers/usb/core/hub.c u2_sel = DIV_ROUND_UP(udev->u2_params.sel, 1000); DIV_ROUND_UP 3860 drivers/usb/core/hub.c u2_pel = DIV_ROUND_UP(udev->u2_params.pel, 1000); DIV_ROUND_UP 826 drivers/usb/dwc2/core.h (DIV_ROUND_UP((us), DWC2_US_PER_SLICE) * \ DIV_ROUND_UP 1132 drivers/usb/dwc2/core.h DIV_ROUND_UP(DWC2_HS_SCHEDULE_US, BITS_PER_LONG)]; DIV_ROUND_UP 640 drivers/usb/dwc2/gadget.c to_write = DIV_ROUND_UP(to_write, 4); DIV_ROUND_UP 917 drivers/usb/dwc2/gadget.c pid = DIV_ROUND_UP(len, hs_ep->ep.maxpacket); DIV_ROUND_UP 1082 drivers/usb/dwc2/gadget.c packets = DIV_ROUND_UP(length, hs_ep->ep.maxpacket); DIV_ROUND_UP 2269 drivers/usb/dwc2/gadget.c to_read = DIV_ROUND_UP(to_read, 4); DIV_ROUND_UP 3789 drivers/usb/dwc2/hcd.c DIV_ROUND_UP(interval * us, us_per_frame); DIV_ROUND_UP 221 drivers/usb/dwc2/hcd.h #define DWC2_ELEMENTS_PER_LS_BITMAP DIV_ROUND_UP(DWC2_LS_SCHEDULE_SLICES, \ DIV_ROUND_UP 587 drivers/usb/dwc2/hcd_queue.c int slices = DIV_ROUND_UP(qh->device_us, DWC2_US_PER_SLICE); DIV_ROUND_UP 626 drivers/usb/dwc2/hcd_queue.c int slices = DIV_ROUND_UP(qh->device_us, DWC2_US_PER_SLICE); DIV_ROUND_UP 833 drivers/usb/dwc2/hcd_queue.c DIV_ROUND_UP(188 * (qh->ls_start_schedule_slice % DIV_ROUND_UP 868 drivers/usb/dwc2/hcd_queue.c qh->num_hs_transfers = 1 + DIV_ROUND_UP(other_data_bytes, 188); DIV_ROUND_UP 475 drivers/usb/gadget/configfs.c if (DIV_ROUND_UP(val, 8) > 0xff) DIV_ROUND_UP 468 drivers/usb/gadget/function/f_uac2.c DIV_ROUND_UP(srate, factor / (1 << (ep_desc->bInterval - 1))); DIV_ROUND_UP 750 drivers/usb/gadget/udc/r8a66597-udc.c DIV_ROUND_UP(req->req.length, ep->ep.maxpacket), DIV_ROUND_UP 4209 drivers/usb/host/fotg210-hcd.c DIV_ROUND_UP(mod - excess, period); DIV_ROUND_UP 815 drivers/usb/host/imx21-hcd.c i = DIV_ROUND_UP(wrap_frame( DIV_ROUND_UP 130 drivers/usb/host/ohci-hcd.c num += DIV_ROUND_UP(this_sg_len, 4096); DIV_ROUND_UP 139 drivers/usb/host/ohci-hcd.c num = DIV_ROUND_UP(len, 4096); DIV_ROUND_UP 280 drivers/usb/host/ohci-hcd.c urb_priv->td_cnt = DIV_ROUND_UP( DIV_ROUND_UP 623 drivers/usb/host/ohci-hub.c int limit_1 = DIV_ROUND_UP(PORT_RESET_MSEC, PORT_RESET_HW_MSEC); DIV_ROUND_UP 1112 drivers/usb/host/r8a66597-hcd.c DIV_ROUND_UP DIV_ROUND_UP 262 drivers/usb/host/xhci-mtk-sch.c esit_pkts = DIV_ROUND_UP(max_esit_payload, maxpkt); DIV_ROUND_UP 284 drivers/usb/host/xhci-mtk-sch.c DIV_ROUND_UP(esit_pkts, sch_ep->pkts); DIV_ROUND_UP 305 drivers/usb/host/xhci-mtk-sch.c sch_ep->cs_count = DIV_ROUND_UP(maxpkt, FS_PAYLOAD_MAX); DIV_ROUND_UP 406 drivers/usb/host/xhci-mtk-sch.c u32 cs_count = DIV_ROUND_UP(sch_ep->maxpkt, FS_PAYLOAD_MAX); DIV_ROUND_UP 3062 drivers/usb/host/xhci-ring.c num_trbs = DIV_ROUND_UP(len + (addr & (TRB_MAX_BUFF_SIZE - 1)), DIV_ROUND_UP 3219 drivers/usb/host/xhci-ring.c total_packet_count = DIV_ROUND_UP(td_total_len, maxp); DIV_ROUND_UP 3600 drivers/usb/host/xhci-ring.c return DIV_ROUND_UP(total_packet_count, max_burst + 1) - 1; DIV_ROUND_UP 3771 drivers/usb/host/xhci-ring.c total_pkt_count = DIV_ROUND_UP(td_len, max_pkt); DIV_ROUND_UP 850 drivers/usb/host/xhci-tegra.c code_tag_blocks = DIV_ROUND_UP(le32_to_cpu(header->boot_codetag), DIV_ROUND_UP 852 drivers/usb/host/xhci-tegra.c code_size_blocks = DIV_ROUND_UP(le32_to_cpu(header->boot_codesize), DIV_ROUND_UP 1300 drivers/usb/host/xhci.c unsigned int number = DIV_ROUND_UP(ep_index, 2); DIV_ROUND_UP 2236 drivers/usb/host/xhci.c bw_reserved = DIV_ROUND_UP(SS_BW_RESERVED*SS_BW_LIMIT_IN, 100); DIV_ROUND_UP 2240 drivers/usb/host/xhci.c bw_reserved = DIV_ROUND_UP(SS_BW_RESERVED*SS_BW_LIMIT_OUT, 100); DIV_ROUND_UP 2309 drivers/usb/host/xhci.c bw_reserved = DIV_ROUND_UP(HS_BW_RESERVED * max_bandwidth, 100); DIV_ROUND_UP 2312 drivers/usb/host/xhci.c bw_reserved = DIV_ROUND_UP(FS_BW_RESERVED * max_bandwidth, 100); DIV_ROUND_UP 2346 drivers/usb/host/xhci.c bw_used = DIV_ROUND_UP(bw_table->interval0_esit_payload, block_size) + DIV_ROUND_UP 2376 drivers/usb/host/xhci.c largest_mps = DIV_ROUND_UP( DIV_ROUND_UP 2479 drivers/usb/host/xhci.c unsigned int mps = DIV_ROUND_UP(ep_bw->max_packet_size, SS_BLOCK); DIV_ROUND_UP 2485 drivers/usb/host/xhci.c return DIV_ROUND_UP(ep_bw->mult * ep_bw->num_packets * DIV_ROUND_UP 4552 drivers/usb/host/xhci.c sel = DIV_ROUND_UP(udev->u1_params.sel, 1000); DIV_ROUND_UP 4553 drivers/usb/host/xhci.c pel = DIV_ROUND_UP(udev->u1_params.pel, 1000); DIV_ROUND_UP 4558 drivers/usb/host/xhci.c sel = DIV_ROUND_UP(udev->u2_params.sel, 1000); DIV_ROUND_UP 4559 drivers/usb/host/xhci.c pel = DIV_ROUND_UP(udev->u2_params.pel, 1000); DIV_ROUND_UP 4913 drivers/usb/host/xhci.c u1_mel_us = DIV_ROUND_UP(udev->u1_params.mel, 1000); DIV_ROUND_UP 4916 drivers/usb/host/xhci.c u2_mel_us = DIV_ROUND_UP(udev->u2_params.mel, 1000); DIV_ROUND_UP 1994 drivers/usb/misc/usbtest.c packets = DIV_ROUND_UP(bytes, maxp); DIV_ROUND_UP 26 drivers/usb/mtu3/mtu3_core.c u32 num_bits = DIV_ROUND_UP(seg_size, MTU3_EP_FIFO_UNIT); DIV_ROUND_UP 587 drivers/usb/musb/cppi_dma.c n_bds = DIV_ROUND_UP(length, maxpacket); DIV_ROUND_UP 795 drivers/usb/musb/cppi_dma.c n_bds = DIV_ROUND_UP(length, maxpacket); DIV_ROUND_UP 391 drivers/usb/renesas_usbhs/pipe.c usbhsp_pipe_trn_set(pipe, 0xffff, DIV_ROUND_UP(len, maxp)); DIV_ROUND_UP 232 drivers/usb/usbip/vhci_hcd.c int retval = DIV_ROUND_UP(VHCI_HC_PORTS + 1, 8); DIV_ROUND_UP 130 drivers/usb/usbip/vudc_rx.c packets = DIV_ROUND_UP(bytes, maxp); DIV_ROUND_UP 201 drivers/video/backlight/pwm_bl.c min((int)DIV_ROUND_UP(period, fls(period)), 4096); DIV_ROUND_UP 271 drivers/video/fbdev/atmel_lcdfb.c value = DIV_ROUND_UP(value, 4); DIV_ROUND_UP 273 drivers/video/fbdev/atmel_lcdfb.c value = DIV_ROUND_UP(value, 8); DIV_ROUND_UP 586 drivers/video/fbdev/atmel_lcdfb.c info->fix.line_length = DIV_ROUND_UP(bits_per_line, 8); DIV_ROUND_UP 605 drivers/video/fbdev/atmel_lcdfb.c value = DIV_ROUND_UP(clk_value_khz, PICOS2KHZ(info->var.pixclock)); DIV_ROUND_UP 944 drivers/video/fbdev/broadsheetfb.c h_inc = DIV_ROUND_UP(PAGE_SIZE , xres); DIV_ROUND_UP 210 drivers/video/fbdev/bt431.h width = DIV_ROUND_UP(width, 8); DIV_ROUND_UP 79 drivers/video/fbdev/clps711x-fb.c val = DIV_ROUND_UP(var->xres, 16) - 1; DIV_ROUND_UP 83 drivers/video/fbdev/clps711x-fb.c val = DIV_ROUND_UP(var->yres * var->xres * var->bits_per_pixel, 128); DIV_ROUND_UP 29 drivers/video/fbdev/core/bitblit.c int width = DIV_ROUND_UP(vc->vc_font.width, 8); DIV_ROUND_UP 148 drivers/video/fbdev/core/bitblit.c u32 width = DIV_ROUND_UP(vc->vc_font.width, 8); DIV_ROUND_UP 177 drivers/video/fbdev/core/bitblit.c pitch = DIV_ROUND_UP(image.width, 8) + scan_align; DIV_ROUND_UP 242 drivers/video/fbdev/core/bitblit.c int w = DIV_ROUND_UP(vc->vc_font.width, 8), c; DIV_ROUND_UP 623 drivers/video/fbdev/core/fbcon.c logo_lines = DIV_ROUND_UP(logo_height, vc->vc_font.height); DIV_ROUND_UP 1015 drivers/video/fbdev/fsl-diu-fb.c image += DIV_ROUND_UP(width, 8); DIV_ROUND_UP 1065 drivers/video/fbdev/fsl-diu-fb.c DIV_ROUND_UP(cursor->image.width, 8) * DIV_ROUND_UP 1068 drivers/video/fbdev/fsl-diu-fb.c DIV_ROUND_UP(image_size, sizeof(uint32_t)); DIV_ROUND_UP 249 drivers/video/fbdev/gxt4500.c pll_period = DIV_ROUND_UP(period_ps, postdiv); DIV_ROUND_UP 2144 drivers/video/fbdev/omap2/omapfb/dss/dispc.c const int ds = DIV_ROUND_UP(height, out_height); DIV_ROUND_UP 2279 drivers/video/fbdev/omap2/omapfb/dss/dispc.c return DIV_ROUND_UP(pclk, out_width) * width; DIV_ROUND_UP 2433 drivers/video/fbdev/omap2/omapfb/dss/dispc.c DIV_ROUND_UP(pclk, out_width); DIV_ROUND_UP 2436 drivers/video/fbdev/omap2/omapfb/dss/dispc.c *decim_x = DIV_ROUND_UP(width, in_width_max); DIV_ROUND_UP 2503 drivers/video/fbdev/omap2/omapfb/dss/dispc.c decim_x = DIV_ROUND_UP(DIV_ROUND_UP(width, out_width), maxdownscale); DIV_ROUND_UP 2504 drivers/video/fbdev/omap2/omapfb/dss/dispc.c decim_y = DIV_ROUND_UP(DIV_ROUND_UP(height, out_height), maxdownscale); DIV_ROUND_UP 3729 drivers/video/fbdev/omap2/omapfb/dss/dispc.c lckd_start = max(DIV_ROUND_UP(dispc, lck_max), 1ul); DIV_ROUND_UP 3735 drivers/video/fbdev/omap2/omapfb/dss/dispc.c pckd_start = max(DIV_ROUND_UP(lck, pck_max), pckd_hw_min); DIV_ROUND_UP 1271 drivers/video/fbdev/omap2/omapfb/dss/dsi.c lp_clk_div = DIV_ROUND_UP(dsi_fclk, lp_clk_max * 2); DIV_ROUND_UP 1371 drivers/video/fbdev/omap2/omapfb/dss/dsi.c cinfo->mX[HSDIV_DSI] = DIV_ROUND_UP(cinfo->clkdco, max_dsi_fck); DIV_ROUND_UP 3487 drivers/video/fbdev/omap2/omapfb/dss/dsi.c width_bytes = DIV_ROUND_UP(timings->x_res * bpp, 8); DIV_ROUND_UP 3488 drivers/video/fbdev/omap2/omapfb/dss/dsi.c bllp = hbp + hfp + hsa + DIV_ROUND_UP(width_bytes + 6, ndl); DIV_ROUND_UP 3657 drivers/video/fbdev/omap2/omapfb/dss/dsi.c ths_eot = DIV_ROUND_UP(4, ndl); DIV_ROUND_UP 3659 drivers/video/fbdev/omap2/omapfb/dss/dsi.c ddr_clk_pre = DIV_ROUND_UP(tclk_pre + tlpx + tclk_zero + tclk_prepare, DIV_ROUND_UP 3661 drivers/video/fbdev/omap2/omapfb/dss/dsi.c ddr_clk_post = DIV_ROUND_UP(tclk_post + ths_trail, 4) + ths_eot; DIV_ROUND_UP 3675 drivers/video/fbdev/omap2/omapfb/dss/dsi.c enter_hs_mode_lat = 1 + DIV_ROUND_UP(tlpx, 4) + DIV_ROUND_UP 3676 drivers/video/fbdev/omap2/omapfb/dss/dsi.c DIV_ROUND_UP(ths_prepare, 4) + DIV_ROUND_UP 3677 drivers/video/fbdev/omap2/omapfb/dss/dsi.c DIV_ROUND_UP(ths_zero + 3, 4); DIV_ROUND_UP 3679 drivers/video/fbdev/omap2/omapfb/dss/dsi.c exit_hs_mode_lat = DIV_ROUND_UP(ths_trail + ths_exit, 4) + 1 + ths_eot; DIV_ROUND_UP 3704 drivers/video/fbdev/omap2/omapfb/dss/dsi.c ((hsa == 0 && ndl == 3) ? 1 : DIV_ROUND_UP(4, ndl)) : 0; DIV_ROUND_UP 3706 drivers/video/fbdev/omap2/omapfb/dss/dsi.c width_bytes = DIV_ROUND_UP(timings->x_res * bpp, 8); DIV_ROUND_UP 3709 drivers/video/fbdev/omap2/omapfb/dss/dsi.c tl = DIV_ROUND_UP(4, ndl) + (hsync_end ? hsa : 0) + t_he + hfp + DIV_ROUND_UP 3710 drivers/video/fbdev/omap2/omapfb/dss/dsi.c DIV_ROUND_UP(width_bytes + 6, ndl) + hbp; DIV_ROUND_UP 3849 drivers/video/fbdev/omap2/omapfb/dss/dsi.c word_count = DIV_ROUND_UP(dsi->timings.x_res * bpp, 8); DIV_ROUND_UP 4322 drivers/video/fbdev/omap2/omapfb/dss/dsi.c wc = DIV_ROUND_UP(t->hact * t->bitspp, 8); DIV_ROUND_UP 4323 drivers/video/fbdev/omap2/omapfb/dss/dsi.c pps = DIV_ROUND_UP(wc + 6, t->ndl); /* pixel packet size */ DIV_ROUND_UP 4388 drivers/video/fbdev/omap2/omapfb/dss/dsi.c dsi_hact = DIV_ROUND_UP(DIV_ROUND_UP(t->hact * t->bitspp, 8) + 6, t->ndl); DIV_ROUND_UP 4523 drivers/video/fbdev/omap2/omapfb/dss/dsi.c dsi_hact = DIV_ROUND_UP(DIV_ROUND_UP(xres * bitspp, 8) + 6, ndl); DIV_ROUND_UP 4547 drivers/video/fbdev/omap2/omapfb/dss/dsi.c hss = DIV_ROUND_UP(4, ndl); DIV_ROUND_UP 4553 drivers/video/fbdev/omap2/omapfb/dss/dsi.c hse = DIV_ROUND_UP(4, ndl); DIV_ROUND_UP 542 drivers/video/fbdev/omap2/omapfb/dss/dss.c fckd_stop = max(DIV_ROUND_UP(prate * m, fck_hw_max), 1ul); DIV_ROUND_UP 545 drivers/video/fbdev/omap2/omapfb/dss/dss.c fck = DIV_ROUND_UP(prate, fckd) * m; DIV_ROUND_UP 592 drivers/video/fbdev/omap2/omapfb/dss/dss.c fck_div = DIV_ROUND_UP(prate * dss.feat->dss_fck_multiplier, DIV_ROUND_UP 594 drivers/video/fbdev/omap2/omapfb/dss/dss.c fck = DIV_ROUND_UP(prate, fck_div) * dss.feat->dss_fck_multiplier; DIV_ROUND_UP 56 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c n = DIV_ROUND_UP(clkin, hw->fint_max); DIV_ROUND_UP 61 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c m2 = DIV_ROUND_UP(min_dco, target_bitclk); DIV_ROUND_UP 82 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c sd = DIV_ROUND_UP(fint * m, 250000000); DIV_ROUND_UP 132 drivers/video/fbdev/omap2/omapfb/dss/pll.c m_start = max(DIV_ROUND_UP(clkdco, out_max), 1ul); DIV_ROUND_UP 162 drivers/video/fbdev/omap2/omapfb/dss/pll.c n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); DIV_ROUND_UP 170 drivers/video/fbdev/omap2/omapfb/dss/pll.c m_start = max(DIV_ROUND_UP(DIV_ROUND_UP(pll_min, fint), 2), DIV_ROUND_UP 381 drivers/video/fbdev/s3c2410fb.c clkdiv = DIV_ROUND_UP(s3c2410fb_calc_pixclk(fbi, var->pixclock), 2); DIV_ROUND_UP 163 drivers/video/fbdev/ssd1307fb.c unsigned int pages = DIV_ROUND_UP(par->height, 8); DIV_ROUND_UP 490 drivers/video/fbdev/ssd1307fb.c DIV_ROUND_UP(par->height, 8) - 1); DIV_ROUND_UP 678 drivers/video/fbdev/ssd1307fb.c vmem_size = DIV_ROUND_UP(par->width, 8) * par->height; DIV_ROUND_UP 701 drivers/video/fbdev/ssd1307fb.c info->fix.line_length = DIV_ROUND_UP(par->width, 8); DIV_ROUND_UP 102 drivers/watchdog/coh901327_wdt.c delay_ns = DIV_ROUND_UP(1000000000, freq); /* Freq to ns and round up */ DIV_ROUND_UP 46 drivers/watchdog/ebc-c384_wdt.c t = DIV_ROUND_UP(t, 60); DIV_ROUND_UP 233 drivers/watchdog/f71808e_wdt.c watchdog.timer_val = DIV_ROUND_UP(timeout, 60); DIV_ROUND_UP 753 drivers/watchdog/f71808e_wdt.c DIV_ROUND_UP(start_withtimeout, 60)); DIV_ROUND_UP 55 drivers/watchdog/intel-mid_wdt.c in_size = DIV_ROUND_UP(sizeof(ipc_wd_start), 4); DIV_ROUND_UP 107 drivers/watchdog/lpc18xx_wdt.c val = DIV_ROUND_UP(lpc18xx_wdt->wdt_dev.timeout * lpc18xx_wdt->clk_rate, DIV_ROUND_UP 261 drivers/watchdog/lpc18xx_wdt.c lpc18xx_wdt->wdt_dev.min_timeout = DIV_ROUND_UP(LPC18XX_WDT_TC_MIN * DIV_ROUND_UP 77 drivers/watchdog/nic7018_wdt.c count = DIV_ROUND_UP(timeout + 16, 32); DIV_ROUND_UP 36 drivers/watchdog/renesas_wdt.c DIV_ROUND_UP((d) * (p)->clk_rate, clk_divs[(p)->cks]) DIV_ROUND_UP 78 drivers/watchdog/renesas_wdt.c delay = DIV_ROUND_UP(cycles * 1000000, priv->clk_rate); DIV_ROUND_UP 56 drivers/watchdog/rza_wdt.c ticks = DIV_ROUND_UP(timeout * rate, DIVIDER_4BIT); DIV_ROUND_UP 311 drivers/watchdog/s3c2410_wdt.c freq = DIV_ROUND_UP(freq, 128); DIV_ROUND_UP 323 drivers/watchdog/s3c2410_wdt.c divisor = DIV_ROUND_UP(count, 0xffff); DIV_ROUND_UP 332 drivers/watchdog/s3c2410_wdt.c timeout, divisor, count, DIV_ROUND_UP(count, divisor)); DIV_ROUND_UP 334 drivers/watchdog/s3c2410_wdt.c count = DIV_ROUND_UP(count, divisor); DIV_ROUND_UP 98 drivers/watchdog/stm32_iwdg.c presc = DIV_ROUND_UP(tout * wdt->rate, RLR_MAX + 1); DIV_ROUND_UP 257 drivers/watchdog/stm32_iwdg.c wdd->min_timeout = DIV_ROUND_UP((RLR_MIN + 1) * PR_MIN, wdt->rate); DIV_ROUND_UP 89 drivers/watchdog/zx2967_wdt.c divisor = DIV_ROUND_UP(count, ZX2967_WDT_MAX_COUNT); DIV_ROUND_UP 90 drivers/watchdog/zx2967_wdt.c count = DIV_ROUND_UP(count, divisor); DIV_ROUND_UP 24 drivers/xen/arm-device.c nr = DIV_ROUND_UP(resource_size(r), XEN_PAGE_SIZE); DIV_ROUND_UP 58 drivers/xen/arm-device.c nr = DIV_ROUND_UP(resource_size(r), XEN_PAGE_SIZE); DIV_ROUND_UP 481 drivers/xen/privcmd.c nr_pages = DIV_ROUND_UP(m.num, XEN_PFN_PER_PAGE); DIV_ROUND_UP 593 drivers/xen/privcmd.c requested = DIV_ROUND_UP( DIV_ROUND_UP 671 drivers/xen/privcmd.c nr_pages += DIV_ROUND_UP( DIV_ROUND_UP 760 drivers/xen/privcmd.c unsigned int nr = DIV_ROUND_UP(kdata.num, XEN_PFN_PER_PAGE); DIV_ROUND_UP 169 drivers/xen/xen-front-pgdir-shbuf.c return DIV_ROUND_UP(buf->num_pages, XEN_NUM_GREFS_PER_PAGE); DIV_ROUND_UP 52 drivers/xen/xenbus/xenbus_client.c #define XENBUS_PAGES(_grants) (DIV_ROUND_UP(_grants, XEN_PFN_PER_PAGE)) DIV_ROUND_UP 152 drivers/xen/xlate_mmu.c unsigned long range = DIV_ROUND_UP(nr, XEN_PFN_PER_PAGE) << PAGE_SHIFT; DIV_ROUND_UP 225 drivers/xen/xlate_mmu.c nr_pages = DIV_ROUND_UP(nr_grant_frames, XEN_PFN_PER_PAGE); DIV_ROUND_UP 1215 fs/btrfs/check-integrity.c BUG_ON(i >= DIV_ROUND_UP(block_ctx->len, PAGE_SIZE)); DIV_ROUND_UP 71 fs/btrfs/compression.c (DIV_ROUND_UP(disk_size, fs_info->sectorsize)) * csum_size; DIV_ROUND_UP 601 fs/btrfs/compression.c nr_pages = DIV_ROUND_UP(compressed_len, PAGE_SIZE); DIV_ROUND_UP 667 fs/btrfs/compression.c nr_sectors = DIV_ROUND_UP(comp_bio->bi_iter.bi_size, DIV_ROUND_UP 1604 fs/btrfs/file.c nrptrs = min(DIV_ROUND_UP(iov_iter_count(i), PAGE_SIZE), DIV_ROUND_UP 1619 fs/btrfs/file.c size_t num_pages = DIV_ROUND_UP(write_bytes + offset, DIV_ROUND_UP 1661 fs/btrfs/file.c num_pages = DIV_ROUND_UP(write_bytes + offset, DIV_ROUND_UP 1733 fs/btrfs/file.c dirty_pages = DIV_ROUND_UP(copied + offset, DIV_ROUND_UP 306 fs/btrfs/free-space-cache.c num_pages = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); DIV_ROUND_UP 138 fs/btrfs/free-space-tree.c return DIV_ROUND_UP((u32)div_u64(size, sectorsize), BITS_PER_BYTE); DIV_ROUND_UP 1219 fs/btrfs/inode.c u64 num_chunks = DIV_ROUND_UP(end - start, SZ_512K); DIV_ROUND_UP 1291 fs/btrfs/inode.c nr_pages = DIV_ROUND_UP(cur_end - start, PAGE_SIZE); DIV_ROUND_UP 1480 fs/btrfs/ioctl.c (i < DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE))) { DIV_ROUND_UP 1502 fs/btrfs/ioctl.c next = DIV_ROUND_UP(skip, PAGE_SIZE); DIV_ROUND_UP 313 fs/btrfs/lzo.c unsigned long total_pages_in = DIV_ROUND_UP(srclen, PAGE_SIZE); DIV_ROUND_UP 139 fs/btrfs/ordered-data.h int num_sectors = (int)DIV_ROUND_UP(bytes, fs_info->sectorsize); DIV_ROUND_UP 968 fs/btrfs/raid56.c return DIV_ROUND_UP(stripe_len, PAGE_SIZE) * nr_stripes; DIV_ROUND_UP 983 fs/btrfs/raid56.c int stripe_npages = DIV_ROUND_UP(stripe_len, PAGE_SIZE); DIV_ROUND_UP 2802 fs/btrfs/scrub.c return DIV_ROUND_UP(nsectors, BITS_PER_LONG) * sizeof(long); DIV_ROUND_UP 240 fs/btrfs/zlib.c unsigned long total_pages_in = DIV_ROUND_UP(srclen, PAGE_SIZE); DIV_ROUND_UP 561 fs/btrfs/zstd.c unsigned long total_pages_in = DIV_ROUND_UP(srclen, PAGE_SIZE); DIV_ROUND_UP 639 fs/ceph/file.c num_pages = DIV_ROUND_UP(ret + page_off, PAGE_SIZE); DIV_ROUND_UP 2092 fs/cifs/cifssmb.c nr_pages = DIV_ROUND_UP(rest_len, PAGE_SIZE); DIV_ROUND_UP 2670 fs/cifs/file.c num_pages = DIV_ROUND_UP(clen, PAGE_SIZE); DIV_ROUND_UP 3625 fs/cifs/file.c npages = DIV_ROUND_UP(cur_len, PAGE_SIZE); DIV_ROUND_UP 900 fs/cifs/misc.c cur_npages = DIV_ROUND_UP(rc, PAGE_SIZE); DIV_ROUND_UP 196 fs/cifs/smb2ops.c DIV_ROUND_UP(*num, SMB2_MAX_BUFFER_SIZE); DIV_ROUND_UP 214 fs/cifs/smb2ops.c int new_val = DIV_ROUND_UP(payload_size, SMB2_MAX_BUFFER_SIZE); DIV_ROUND_UP 4154 fs/cifs/smb2ops.c npages = DIV_ROUND_UP(len, PAGE_SIZE); DIV_ROUND_UP 531 fs/cifs/smb2pdu.c return DIV_ROUND_UP(le16_to_cpu(pneg_ctxt->DataLength) + DIV_ROUND_UP 582 fs/cifs/smb2pdu.c ctxt_len = DIV_ROUND_UP(sizeof(struct smb2_preauth_neg_context), 8) * 8; DIV_ROUND_UP 587 fs/cifs/smb2pdu.c ctxt_len = DIV_ROUND_UP(sizeof(struct smb2_encryption_neg_context), 8) * 8; DIV_ROUND_UP 594 fs/cifs/smb2pdu.c ctxt_len = DIV_ROUND_UP( DIV_ROUND_UP 2751 fs/cifs/smb2pdu.c cpu_to_le16(DIV_ROUND_UP(max(indatalen, max_response_size), DIV_ROUND_UP 3601 fs/cifs/smb2pdu.c *total_len = DIV_ROUND_UP(*total_len, 8) * 8; DIV_ROUND_UP 3748 fs/cifs/smb2pdu.c shdr->CreditCharge = cpu_to_le16(DIV_ROUND_UP(rdata->bytes, DIV_ROUND_UP 4043 fs/cifs/smb2pdu.c shdr->CreditCharge = cpu_to_le16(DIV_ROUND_UP(wdata->bytes, DIV_ROUND_UP 129 fs/crypto/fname.c #define BASE64_CHARS(nbytes) DIV_ROUND_UP((nbytes) * 4, 3) DIV_ROUND_UP 1490 fs/dax.c max_pgoff = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); DIV_ROUND_UP 60 fs/erofs/data.c nblocks = DIV_ROUND_UP(inode->i_size, PAGE_SIZE); DIV_ROUND_UP 216 fs/erofs/data.c if (nblocks > DIV_ROUND_UP(map.m_plen, PAGE_SIZE)) DIV_ROUND_UP 217 fs/erofs/data.c nblocks = DIV_ROUND_UP(map.m_plen, PAGE_SIZE); DIV_ROUND_UP 15 fs/erofs/decompressor.c #define LZ4_MAX_DISTANCE_PAGES (DIV_ROUND_UP(LZ4_DISTANCE_MAX, PAGE_SIZE) + 1) DIV_ROUND_UP 37 fs/erofs/decompressor.c unsigned long bounced[DIV_ROUND_UP(LZ4_MAX_DISTANCE_PAGES, DIV_ROUND_UP 255 fs/erofs/internal.h return DIV_ROUND_UP(inode->i_size, EROFS_BLKSIZ); DIV_ROUND_UP 268 fs/erofs/zmap.c const unsigned int totalidx = DIV_ROUND_UP(inode->i_size, EROFS_BLKSIZ); DIV_ROUND_UP 785 fs/ext2/super.c meta_blocks += 1 + DIV_ROUND_UP(upper_limit, ppb); DIV_ROUND_UP 792 fs/ext2/super.c meta_blocks += 1 + DIV_ROUND_UP(upper_limit, ppb) + DIV_ROUND_UP 793 fs/ext2/super.c DIV_ROUND_UP(upper_limit, ppb*ppb); DIV_ROUND_UP 1387 fs/ext4/ialloc.c used_blks = DIV_ROUND_UP((EXT4_INODES_PER_GROUP(sb) - DIV_ROUND_UP 689 fs/ext4/indirect.c return DIV_ROUND_UP(nrblocks, EXT4_ADDR_PER_BLOCK(inode->i_sb)) + 4; DIV_ROUND_UP 189 fs/ext4/readpage.c idx < DIV_ROUND_UP(inode->i_size, PAGE_SIZE); DIV_ROUND_UP 1512 fs/ext4/resize.c credit += 1 + DIV_ROUND_UP(flex_gd->count, EXT4_DESC_PER_BLOCK(sb)); DIV_ROUND_UP 673 fs/f2fs/data.c idx < DIV_ROUND_UP(inode->i_size, PAGE_SIZE); DIV_ROUND_UP 490 fs/f2fs/f2fs.h DIV_ROUND_UP(NR_INLINE_DENTRY(inode), BITS_PER_BYTE) DIV_ROUND_UP 1226 fs/f2fs/file.c pgoff_t nrpages = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); DIV_ROUND_UP 1479 fs/f2fs/file.c idx = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); DIV_ROUND_UP 2451 fs/f2fs/file.c sec_num = DIV_ROUND_UP(total, BLKS_PER_SEC(sbi)); DIV_ROUND_UP 112 fs/f2fs/segment.h DIV_ROUND_UP(MAIN_SEGS(sbi), SIT_ENTRY_PER_BLOCK) DIV_ROUND_UP 661 fs/fs-writeback.c max_time = DIV_ROUND_UP((max_bytes >> PAGE_SHIFT) << WB_FRN_TIME_SHIFT, DIV_ROUND_UP 680 fs/fs-writeback.c slots = min(DIV_ROUND_UP(max_time, WB_FRN_HIST_UNIT), DIV_ROUND_UP 82 fs/fscache/cookie.c bufs = DIV_ROUND_UP(index_key_len, sizeof(*buf)); DIV_ROUND_UP 2784 fs/fuse/file.c max_pages = DIV_ROUND_UP(max(in_size, out_size), PAGE_SIZE); DIV_ROUND_UP 41 fs/gfs2/bmap.h tmp = DIV_ROUND_UP(tmp, sdp->sd_inptrs); DIV_ROUND_UP 2033 fs/gfs2/dir.c rg_blocks + (DIV_ROUND_UP(size, sdp->sd_jbsize) + 1) + DIV_ROUND_UP 973 fs/gfs2/file.c tmp = DIV_ROUND_UP(tmp, sdp->sd_inptrs); DIV_ROUND_UP 58 fs/gfs2/log.c blks += DIV_ROUND_UP(nstruct - first, second); DIV_ROUND_UP 468 fs/gfs2/log.c reserved += DIV_ROUND_UP(mbuf, buf_limit(sdp)); DIV_ROUND_UP 469 fs/gfs2/log.c reserved += DIV_ROUND_UP(dbuf, databuf_limit(sdp)); DIV_ROUND_UP 314 fs/gfs2/ops_fstype.c hash_blocks = DIV_ROUND_UP(sizeof(u64) * BIT(GFS2_DIR_MAX_DEPTH), DIV_ROUND_UP 319 fs/gfs2/ops_fstype.c tmp_blocks = DIV_ROUND_UP(tmp_blocks, sdp->sd_inptrs); DIV_ROUND_UP 1352 fs/gfs2/quota.c bm_size = DIV_ROUND_UP(sdp->sd_quota_slots, 8 * sizeof(unsigned long)); DIV_ROUND_UP 52 fs/gfs2/xattr.c (sizeof(__be64) * DIV_ROUND_UP(dsize, jbsize)), 8); DIV_ROUND_UP 445 fs/gfs2/xattr.c unsigned int nptrs = DIV_ROUND_UP(amount, sdp->sd_jbsize); DIV_ROUND_UP 683 fs/gfs2/xattr.c ea->ea_num_ptrs = DIV_ROUND_UP(er->er_data_len, sdp->sd_jbsize); DIV_ROUND_UP 804 fs/gfs2/xattr.c blks += DIV_ROUND_UP(er.er_data_len, jbsize); DIV_ROUND_UP 944 fs/gfs2/xattr.c blks = 2 + DIV_ROUND_UP(es->es_er->er_data_len, DIV_ROUND_UP 1057 fs/gfs2/xattr.c blks += DIV_ROUND_UP(er.er_data_len, GFS2_SB(&ip->i_inode)->sd_jbsize); DIV_ROUND_UP 78 fs/iomap/seek.c pgoff_t end = DIV_ROUND_UP(offset + length, PAGE_SIZE); DIV_ROUND_UP 64 fs/jfs/jfs_dtree.h #define NDTINTERNAL(klen) (DIV_ROUND_UP((4 + (klen)), 15)) DIV_ROUND_UP 123 fs/jfs/jfs_dtree.h #define NDTLEAF_LEGACY(klen) (DIV_ROUND_UP((2 + (klen)), 15)) DIV_ROUND_UP 163 fs/jfs/resize.c t32 = DIV_ROUND_UP(t64, BITSPERPAGE) + 1 + 50; DIV_ROUND_UP 30 fs/minix/bitmap.c unsigned blocks = DIV_ROUND_UP(numbits, blocksize * 8); DIV_ROUND_UP 93 fs/minix/minix.h return DIV_ROUND_UP(bits, blocksize * 8); DIV_ROUND_UP 896 fs/nfs/blocklayout/blocklayout.c end = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); DIV_ROUND_UP 495 fs/nfs/blocklayout/extent_tree.c int nr_pages = DIV_ROUND_UP(buffer_size, PAGE_SIZE), i; DIV_ROUND_UP 580 fs/nfs/blocklayout/extent_tree.c kcalloc(DIV_ROUND_UP(buffer_size, PAGE_SIZE), DIV_ROUND_UP 5490 fs/nfs/nfs4proc.c #define NFS4ACL_MAXPAGES DIV_ROUND_UP(XATTR_SIZE_MAX, PAGE_SIZE) DIV_ROUND_UP 5615 fs/nfs/nfs4proc.c unsigned int npages = DIV_ROUND_UP(buflen, PAGE_SIZE) + 1; DIV_ROUND_UP 5719 fs/nfs/nfs4proc.c unsigned int npages = DIV_ROUND_UP(buflen, PAGE_SIZE); DIV_ROUND_UP 37 fs/nfs/nfs4session.h #define SLOT_TABLE_SZ DIV_ROUND_UP(NFS4_MAX_SLOT_TABLE, 8*sizeof(long)) DIV_ROUND_UP 60 fs/nilfs2/alloc.c DIV_ROUND_UP(nilfs_palloc_entries_per_group(inode), DIV_ROUND_UP 442 fs/nilfs2/alloc.c *desc_blocks = DIV_ROUND_UP( DIV_ROUND_UP 496 fs/nilfs2/mdt.c mi->mi_first_entry_offset = DIV_ROUND_UP(header_size, entry_size); DIV_ROUND_UP 288 fs/nilfs2/recovery.c bcnt = DIV_ROUND_UP(count, nitem_per_block); DIV_ROUND_UP 320 fs/nilfs2/recovery.c blocknr = start_blocknr + DIV_ROUND_UP(sumbytes, nilfs->ns_blocksize); DIV_ROUND_UP 367 fs/nilfs2/the_nilfs.c DIV_ROUND_UP(nsegs * nilfs->ns_r_segments_percentage, DIV_ROUND_UP 346 fs/omfs/inode.c bitmap_size = DIV_ROUND_UP(sbi->s_num_blocks, 8); DIV_ROUND_UP 347 fs/omfs/inode.c array_size = DIV_ROUND_UP(bitmap_size, sb->s_blocksize); DIV_ROUND_UP 161 fs/orangefs/orangefs-bufmap.c #define N DIV_ROUND_UP(ORANGEFS_READDIR_DEFAULT_DESC_COUNT, BITS_PER_LONG) DIV_ROUND_UP 233 fs/orangefs/orangefs-bufmap.c kzalloc(DIV_ROUND_UP(bufmap->desc_count, BITS_PER_LONG), GFP_KERNEL); DIV_ROUND_UP 204 fs/pstore/ram_core.c ecc_blocks = DIV_ROUND_UP(prz->buffer_size - prz->ecc_info.ecc_size, DIV_ROUND_UP 412 fs/pstore/ram_core.c page_count = DIV_ROUND_UP(size + offset_in_page(start), PAGE_SIZE); DIV_ROUND_UP 392 fs/splice.c nr_pages = DIV_ROUND_UP(res + base, PAGE_SIZE); DIV_ROUND_UP 52 fs/ubifs/lpt.c max_pnode_cnt = DIV_ROUND_UP(n, UBIFS_LPT_FANOUT); DIV_ROUND_UP 61 fs/ubifs/lpt.c c->pnode_cnt = DIV_ROUND_UP(c->main_lebs, UBIFS_LPT_FANOUT); DIV_ROUND_UP 63 fs/ubifs/lpt.c n = DIV_ROUND_UP(c->pnode_cnt, UBIFS_LPT_FANOUT); DIV_ROUND_UP 66 fs/ubifs/lpt.c n = DIV_ROUND_UP(n, UBIFS_LPT_FANOUT); DIV_ROUND_UP 75 fs/ubifs/lpt.c n = DIV_ROUND_UP(c->max_leb_cnt, UBIFS_LPT_FANOUT); DIV_ROUND_UP 732 fs/ubifs/lpt.c cnt = DIV_ROUND_UP(cnt, UBIFS_LPT_FANOUT); DIV_ROUND_UP 1515 fs/ubifs/lpt_commit.c cnt = DIV_ROUND_UP(c->main_lebs, UBIFS_LPT_FANOUT); DIV_ROUND_UP 1669 fs/ubifs/lpt_commit.c cnt = DIV_ROUND_UP(c->main_lebs, UBIFS_LPT_FANOUT); DIV_ROUND_UP 343 fs/ubifs/tnc_commit.c return DIV_ROUND_UP(cnt, d); DIV_ROUND_UP 1001 fs/udf/super.c return DIV_ROUND_UP(map->s_partition_len + DIV_ROUND_UP 772 fs/xfs/xfs_buf_item.c chunks = DIV_ROUND_UP(BBTOB(bp->b_maps[i].bm_len), DIV_ROUND_UP 774 fs/xfs/xfs_buf_item.c map_size = DIV_ROUND_UP(chunks, NBWORD); DIV_ROUND_UP 1298 fs/xfs/xfs_log.c DIV_ROUND_UP(mp->m_logbsize, XLOG_HEADER_CYCLE_SIZE); DIV_ROUND_UP 18 include/linux/ascii85.h return DIV_ROUND_UP(len, 4); DIV_ROUND_UP 15 include/linux/bitops.h #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(long)) DIV_ROUND_UP 415 include/linux/compat.h #define BITS_TO_COMPAT_LONGS(bits) DIV_ROUND_UP(bits, BITS_PER_COMPAT_LONG) DIV_ROUND_UP 51 include/linux/delay.h udelay(DIV_ROUND_UP(x, 1000)); DIV_ROUND_UP 2044 include/linux/ieee80211.h n = DIV_ROUND_UP(n, 8); DIV_ROUND_UP 39 include/linux/iommu-helper.h return DIV_ROUND_UP(size, io_page_size); DIV_ROUND_UP 104 include/linux/kernel.h # define DIV_ROUND_UP_SECTOR_T(ll,d) DIV_ROUND_UP(ll,d) DIV_ROUND_UP 1221 include/linux/mmzone.h #define NR_SECTION_ROOTS DIV_ROUND_UP(NR_MEM_SECTIONS, SECTIONS_PER_ROOT) DIV_ROUND_UP 621 include/linux/mtd/rawnand.h DIV_ROUND_UP(dividend, divisor) : \ DIV_ROUND_UP 667 include/linux/nfs4.h DIV_ROUND_UP(LAST_NFS4_OP, 8 * sizeof(unsigned long)) DIV_ROUND_UP 187 include/linux/qed/qed_chain.h DIV_ROUND_UP(elem_cnt, USABLE_ELEMS_PER_PAGE(elem_size, mode)) DIV_ROUND_UP 59 include/linux/radix-tree.h #define RADIX_TREE_MAX_PATH (DIV_ROUND_UP(RADIX_TREE_INDEX_BITS, \ DIV_ROUND_UP 62 include/linux/rcu_node_tree.h # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1) DIV_ROUND_UP 70 include/linux/rcu_node_tree.h # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_2) DIV_ROUND_UP 71 include/linux/rcu_node_tree.h # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1) DIV_ROUND_UP 79 include/linux/rcu_node_tree.h # define NUM_RCU_LVL_1 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_3) DIV_ROUND_UP 80 include/linux/rcu_node_tree.h # define NUM_RCU_LVL_2 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_2) DIV_ROUND_UP 81 include/linux/rcu_node_tree.h # define NUM_RCU_LVL_3 DIV_ROUND_UP(NR_CPUS, RCU_FANOUT_1) DIV_ROUND_UP 61 include/linux/tcp.h __le64 val[DIV_ROUND_UP(TCP_FASTOPEN_COOKIE_MAX, sizeof(u64))]; DIV_ROUND_UP 621 include/linux/usb/hcd.h #define NS_TO_US(ns) DIV_ROUND_UP(ns, 1000L) DIV_ROUND_UP 1078 include/linux/xarray.h #define XA_MARK_LONGS DIV_ROUND_UP(XA_CHUNK_SIZE, BITS_PER_LONG) DIV_ROUND_UP 4564 include/net/cfg80211.h u8 ext_features[DIV_ROUND_UP(NUM_NL80211_EXT_FEATURES, 8)]; DIV_ROUND_UP 1228 include/net/sch_generic.h return ((u64)(DIV_ROUND_UP(len,48)*53) * r->mult) >> r->shift; DIV_ROUND_UP 68 kernel/cgroup/cgroup.c #define CGROUP_FILE_NOTIFY_MIN_INTV DIV_ROUND_UP(HZ, 100) DIV_ROUND_UP 303 kernel/crash_core.c buf += DIV_ROUND_UP(sizeof(*note), sizeof(Elf_Word)); DIV_ROUND_UP 305 kernel/crash_core.c buf += DIV_ROUND_UP(note->n_namesz, sizeof(Elf_Word)); DIV_ROUND_UP 307 kernel/crash_core.c buf += DIV_ROUND_UP(data_len, sizeof(Elf_Word)); DIV_ROUND_UP 949 kernel/dma/debug.c nr_pages = DIV_ROUND_UP(nr_prealloc_entries, DMA_DEBUG_DYNAMIC_ENTRIES); DIV_ROUND_UP 421 kernel/events/core.c static int max_samples_per_tick __read_mostly = DIV_ROUND_UP(DEFAULT_MAX_SAMPLE_RATE, HZ); DIV_ROUND_UP 457 kernel/events/core.c max_samples_per_tick = DIV_ROUND_UP(sysctl_perf_event_sample_rate, HZ); DIV_ROUND_UP 297 kernel/irq/generic-chip.c numchips = DIV_ROUND_UP(d->revmap_size, irqs_per_chip); DIV_ROUND_UP 379 kernel/locking/rwsem.c #define RWSEM_WAIT_TIMEOUT DIV_ROUND_UP(HZ, 250) DIV_ROUND_UP 517 kernel/power/snapshot.c nr_blocks = DIV_ROUND_UP(pages, BM_BITS_PER_BLOCK); DIV_ROUND_UP 1182 kernel/power/snapshot.c rtree = nodes = DIV_ROUND_UP(zone->spanned_pages, BM_BITS_PER_BLOCK); DIV_ROUND_UP 1183 kernel/power/snapshot.c rtree += DIV_ROUND_UP(rtree * sizeof(struct rtree_node), DIV_ROUND_UP 1186 kernel/power/snapshot.c nodes = DIV_ROUND_UP(nodes, BM_ENTRIES_PER_LEVEL); DIV_ROUND_UP 1750 kernel/power/snapshot.c - 2 * DIV_ROUND_UP(reserved_size, PAGE_SIZE); DIV_ROUND_UP 1752 kernel/power/snapshot.c size = DIV_ROUND_UP(image_size, PAGE_SIZE); DIV_ROUND_UP 2011 kernel/power/snapshot.c nr_meta_pages = DIV_ROUND_UP(nr_pages * sizeof(long), PAGE_SIZE); DIV_ROUND_UP 2496 kernel/power/snapshot.c nr_pages = DIV_ROUND_UP(nr_pages, PBES_PER_LINKED_PAGE); DIV_ROUND_UP 514 kernel/power/swap.c #define LZO_CMP_PAGES DIV_ROUND_UP(lzo1x_worst_compress(LZO_UNC_SIZE) + \ DIV_ROUND_UP 1345 kernel/power/swap.c need = DIV_ROUND_UP(data[thr].cmp_len + LZO_HEADER, DIV_ROUND_UP 3488 kernel/rcu/tree.c num_rcu_lvl[i] = DIV_ROUND_UP(nr_cpu_ids, cap); DIV_ROUND_UP 1099 kernel/rcu/tree_plugin.h #define RCU_BOOST_DELAY_JIFFIES DIV_ROUND_UP(CONFIG_RCU_BOOST_DELAY * HZ, 1000) DIV_ROUND_UP 2350 kernel/rcu/tree_plugin.h nl = DIV_ROUND_UP(rdp->cpu + 1, ls) * ls; DIV_ROUND_UP 645 kernel/sched/fair.c sched_nr_latency = DIV_ROUND_UP(sysctl_sched_latency, DIV_ROUND_UP 1965 kernel/sched/fair.c period_slot = DIV_ROUND_UP(p->numa_scan_period, NUMA_PERIOD_SLOTS); DIV_ROUND_UP 2296 kernel/sched/rt.c next = DIV_ROUND_UP(min(soft, hard), USEC_PER_SEC/HZ); DIV_ROUND_UP 438 kernel/smpboot.c sleep_jf = DIV_ROUND_UP(sleep_jf * 11, 10); DIV_ROUND_UP 387 kernel/time/time.c return DIV_ROUND_UP(j * HZ_TO_MSEC_NUM, HZ_TO_MSEC_DEN); DIV_ROUND_UP 618 kernel/trace/ftrace.c pages = DIV_ROUND_UP(functions, PROFILES_PER_PAGE); DIV_ROUND_UP 2968 kernel/trace/ftrace.c order = get_count_order(DIV_ROUND_UP(count, ENTRIES_PER_PAGE)); DIV_ROUND_UP 1395 kernel/trace/ring_buffer.c nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); DIV_ROUND_UP 1733 kernel/trace/ring_buffer.c nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); DIV_ROUND_UP 2372 kernel/trace/ring_buffer.c event->type_len = DIV_ROUND_UP(length, RB_ALIGNMENT); DIV_ROUND_UP 188 lib/842/842_compress.c if (DIV_ROUND_UP(bits, 8) > p->olen) DIV_ROUND_UP 106 lib/842/842_decompress.c if (DIV_ROUND_UP(bits, 8) > p->ilen) DIV_ROUND_UP 91 lib/bch.c #define BCH_ECC_WORDS(_p) DIV_ROUND_UP(GF_M(_p)*GF_T(_p), 32) DIV_ROUND_UP 92 lib/bch.c #define BCH_ECC_BYTES(_p) DIV_ROUND_UP(GF_M(_p)*GF_T(_p), 8) DIV_ROUND_UP 94 lib/bch.c #define BCH_ECC_MAX_WORDS DIV_ROUND_UP(BCH_MAX_M * BCH_MAX_T, 32) DIV_ROUND_UP 1094 lib/bch.c const int plen = DIV_ROUND_UP(bch->ecc_bits+1, 32); DIV_ROUND_UP 1095 lib/bch.c const int ecclen = DIV_ROUND_UP(bch->ecc_bits, 32); DIV_ROUND_UP 1185 lib/bch.c genpoly = bch_alloc(DIV_ROUND_UP(m*t+1, 32)*sizeof(*genpoly), &err); DIV_ROUND_UP 1313 lib/bch.c words = DIV_ROUND_UP(m*t, 32); DIV_ROUND_UP 1314 lib/bch.c bch->ecc_bytes = DIV_ROUND_UP(m*t, 8); DIV_ROUND_UP 1201 lib/bitmap.c halfwords = DIV_ROUND_UP(nbits, 32); DIV_ROUND_UP 1224 lib/bitmap.c halfwords = DIV_ROUND_UP(nbits, 32); DIV_ROUND_UP 41 lib/debugobjects.c #define ODEBUG_FREE_WORK_DELAY DIV_ROUND_UP(HZ, 10) DIV_ROUND_UP 121 lib/digsig.c mlen = DIV_ROUND_UP(mblen, 8); DIV_ROUND_UP 71 lib/dim/dim.c curr_stats->ppms = DIV_ROUND_UP(npkts * USEC_PER_MSEC, delta_us); DIV_ROUND_UP 72 lib/dim/dim.c curr_stats->bpms = DIV_ROUND_UP(nbytes * USEC_PER_MSEC, delta_us); DIV_ROUND_UP 73 lib/dim/dim.c curr_stats->epms = DIV_ROUND_UP(DIM_NEVENTS * USEC_PER_MSEC, DIV_ROUND_UP 75 lib/dim/dim.c curr_stats->cpms = DIV_ROUND_UP(ncomps * USEC_PER_MSEC, delta_us); DIV_ROUND_UP 35 lib/generic-radix-tree.c DIV_ROUND_UP(BITS_PER_LONG - PAGE_SHIFT, GENRADIX_ARY_SHIFT) DIV_ROUND_UP 1296 lib/iov_iter.c n = DIV_ROUND_UP(len, PAGE_SIZE); DIV_ROUND_UP 1343 lib/iov_iter.c npages = DIV_ROUND_UP(maxsize + *start, PAGE_SIZE); DIV_ROUND_UP 1376 lib/iov_iter.c n = DIV_ROUND_UP(len, PAGE_SIZE); DIV_ROUND_UP 1576 lib/iov_iter.c npages += DIV_ROUND_UP(p + v.iov_len, PAGE_SIZE) DIV_ROUND_UP 1586 lib/iov_iter.c npages += DIV_ROUND_UP(p + v.iov_len, PAGE_SIZE) DIV_ROUND_UP 194 lib/kfifo.c ret = DIV_ROUND_UP(ret + len - l, esize); DIV_ROUND_UP 198 lib/kfifo.c ret = DIV_ROUND_UP(ret, esize); DIV_ROUND_UP 254 lib/kfifo.c ret = DIV_ROUND_UP(ret + len - l, esize); DIV_ROUND_UP 258 lib/kfifo.c ret = DIV_ROUND_UP(ret, esize); DIV_ROUND_UP 56 lib/mpi/mpicoder.c nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB); DIV_ROUND_UP 96 lib/mpi/mpicoder.c nbytes = DIV_ROUND_UP(nbits, 8); DIV_ROUND_UP 381 lib/mpi/mpicoder.c nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB); DIV_ROUND_UP 54 lib/radix-tree.c #define IDR_MAX_PATH (DIV_ROUND_UP(IDR_INDEX_BITS, \ DIV_ROUND_UP 62 lib/radix-tree.c #define IDA_MAX_PATH (DIV_ROUND_UP(IDA_INDEX_BITS, \ DIV_ROUND_UP 69 lib/sbitmap.c sb->map_nr = DIV_ROUND_UP(sb->depth, bits_per_word); DIV_ROUND_UP 98 lib/sbitmap.c sb->map_nr = DIV_ROUND_UP(sb->depth, bits_per_word); DIV_ROUND_UP 365 lib/test_bitmap.c expect_eq_uint(arr[DIV_ROUND_UP(nbits, 32)], DIV_ROUND_UP 1157 lib/vsprintf.c spec.field_width = DIV_ROUND_UP(chunksz, 4); DIV_ROUND_UP 183 mm/cma_debug.c u32s = DIV_ROUND_UP(cma_bitmap_maxno(cma), BITS_PER_BYTE * sizeof(u32)); DIV_ROUND_UP 2489 mm/filemap.c max_off = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); DIV_ROUND_UP 2552 mm/filemap.c max_off = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); DIV_ROUND_UP 2643 mm/filemap.c max_idx = DIV_ROUND_UP(i_size_read(mapping->host), PAGE_SIZE); DIV_ROUND_UP 2749 mm/huge_memory.c end = DIV_ROUND_UP(i_size_read(mapping->host), PAGE_SIZE); DIV_ROUND_UP 408 mm/memcontrol.c size = DIV_ROUND_UP(new_id + 1, BITS_PER_LONG) * sizeof(unsigned long); DIV_ROUND_UP 218 mm/mincore.c unsigned long pages = DIV_ROUND_UP(end - addr, PAGE_SIZE); DIV_ROUND_UP 418 mm/page-writeback.c ratio = min(DIV_ROUND_UP(bytes, global_avail), DIV_ROUND_UP 421 mm/page-writeback.c bg_ratio = min(DIV_ROUND_UP(bg_bytes, global_avail), DIV_ROUND_UP 427 mm/page-writeback.c thresh = DIV_ROUND_UP(bytes, PAGE_SIZE); DIV_ROUND_UP 432 mm/page-writeback.c bg_thresh = DIV_ROUND_UP(bg_bytes, PAGE_SIZE); DIV_ROUND_UP 484 mm/page-writeback.c dirty = DIV_ROUND_UP(vm_dirty_bytes, PAGE_SIZE) * DIV_ROUND_UP 1330 mm/page-writeback.c step = DIV_ROUND_UP(step >> shift, 8); DIV_ROUND_UP 2601 mm/percpu.c int this_allocs = DIV_ROUND_UP(group_cnt[group], upa); DIV_ROUND_UP 1894 mm/shmem.c DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE) < DIV_ROUND_UP 2367 mm/shmem.c max_off = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); DIV_ROUND_UP 2399 mm/shmem.c max_off = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); DIV_ROUND_UP 3435 mm/shmem.c ctx->blocks = DIV_ROUND_UP(size, PAGE_SIZE); DIV_ROUND_UP 126 mm/slob.c #define SLOB_UNITS(size) DIV_ROUND_UP(size, SLOB_UNIT) DIV_ROUND_UP 177 mm/swap_cgroup.c length = DIV_ROUND_UP(max_pages, SC_PER_PAGE); DIV_ROUND_UP 602 mm/swap_state.c nr = DIV_ROUND_UP(nr_pages, SWAP_ADDRESS_SPACE_PAGES); DIV_ROUND_UP 2997 mm/swapfile.c DIV_ROUND_UP(L1_CACHE_BYTES, sizeof(struct swap_cluster_info)) DIV_ROUND_UP 2999 mm/swapfile.c DIV_ROUND_UP(SWAP_ADDRESS_SPACE_PAGES, SWAPFILE_CLUSTER) DIV_ROUND_UP 3013 mm/swapfile.c unsigned long nr_clusters = DIV_ROUND_UP(maxpages, SWAPFILE_CLUSTER); DIV_ROUND_UP 3070 mm/swapfile.c for (i = 0; i < DIV_ROUND_UP(nr_clusters, SWAP_CLUSTER_COLS); i++) { DIV_ROUND_UP 3202 mm/swapfile.c nr_cluster = DIV_ROUND_UP(maxpages, SWAPFILE_CLUSTER); DIV_ROUND_UP 81 mm/userfaultfd.c max_off = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); DIV_ROUND_UP 130 mm/userfaultfd.c max_off = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); DIV_ROUND_UP 150 mm/zsmalloc.c #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ DIV_ROUND_UP 544 mm/zsmalloc.c idx = DIV_ROUND_UP(size - ZS_MIN_ALLOC_SIZE, DIV_ROUND_UP 214 mm/zswap.c DIV_ROUND_UP(zswap_pool_total_size, PAGE_SIZE); DIV_ROUND_UP 333 net/9p/trans_virtio.c nr_pages = DIV_ROUND_UP(n + *offs, PAGE_SIZE); DIV_ROUND_UP 354 net/9p/trans_virtio.c nr_pages = DIV_ROUND_UP((unsigned long)p + len, PAGE_SIZE) - DIV_ROUND_UP 411 net/9p/trans_virtio.c out_nr_pages = DIV_ROUND_UP(n + offs, PAGE_SIZE); DIV_ROUND_UP 430 net/9p/trans_virtio.c in_nr_pages = DIV_ROUND_UP(n + offs, PAGE_SIZE); DIV_ROUND_UP 4033 net/bluetooth/hci_core.c return DIV_ROUND_UP(skb->len - HCI_ACL_HDR_SIZE, hdev->block_len); DIV_ROUND_UP 75 net/bridge/br_stp_bpdu.c return DIV_ROUND_UP(ticks * HZ, STP_HZ); DIV_ROUND_UP 3371 net/core/dev.c gso_segs = DIV_ROUND_UP(skb->len - hdr_len, DIV_ROUND_UP 531 net/core/ethtool.c DIV_ROUND_UP(__ETHTOOL_LINK_MODE_MASK_NBITS, 32) DIV_ROUND_UP 3966 net/core/skbuff.c skb_shinfo(tail)->gso_segs = DIV_ROUND_UP(tail->len - doffset, gso_size); DIV_ROUND_UP 413 net/core/sock.c *timeo_p = tv.tv_sec * HZ + DIV_ROUND_UP((unsigned long)tv.tv_usec, USEC_PER_SEC / HZ); DIV_ROUND_UP 76 net/dccp/ccids/ccid2.c u32 max_ratio = DIV_ROUND_UP(ccid2_hc_tx_sk(sk)->tx_cwnd, 2); DIV_ROUND_UP 581 net/dccp/ccids/ccid2.c maxincr = DIV_ROUND_UP(dp->dccps_l_ack_ratio, 2); DIV_ROUND_UP 727 net/dccp/ccids/ccid2.c max_ratio = DIV_ROUND_UP(hc->tx_cwnd, 2); DIV_ROUND_UP 402 net/dccp/options.c const u8 nr_opts = DIV_ROUND_UP(buflen, DCCP_SINGLE_OPT_MAXLEN); DIV_ROUND_UP 87 net/ipv4/tcp_offload.c skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(skb->len, mss); DIV_ROUND_UP 1224 net/ipv4/tcp_output.c tcp_skb_pcount_set(skb, DIV_ROUND_UP(skb->len, mss_now)); DIV_ROUND_UP 861 net/ipv4/udp.c skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(datalen, DIV_ROUND_UP 1148 net/ipv6/udp.c skb_shinfo(skb)->gso_segs = DIV_ROUND_UP(datalen, DIV_ROUND_UP 391 net/key/af_key.c DIV_ROUND_UP(sizeof(*sp) + offsetofend(typeof(*addr), sa_family), DIV_ROUND_UP 397 net/key/af_key.c len = DIV_ROUND_UP(sizeof(*sp) + sizeof(*sin), sizeof(uint64_t)); DIV_ROUND_UP 404 net/key/af_key.c len = DIV_ROUND_UP(sizeof(*sp) + sizeof(*sin6), sizeof(uint64_t)); DIV_ROUND_UP 428 net/key/af_key.c int key_bytes = DIV_ROUND_UP(key->sadb_key_bits, 8); DIV_ROUND_UP 430 net/key/af_key.c return DIV_ROUND_UP(sizeof(struct sadb_key) + key_bytes, DIV_ROUND_UP 446 net/key/af_key.c return DIV_ROUND_UP(sizeof(struct sadb_x_sec_ctx) + DIV_ROUND_UP 703 net/mac80211/cfg.c rinfo->legacy = DIV_ROUND_UP(brate, 1 << shift); DIV_ROUND_UP 114 net/mac80211/ibss.c int rate = DIV_ROUND_UP(sband->bitrates[ri].bitrate, DIV_ROUND_UP 158 net/mac80211/ibss.c int rate = DIV_ROUND_UP(sband->bitrates[ri].bitrate, DIV_ROUND_UP 460 net/mac80211/ibss.c brate = DIV_ROUND_UP(sband->bitrates[j].bitrate, DIV_ROUND_UP 255 net/mac80211/led.c return DIV_ROUND_UP(delta, 1024 / 8); DIV_ROUND_UP 339 net/mac80211/mesh_hwmp.c rate = DIV_ROUND_UP(sta_get_expected_throughput(sta), 100); DIV_ROUND_UP 770 net/mac80211/mlme.c int rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, DIV_ROUND_UP 786 net/mac80211/mlme.c rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, DIV_ROUND_UP 3142 net/mac80211/mlme.c brate = DIV_ROUND_UP(br->bitrate, (1 << shift) * 5); DIV_ROUND_UP 445 net/mac80211/rc80211_minstrel.c DIV_ROUND_UP(rate->bitrate, 1 << shift), erp, 1, DIV_ROUND_UP 448 net/mac80211/rc80211_minstrel.c DIV_ROUND_UP(rate->bitrate, 1 << shift), erp, 1, DIV_ROUND_UP 517 net/mac80211/rc80211_minstrel.c mr->bitrate = DIV_ROUND_UP(sband->bitrates[i].bitrate, DIV_ROUND_UP 27 net/mac80211/rc80211_minstrel_ht.c #define MCS_NSYMS(bps) DIV_ROUND_UP(MCS_NBITS, (bps)) DIV_ROUND_UP 410 net/mac80211/rx.c *pos = DIV_ROUND_UP(rate->bitrate, 5 * (1 << shift)); DIV_ROUND_UP 2093 net/mac80211/sta_info.c rinfo->legacy = DIV_ROUND_UP(brate, 1 << shift); DIV_ROUND_UP 346 net/mac80211/status.c *pos = DIV_ROUND_UP(legacy_rate, 5 * (1 << shift)); DIV_ROUND_UP 151 net/mac80211/tx.c rate = DIV_ROUND_UP(r->bitrate, 1 << shift); DIV_ROUND_UP 179 net/mac80211/tx.c rate = DIV_ROUND_UP(mrate, 1 << shift); DIV_ROUND_UP 3388 net/mac80211/tx.c DIV_ROUND_UP(skb->len, skb_shinfo(skb)->gso_size); DIV_ROUND_UP 105 net/mac80211/util.c dur += 4 * DIV_ROUND_UP((16 + 8 * (len + 4) + 6) * 10, DIV_ROUND_UP 121 net/mac80211/util.c dur += DIV_ROUND_UP(8 * (len + 4) * 10, rate); DIV_ROUND_UP 182 net/mac80211/util.c bitrate = DIV_ROUND_UP(rate->bitrate, 1 << shift); DIV_ROUND_UP 225 net/mac80211/util.c bitrate = DIV_ROUND_UP(rate->bitrate, 1 << shift); DIV_ROUND_UP 1670 net/mac80211/util.c (u8) DIV_ROUND_UP(sband->bitrates[i].bitrate, DIV_ROUND_UP 1966 net/mac80211/util.c brate = DIV_ROUND_UP(sband->bitrates[j].bitrate, DIV_ROUND_UP 2798 net/mac80211/util.c n = DIV_ROUND_UP(n, 8); DIV_ROUND_UP 3089 net/mac80211/util.c brate = DIV_ROUND_UP(br->bitrate, (1 << shift) * 5); DIV_ROUND_UP 3136 net/mac80211/util.c rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, DIV_ROUND_UP 3185 net/mac80211/util.c rate = DIV_ROUND_UP(sband->bitrates[i].bitrate, DIV_ROUND_UP 3283 net/mac80211/util.c ri.legacy = DIV_ROUND_UP(bitrate, (1 << shift)); DIV_ROUND_UP 3640 net/mac80211/util.c skip = DIV_ROUND_UP(-end, data->desc[i].interval); DIV_ROUND_UP 34 net/netfilter/nft_bitwise.c for (i = 0; i < DIV_ROUND_UP(priv->len, 4); i++) DIV_ROUND_UP 521 net/rds/ib_send.c i = DIV_ROUND_UP(be32_to_cpu(rm->m_inc.i_hdr.h_len), RDS_FRAG_SIZE); DIV_ROUND_UP 878 net/rds/ib_send.c i = DIV_ROUND_UP(op->op_count, max_sge); DIV_ROUND_UP 338 net/rds/message.c int num_sgs = DIV_ROUND_UP(total_len, PAGE_SIZE); DIV_ROUND_UP 347 net/rds/message.c rm->data.op_nents = DIV_ROUND_UP(total_len, PAGE_SIZE); DIV_ROUND_UP 1120 net/rds/send.c int num_sgs = DIV_ROUND_UP(payload_len, PAGE_SIZE); DIV_ROUND_UP 1344 net/sched/sch_cake.c segs = DIV_ROUND_UP(skb->len - hdr_len, DIV_ROUND_UP 84 net/sched/sch_sfq.c #define SFQ_ALLOT_SIZE(X) DIV_ROUND_UP(X, 1 << SFQ_ALLOT_SHIFT) DIV_ROUND_UP 213 net/sunrpc/auth_gss/gss_rpc_upcall.c arg->npages = DIV_ROUND_UP(NGROUPS_MAX * 4, PAGE_SIZE); DIV_ROUND_UP 1109 net/sunrpc/auth_gss/svcauth_gss.c pages = DIV_ROUND_UP(inlen, PAGE_SIZE); DIV_ROUND_UP 590 net/sunrpc/svcsock.c DIV_ROUND_UP(rqstp->rq_arg.page_len, PAGE_SIZE); DIV_ROUND_UP 282 net/sunrpc/xprtrdma/frwr_ops.c DIV_ROUND_UP(RPCRDMA_MAX_DATA_SEGS, ia->ri_max_frwr_depth); DIV_ROUND_UP 2226 net/sunrpc/xprtsock.c keepidle = DIV_ROUND_UP(xprt->timeout->to_initval, HZ); DIV_ROUND_UP 2261 net/sunrpc/xprtsock.c initval = DIV_ROUND_UP(connect_timeout, to.to_retries + 1); DIV_ROUND_UP 1423 net/vmw_vsock/af_vsock.c DIV_ROUND_UP(tv.tv_usec, (1000000 / HZ)); DIV_ROUND_UP 7791 net/wireless/nl80211.c DIV_ROUND_UP(interval, MSEC_PER_SEC); DIV_ROUND_UP 11155 net/wireless/nl80211.c if (nla_put(msg, NL80211_PKTPAT_MASK, DIV_ROUND_UP(pat_len, 8), DIV_ROUND_UP 11194 net/wireless/nl80211.c DIV_ROUND_UP(tcp->wake_len, 8), tcp->wake_mask)) DIV_ROUND_UP 11421 net/wireless/nl80211.c if (wake_mask_size != DIV_ROUND_UP(wake_size, 8)) DIV_ROUND_UP 11671 net/wireless/nl80211.c mask_len = DIV_ROUND_UP(pat_len, 8); DIV_ROUND_UP 11799 net/wireless/nl80211.c DIV_ROUND_UP(pat_len, 8), DIV_ROUND_UP 11922 net/wireless/nl80211.c mask_len = DIV_ROUND_UP(pat_len, 8); DIV_ROUND_UP 931 samples/vfio-mdev/mbochs.c dmabuf->pagecount = DIV_ROUND_UP(mode->size, PAGE_SIZE); DIV_ROUND_UP 47 security/selinux/ss/sidtab.h DIV_ROUND_UP(SIDTAB_MAX_BITS - size_to_shift(SIDTAB_LEAF_ENTRIES), \ DIV_ROUND_UP 71 sound/firewire/amdtp-am824.c midi_channels = DIV_ROUND_UP(midi_ports, 8); DIV_ROUND_UP 59 sound/firewire/iso-resources.c s400_bytes = DIV_ROUND_UP(bytes, 1 << (speed - SCODE_400)); DIV_ROUND_UP 88 sound/firewire/motu/amdtp-motu.c data_block_quadlets = 1 + DIV_ROUND_UP(data_chunks * 3, 4); DIV_ROUND_UP 42 sound/firewire/packets-buffer.c pages = DIV_ROUND_UP(count, packets_per_page); DIV_ROUND_UP 1484 sound/pci/riptide/riptide.c pages = DIV_ROUND_UP(size, f); DIV_ROUND_UP 111 sound/sh/aica.c length = DIV_ROUND_UP(length, 4); DIV_ROUND_UP 98 sound/soc/adi/axi-i2s.c bclk_div = DIV_ROUND_UP(clk_get_rate(i2s->clk_ref), bclk_rate) / 2 - 1; DIV_ROUND_UP 28 sound/soc/codecs/adau-utils.c div = DIV_ROUND_UP(freq_in, 13500000); DIV_ROUND_UP 283 sound/soc/codecs/pcm3168a.c msleep(DIV_ROUND_UP(3846 * 1000, pcm3168a->sysclk)); DIV_ROUND_UP 568 sound/soc/codecs/pcm512x.c ranges[1].min = DIV_ROUND_UP(16000000, frame_size); DIV_ROUND_UP 767 sound/soc/codecs/pcm512x.c num *= DIV_ROUND_UP(pllin_rate / den, 20000000); DIV_ROUND_UP 768 sound/soc/codecs/pcm512x.c den *= DIV_ROUND_UP(pllin_rate / den, 20000000); DIV_ROUND_UP 824 sound/soc/codecs/pcm512x.c P = DIV_ROUND_UP(pllin_rate, 20000000); DIV_ROUND_UP 1077 sound/soc/codecs/pcm512x.c ncp_div = DIV_ROUND_UP(dac_rate, 2048000); DIV_ROUND_UP 314 sound/soc/codecs/tlv320aic32x4-clk.c divisor = DIV_ROUND_UP(parent_rate, rate); DIV_ROUND_UP 327 sound/soc/codecs/tlv320aic32x4-clk.c divisor = DIV_ROUND_UP(*parent_rate, rate); DIV_ROUND_UP 331 sound/soc/codecs/tlv320aic32x4-clk.c return DIV_ROUND_UP(*parent_rate, divisor); DIV_ROUND_UP 343 sound/soc/codecs/tlv320aic32x4-clk.c return DIV_ROUND_UP(parent_rate, val & AIC32X4_DIV_MASK); DIV_ROUND_UP 711 sound/soc/codecs/tlv320aic32x4.c madc = DIV_ROUND_UP((32 * adc_resource_class), aosr); DIV_ROUND_UP 722 sound/soc/codecs/tlv320aic32x4.c min_mdac = DIV_ROUND_UP((32 * dac_resource_class), dosr); DIV_ROUND_UP 512 sound/soc/fsl/fsl_esai.c u32 pins = DIV_ROUND_UP(channels, esai_priv->slots); DIV_ROUND_UP 621 sound/soc/fsl/fsl_esai.c u32 pins = DIV_ROUND_UP(channels, esai_priv->slots); DIV_ROUND_UP 248 sound/soc/intel/skylake/skl-topology.c res->ibs = DIV_ROUND_UP(in_fmt->s_freq, 1000) * DIV_ROUND_UP 252 sound/soc/intel/skylake/skl-topology.c res->obs = DIV_ROUND_UP(out_fmt->s_freq, 1000) * DIV_ROUND_UP 539 sound/soc/sof/ipc.c sparams->num_msg = DIV_ROUND_UP(sparams->msg_bytes, sparams->pl_size); DIV_ROUND_UP 497 sound/soc/xilinx/xlnx_formatter_pcm.c bytes_per_ch = DIV_ROUND_UP(params_period_bytes(params), active_ch); DIV_ROUND_UP 742 sound/usb/endpoint.c max_packs_per_period = DIV_ROUND_UP(period_bytes, minsize); DIV_ROUND_UP 745 sound/usb/endpoint.c urbs_per_period = DIV_ROUND_UP(max_packs_per_period, DIV_ROUND_UP 748 sound/usb/endpoint.c urb_packs = DIV_ROUND_UP(max_packs_per_period, urbs_per_period); DIV_ROUND_UP 751 sound/usb/endpoint.c ep->max_urb_frames = DIV_ROUND_UP(frames_per_period, DIV_ROUND_UP 40 sound/usb/misc/ua101.c #define MAX_MEMORY_BUFFERS DIV_ROUND_UP(MAX_QUEUE_LENGTH, \ DIV_ROUND_UP 449 sound/xen/xen_snd_front_alsa.c stream->num_pages = DIV_ROUND_UP(stream->buffer_sz, PAGE_SIZE); DIV_ROUND_UP 17 tools/include/linux/bitops.h #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) DIV_ROUND_UP 18 tools/include/linux/bitops.h #define BITS_TO_U64(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u64)) DIV_ROUND_UP 19 tools/include/linux/bitops.h #define BITS_TO_U32(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u32)) DIV_ROUND_UP 20 tools/include/linux/bitops.h #define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE) DIV_ROUND_UP 23 tools/perf/ui/progress.c u64 nr = DIV_ROUND_UP(p->curr - last, p->step); DIV_ROUND_UP 24 tools/testing/selftests/kvm/lib/kvm_util_internal.h #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG) DIV_ROUND_UP 1341 virt/kvm/kvm_main.c n = DIV_ROUND_UP(log->num_pages, BITS_PER_LONG); n--;