DIV_ROUND_CLOSEST_ULL  166 drivers/clk/at91/clk-audio-pll.c 	fr = DIV_ROUND_CLOSEST_ULL(fr, AUDIO_PLL_DIV_FRAC);
DIV_ROUND_CLOSEST_ULL  234 drivers/clk/at91/clk-audio-pll.c 	tmp = DIV_ROUND_CLOSEST_ULL(tmp, parent_rate);
DIV_ROUND_CLOSEST_ULL  216 drivers/clk/at91/clk-sam9x60-pll.c 			tmpfrac = DIV_ROUND_CLOSEST_ULL((u64)remainder * tmpdiv * (1 << 22),
DIV_ROUND_CLOSEST_ULL  219 drivers/clk/at91/clk-sam9x60-pll.c 			tmprate += DIV_ROUND_CLOSEST_ULL((u64)tmpfrac * parent_rate,
DIV_ROUND_CLOSEST_ULL   78 drivers/clk/bcm/clk-kona.c 	return DIV_ROUND_CLOSEST_ULL(combined, BILLION);
DIV_ROUND_CLOSEST_ULL  722 drivers/clk/bcm/clk-kona.c 		scaled_parent_rate = DIV_ROUND_CLOSEST_ULL(scaled_rate,
DIV_ROUND_CLOSEST_ULL  734 drivers/clk/bcm/clk-kona.c 	result = DIV_ROUND_CLOSEST_ULL(scaled_parent_rate, scaled_div);
DIV_ROUND_CLOSEST_ULL  781 drivers/clk/bcm/clk-kona.c 		scaled_parent_rate = DIV_ROUND_CLOSEST_ULL(scaled_rate,
DIV_ROUND_CLOSEST_ULL  793 drivers/clk/bcm/clk-kona.c 		best_scaled_div = DIV_ROUND_CLOSEST_ULL(scaled_parent_rate,
DIV_ROUND_CLOSEST_ULL  806 drivers/clk/bcm/clk-kona.c 	result = DIV_ROUND_CLOSEST_ULL(scaled_parent_rate, best_scaled_div);
DIV_ROUND_CLOSEST_ULL  311 drivers/clk/clk-axi-clkgen.c 	tmp = DIV_ROUND_CLOSEST_ULL(tmp, dout * d);
DIV_ROUND_CLOSEST_ULL  350 drivers/clk/clk-axi-clkgen.c 	tmp = DIV_ROUND_CLOSEST_ULL(tmp, dout * d);
DIV_ROUND_CLOSEST_ULL   55 drivers/clk/meson/clk-mpll.c 		*sdm = DIV_ROUND_CLOSEST_ULL(frac, requested_rate);
DIV_ROUND_CLOSEST_ULL  112 drivers/clk/meson/clk-pll.c 		val = DIV_ROUND_CLOSEST_ULL(val * frac_max, parent_rate);
DIV_ROUND_CLOSEST_ULL  161 drivers/clk/meson/clk-pll.c 		return DIV_ROUND_CLOSEST_ULL(val, parent_rate);
DIV_ROUND_CLOSEST_ULL   44 drivers/clk/meson/sclk-div.c 	int div = DIV_ROUND_CLOSEST_ULL((u64)prate, rate);
DIV_ROUND_CLOSEST_ULL  113 drivers/clk/renesas/rcar-gen3-cpg.c 	return DIV_ROUND_CLOSEST_ULL((u64)parent_rate * mult,
DIV_ROUND_CLOSEST_ULL  134 drivers/clk/sprd/pll.c 		rate = DIV_ROUND_CLOSEST_ULL(refin * kint * k1,
DIV_ROUND_CLOSEST_ULL  203 drivers/clk/sprd/pll.c 	kint = DIV_ROUND_CLOSEST_ULL(tmp, refin * 100);
DIV_ROUND_CLOSEST_ULL  316 drivers/cpuidle/governors/menu.c 	predicted_us = DIV_ROUND_CLOSEST_ULL((uint64_t)data->next_timer_us *
DIV_ROUND_CLOSEST_ULL  248 drivers/gpu/drm/drm_vblank.c 		diff = DIV_ROUND_CLOSEST_ULL(diff_ns, framedur_ns);
DIV_ROUND_CLOSEST_ULL 1337 drivers/gpu/drm/drm_vblank.c 		diff = DIV_ROUND_CLOSEST_ULL(diff_ns, framedur_ns);
DIV_ROUND_CLOSEST_ULL  580 drivers/gpu/drm/i915/display/intel_display.c 	clock->vco = DIV_ROUND_CLOSEST_ULL(mul_u32_u32(refclk, clock->m),
DIV_ROUND_CLOSEST_ULL  965 drivers/gpu/drm/i915/display/intel_display.c 			m2 = DIV_ROUND_CLOSEST_ULL(mul_u32_u32(target, clock.p * clock.n) << 22,
DIV_ROUND_CLOSEST_ULL  477 drivers/gpu/drm/i915/display/intel_panel.c 	target_val = DIV_ROUND_CLOSEST_ULL(target_val, source_max - source_min);
DIV_ROUND_CLOSEST_ULL   54 drivers/gpu/drm/i915/i915_sysfs.c 	return DIV_ROUND_CLOSEST_ULL(res, 1000);
DIV_ROUND_CLOSEST_ULL  719 drivers/gpu/drm/mediatek/mtk_hdmi.c 	return DIV_ROUND_CLOSEST_ULL((u64)hdmi_mode_clock_to_hz(tmds_clock) * n,
DIV_ROUND_CLOSEST_ULL  227 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c 	ssc_step_size = DIV_ROUND_CLOSEST_ULL(ssc_step_size, 1000000);
DIV_ROUND_CLOSEST_ULL  227 drivers/hwmon/lochnagar-hwmon.c 	power = DIV_ROUND_CLOSEST_ULL(power, LN2_PWR_UNITS);
DIV_ROUND_CLOSEST_ULL  160 drivers/iio/adc/ad7780.c 		gain = DIV_ROUND_CLOSEST_ULL(vref, full_scale);
DIV_ROUND_CLOSEST_ULL  641 drivers/iio/imu/adis16480.c 		*val = DIV_ROUND_CLOSEST_ULL(temp, st->chip_info->temp_scale);
DIV_ROUND_CLOSEST_ULL  172 drivers/media/dvb-frontends/af9013.c 		freq_cw = DIV_ROUND_CLOSEST_ULL((u64)sampling_freq * 0x800000,
DIV_ROUND_CLOSEST_ULL  434 drivers/media/dvb-frontends/af9033.c 		utmp = DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x800000,
DIV_ROUND_CLOSEST_ULL 1243 drivers/media/dvb-frontends/cx24120.c 	inv_vco = DIV_ROUND_CLOSEST_ULL(0x400000000ULL, vco);
DIV_ROUND_CLOSEST_ULL   67 drivers/media/dvb-frontends/cxd2820r_c.c 	utmp = 0x4000 - DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x4000, CXD2820R_CLK);
DIV_ROUND_CLOSEST_ULL   92 drivers/media/dvb-frontends/cxd2820r_t.c 	utmp = DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x1000000, CXD2820R_CLK);
DIV_ROUND_CLOSEST_ULL  109 drivers/media/dvb-frontends/cxd2820r_t2.c 	utmp = DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x1000000, CXD2820R_CLK);
DIV_ROUND_CLOSEST_ULL  562 drivers/media/dvb-frontends/m88ds3103.c 	u16tmp = DIV_ROUND_CLOSEST_ULL((u64)c->symbol_rate * 0x10000, dev->mclk);
DIV_ROUND_CLOSEST_ULL  926 drivers/media/dvb-frontends/m88ds3103.c 	c->symbol_rate = DIV_ROUND_CLOSEST_ULL((u64)(buf[1] << 8 | buf[0] << 0) * dev->mclk, 0x10000);
DIV_ROUND_CLOSEST_ULL  316 drivers/media/dvb-frontends/mn88472.c 	utmp = DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x1000000, dev->clk);
DIV_ROUND_CLOSEST_ULL  103 drivers/media/dvb-frontends/mn88473.c 	uitmp = DIV_ROUND_CLOSEST_ULL((u64) if_frequency * 0x1000000, dev->clk);
DIV_ROUND_CLOSEST_ULL  634 drivers/mmc/host/sdhci-msm.c 			mclk_freq = DIV_ROUND_CLOSEST_ULL((host->clock * 8),
DIV_ROUND_CLOSEST_ULL  637 drivers/mmc/host/sdhci-msm.c 			mclk_freq = DIV_ROUND_CLOSEST_ULL((host->clock * 4),
DIV_ROUND_CLOSEST_ULL  791 drivers/mtd/nand/raw/denali.c 	mult_x = DIV_ROUND_CLOSEST_ULL(denali->clk_x_rate, denali->clk_rate);
DIV_ROUND_CLOSEST_ULL  471 drivers/net/ethernet/ti/davinci_cpdma.c 		idle_cnt = DIV_ROUND_CLOSEST_ULL(divident, divisor);
DIV_ROUND_CLOSEST_ULL  475 drivers/net/ethernet/ti/davinci_cpdma.c 		new_rate = DIV_ROUND_CLOSEST_ULL(divident, divisor);
DIV_ROUND_CLOSEST_ULL  496 drivers/net/ethernet/ti/davinci_cpdma.c 		send_cnt = DIV_ROUND_CLOSEST_ULL(divident, ch->rate);
DIV_ROUND_CLOSEST_ULL  234 drivers/nvmem/imx-ocotp.c 	strobe_prog = DIV_ROUND_CLOSEST_ULL((u64)clk_rate * DEF_STROBE_PROG,
DIV_ROUND_CLOSEST_ULL  100 drivers/pwm/pwm-imx-tpm.c 	clock_unit = DIV_ROUND_CLOSEST_ULL(tmp, NSEC_PER_SEC);
DIV_ROUND_CLOSEST_ULL  116 drivers/pwm/pwm-imx-tpm.c 	real_state->period = DIV_ROUND_CLOSEST_ULL(tmp, rate);
DIV_ROUND_CLOSEST_ULL  129 drivers/pwm/pwm-imx-tpm.c 	p->val = DIV_ROUND_CLOSEST_ULL(tmp, real_state->period);
DIV_ROUND_CLOSEST_ULL  154 drivers/pwm/pwm-imx-tpm.c 	state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, rate);
DIV_ROUND_CLOSEST_ULL  150 drivers/pwm/pwm-imx27.c 	pwm_clk = DIV_ROUND_CLOSEST_ULL(pwm_clk, prescaler);
DIV_ROUND_CLOSEST_ULL  156 drivers/pwm/pwm-imx27.c 	state->period = DIV_ROUND_CLOSEST_ULL(tmp, pwm_clk);
DIV_ROUND_CLOSEST_ULL  162 drivers/pwm/pwm-imx27.c 		state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, pwm_clk);
DIV_ROUND_CLOSEST_ULL   99 drivers/pwm/pwm-lpss.c 	base_unit = DIV_ROUND_CLOSEST_ULL(freq, c);
DIV_ROUND_CLOSEST_ULL  138 drivers/pwm/pwm-mediatek.c 	cnt_period = DIV_ROUND_CLOSEST_ULL((u64)period_ns * 1000, resolution);
DIV_ROUND_CLOSEST_ULL  142 drivers/pwm/pwm-mediatek.c 		cnt_period = DIV_ROUND_CLOSEST_ULL((u64)period_ns * 1000,
DIV_ROUND_CLOSEST_ULL  161 drivers/pwm/pwm-mediatek.c 	cnt_duty = DIV_ROUND_CLOSEST_ULL((u64)duty_ns * 1000, resolution);
DIV_ROUND_CLOSEST_ULL   50 drivers/pwm/pwm-omap-dmtimer.c 	return DIV_ROUND_CLOSEST_ULL((u64)clk_rate * ns, NSEC_PER_SEC);
DIV_ROUND_CLOSEST_ULL  169 drivers/pwm/pwm-omap-dmtimer.c 		DIV_ROUND_CLOSEST_ULL((u64)NSEC_PER_SEC * duty_cycles,
DIV_ROUND_CLOSEST_ULL  171 drivers/pwm/pwm-omap-dmtimer.c 		DIV_ROUND_CLOSEST_ULL((u64)NSEC_PER_SEC * period_cycles,
DIV_ROUND_CLOSEST_ULL   79 drivers/pwm/pwm-rockchip.c 	state->period = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate);
DIV_ROUND_CLOSEST_ULL   83 drivers/pwm/pwm-rockchip.c 	state->duty_cycle =  DIV_ROUND_CLOSEST_ULL(tmp, clk_rate);
DIV_ROUND_CLOSEST_ULL  117 drivers/pwm/pwm-rockchip.c 	period = DIV_ROUND_CLOSEST_ULL(div,
DIV_ROUND_CLOSEST_ULL  121 drivers/pwm/pwm-rockchip.c 	duty = DIV_ROUND_CLOSEST_ULL(div, pc->data->prescaler * NSEC_PER_SEC);
DIV_ROUND_CLOSEST_ULL  184 drivers/pwm/pwm-sifive.c 	frac = DIV_ROUND_CLOSEST_ULL(num, state->period);
DIV_ROUND_CLOSEST_ULL  106 drivers/pwm/pwm-sprd.c 	state->period = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate);
DIV_ROUND_CLOSEST_ULL  111 drivers/pwm/pwm-sprd.c 	state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate);
DIV_ROUND_CLOSEST_ULL  139 drivers/pwm/pwm-sprd.c 	prescale = DIV_ROUND_CLOSEST_ULL(tmp, SPRD_PWM_MOD_MAX) - 1;
DIV_ROUND_CLOSEST_ULL  182 drivers/pwm/pwm-stm32-lp.c 	state->period = DIV_ROUND_CLOSEST_ULL(tmp, rate);
DIV_ROUND_CLOSEST_ULL  187 drivers/pwm/pwm-stm32-lp.c 	state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, rate);
DIV_ROUND_CLOSEST_ULL  141 drivers/pwm/pwm-sun4i.c 	state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate);
DIV_ROUND_CLOSEST_ULL  144 drivers/pwm/pwm-sun4i.c 	state->period = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate);
DIV_ROUND_CLOSEST_ULL   81 drivers/pwm/pwm-tegra.c 	c = DIV_ROUND_CLOSEST_ULL(c, period_ns);
DIV_ROUND_CLOSEST_ULL   92 drivers/pwm/pwm-tegra.c 	hz = DIV_ROUND_CLOSEST_ULL(100ULL * NSEC_PER_SEC, period_ns);
DIV_ROUND_CLOSEST_ULL   93 drivers/pwm/pwm-tegra.c 	rate = DIV_ROUND_CLOSEST_ULL(100ULL * rate, hz);
DIV_ROUND_CLOSEST_ULL   90 drivers/pwm/pwm-zx.c 	state->period = DIV_ROUND_CLOSEST_ULL(tmp, rate);
DIV_ROUND_CLOSEST_ULL   94 drivers/pwm/pwm-zx.c 	state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, rate);
DIV_ROUND_CLOSEST_ULL  175 drivers/regulator/pwm-regulator.c 	voltage = DIV_ROUND_CLOSEST_ULL((u64)voltage * diff_uV, diff_duty);
DIV_ROUND_CLOSEST_ULL  208 drivers/regulator/pwm-regulator.c 	dutycycle = DIV_ROUND_CLOSEST_ULL((u64)(req_min_uV - min_uV) *
DIV_ROUND_CLOSEST_ULL   55 drivers/regulator/vctrl-regulator.c 		DIV_ROUND_CLOSEST_ULL((s64)(out_uV - out->min_uV) *
DIV_ROUND_CLOSEST_ULL   77 drivers/regulator/vctrl-regulator.c 		DIV_ROUND_CLOSEST_ULL((s64)(ctrl_uV - ctrl->min_uV) *
DIV_ROUND_CLOSEST_ULL  534 drivers/soc/amlogic/meson-clk-measure.c 	return DIV_ROUND_CLOSEST_ULL((val & MSR_VAL_MASK) * 1000000ULL,
DIV_ROUND_CLOSEST_ULL   82 drivers/staging/media/imx/imx-media-fim.c 	fim->nominal = DIV_ROUND_CLOSEST_ULL(1000000ULL * (u64)fi->numerator,
DIV_ROUND_CLOSEST_ULL  306 drivers/thermal/power_allocator.c 		granted_power[i] = DIV_ROUND_CLOSEST_ULL(req_range,
DIV_ROUND_CLOSEST_ULL  174 drivers/video/backlight/pwm_bl.c 		retval = DIV_ROUND_CLOSEST_ULL(lightness * 10, 9023);
DIV_ROUND_CLOSEST_ULL  177 drivers/video/backlight/pwm_bl.c 		retval = DIV_ROUND_CLOSEST_ULL(retval, (scale * scale));
DIV_ROUND_CLOSEST_ULL  213 drivers/video/backlight/pwm_bl.c 		retval = DIV_ROUND_CLOSEST_ULL(retval, PWM_LUMINANCE_SCALE);
DIV_ROUND_CLOSEST_ULL  205 include/linux/pwm.h 	return DIV_ROUND_CLOSEST_ULL((u64)state->duty_cycle * scale,
DIV_ROUND_CLOSEST_ULL  234 include/linux/pwm.h 	state->duty_cycle = DIV_ROUND_CLOSEST_ULL((u64)duty_cycle *
DIV_ROUND_CLOSEST_ULL 6349 kernel/cgroup/cgroup.c 		frac = DIV_ROUND_CLOSEST_ULL(frac, power_of_ten(flen - dec_shift));
DIV_ROUND_CLOSEST_ULL   74 kernel/locking/qspinlock_stat.h 			frac = DIV_ROUND_CLOSEST_ULL(frac, kicks);
DIV_ROUND_CLOSEST_ULL   89 kernel/locking/qspinlock_stat.h 				sum = DIV_ROUND_CLOSEST_ULL(sum, kicks);
DIV_ROUND_CLOSEST_ULL 7265 kernel/sched/core.c 		req.util = DIV_ROUND_CLOSEST_ULL(req.util, UCLAMP_PERCENT_SCALE);
DIV_ROUND_CLOSEST_ULL 7745 kernel/sched/core.c 	return DIV_ROUND_CLOSEST_ULL(weight * CGROUP_WEIGHT_DFL, 1024);
DIV_ROUND_CLOSEST_ULL 7761 kernel/sched/core.c 	weight = DIV_ROUND_CLOSEST_ULL(weight * 1024, CGROUP_WEIGHT_DFL);
DIV_ROUND_CLOSEST_ULL  788 net/ipv4/fib_semantics.c 			upper_bound = DIV_ROUND_CLOSEST_ULL((u64)w << 31,
DIV_ROUND_CLOSEST_ULL  700 net/ipv4/nexthop.c 		upper_bound = DIV_ROUND_CLOSEST_ULL((u64)w << 31, total) - 1;
DIV_ROUND_CLOSEST_ULL 4582 net/ipv6/route.c 		upper_bound = DIV_ROUND_CLOSEST_ULL((u64) (*weight) << 31,
DIV_ROUND_CLOSEST_ULL  398 sound/soc/codecs/max9860.c 	n = DIV_ROUND_CLOSEST_ULL(65536ULL * 96 * params_rate(params),
DIV_ROUND_CLOSEST_ULL  189 sound/soc/codecs/max9867.c 	unsigned int ni = DIV_ROUND_CLOSEST_ULL(96ULL * 0x10000 * params_rate(params),
DIV_ROUND_CLOSEST_ULL  835 sound/soc/codecs/pcm512x.c 	K = DIV_ROUND_CLOSEST_ULL(10000ULL * pll_rate * P, pllin_rate);