div64_u64 127 arch/x86/hyperv/hv_init.c tsc_khz = div64_u64(freq, 1000); div64_u64 64 arch/x86/kernel/cpu/aperfmperf.c s->khz = div64_u64((cpu_khz * aperf_delta), mperf_delta); div64_u64 340 arch/x86/kernel/tsc.c deltatsc = div64_u64(deltatsc, tmp); div64_u64 44 arch/x86/kvm/i8254.c #define mod_64(x, y) ((x) - (y) * div64_u64(x, y)) div64_u64 45 arch/x86/kvm/lapic.c #define mod_64(x, y) ((x) - (y) * div64_u64(x, y)) div64_u64 1238 arch/x86/kvm/lapic.c tmcct = div64_u64(ns, div64_u64 1195 block/bfq-cgroup.c v = div64_u64(v, samples); div64_u64 743 block/blk-iocost.c vrate_pct = div64_u64(atomic64_read(&ioc->vtime_rate) * 100, div64_u64 846 block/blk-iocost.c ioc->vrate_max = div64_u64((u64)ioc->params.qos[QOS_MAX] * div64_u64 1312 block/blk-iocost.c *rq_wait_pct_p = div64_u64(rq_wait_ns * 100, div64_u64 1484 block/blk-iocost.c new_inuse = div64_u64((u64)iocg->inuse * new_hwi, div64_u64 1581 block/blk-iocost.c vrate = div64_u64(vrate * (100 + VRATE_CLAMP_ADJ_PCT), div64_u64 1585 block/blk-iocost.c vrate = div64_u64(vrate * (100 - VRATE_CLAMP_ADJ_PCT), div64_u64 230 block/blk-iolatency.c u64 thresh = div64_u64(stat->ps.total, 10); div64_u64 261 block/blk-iolatency.c div64_u64(iolat->cur_win_nsec, div64_u64 438 block/blk-iolatency.c samples_thresh = max(1ULL, div64_u64(samples_thresh, 100)); div64_u64 926 block/blk-iolatency.c avg_lat = div64_u64(iolat->lat_avg, NSEC_PER_USEC); div64_u64 927 block/blk-iolatency.c cur_win = div64_u64(iolat->cur_win_nsec, NSEC_PER_MSEC); div64_u64 948 block/blk-throttle.c jiffy_wait = div64_u64(extra_bytes * HZ, tg_bps_limit(tg, rw)); div64_u64 626 block/kyber-iosched.c bucket = min_t(unsigned int, div64_u64(latency - 1, divisor), div64_u64 37 drivers/acpi/acpi_lpit.c *counter = div64_u64(count * 1000000ULL, residency_info_mem.frequency); div64_u64 49 drivers/acpi/acpi_lpit.c *counter = div64_u64(*counter * 1000000ULL, residency_info_ffh.frequency); div64_u64 1805 drivers/block/nbd.c nbd_size_set(nbd, bsize, div64_u64(bytes, bsize)); div64_u64 261 drivers/clk/analogbits/wrpll-cln28hpc.c ratio = div64_u64((target_vco_rate << ROUND_SHIFT), parent_rate); div64_u64 110 drivers/clk/bcm/clk-iproc-pll.c ndiv_frac = div64_u64((u64)residual, (u64)parent_rate); div64_u64 495 drivers/clk/clk-si5341.c f = div64_u64(f, (n_num >> 4)); div64_u64 145 drivers/clk/clk-si570.c data->fxtal = div64_u64(fdco << 24, data->rfreq >> 4); div64_u64 147 drivers/clk/clk-si570.c data->fxtal = div64_u64(fdco << 28, data->rfreq); div64_u64 207 drivers/clk/clk-si570.c *out_rfreq = div64_u64(fdco << 28, data->fxtal); div64_u64 251 drivers/clk/clk-si570.c if (div64_u64(abs(rate - data->frequency) * 10000LL, div64_u64 253 drivers/clk/clk-si570.c rfreq = div64_u64((data->rfreq * rate) + div64_u64 254 drivers/clk/clk-si570.c div64_u64(data->frequency, 2), data->frequency); div64_u64 321 drivers/clk/clk-si570.c data->rfreq = div64_u64((data->rfreq * frequency) + div64_u64 346 drivers/clk/clk-si570.c if (div64_u64(abs(rate - data->frequency) * 10000LL, div64_u64 493 drivers/clk/clk-versaclock5.c return div64_u64((u64)f_in << 24ULL, ((u64)div_int << 24ULL) + div_frc); div64_u64 525 drivers/clk/clk-versaclock5.c return div64_u64((u64)f_in << 24ULL, ((u64)div_int << 24ULL) + div_frc); div64_u64 598 drivers/clk/nxp/clk-lpc32xx.c m_i = div64_u64(o * n_i * (1 << p_i), i); div64_u64 633 drivers/clk/nxp/clk-lpc32xx.c o = div64_u64(i * m, n * (1 << p)); div64_u64 677 drivers/clk/nxp/clk-lpc32xx.c m = div64_u64(192000000 * d_i * n_i, o); div64_u64 688 drivers/clk/nxp/clk-lpc32xx.c *parent_rate = div64_u64(o, d_i); div64_u64 97 drivers/clk/pistachio/clk-pll.c return div64_u64(dividend, divisor); div64_u64 212 drivers/clk/pistachio/clk-pll.c vco = div64_u64(vco, params->refdiv << 24); div64_u64 218 drivers/clk/pistachio/clk-pll.c val = div64_u64(params->fref, params->refdiv); div64_u64 578 drivers/clk/st/clkgen-fsyn.c *rate = (unsigned long)div64_u64(input * P20 * 32, res); div64_u64 596 drivers/clk/st/clkgen-fsyn.c *p = div64_u64(*p, val); div64_u64 90 drivers/cpufreq/intel_pstate.c return div64_u64(x << EXT_FRAC_BITS, y); div64_u64 395 drivers/cpuidle/governors/teo.c unsigned int avg_us = div64_u64(sum, count); div64_u64 2356 drivers/gpu/drm/amd/amdgpu/si_dpm.c n = div64_u64((u64)1024 * curr_vddc * curr_vddc * ((u64)1000 + margin), (u64)1000); div64_u64 2358 drivers/gpu/drm/amd/amdgpu/si_dpm.c pwr_efficiency_ratio = div64_u64(n, d); div64_u64 823 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c div64_u64(dm_get_elapse_time_in_ns( div64_u64 93 drivers/gpu/drm/amd/display/modules/freesync/freesync.c ((unsigned int)(div64_u64((1000000000ULL * 1000000), div64_u64 103 drivers/gpu/drm/amd/display/modules/freesync/freesync.c ((unsigned int)(div64_u64((1000000000ULL * 1000), div64_u64 114 drivers/gpu/drm/amd/display/modules/freesync/freesync.c (unsigned int)(div64_u64(((unsigned long long)(v_total) div64_u64 129 drivers/gpu/drm/amd/display/modules/freesync/freesync.c ((unsigned int)(div64_u64((1000000000ULL * 1000000), div64_u64 132 drivers/gpu/drm/amd/display/modules/freesync/freesync.c v_total = div64_u64(div64_u64(((unsigned long long)( div64_u64 158 drivers/gpu/drm/amd/display/modules/freesync/freesync.c v_total = div64_u64(div64_u64(((unsigned long long)( div64_u64 188 drivers/gpu/drm/amd/display/modules/freesync/freesync.c unsigned int frame_duration_ratio = div64_u64(1000000, div64_u64 189 drivers/gpu/drm/amd/display/modules/freesync/freesync.c (1000 + div64_u64(((unsigned long long)( div64_u64 195 drivers/gpu/drm/amd/display/modules/freesync/freesync.c unsigned int frame_duration_delta = div64_u64(((unsigned long long)( div64_u64 202 drivers/gpu/drm/amd/display/modules/freesync/freesync.c unsigned int ramp_rate_interpolated = div64_u64(((unsigned long long)( div64_u64 233 drivers/gpu/drm/amd/display/modules/freesync/freesync.c v_total = div64_u64(div64_u64(((unsigned long long)( div64_u64 257 drivers/gpu/drm/amd/display/modules/freesync/freesync.c min_frame_duration_in_ns = ((unsigned int) (div64_u64( div64_u64 33 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c kcrtc_st->clock_ratio = div64_u64(aclk << 32, pxlclk); div64_u64 1140 drivers/gpu/drm/i915/display/intel_dpll_mgr.c deviation = div64_u64(10000 * abs_diff(dco_freq, central_freq), div64_u64 150 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c prime - 1, div64_u64(ktime_to_ns(times[1]), prime - 1)); div64_u64 1781 drivers/gpu/drm/i915/gt/selftest_lrc.c prime, div64_u64(ktime_to_ns(times[1]), prime)); div64_u64 2821 drivers/gpu/drm/i915/i915_perf.c return div64_u64(1000000000ULL * (2ULL << exponent), div64_u64 607 drivers/gpu/drm/i915/selftests/i915_request.c prime, div64_u64(ktime_to_ns(times[1]), prime)); div64_u64 749 drivers/gpu/drm/i915/selftests/i915_request.c prime, div64_u64(ktime_to_ns(times[1]), prime)); div64_u64 4223 drivers/gpu/drm/omapdrm/dss/dsi.c #define TO_DSI_T(x) ((u32)div64_u64((u64)x * 1000000000llu, byteclk)) div64_u64 4254 drivers/gpu/drm/omapdrm/dss/dsi.c #define TO_DISPC_T(x) ((u32)div64_u64((u64)x * 1000000000llu, pck)) div64_u64 4283 drivers/gpu/drm/omapdrm/dss/dsi.c pck = (u32)div64_u64(dsi_tput, t->bitspp); div64_u64 4288 drivers/gpu/drm/omapdrm/dss/dsi.c vm.hsync_len = div64_u64((u64)(t->hsa + t->hse) * pck, byteclk); div64_u64 4289 drivers/gpu/drm/omapdrm/dss/dsi.c vm.hback_porch = div64_u64((u64)t->hbp * pck, byteclk); div64_u64 4290 drivers/gpu/drm/omapdrm/dss/dsi.c vm.hfront_porch = div64_u64((u64)t->hfp * pck, byteclk); div64_u64 4458 drivers/gpu/drm/omapdrm/dss/dsi.c dsi_htot = div64_u64((u64)panel_htot * byteclk, req_pck_nom); div64_u64 4468 drivers/gpu/drm/omapdrm/dss/dsi.c dispc_htot = div64_u64((u64)dsi_htot * dispc_pck, byteclk); div64_u64 4491 drivers/gpu/drm/omapdrm/dss/dsi.c hsa = div64_u64((u64)req_vm->hsync_len * byteclk, req_pck_nom); div64_u64 4495 drivers/gpu/drm/omapdrm/dss/dsi.c hbp = div64_u64((u64)req_vm->hback_porch * byteclk, req_pck_nom); div64_u64 4547 drivers/gpu/drm/omapdrm/dss/dsi.c hsa = div64_u64((u64)req_vm->hsync_len * dispc_pck, div64_u64 4554 drivers/gpu/drm/omapdrm/dss/dsi.c hbp = div64_u64((u64)req_vm->hback_porch * dispc_pck, req_pck_nom); div64_u64 4672 drivers/gpu/drm/omapdrm/dss/dsi.c byteclk_min = div64_u64((u64)ctx->req_pck_min * bitspp, ndl * 8); div64_u64 4679 drivers/gpu/drm/omapdrm/dss/dsi.c byteclk_max = div64_u64((u64)ctx->req_pck_max * bitspp, div64_u64 1424 drivers/gpu/drm/radeon/ni_dpm.c tmp = div64_u64(n, d); div64_u64 2266 drivers/gpu/drm/radeon/si_dpm.c n = div64_u64((u64)1024 * curr_vddc * curr_vddc * ((u64)1000 + margin), (u64)1000); div64_u64 2268 drivers/gpu/drm/radeon/si_dpm.c pwr_efficiency_ratio = div64_u64(n, d); div64_u64 826 drivers/gpu/drm/selftests/test-drm_mm.c n = div64_u64(start + size - 1, size); div64_u64 900 drivers/gpu/drm/selftests/test-drm_mm.c start_n = div64_u64(start + size - 1, size); div64_u64 901 drivers/gpu/drm/selftests/test-drm_mm.c end_n = div64_u64(end - size, size); div64_u64 1610 drivers/gpu/drm/selftests/test-drm_mm.c return div64_u64(node->start, node->size); div64_u64 925 drivers/gpu/drm/tegra/sor.c params.ratio = div64_u64(input * f, output); div64_u64 853 drivers/hwmon/ibmaem.c (unsigned long long)div64_u64(delta * NSEC_PER_SEC, time)); div64_u64 442 drivers/hwmon/ntc_thermistor.c return div64_u64(dividend, divisor); div64_u64 414 drivers/hwmon/occ/common.c div64_u64(get_unaligned_be64(accum) * 1000000ULL, divisor); div64_u64 646 drivers/hwmon/occ/common.c user_power_cap = div64_u64(value, 1000000ULL); /* microwatt to watt */ div64_u64 60 drivers/hwmon/scmi-hwmon.c *value = div64_u64(*value, f); div64_u64 1206 drivers/idle/intel_idle.c return div64_u64((irtl & 0x3FF) * ns, 1000); div64_u64 70 drivers/iio/common/ssp_sensors/ssp_iio_sensor.h return div64_u64((u64)SSP_FACTOR_WITH_MS, value); div64_u64 130 drivers/infiniband/hw/cxgb4/device.c #define ts2ns(ts) div64_u64((ts) * dev->rdev.lldi.cclk_ps, 1000) div64_u64 358 drivers/lightnvm/pblk-sysfs.c wa_int = div64_u64(wa_int, user); div64_u64 234 drivers/macintosh/rack-meter.c load = div64_u64(9 * (total_nsecs - idle_nsecs), total_nsecs); div64_u64 694 drivers/md/bcache/sysfs.c return div64_u64(c->gc_stats.key_bytes * 100, div64_u64 701 drivers/md/bcache/sysfs.c ? div64_u64(c->gc_stats.data, c->gc_stats.nkeys) div64_u64 48 drivers/md/bcache/writeback.c div64_u64(bdev_sectors(dc->bdev) << WRITEBACK_SHARE_SHIFT, div64_u64 1740 drivers/md/dm-cache-policy-smq.c mq->cache_blocks_per_hotspot_block = div64_u64(mq->hotspot_block_size, mq->cache_block_size); div64_u64 451 drivers/md/dm-verity-fec.c res = div64_u64(offset, v->fec->rounds << v->data_dev_block_bits); div64_u64 7928 drivers/md/md.c rt = div64_u64(rt, db/32+1); div64_u64 435 drivers/media/dvb-core/dvb_demux.c speed_bytes = 1000 * div64_u64(speed_bytes, div64_u64 441 drivers/media/dvb-core/dvb_demux.c div64_u64(speed_bytes, div64_u64 202 drivers/media/platform/ti-vpe/sc.c lin_acc_inc = div64_u64(((u64)(src_w >> dcm_shift) - 1) << 24, lltmp); div64_u64 240 drivers/media/tuners/fc2580.c uitmp = div64_u64((u64) dev->clk * uitmp, 1000000000000ULL); div64_u64 257 drivers/net/ethernet/mellanox/mlx4/en_clock.c u64 max_mul = div64_u64(ULLONG_MAX, max_val_cycles_rounded); div64_u64 135 drivers/net/ethernet/mellanox/mlx5/core/debugfs.c field = div64_u64(stats->sum, stats->n); div64_u64 335 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c cycles_delta = div64_u64(nsec_delta << clock->cycles.shift, div64_u64 501 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c cycles_delta = div64_u64(nsec_delta << clock->cycles.shift, div64_u64 547 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c overflow_cycles = div64_u64(~0ULL >> 1, clock->cycles.mult); div64_u64 280 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c overflow_cycles = div64_u64(~0ULL >> 1, clock->cycles.mult); div64_u64 964 drivers/ntb/test/ntb_perf.c div64_u64(pthr->copied, ktime_to_us(pthr->duration))); div64_u64 1112 drivers/ntb/test/ntb_perf.c div64_u64(pthr->copied, ktime_to_us(pthr->duration))); div64_u64 189 drivers/pinctrl/ti/pinctrl-ti-iodelay.c return div64_u64(m, d); div64_u64 577 drivers/powercap/intel_rapl_common.c return div64_u64(value, units) * scale; div64_u64 581 drivers/powercap/intel_rapl_common.c return div64_u64(value, scale); div64_u64 890 drivers/powercap/intel_rapl_common.c f = div64_u64(4 * (value - (1 << y)), 1 << y); div64_u64 906 drivers/powercap/intel_rapl_common.c value = div64_u64(value, rp->time_unit); div64_u64 47 drivers/ptp/ptp_dte.c #define DTE_PPB_ADJ(ppb) (u32)(div64_u64((((u64)abs(ppb) * BIT(28)) +\ div64_u64 110 drivers/pwm/pwm-bcm-iproc.c state->period = div64_u64(tmp, rate); div64_u64 114 drivers/pwm/pwm-bcm-iproc.c state->duty_cycle = div64_u64(tmp, rate); div64_u64 142 drivers/pwm/pwm-bcm-iproc.c period = div64_u64(value, div); div64_u64 144 drivers/pwm/pwm-bcm-iproc.c duty = div64_u64(value, div); div64_u64 136 drivers/pwm/pwm-bcm-kona.c pc = div64_u64(val, div); div64_u64 138 drivers/pwm/pwm-bcm-kona.c dc = div64_u64(val, div); div64_u64 39 drivers/pwm/pwm-lpc32xx.c period_cycles = div64_u64(c * period_ns, div64_u64 47 drivers/pwm/pwm-lpc32xx.c duty_cycles = div64_u64((unsigned long long)(period_ns - duty_ns) * 256, div64_u64 182 drivers/pwm/pwm-meson.c pre_div = div64_u64(fin_freq * (u64)period, NSEC_PER_SEC * 0xffffLL); div64_u64 188 drivers/pwm/pwm-meson.c cnt = div64_u64(fin_freq * (u64)period, NSEC_PER_SEC * (pre_div + 1)); div64_u64 207 drivers/pwm/pwm-meson.c duty_cnt = div64_u64(fin_freq * (u64)duty, div64_u64 94 drivers/pwm/pwm-mtk-disp.c period = div64_u64(rate * period_ns, div); div64_u64 98 drivers/pwm/pwm-mtk-disp.c high_width = div64_u64(rate * duty_ns, div); div64_u64 80 drivers/pwm/pwm-rcar.c tmp = div64_u64(tmp, div); div64_u64 100 drivers/pwm/pwm-spear.c pv = div64_u64(val, div); div64_u64 102 drivers/pwm/pwm-spear.c dc = div64_u64(val, div); div64_u64 243 drivers/thermal/cpu_cooling.c load = div64_u64(100 * (delta_time - delta_idle), delta_time); div64_u64 4327 drivers/video/fbdev/omap2/omapfb/dss/dsi.c #define TO_DSI_T(x) ((u32)div64_u64((u64)x * 1000000000llu, byteclk)) div64_u64 4358 drivers/video/fbdev/omap2/omapfb/dss/dsi.c #define TO_DISPC_T(x) ((u32)div64_u64((u64)x * 1000000000llu, pck)) div64_u64 4387 drivers/video/fbdev/omap2/omapfb/dss/dsi.c pck = (u32)div64_u64(dsi_tput, t->bitspp); div64_u64 4392 drivers/video/fbdev/omap2/omapfb/dss/dsi.c vm.hsw = div64_u64((u64)(t->hsa + t->hse) * pck, byteclk); div64_u64 4393 drivers/video/fbdev/omap2/omapfb/dss/dsi.c vm.hbp = div64_u64((u64)t->hbp * pck, byteclk); div64_u64 4394 drivers/video/fbdev/omap2/omapfb/dss/dsi.c vm.hfp = div64_u64((u64)t->hfp * pck, byteclk); div64_u64 4559 drivers/video/fbdev/omap2/omapfb/dss/dsi.c dsi_htot = div64_u64((u64)panel_htot * byteclk, req_pck_nom); div64_u64 4569 drivers/video/fbdev/omap2/omapfb/dss/dsi.c dispc_htot = div64_u64((u64)dsi_htot * dispc_pck, byteclk); div64_u64 4592 drivers/video/fbdev/omap2/omapfb/dss/dsi.c hsa = div64_u64((u64)req_vm->hsw * byteclk, req_pck_nom); div64_u64 4596 drivers/video/fbdev/omap2/omapfb/dss/dsi.c hbp = div64_u64((u64)req_vm->hbp * byteclk, req_pck_nom); div64_u64 4648 drivers/video/fbdev/omap2/omapfb/dss/dsi.c hsa = div64_u64((u64)req_vm->hsw * dispc_pck, div64_u64 4655 drivers/video/fbdev/omap2/omapfb/dss/dsi.c hbp = div64_u64((u64)req_vm->hbp * dispc_pck, req_pck_nom); div64_u64 4771 drivers/video/fbdev/omap2/omapfb/dss/dsi.c byteclk_min = div64_u64((u64)ctx->req_pck_min * bitspp, ndl * 8); div64_u64 4778 drivers/video/fbdev/omap2/omapfb/dss/dsi.c byteclk_max = div64_u64((u64)ctx->req_pck_max * bitspp, div64_u64 768 fs/btrfs/dev-replace.c ret = div64_u64(dev_replace->cursor_left, div64_u64 2143 fs/btrfs/extent-tree.c num_csums_per_leaf = div64_u64(csum_size, div64_u64 2145 fs/btrfs/extent-tree.c num_csums = div64_u64(csum_bytes, fs_info->sectorsize); div64_u64 2147 fs/btrfs/extent-tree.c num_csums = div64_u64(num_csums, num_csums_per_leaf); div64_u64 1442 fs/btrfs/free-space-cache.c bitmap_start = div64_u64(bitmap_start, bytes_per_bitmap); div64_u64 1662 fs/btrfs/free-space-cache.c u64 max_bitmaps = div64_u64(size + bytes_per_bg - 1, bytes_per_bg); div64_u64 1837 fs/btrfs/free-space-cache.c tmp = div64_u64(tmp, align); div64_u64 407 fs/btrfs/scrub.c ret = div64_u64(bytenr - cache->key.objectid, cache->full_stripe_len) * div64_u64 2683 fs/btrfs/scrub.c stripe_nr = div64_u64(*offset, map->stripe_len); div64_u64 3082 fs/btrfs/scrub.c nstripes = div64_u64(length, map->stripe_len); div64_u64 344 fs/btrfs/space-info.c nr = div64_u64(to_reclaim, bytes); div64_u64 5680 fs/btrfs/volumes.c stripe_nr = div64_u64(offset, stripe_len); div64_u64 5686 fs/btrfs/volumes.c stripe_nr_end = div64_u64(stripe_nr_end, map->stripe_len); div64_u64 5996 fs/btrfs/volumes.c stripe_nr = div64_u64(offset, stripe_len); div64_u64 6025 fs/btrfs/volumes.c raid56_full_stripe_start = div64_u64(raid56_full_stripe_start, div64_u64 6176 fs/btrfs/volumes.c stripe_nr = div64_u64(raid56_full_stripe_start, div64_u64 6368 fs/btrfs/volumes.c stripe_nr = div64_u64(stripe_nr, map->stripe_len); div64_u64 1403 fs/ext4/resize.c reserved_blocks = div64_u64(reserved_blocks, ext4_blocks_count(es)); div64_u64 174 fs/f2fs/debug.c si->bimodal = div64_u64(bimodal, dist); div64_u64 386 fs/f2fs/debug.c div64_u64(si->hit_total * 100, si->total_ext), div64_u64 268 fs/f2fs/gc.c age = 100 - div64_u64(100 * (mtime - sit_i->min_mtime), div64_u64 11 include/linux/math64.h #define div64_ul(x, y) div64_u64((x), (y)) div64_u64 103 include/linux/math64.h #ifndef div64_u64 div64_u64 104 include/linux/math64.h extern u64 div64_u64(u64 dividend, u64 divisor); div64_u64 285 include/linux/math64.h ({ u64 _tmp = (d); div64_u64((ll) + _tmp - 1, _tmp); }) div64_u64 298 include/linux/math64.h ({ u64 _tmp = (divisor); div64_u64((dividend) + _tmp / 2, _tmp); }) div64_u64 1399 kernel/bpf/core.c DST = div64_u64(DST, SRC); div64_u64 1407 kernel/bpf/core.c DST = div64_u64(DST, IMM); div64_u64 3664 kernel/events/core.c return div64_u64(dividend, divisor); div64_u64 8264 kernel/events/core.c nr = div64_u64(period + val, period); div64_u64 769 kernel/fork.c threads = div64_u64((u64) nr_pages * (u64) PAGE_SIZE, div64_u64 152 kernel/power/energy_model.c table[i].cost = div64_u64(fmax * table[i].power, div64_u64 2929 kernel/sched/core.c return div64_u64(runtime << BW_SHIFT, period); div64_u64 926 kernel/sched/debug.c avg_per_cpu = div64_u64(avg_per_cpu, div64_u64 2182 kernel/sched/fair.c f_weight = div64_u64(runtime << 16, period + 1); div64_u64 485 kernel/sched/psi.c growth += div64_u64(win->prev_growth * remaining, win->size); div64_u64 1911 kernel/time/timekeeping.c mult = div64_u64((tk->ntp_tick >> tk->ntp_error_shift) - div64_u64 141 lib/math/div64.c #ifndef div64_u64 div64_u64 161 lib/math/div64.c EXPORT_SYMBOL(div64_u64); div64_u64 174 lib/math/div64.c quot = div64_u64(abs(dividend), abs(divisor)); div64_u64 2455 mm/memcontrol.c overage = div64_u64(overage, high); div64_u64 1061 mm/page-writeback.c pos_ratio = div64_u64(pos_ratio * (x_intercept - dtc->wb_dirty), div64_u64 2538 mm/vmscan.c div64_u64(scan * fraction[file], denominator) : div64_u64 3157 net/core/pktgen.c pps = div64_u64(pkt_dev->sofar * NSEC_PER_SEC, div64_u64 30 net/dccp/ccids/lib/tfrc.h return div64_u64(a * 1000000, b); div64_u64 217 net/ipv4/tcp_cubic.c x = (2 * x + (u32)div64_u64(a, (u64)x * (u64)(x - 1))); div64_u64 367 net/ipv4/tcp_nv.c div64_u64(((u64)ca->nv_rtt_max_rate) * ca->nv_min_rtt, div64_u64 153 net/netfilter/nft_ct.c avgcnt = div64_u64(bcnt, pcnt); div64_u64 158 net/netfilter/nft_limit.c priv->cost = div64_u64(priv->limit.nsecs, priv->limit.rate); div64_u64 183 net/netfilter/nft_limit.c u64 cost = div64_u64(priv->nsecs * pkt->skb->len, priv->rate); div64_u64 260 net/netfilter/nft_limit.c priv->cost = div64_u64(priv->limit.nsecs, priv->limit.rate); div64_u64 287 net/netfilter/nft_limit.c u64 cost = div64_u64(priv->nsecs * pkt->skb->len, priv->rate); div64_u64 88 net/netfilter/xt_connbytes.c what = div64_u64(bytes, pkts); div64_u64 498 net/netfilter/xt_hashlimit.c return div64_u64(user, div64_u64(scale, HZ * cpj)); div64_u64 500 net/netfilter/xt_hashlimit.c return user * div64_u64(HZ * cpj, scale); div64_u64 513 net/netfilter/xt_hashlimit.c return div64_u64(XT_HASHLIMIT_SCALE_v2, user); div64_u64 1772 net/sched/sch_cake.c b = div64_u64(b, window_interval); div64_u64 2208 net/sched/sch_cake.c rate_ns = div64_u64(rate_ns, max(MIN_RATE, rate)); div64_u64 1343 net/sched/sch_generic.c r->mult = div64_u64(factor, r->rate_bytes_ps); div64_u64 357 net/sched/sch_netem.c return div64_u64(len * NSEC_PER_SEC, q->rate); div64_u64 518 net/sched/sch_taprio.c div64_u64((u64)entry->interval * 1000, div64_u64 60 samples/bpf/hbm_kern.h #define BYTES_TO_NS(bytes, rate) div64_u64(((u64)(bytes)) << 20, (u64)(rate)) div64_u64 257 sound/core/compress_offload.c u64 app_pointer = div64_u64(runtime->total_bytes_available, div64_u64 182 sound/soc/sti/uniperif_player.c delta *= (int)div64_u64((uint64_t)rate * div64_u64 212 sound/soc/sti/uniperif_player.c adjustment *= (int)div64_u64((uint64_t)delta * 1000000 + rate / 2, div64_u64 2027 sound/usb/mixer_quirks.c freq = (den == 0) ? 0 : div64_u64(num, den); div64_u64 741 sound/x86/intel_hdmi_audio.c cts_val = div64_u64(dividend, divisor);