DIV_ROUND_CLOSEST   68 arch/alpha/kernel/sys_ruffian.c #define RUFFIAN_LATCH	DIV_ROUND_CLOSEST(PIT_TICK_RATE, HZ)
DIV_ROUND_CLOSEST   57 arch/arm/kernel/smp_twd.c 	writel_relaxed(DIV_ROUND_CLOSEST(twd_timer_rate, HZ),
DIV_ROUND_CLOSEST  117 arch/arm/mach-footbridge/dc21285-timer.c 	unsigned rate = DIV_ROUND_CLOSEST(mem_fclk_21285, 16);
DIV_ROUND_CLOSEST  134 arch/arm/mach-footbridge/dc21285-timer.c 	unsigned rate = DIV_ROUND_CLOSEST(mem_fclk_21285, 16);
DIV_ROUND_CLOSEST  160 arch/arm/mach-iop32x/time.c 	ticks_per_jiffy = DIV_ROUND_CLOSEST(tick_rate, HZ);
DIV_ROUND_CLOSEST   25 arch/arm/mach-rpc/time.c #define RPC_LATCH DIV_ROUND_CLOSEST(RPC_CLOCK_FREQ, HZ)
DIV_ROUND_CLOSEST  494 arch/m68k/amiga/config.c 	jiffy_ticks = DIV_ROUND_CLOSEST(amiga_eclock, HZ);
DIV_ROUND_CLOSEST   56 arch/mips/loongson32/common/time.c 	ls1x_jiffies_per_tick = DIV_ROUND_CLOSEST(mips_hpt_frequency, HZ);
DIV_ROUND_CLOSEST  404 arch/powerpc/platforms/85xx/p1022_ds.c 	pxclk = DIV_ROUND_CLOSEST(fsl_get_sys_freq(), freq);
DIV_ROUND_CLOSEST   74 arch/powerpc/platforms/85xx/p1022_rdk.c 	pxclk = DIV_ROUND_CLOSEST(fsl_get_sys_freq(), freq);
DIV_ROUND_CLOSEST  109 arch/powerpc/platforms/85xx/t1042rdb_diu.c 	pxclk = DIV_ROUND_CLOSEST(fsl_get_sys_freq(), freq);
DIV_ROUND_CLOSEST  256 arch/powerpc/platforms/86xx/mpc8610_hpcd.c 	pxclk = DIV_ROUND_CLOSEST(fsl_get_sys_freq(), freq) - 1;
DIV_ROUND_CLOSEST  193 arch/x86/kernel/tsc_msr.c 		freq = DIV_ROUND_CLOSEST(tscref, md->divider);
DIV_ROUND_CLOSEST  198 arch/x86/kernel/tsc_msr.c 		res = DIV_ROUND_CLOSEST(tscref * ratio, md->divider);
DIV_ROUND_CLOSEST  615 drivers/atm/horizon.c 				pre = DIV_ROUND_CLOSEST(br, c<<div);
DIV_ROUND_CLOSEST  645 drivers/atm/horizon.c 					pre = DIV_ROUND_CLOSEST(br, c<<div);
DIV_ROUND_CLOSEST  269 drivers/bluetooth/hci_nokia.c 	u16 baud = DIV_ROUND_CLOSEST(btdev->sysclk_speed * 10, SETUP_BAUD_RATE);
DIV_ROUND_CLOSEST   22 drivers/clk/actions/owl-pll.c 	mul = DIV_ROUND_CLOSEST(rate, pll_hw->bfreq);
DIV_ROUND_CLOSEST   95 drivers/clk/at91/clk-generated.c 	return DIV_ROUND_CLOSEST(parent_rate, gck->gckdiv + 1);
DIV_ROUND_CLOSEST  138 drivers/clk/at91/clk-generated.c 		min_rate = DIV_ROUND_CLOSEST(parent_rate, GENERATED_MAX_DIV + 1);
DIV_ROUND_CLOSEST  143 drivers/clk/at91/clk-generated.c 		div = DIV_ROUND_CLOSEST(parent_rate, req->rate);
DIV_ROUND_CLOSEST  227 drivers/clk/at91/clk-generated.c 	div = DIV_ROUND_CLOSEST(parent_rate, rate);
DIV_ROUND_CLOSEST  182 drivers/clk/at91/clk-pll.c 		tmpmul = DIV_ROUND_CLOSEST(rate, parent_rate / tmpdiv);
DIV_ROUND_CLOSEST   52 drivers/clk/at91/clk-usb.c 	return DIV_ROUND_CLOSEST(parent_rate, (usbdiv + 1));
DIV_ROUND_CLOSEST   81 drivers/clk/at91/clk-usb.c 			tmp_rate = DIV_ROUND_CLOSEST(tmp_parent_rate, div);
DIV_ROUND_CLOSEST  140 drivers/clk/at91/clk-usb.c 	div = DIV_ROUND_CLOSEST(parent_rate, rate);
DIV_ROUND_CLOSEST  312 drivers/clk/at91/clk-usb.c 		tmprate = DIV_ROUND_CLOSEST(tmp_parent_rate, usb->divisors[i]);
DIV_ROUND_CLOSEST  341 drivers/clk/at91/clk-usb.c 	div = DIV_ROUND_CLOSEST(parent_rate, rate);
DIV_ROUND_CLOSEST  656 drivers/clk/bcm/clk-iproc-pll.c 	bestdiv = DIV_ROUND_CLOSEST(req->best_parent_rate, req->rate);
DIV_ROUND_CLOSEST  680 drivers/clk/bcm/clk-iproc-pll.c 	div = DIV_ROUND_CLOSEST(parent_rate, rate);
DIV_ROUND_CLOSEST  132 drivers/clk/clk-axi-clkgen.c 			dout = DIV_ROUND_CLOSEST(fvco, fout);
DIV_ROUND_CLOSEST  388 drivers/clk/clk-cdce925.c 	divider = DIV_ROUND_CLOSEST(parent_rate, rate);
DIV_ROUND_CLOSEST  484 drivers/clk/clk-cdce925.c 	divider = DIV_ROUND_CLOSEST(parent_rate, rate);
DIV_ROUND_CLOSEST   72 drivers/clk/clk-clps711x.c 		f_spi = DIV_ROUND_CLOSEST(CLPS711X_EXT_FREQ, 96);
DIV_ROUND_CLOSEST   74 drivers/clk/clk-clps711x.c 		f_pwm = DIV_ROUND_CLOSEST(CLPS711X_EXT_FREQ, 128);
DIV_ROUND_CLOSEST   81 drivers/clk/clk-clps711x.c 		f_spi = DIV_ROUND_CLOSEST(f_cpu, 576);
DIV_ROUND_CLOSEST   82 drivers/clk/clk-clps711x.c 		f_pwm = DIV_ROUND_CLOSEST(f_cpu, 768);
DIV_ROUND_CLOSEST   87 drivers/clk/clk-clps711x.c 			f_tim = DIV_ROUND_CLOSEST(CLPS711X_EXT_FREQ, 26);
DIV_ROUND_CLOSEST   89 drivers/clk/clk-clps711x.c 			f_tim = DIV_ROUND_CLOSEST(CLPS711X_EXT_FREQ, 24);
DIV_ROUND_CLOSEST   91 drivers/clk/clk-clps711x.c 		f_tim = DIV_ROUND_CLOSEST(f_cpu, 144);
DIV_ROUND_CLOSEST   36 drivers/clk/clk-multiplier.c 		return DIV_ROUND_CLOSEST(rate, parent_rate);
DIV_ROUND_CLOSEST  685 drivers/clk/clk-si5351.c 		a = DIV_ROUND_CLOSEST(*parent_rate, rate);
DIV_ROUND_CLOSEST   41 drivers/clk/meson/clk-dualdiv.c 		return DIV_ROUND_CLOSEST(parent_rate, p->n1);
DIV_ROUND_CLOSEST   43 drivers/clk/meson/clk-dualdiv.c 	return DIV_ROUND_CLOSEST(parent_rate * (p->m1 + p->m2),
DIV_ROUND_CLOSEST   28 drivers/clk/meson/clk-phase.c 	unsigned int val = DIV_ROUND_CLOSEST(degrees, phase_step(width));
DIV_ROUND_CLOSEST  114 drivers/clk/meson/sclk-div.c 	unsigned int hi = DIV_ROUND_CLOSEST(sclk->cached_div *
DIV_ROUND_CLOSEST  180 drivers/clk/microchip/clk-core.c 	div = DIV_ROUND_CLOSEST(parent_rate, rate);
DIV_ROUND_CLOSEST   72 drivers/clk/mvebu/dove-divider.c 	divider = DIV_ROUND_CLOSEST(parent_rate, rate);
DIV_ROUND_CLOSEST  103 drivers/clk/mvebu/dove-divider.c 	unsigned long rate = DIV_ROUND_CLOSEST(parent, divider);
DIV_ROUND_CLOSEST  122 drivers/clk/mvebu/dove-divider.c 	rate = DIV_ROUND_CLOSEST(parent_rate, divider);
DIV_ROUND_CLOSEST  101 drivers/clk/renesas/clk-div6.c 	div = DIV_ROUND_CLOSEST(parent_rate, rate);
DIV_ROUND_CLOSEST  308 drivers/clk/renesas/rcar-gen3-cpg.c 	return DIV_ROUND_CLOSEST(parent_rate,
DIV_ROUND_CLOSEST  320 drivers/clk/renesas/rcar-gen3-cpg.c 		calc_rate = DIV_ROUND_CLOSEST(parent_rate,
DIV_ROUND_CLOSEST  338 drivers/clk/renesas/rcar-gen3-cpg.c 	return DIV_ROUND_CLOSEST(*parent_rate, div);
DIV_ROUND_CLOSEST   69 drivers/clk/rockchip/clk-mmc-phase.c 		degrees += DIV_ROUND_CLOSEST(delay_num * factor, 1000000);
DIV_ROUND_CLOSEST  129 drivers/clk/rockchip/clk-mmc-phase.c 	delay = DIV_ROUND_CLOSEST(delay,
DIV_ROUND_CLOSEST   52 drivers/clk/sunxi-ng/ccu_phase.c 	step = DIV_ROUND_CLOSEST(360, parent_div);
DIV_ROUND_CLOSEST  104 drivers/clk/sunxi-ng/ccu_phase.c 		step = DIV_ROUND_CLOSEST(360, parent_div);
DIV_ROUND_CLOSEST  105 drivers/clk/sunxi-ng/ccu_phase.c 		delay = DIV_ROUND_CLOSEST(degrees, step);
DIV_ROUND_CLOSEST  210 drivers/clk/sunxi/clk-mod0.c 	step = DIV_ROUND_CLOSEST(360, mmc_div);
DIV_ROUND_CLOSEST  262 drivers/clk/sunxi/clk-mod0.c 		step = DIV_ROUND_CLOSEST(360, mmc_div);
DIV_ROUND_CLOSEST  263 drivers/clk/sunxi/clk-mod0.c 		delay = DIV_ROUND_CLOSEST(degrees, step);
DIV_ROUND_CLOSEST  842 drivers/clk/tegra/clk-dfll.c 		scale = DIV_ROUND_CLOSEST(rate / 1000 * DFLL_FREQ_REQ_SCALE_MAX,
DIV_ROUND_CLOSEST   20 drivers/clk/tegra/cvb.c 	mv = DIV_ROUND_CLOSEST(cvb->c2 * speedo, s_scale);
DIV_ROUND_CLOSEST   21 drivers/clk/tegra/cvb.c 	mv = DIV_ROUND_CLOSEST((mv + cvb->c1) * speedo, s_scale) + cvb->c0;
DIV_ROUND_CLOSEST  261 drivers/clk/versatile/clk-icst.c 		return DIV_ROUND_CLOSEST(rate, 1000000) * 1000000;
DIV_ROUND_CLOSEST  270 drivers/clk/versatile/clk-icst.c 		return DIV_ROUND_CLOSEST(rate, 500000) * 500000;
DIV_ROUND_CLOSEST  280 drivers/clk/versatile/clk-icst.c 		return DIV_ROUND_CLOSEST(rate, 250000) * 250000;
DIV_ROUND_CLOSEST   56 drivers/clk/zynq/pll.c 	fbdiv = DIV_ROUND_CLOSEST(rate, *prate);
DIV_ROUND_CLOSEST   49 drivers/clk/zynqmp/divider.c 	return DIV_ROUND_CLOSEST(parent_rate, rate);
DIV_ROUND_CLOSEST  120 drivers/clk/zynqmp/pll.c 	fbdiv = DIV_ROUND_CLOSEST(rate, *prate);
DIV_ROUND_CLOSEST  200 drivers/clk/zynqmp/pll.c 	fbdiv = DIV_ROUND_CLOSEST(rate, parent_rate);
DIV_ROUND_CLOSEST  126 drivers/clocksource/arm_global_timer.c 	gt_compare_set(DIV_ROUND_CLOSEST(gt_clk_rate, HZ), 1);
DIV_ROUND_CLOSEST  235 drivers/clocksource/asm9260_timer.c 	priv.ticks_per_jiffy = DIV_ROUND_CLOSEST(rate, HZ);
DIV_ROUND_CLOSEST   64 drivers/clocksource/clps711x-timer.c 	writew(DIV_ROUND_CLOSEST(rate, HZ), base);
DIV_ROUND_CLOSEST  116 drivers/clocksource/jcore-pit.c 	freq = DIV_ROUND_CLOSEST(NSEC_PER_SEC, buspd);
DIV_ROUND_CLOSEST  117 drivers/clocksource/jcore-pit.c 	pit->periodic_delta = DIV_ROUND_CLOSEST(NSEC_PER_SEC, HZ * buspd);
DIV_ROUND_CLOSEST  146 drivers/clocksource/mps2-timer.c 	ce->clock_count_per_tick = DIV_ROUND_CLOSEST(rate, HZ);
DIV_ROUND_CLOSEST  219 drivers/clocksource/nomadik-mtu.c 	nmdk_cycle = DIV_ROUND_CLOSEST(rate, HZ);
DIV_ROUND_CLOSEST  224 drivers/clocksource/renesas-ostm.c 	ostm->ticks_per_jiffy = DIV_ROUND_CLOSEST(rate, HZ);
DIV_ROUND_CLOSEST  210 drivers/clocksource/timer-atmel-pit.c 	data->cycle = DIV_ROUND_CLOSEST(pit_rate, HZ);
DIV_ROUND_CLOSEST  208 drivers/clocksource/timer-cadence-ttc.c 			 DIV_ROUND_CLOSEST(ttce->ttc.freq, PRESCALE * HZ));
DIV_ROUND_CLOSEST  239 drivers/clocksource/timer-cadence-ttc.c 			factor = DIV_ROUND_CLOSEST(ndata->new_rate,
DIV_ROUND_CLOSEST  244 drivers/clocksource/timer-cadence-ttc.c 			factor = DIV_ROUND_CLOSEST(ndata->old_rate,
DIV_ROUND_CLOSEST  164 drivers/clocksource/timer-efm32.c 				    DIV_ROUND_CLOSEST(rate, 1024), 200, 16,
DIV_ROUND_CLOSEST  227 drivers/clocksource/timer-efm32.c 	clock_event_ddata.periodic_top = DIV_ROUND_CLOSEST(rate, 1024 * HZ);
DIV_ROUND_CLOSEST  230 drivers/clocksource/timer-efm32.c 					DIV_ROUND_CLOSEST(rate, 1024),
DIV_ROUND_CLOSEST  291 drivers/clocksource/timer-fsl-ftm.c 		priv->periodic_cyc = DIV_ROUND_CLOSEST(freq,
DIV_ROUND_CLOSEST  210 drivers/clocksource/timer-fttmr010.c 	u32 period = DIV_ROUND_CLOSEST(fttmr010->tick_rate, HZ);
DIV_ROUND_CLOSEST  192 drivers/clocksource/timer-ixp4xx.c 	tmr->latch = DIV_ROUND_CLOSEST(timer_freq,
DIV_ROUND_CLOSEST  264 drivers/clocksource/timer-lpc32xx.c 	lpc32xx_clk_event_ddata.ticks_per_jiffy = DIV_ROUND_CLOSEST(rate, HZ);
DIV_ROUND_CLOSEST  196 drivers/clocksource/timer-sp804.c 	clkevt_reload = DIV_ROUND_CLOSEST(rate, HZ);
DIV_ROUND_CLOSEST  212 drivers/clocksource/timer-stm32.c 		prescaler = DIV_ROUND_CLOSEST(timer_of_rate(to),
DIV_ROUND_CLOSEST  227 drivers/clocksource/timer-stm32.c 	to->of_clk.rate = DIV_ROUND_CLOSEST(to->of_clk.rate, prescaler);
DIV_ROUND_CLOSEST  395 drivers/clocksource/timer-u300.c 	u300_clockevent_data.ticks_per_jiffy = DIV_ROUND_CLOSEST(rate, HZ);
DIV_ROUND_CLOSEST 2342 drivers/cpufreq/intel_pstate.c 		target_pstate = DIV_ROUND_CLOSEST(freqs.new, cpu->pstate.scaling);
DIV_ROUND_CLOSEST  183 drivers/gpio/gpio-ftgpio010.c 	deb_div = DIV_ROUND_CLOSEST(pclk_freq, arg);
DIV_ROUND_CLOSEST   91 drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c 	*ref_div = min(max(DIV_ROUND_CLOSEST(den, post_div), 1u), ref_div_max);
DIV_ROUND_CLOSEST   92 drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c 	*fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den);
DIV_ROUND_CLOSEST   96 drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c 		*ref_div = DIV_ROUND_CLOSEST(*ref_div * fb_div_max, *fb_div);
DIV_ROUND_CLOSEST  862 drivers/gpu/drm/armada/armada_crtc.c 		div = DIV_ROUND_CLOSEST(real_clk_hz, desired_hz);
DIV_ROUND_CLOSEST  867 drivers/gpu/drm/armada/armada_crtc.c 		real_hz = DIV_ROUND_CLOSEST(real_clk_hz, div);
DIV_ROUND_CLOSEST 2992 drivers/gpu/drm/drm_edid.c 		clock = DIV_ROUND_CLOSEST(clock * 1001, 1000);
DIV_ROUND_CLOSEST 2994 drivers/gpu/drm/drm_edid.c 		clock = DIV_ROUND_CLOSEST(clock * 1000, 1001);
DIV_ROUND_CLOSEST  802 drivers/gpu/drm/drm_modes.c 		refresh = DIV_ROUND_CLOSEST(num, den);
DIV_ROUND_CLOSEST  422 drivers/gpu/drm/exynos/exynos_drm_fimd.c 	clkdiv = DIV_ROUND_CLOSEST(lcd_rate, ideal_clk);
DIV_ROUND_CLOSEST  198 drivers/gpu/drm/gma500/oaktrail_hdmi.c 	nf = DIV_ROUND_CLOSEST((target * 10 * np * nr), refclk);
DIV_ROUND_CLOSEST  313 drivers/gpu/drm/i915/display/icl_dsi.c 	afe_clk_khz = DIV_ROUND_CLOSEST(intel_dsi->pclk * bpp,
DIV_ROUND_CLOSEST  120 drivers/gpu/drm/i915/display/intel_bw.c 	return DIV_ROUND_CLOSEST(num * dclk * 100, den * 6);
DIV_ROUND_CLOSEST  289 drivers/gpu/drm/i915/display/intel_cdclk.c 	cdclk_state->cdclk = DIV_ROUND_CLOSEST(cdclk_state->vco,
DIV_ROUND_CLOSEST  366 drivers/gpu/drm/i915/display/intel_cdclk.c 	cdclk_state->cdclk = DIV_ROUND_CLOSEST(cdclk_state->vco,
DIV_ROUND_CLOSEST  459 drivers/gpu/drm/i915/display/intel_cdclk.c 		return DIV_ROUND_CLOSEST(dev_priv->hpll_freq << 1, cdclk) - 1;
DIV_ROUND_CLOSEST  571 drivers/gpu/drm/i915/display/intel_cdclk.c 		divider = DIV_ROUND_CLOSEST(dev_priv->hpll_freq << 1,
DIV_ROUND_CLOSEST  782 drivers/gpu/drm/i915/display/intel_cdclk.c 	I915_WRITE(CDCLK_FREQ, DIV_ROUND_CLOSEST(cdclk, 1000) - 1);
DIV_ROUND_CLOSEST  926 drivers/gpu/drm/i915/display/intel_cdclk.c 	return DIV_ROUND_CLOSEST(cdclk - 1000, 500);
DIV_ROUND_CLOSEST 1292 drivers/gpu/drm/i915/display/intel_cdclk.c 	cdclk_state->cdclk = DIV_ROUND_CLOSEST(cdclk_state->vco, div);
DIV_ROUND_CLOSEST 1317 drivers/gpu/drm/i915/display/intel_cdclk.c 	int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->cdclk.hw.ref);
DIV_ROUND_CLOSEST 1345 drivers/gpu/drm/i915/display/intel_cdclk.c 	switch (DIV_ROUND_CLOSEST(vco, cdclk)) {
DIV_ROUND_CLOSEST 1577 drivers/gpu/drm/i915/display/intel_cdclk.c 	cdclk_state->cdclk = DIV_ROUND_CLOSEST(cdclk_state->vco, div);
DIV_ROUND_CLOSEST 1605 drivers/gpu/drm/i915/display/intel_cdclk.c 	int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->cdclk.hw.ref);
DIV_ROUND_CLOSEST 1641 drivers/gpu/drm/i915/display/intel_cdclk.c 	switch (DIV_ROUND_CLOSEST(vco, cdclk)) {
DIV_ROUND_CLOSEST 2734 drivers/gpu/drm/i915/display/intel_cdclk.c 		rawclk |= CNP_RAWCLK_DEN(DIV_ROUND_CLOSEST(numerator * 1000,
DIV_ROUND_CLOSEST  185 drivers/gpu/drm/i915/display/intel_display.c 	return DIV_ROUND_CLOSEST(ref_freq << 1, divider + 1);
DIV_ROUND_CLOSEST  539 drivers/gpu/drm/i915/display/intel_display.c 	clock->vco = DIV_ROUND_CLOSEST(refclk * clock->m, clock->n);
DIV_ROUND_CLOSEST  540 drivers/gpu/drm/i915/display/intel_display.c 	clock->dot = DIV_ROUND_CLOSEST(clock->vco, clock->p);
DIV_ROUND_CLOSEST  556 drivers/gpu/drm/i915/display/intel_display.c 	clock->vco = DIV_ROUND_CLOSEST(refclk * clock->m, clock->n + 2);
DIV_ROUND_CLOSEST  557 drivers/gpu/drm/i915/display/intel_display.c 	clock->dot = DIV_ROUND_CLOSEST(clock->vco, clock->p);
DIV_ROUND_CLOSEST  568 drivers/gpu/drm/i915/display/intel_display.c 	clock->vco = DIV_ROUND_CLOSEST(refclk * clock->m, clock->n);
DIV_ROUND_CLOSEST  569 drivers/gpu/drm/i915/display/intel_display.c 	clock->dot = DIV_ROUND_CLOSEST(clock->vco, clock->p);
DIV_ROUND_CLOSEST  582 drivers/gpu/drm/i915/display/intel_display.c 	clock->dot = DIV_ROUND_CLOSEST(clock->vco, clock->p);
DIV_ROUND_CLOSEST  901 drivers/gpu/drm/i915/display/intel_display.c 					clock.m2 = DIV_ROUND_CLOSEST(target * clock.p * clock.n,
DIV_ROUND_CLOSEST 5013 drivers/gpu/drm/i915/display/intel_display.c 		desired_divisor = DIV_ROUND_CLOSEST(iclk_virtual_root_freq,
DIV_ROUND_CLOSEST 5103 drivers/gpu/drm/i915/display/intel_display.c 	return DIV_ROUND_CLOSEST(iclk_virtual_root_freq,
DIV_ROUND_CLOSEST 1164 drivers/gpu/drm/i915/display/intel_display_power.c 		   DIV_ROUND_CLOSEST(dev_priv->rawclk_freq, 1000));
DIV_ROUND_CLOSEST 1175 drivers/gpu/drm/i915/display/intel_dp.c 	return DIV_ROUND_CLOSEST(dev_priv->rawclk_freq, 2000);
DIV_ROUND_CLOSEST 1192 drivers/gpu/drm/i915/display/intel_dp.c 		return DIV_ROUND_CLOSEST(dev_priv->cdclk.hw.cdclk, 2000);
DIV_ROUND_CLOSEST 1194 drivers/gpu/drm/i915/display/intel_dp.c 		return DIV_ROUND_CLOSEST(dev_priv->rawclk_freq, 2000);
DIV_ROUND_CLOSEST  128 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c 	fxp = DIV_ROUND_CLOSEST(KHz(DP_EDP_BACKLIGHT_FREQ_BASE_KHZ), freq);
DIV_ROUND_CLOSEST  150 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c 	fxp_min = DIV_ROUND_CLOSEST(fxp * 3, 4);
DIV_ROUND_CLOSEST  151 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c 	fxp_max = DIV_ROUND_CLOSEST(fxp * 5, 4);
DIV_ROUND_CLOSEST  158 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c 		f = clamp(DIV_ROUND_CLOSEST(fxp, 1 << pn), 1, 255);
DIV_ROUND_CLOSEST 1383 drivers/gpu/drm/i915/display/intel_panel.c 	return DIV_ROUND_CLOSEST(KHz(dev_priv->rawclk_freq), pwm_freq_hz);
DIV_ROUND_CLOSEST 1391 drivers/gpu/drm/i915/display/intel_panel.c 	return DIV_ROUND_CLOSEST(KHz(19200), pwm_freq_hz);
DIV_ROUND_CLOSEST 1409 drivers/gpu/drm/i915/display/intel_panel.c 	return DIV_ROUND_CLOSEST(MHz(24), pwm_freq_hz * mul);
DIV_ROUND_CLOSEST 1433 drivers/gpu/drm/i915/display/intel_panel.c 	return DIV_ROUND_CLOSEST(clock, pwm_freq_hz * mul);
DIV_ROUND_CLOSEST 1444 drivers/gpu/drm/i915/display/intel_panel.c 	return DIV_ROUND_CLOSEST(KHz(dev_priv->rawclk_freq), pwm_freq_hz * 128);
DIV_ROUND_CLOSEST 1465 drivers/gpu/drm/i915/display/intel_panel.c 	return DIV_ROUND_CLOSEST(clock, pwm_freq_hz * 32);
DIV_ROUND_CLOSEST 1483 drivers/gpu/drm/i915/display/intel_panel.c 	return DIV_ROUND_CLOSEST(clock, pwm_freq_hz * 128);
DIV_ROUND_CLOSEST 1507 drivers/gpu/drm/i915/display/intel_panel.c 	return DIV_ROUND_CLOSEST(clock, pwm_freq_hz * mul);
DIV_ROUND_CLOSEST  807 drivers/gpu/drm/i915/display/intel_sprite.c 		contrast = DIV_ROUND_CLOSEST(255 << 6, 235 - 16);
DIV_ROUND_CLOSEST  808 drivers/gpu/drm/i915/display/intel_sprite.c 		brightness = -DIV_ROUND_CLOSEST(16 * 255, 235 - 16);
DIV_ROUND_CLOSEST  809 drivers/gpu/drm/i915/display/intel_sprite.c 		sh_scale = DIV_ROUND_CLOSEST(128 << 7, 240 - 128);
DIV_ROUND_CLOSEST   51 drivers/gpu/drm/i915/display/vlv_dsi_pll.c 	dsi_clk_khz = DIV_ROUND_CLOSEST(pclk * bpp, lane_count);
DIV_ROUND_CLOSEST  313 drivers/gpu/drm/i915/display/vlv_dsi_pll.c 	pclk = DIV_ROUND_CLOSEST(dsi_clock * intel_dsi->lane_count, bpp);
DIV_ROUND_CLOSEST  334 drivers/gpu/drm/i915/display/vlv_dsi_pll.c 	pclk = DIV_ROUND_CLOSEST(dsi_clk * intel_dsi->lane_count, bpp);
DIV_ROUND_CLOSEST  372 drivers/gpu/drm/i915/display/vlv_dsi_pll.c 	div1_value = DIV_ROUND_CLOSEST(ddr_clk, 20000);
DIV_ROUND_CLOSEST 2815 drivers/gpu/drm/i915/intel_pm.c 	linetime = DIV_ROUND_CLOSEST(adjusted_mode->crtc_htotal * 1000 * 8,
DIV_ROUND_CLOSEST 2817 drivers/gpu/drm/i915/intel_pm.c 	ips_linetime = DIV_ROUND_CLOSEST(adjusted_mode->crtc_htotal * 1000 * 8,
DIV_ROUND_CLOSEST 7549 drivers/gpu/drm/i915/intel_pm.c 			ia_freq = DIV_ROUND_CLOSEST(ia_freq, 100);
DIV_ROUND_CLOSEST 9864 drivers/gpu/drm/i915/intel_pm.c 	return DIV_ROUND_CLOSEST(rps->gpll_ref_freq * (val - 0xb7), 1000);
DIV_ROUND_CLOSEST 9871 drivers/gpu/drm/i915/intel_pm.c 	return DIV_ROUND_CLOSEST(1000 * val, rps->gpll_ref_freq) + 0xb7;
DIV_ROUND_CLOSEST 9882 drivers/gpu/drm/i915/intel_pm.c 	return DIV_ROUND_CLOSEST(rps->gpll_ref_freq * val, 2 * 2 * 1000);
DIV_ROUND_CLOSEST 9890 drivers/gpu/drm/i915/intel_pm.c 	return DIV_ROUND_CLOSEST(2 * 1000 * val, rps->gpll_ref_freq) * 2;
DIV_ROUND_CLOSEST 9896 drivers/gpu/drm/i915/intel_pm.c 		return DIV_ROUND_CLOSEST(val * GT_FREQUENCY_MULTIPLIER,
DIV_ROUND_CLOSEST 9909 drivers/gpu/drm/i915/intel_pm.c 		return DIV_ROUND_CLOSEST(val * GEN9_FREQ_SCALER,
DIV_ROUND_CLOSEST 9916 drivers/gpu/drm/i915/intel_pm.c 		return DIV_ROUND_CLOSEST(val, GT_FREQUENCY_MULTIPLIER);
DIV_ROUND_CLOSEST  849 drivers/gpu/drm/mediatek/mtk_hdmi.c 	if (DIV_ROUND_CLOSEST(rate, 1000) != DIV_ROUND_CLOSEST(clock, 1000))
DIV_ROUND_CLOSEST  113 drivers/gpu/drm/meson/meson_vclk.c #define FREQ_1000_1001(_freq)	DIV_ROUND_CLOSEST(_freq * 1000, 1001)
DIV_ROUND_CLOSEST  214 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c 	ssc_per = DIV_ROUND_CLOSEST(config->ref_freq, config->ssc_freq) / 2 - 1;
DIV_ROUND_CLOSEST  196 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 	s32 mv = DIV_ROUND_CLOSEST(uv, 1000);
DIV_ROUND_CLOSEST  199 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 	coeff = DIV_ROUND_CLOSEST(mv * p->coeff_slope, 1000) + p->coeff_offs;
DIV_ROUND_CLOSEST  200 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 	coeff = DIV_ROUND_CLOSEST(coeff, 1000);
DIV_ROUND_CLOSEST  203 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 	dvfs->dfs_ext_cal = DIV_ROUND_CLOSEST(uv - clk->uvdet_offs,
DIV_ROUND_CLOSEST  234 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c 	det_delta = DIV_ROUND_CLOSEST(((s32)clk->uv) - clk->uvdet_offs,
DIV_ROUND_CLOSEST   56 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c 	mv = DIV_ROUND_CLOSEST(coef->c2 * speedo, s_scale);
DIV_ROUND_CLOSEST   57 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c 	mv = DIV_ROUND_CLOSEST((mv + coef->c1) * speedo, s_scale) + coef->c0;
DIV_ROUND_CLOSEST   74 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c 	mv = DIV_ROUND_CLOSEST(coef->c3 * speedo, s_scale) + coef->c4 +
DIV_ROUND_CLOSEST   75 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c 		DIV_ROUND_CLOSEST(coef->c5 * temp, t_scale);
DIV_ROUND_CLOSEST   76 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c 	mv = DIV_ROUND_CLOSEST(mv * temp, t_scale) + cvb_mv;
DIV_ROUND_CLOSEST  933 drivers/gpu/drm/radeon/radeon_display.c 	*fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den);
DIV_ROUND_CLOSEST  191 drivers/gpu/drm/rcar-du/rcar_du_crtc.c 	div = clamp(DIV_ROUND_CLOSEST(rate, target), 1UL, 64UL) - 1;
DIV_ROUND_CLOSEST  291 drivers/gpu/drm/rcar-du/rcar_lvds.c 				div = max(1UL, DIV_ROUND_CLOSEST(fout, target));
DIV_ROUND_CLOSEST  138 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c 	return DIV_ROUND_CLOSEST(clkin_khz * ndiv, divisor);
DIV_ROUND_CLOSEST  173 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c 			n = DIV_ROUND_CLOSEST(i * o * clkout_khz, clkin_khz);
DIV_ROUND_CLOSEST  898 drivers/gpu/drm/stm/ltdc.c 		   DIV_ROUND_CLOSEST(fpsi->counter * 1000, ms_since_last));
DIV_ROUND_CLOSEST  984 drivers/gpu/drm/tegra/dsi.c 	state->period = DIV_ROUND_CLOSEST(NSEC_PER_SEC, plld);
DIV_ROUND_CLOSEST   85 drivers/gpu/drm/tegra/dsi.h 	((DIV_ROUND_CLOSEST(value, period) - (hwinc)) & 0xff)
DIV_ROUND_CLOSEST  235 drivers/gpu/drm/tilcdc/tilcdc_crtc.c 		clkdiv = DIV_ROUND_CLOSEST(clk_rate, req_rate);
DIV_ROUND_CLOSEST  279 drivers/gpu/drm/vc4/vc4_plane.c 	vc4_pstate->crtc_x = DIV_ROUND_CLOSEST(vc4_pstate->crtc_x *
DIV_ROUND_CLOSEST  287 drivers/gpu/drm/vc4/vc4_plane.c 	vc4_pstate->crtc_y = DIV_ROUND_CLOSEST(vc4_pstate->crtc_y *
DIV_ROUND_CLOSEST  294 drivers/gpu/drm/vc4/vc4_plane.c 	vc4_pstate->crtc_w = DIV_ROUND_CLOSEST(vc4_pstate->crtc_w *
DIV_ROUND_CLOSEST  297 drivers/gpu/drm/vc4/vc4_plane.c 	vc4_pstate->crtc_h = DIV_ROUND_CLOSEST(vc4_pstate->crtc_h *
DIV_ROUND_CLOSEST  431 drivers/gpu/ipu-v3/ipu-di.c 			div = DIV_ROUND_CLOSEST(in_rate, sig->mode.pixelclock);
DIV_ROUND_CLOSEST  448 drivers/gpu/ipu-v3/ipu-di.c 		div = DIV_ROUND_CLOSEST(clkrate, sig->mode.pixelclock);
DIV_ROUND_CLOSEST  471 drivers/gpu/ipu-v3/ipu-di.c 			div = DIV_ROUND_CLOSEST(in_rate, sig->mode.pixelclock);
DIV_ROUND_CLOSEST  580 drivers/gpu/ipu-v3/ipu-image-convert.c 		DIV_ROUND_CLOSEST(min_diff % 8192 * 1000, 8192));
DIV_ROUND_CLOSEST 1100 drivers/gpu/ipu-v3/ipu-image-convert.c 		return DIV_ROUND_CLOSEST(8192 * downsized, output_size);
DIV_ROUND_CLOSEST  279 drivers/hid/hid-input.c 	return DIV_ROUND_CLOSEST(logical_extents, physical_extents);
DIV_ROUND_CLOSEST  303 drivers/hsi/controllers/omap_ssi_core.c 		omap_ssi->fck_rate = DIV_ROUND_CLOSEST(clk_data->new_rate, 1000); /* kHz */
DIV_ROUND_CLOSEST  435 drivers/hsi/controllers/omap_ssi_core.c 	omap_ssi->fck_rate = DIV_ROUND_CLOSEST(ssi_get_clk_rate(ssi), 1000);
DIV_ROUND_CLOSEST  227 drivers/hwmon/acpi_power_meter.c 	temp = DIV_ROUND_CLOSEST(temp, 1000);
DIV_ROUND_CLOSEST  297 drivers/hwmon/acpi_power_meter.c 	temp = DIV_ROUND_CLOSEST(temp, 1000);
DIV_ROUND_CLOSEST   83 drivers/hwmon/ad7314.c 			       DIV_ROUND_CLOSEST(data * 3125, 100));
DIV_ROUND_CLOSEST  158 drivers/hwmon/adc128d818.c 	val = DIV_ROUND_CLOSEST(data->in[index][nr] * data->vref, 4095);
DIV_ROUND_CLOSEST  179 drivers/hwmon/adc128d818.c 	regval = clamp_val(DIV_ROUND_CLOSEST(val, 10), 0, 255);
DIV_ROUND_CLOSEST  217 drivers/hwmon/adc128d818.c 	regval = clamp_val(DIV_ROUND_CLOSEST(val, 1000), -128, 127);
DIV_ROUND_CLOSEST  455 drivers/hwmon/adc128d818.c 		data->vref = DIV_ROUND_CLOSEST(vref, 1000);
DIV_ROUND_CLOSEST  206 drivers/hwmon/adm1026.c #define TEMP_TO_REG(val) DIV_ROUND_CLOSEST(clamp_val(val, -128000, 127000), \
DIV_ROUND_CLOSEST  209 drivers/hwmon/adm1026.c #define OFFSET_TO_REG(val) DIV_ROUND_CLOSEST(clamp_val(val, -128000, 127000), \
DIV_ROUND_CLOSEST  224 drivers/hwmon/adm1026.c #define DAC_TO_REG(val) DIV_ROUND_CLOSEST(clamp_val(val, 0, 2500) * 255, \
DIV_ROUND_CLOSEST   66 drivers/hwmon/ads7828.c 		       DIV_ROUND_CLOSEST(regval * data->lsb_resol, 1000));
DIV_ROUND_CLOSEST  132 drivers/hwmon/ads7828.c 			vref_mv = DIV_ROUND_CLOSEST(vref_uv, 1000);
DIV_ROUND_CLOSEST  152 drivers/hwmon/ads7828.c 		data->lsb_resol = DIV_ROUND_CLOSEST(vref_mv * 1000, 4096);
DIV_ROUND_CLOSEST  156 drivers/hwmon/ads7828.c 		data->lsb_resol = DIV_ROUND_CLOSEST(vref_mv * 1000, 256);
DIV_ROUND_CLOSEST  437 drivers/hwmon/adt7411.c 	val = DIV_ROUND_CLOSEST(val * 256, 7000);
DIV_ROUND_CLOSEST  465 drivers/hwmon/adt7411.c 	val = DIV_ROUND_CLOSEST(val * 256, data->vref_cached);
DIV_ROUND_CLOSEST  502 drivers/hwmon/adt7411.c 	val = DIV_ROUND_CLOSEST(val, 1000);
DIV_ROUND_CLOSEST  803 drivers/hwmon/adt7462.c 	temp = DIV_ROUND_CLOSEST(temp, 1000) + 64;
DIV_ROUND_CLOSEST  839 drivers/hwmon/adt7462.c 	temp = DIV_ROUND_CLOSEST(temp, 1000) + 64;
DIV_ROUND_CLOSEST  901 drivers/hwmon/adt7462.c 	temp = DIV_ROUND_CLOSEST(temp, x);
DIV_ROUND_CLOSEST  941 drivers/hwmon/adt7462.c 	temp = DIV_ROUND_CLOSEST(temp, x);
DIV_ROUND_CLOSEST 1194 drivers/hwmon/adt7462.c 	temp = DIV_ROUND_CLOSEST(temp, 1000);
DIV_ROUND_CLOSEST 1276 drivers/hwmon/adt7462.c 	temp = DIV_ROUND_CLOSEST(temp, 1000) + 64;
DIV_ROUND_CLOSEST  470 drivers/hwmon/adt7470.c 	temp = DIV_ROUND_CLOSEST(temp, 1000);
DIV_ROUND_CLOSEST  502 drivers/hwmon/adt7470.c 	temp = DIV_ROUND_CLOSEST(temp, 1000);
DIV_ROUND_CLOSEST  853 drivers/hwmon/adt7470.c 	temp = DIV_ROUND_CLOSEST(temp, 1000);
DIV_ROUND_CLOSEST  287 drivers/hwmon/adt7475.c 		return DIV_ROUND_CLOSEST(reg * 2250, 1024);
DIV_ROUND_CLOSEST  288 drivers/hwmon/adt7475.c 	return DIV_ROUND_CLOSEST(reg * (r[0] + r[1]) * 2250, r[1] * 1024);
DIV_ROUND_CLOSEST  297 drivers/hwmon/adt7475.c 		reg = DIV_ROUND_CLOSEST(volt * 1024, 2250);
DIV_ROUND_CLOSEST  299 drivers/hwmon/adt7475.c 		reg = DIV_ROUND_CLOSEST(volt * r[1] * 1024,
DIV_ROUND_CLOSEST  200 drivers/hwmon/adt7x10.c 	return DIV_ROUND_CLOSEST(clamp_val(temp, ADT7X10_TEMP_MIN,
DIV_ROUND_CLOSEST  213 drivers/hwmon/adt7x10.c 	return DIV_ROUND_CLOSEST(reg * 1000, 128);
DIV_ROUND_CLOSEST  296 drivers/hwmon/adt7x10.c 	data->hyst = clamp_val(DIV_ROUND_CLOSEST(limit - hyst, 1000),
DIV_ROUND_CLOSEST   55 drivers/hwmon/as370-hwmon.c 		*temp = DIV_ROUND_CLOSEST(val * 251802, 4096) - 85525;
DIV_ROUND_CLOSEST   52 drivers/hwmon/da9052-hwmon.c 	return DIV_ROUND_CLOSEST(value * 2000, 1023) + 2500;
DIV_ROUND_CLOSEST   58 drivers/hwmon/da9052-hwmon.c 	return DIV_ROUND_CLOSEST(value * 2500, 1023);
DIV_ROUND_CLOSEST   64 drivers/hwmon/da9052-hwmon.c 	return DIV_ROUND_CLOSEST(value * 5000, 1023);
DIV_ROUND_CLOSEST   69 drivers/hwmon/da9052-hwmon.c 	return DIV_ROUND_CLOSEST(value * hwmon->tsiref_mv, 1023);
DIV_ROUND_CLOSEST  128 drivers/hwmon/da9052-hwmon.c 	return sprintf(buf, "%d\n", DIV_ROUND_CLOSEST(ret * 39, 10));
DIV_ROUND_CLOSEST  119 drivers/hwmon/da9055-hwmon.c 		return DIV_ROUND_CLOSEST(value * 1000, DA9055_VSYS_DIV) + 2500;
DIV_ROUND_CLOSEST  121 drivers/hwmon/da9055-hwmon.c 		return DIV_ROUND_CLOSEST(value * 1000, DA9055_ADCIN_DIV);
DIV_ROUND_CLOSEST  194 drivers/hwmon/da9055-hwmon.c 	return sprintf(buf, "%d\n", DIV_ROUND_CLOSEST(-4084 * (tjunc - toffset)
DIV_ROUND_CLOSEST  720 drivers/hwmon/dell-smm-hwmon.c 	val = clamp_val(DIV_ROUND_CLOSEST(val, i8k_pwm_mult), 0, i8k_fan_max);
DIV_ROUND_CLOSEST  270 drivers/hwmon/dme1737.c 	return DIV_ROUND_CLOSEST(val * 192, nominal);
DIV_ROUND_CLOSEST  287 drivers/hwmon/dme1737.c 	return DIV_ROUND_CLOSEST(val, 1000);
DIV_ROUND_CLOSEST  326 drivers/hwmon/dme1737.c 	hyst = DIV_ROUND_CLOSEST(temp - hyst, 1000);
DIV_ROUND_CLOSEST  125 drivers/hwmon/ds1621.c 	return DIV_ROUND_CLOSEST(((s16)reg / 16) * 625, 10);
DIV_ROUND_CLOSEST  137 drivers/hwmon/ds1621.c 	temp = DIV_ROUND_CLOSEST(temp * (1 << (8 - zbits)), 1000) << zbits;
DIV_ROUND_CLOSEST   74 drivers/hwmon/emc1403.c 			      DIV_ROUND_CLOSEST(val, 1000));
DIV_ROUND_CLOSEST  152 drivers/hwmon/emc1403.c 	hyst = clamp_val(DIV_ROUND_CLOSEST(hyst, 1000), 0, 255);
DIV_ROUND_CLOSEST  243 drivers/hwmon/emc2103.c 	val = DIV_ROUND_CLOSEST(clamp_val(val, -63000, 127000), 1000);
DIV_ROUND_CLOSEST  265 drivers/hwmon/emc2103.c 	val = DIV_ROUND_CLOSEST(clamp_val(val, -63000, 127000), 1000);
DIV_ROUND_CLOSEST  206 drivers/hwmon/emc6w201.c 	val = DIV_ROUND_CLOSEST(val * 192, nominal_mv[nr]);
DIV_ROUND_CLOSEST  245 drivers/hwmon/emc6w201.c 	val = DIV_ROUND_CLOSEST(val, 1000);
DIV_ROUND_CLOSEST  290 drivers/hwmon/emc6w201.c 		val = DIV_ROUND_CLOSEST(5400000U, val);
DIV_ROUND_CLOSEST  192 drivers/hwmon/g762.c 	return DIV_ROUND_CLOSEST(f1, rpm * f2);
DIV_ROUND_CLOSEST   77 drivers/hwmon/gl518sm.c #define TEMP_TO_REG(val)	(DIV_ROUND_CLOSEST(TEMP_CLAMP(val), 1000) + 119)
DIV_ROUND_CLOSEST   91 drivers/hwmon/gl518sm.c #define IN_TO_REG(val)		DIV_ROUND_CLOSEST(IN_CLAMP(val), 19)
DIV_ROUND_CLOSEST   95 drivers/hwmon/gl518sm.c #define VDD_TO_REG(val)		DIV_ROUND_CLOSEST(VDD_CLAMP(val) * 4, 95)
DIV_ROUND_CLOSEST   96 drivers/hwmon/gl518sm.c #define VDD_FROM_REG(val)	DIV_ROUND_CLOSEST((val) * 95, 4)
DIV_ROUND_CLOSEST  197 drivers/hwmon/gl520sm.c #define VDD_FROM_REG(val)	DIV_ROUND_CLOSEST((val) * 95, 4)
DIV_ROUND_CLOSEST  199 drivers/hwmon/gl520sm.c #define VDD_TO_REG(val)		DIV_ROUND_CLOSEST(VDD_CLAMP(val) * 4, 95)
DIV_ROUND_CLOSEST  203 drivers/hwmon/gl520sm.c #define IN_TO_REG(val)		DIV_ROUND_CLOSEST(IN_CLAMP(val), 19)
DIV_ROUND_CLOSEST  335 drivers/hwmon/gl520sm.c 				 DIV_ROUND_CLOSEST(480000, \
DIV_ROUND_CLOSEST  499 drivers/hwmon/gl520sm.c #define TEMP_TO_REG(val)	(DIV_ROUND_CLOSEST(TEMP_CLAMP(val), 1000) + 130)
DIV_ROUND_CLOSEST   57 drivers/hwmon/hih6130.c 	return (DIV_ROUND_CLOSEST(ticks * 1650, 16382) - 400) * 100;
DIV_ROUND_CLOSEST   72 drivers/hwmon/hih6130.c 	return DIV_ROUND_CLOSEST(ticks * 1000, 16382) * 100;
DIV_ROUND_CLOSEST  109 drivers/hwmon/hwmon-vid.c 		return DIV_ROUND_CLOSEST(15500 - 125 * val, 10);
DIV_ROUND_CLOSEST  117 drivers/hwmon/ina209.c 		return DIV_ROUND_CLOSEST((s16)val, 100);
DIV_ROUND_CLOSEST  176 drivers/hwmon/ina209.c 		return (DIV_ROUND_CLOSEST(clamp_val(val, 0, 32000), 4) << 3)
DIV_ROUND_CLOSEST  201 drivers/hwmon/ina209.c 		return DIV_ROUND_CLOSEST(val, 20 * 1000);
DIV_ROUND_CLOSEST  152 drivers/hwmon/ina2xx.c 	return DIV_ROUND_CLOSEST(avg * INA226_TOTAL_CONV_TIME_DEFAULT, 1000);
DIV_ROUND_CLOSEST  163 drivers/hwmon/ina2xx.c 	avg = DIV_ROUND_CLOSEST(interval * 1000,
DIV_ROUND_CLOSEST  262 drivers/hwmon/ina2xx.c 		val = DIV_ROUND_CLOSEST((s16)regval, data->config->shunt_div);
DIV_ROUND_CLOSEST  267 drivers/hwmon/ina2xx.c 		val = DIV_ROUND_CLOSEST(val, 1000);
DIV_ROUND_CLOSEST  275 drivers/hwmon/ina2xx.c 		val = DIV_ROUND_CLOSEST(val, 1000);
DIV_ROUND_CLOSEST  314 drivers/hwmon/ina2xx.c 	unsigned int dividend = DIV_ROUND_CLOSEST(1000000000,
DIV_ROUND_CLOSEST  321 drivers/hwmon/ina2xx.c 	data->current_lsb_uA = DIV_ROUND_CLOSEST(dividend, val);
DIV_ROUND_CLOSEST  147 drivers/hwmon/ina3221.c 	return DIV_ROUND_CLOSEST(interval * 1000 / 2, channels * samples);
DIV_ROUND_CLOSEST  213 drivers/hwmon/ina3221.c 		*val = DIV_ROUND_CLOSEST(*val, 1000);
DIV_ROUND_CLOSEST  303 drivers/hwmon/ina3221.c 		*val = DIV_ROUND_CLOSEST(voltage_nv, resistance_uo);
DIV_ROUND_CLOSEST  379 drivers/hwmon/ina3221.c 	voltage_uv = DIV_ROUND_CLOSEST(current_ma * resistance_uo, 1000);
DIV_ROUND_CLOSEST  385 drivers/hwmon/ina3221.c 	regval = DIV_ROUND_CLOSEST(voltage_uv, 5) & 0xfff8;
DIV_ROUND_CLOSEST  583 drivers/hwmon/it87.c 	val = DIV_ROUND_CLOSEST(val * 10, adc_lsb(data, nr));
DIV_ROUND_CLOSEST  589 drivers/hwmon/it87.c 	return DIV_ROUND_CLOSEST(val * adc_lsb(data, nr), 10);
DIV_ROUND_CLOSEST  117 drivers/hwmon/lm63.c #define TEMP8_TO_REG(val)	DIV_ROUND_CLOSEST(clamp_val((val), -128000, \
DIV_ROUND_CLOSEST  119 drivers/hwmon/lm63.c #define TEMP8U_TO_REG(val)	DIV_ROUND_CLOSEST(clamp_val((val), 0, \
DIV_ROUND_CLOSEST  122 drivers/hwmon/lm63.c #define TEMP11_TO_REG(val)	(DIV_ROUND_CLOSEST(clamp_val((val), -128000, \
DIV_ROUND_CLOSEST  124 drivers/hwmon/lm63.c #define TEMP11U_TO_REG(val)	(DIV_ROUND_CLOSEST(clamp_val((val), 0, \
DIV_ROUND_CLOSEST  126 drivers/hwmon/lm63.c #define HYST_TO_REG(val)	DIV_ROUND_CLOSEST(clamp_val((val), 0, 127000), \
DIV_ROUND_CLOSEST  194 drivers/hwmon/lm63.c 		return DIV_ROUND_CLOSEST(clamp_val(val, 0, 127500), 500);
DIV_ROUND_CLOSEST  196 drivers/hwmon/lm63.c 		return DIV_ROUND_CLOSEST(clamp_val(val, 0, 127000), 1000);
DIV_ROUND_CLOSEST  393 drivers/hwmon/lm75.c 	temp = DIV_ROUND_CLOSEST(temp  << (resolution - 8),
DIV_ROUND_CLOSEST   77 drivers/hwmon/lm80.c #define TEMP_TO_REG(temp)	(DIV_ROUND_CLOSEST(clamp_val((temp), \
DIV_ROUND_CLOSEST  147 drivers/hwmon/lm85.c 		DIV_ROUND_CLOSEST(clamp_val((val), -127000, 127000), 1000)
DIV_ROUND_CLOSEST  625 drivers/hwmon/lm90.c 	data->update_interval = DIV_ROUND_CLOSEST(update_interval, 64);
DIV_ROUND_CLOSEST  216 drivers/hwmon/lm95234.c 		       DIV_ROUND_CLOSEST(data->temp[index] * 125, 32));
DIV_ROUND_CLOSEST  304 drivers/hwmon/lm95234.c 	val = clamp_val(DIV_ROUND_CLOSEST(val, 1000), 0, index ? 255 : 127);
DIV_ROUND_CLOSEST  353 drivers/hwmon/lm95234.c 	val = clamp_val(DIV_ROUND_CLOSEST(val, 1000), 0, 255);
DIV_ROUND_CLOSEST  394 drivers/hwmon/lm95234.c 	val = DIV_ROUND_CLOSEST(val, 1000);
DIV_ROUND_CLOSEST  434 drivers/hwmon/lm95234.c 	val = clamp_val(DIV_ROUND_CLOSEST(val, 500), -128, 127);
DIV_ROUND_CLOSEST  454 drivers/hwmon/lm95234.c 		       DIV_ROUND_CLOSEST(data->interval * 1000, HZ));
DIV_ROUND_CLOSEST  276 drivers/hwmon/lochnagar-hwmon.c 			*val = DIV_ROUND_CLOSEST(interval, 1000);
DIV_ROUND_CLOSEST  310 drivers/hwmon/lochnagar-hwmon.c 	val = DIV_ROUND_CLOSEST(val * 1000, LN2_SAMPLE_US);
DIV_ROUND_CLOSEST  174 drivers/hwmon/ltc2945.c 			val = DIV_ROUND_CLOSEST(val, 625);
DIV_ROUND_CLOSEST  181 drivers/hwmon/ltc2945.c 			val = DIV_ROUND_CLOSEST(val, 25) * 2;
DIV_ROUND_CLOSEST  212 drivers/hwmon/ltc2945.c 		val = DIV_ROUND_CLOSEST(val, 25);
DIV_ROUND_CLOSEST   64 drivers/hwmon/ltc4222.c 		val = DIV_ROUND_CLOSEST(val * 5, 4);
DIV_ROUND_CLOSEST   69 drivers/hwmon/ltc4222.c 		val = DIV_ROUND_CLOSEST(val * 125, 4);
DIV_ROUND_CLOSEST   80 drivers/hwmon/ltc4222.c 		val = DIV_ROUND_CLOSEST(val * 125, 2);
DIV_ROUND_CLOSEST  119 drivers/hwmon/max16065.c 	return clamp_val(DIV_ROUND_CLOSEST(mv * 256, range), 0, 255);
DIV_ROUND_CLOSEST  563 drivers/hwmon/max6650.c 			*val = DIV_ROUND_CLOSEST(data->tach[channel] * 120,
DIV_ROUND_CLOSEST  307 drivers/hwmon/max6697.c 	temp = DIV_ROUND_CLOSEST(temp, 1000) + data->temp_offset;
DIV_ROUND_CLOSEST   79 drivers/hwmon/mc13783-adc.c 		val = DIV_ROUND_CLOSEST(val * 9, 2);
DIV_ROUND_CLOSEST   85 drivers/hwmon/mc13783-adc.c 		val = DIV_ROUND_CLOSEST(val * 9, 4) + 2400;
DIV_ROUND_CLOSEST  104 drivers/hwmon/mc13783-adc.c 	val = DIV_ROUND_CLOSEST(val * 9, 4);
DIV_ROUND_CLOSEST  123 drivers/hwmon/mc13783-adc.c 		val = DIV_ROUND_CLOSEST(val * 4800, 1024);
DIV_ROUND_CLOSEST  126 drivers/hwmon/mc13783-adc.c 		val = DIV_ROUND_CLOSEST(val * 2555, 1024);
DIV_ROUND_CLOSEST  149 drivers/hwmon/mc13783-adc.c 		ret = DIV_ROUND_CLOSEST(-2635920 + val * 4244, 10);
DIV_ROUND_CLOSEST   82 drivers/hwmon/mcp3021.c 	return DIV_ROUND_CLOSEST(data->vdd * val, 1 << data->output_res);
DIV_ROUND_CLOSEST   54 drivers/hwmon/mlxreg-fan.c #define MLXREG_FAN_GET_RPM(rval, d, s)	(DIV_ROUND_CLOSEST(15000000 * 100, \
DIV_ROUND_CLOSEST   57 drivers/hwmon/mlxreg-fan.c #define MLXREG_FAN_PWM_DUTY2STATE(duty)	(DIV_ROUND_CLOSEST((duty) *	\
DIV_ROUND_CLOSEST   60 drivers/hwmon/mlxreg-fan.c #define MLXREG_FAN_PWM_STATE2DUTY(stat)	(DIV_ROUND_CLOSEST((stat) *	\
DIV_ROUND_CLOSEST  493 drivers/hwmon/nct6683.c 	return clamp_val(DIV_ROUND_CLOSEST(val, scale), 0, 127);
DIV_ROUND_CLOSEST 1057 drivers/hwmon/nct6775.c 	return DIV_ROUND_CLOSEST(reg * scale_in[nr], 100);
DIV_ROUND_CLOSEST 1062 drivers/hwmon/nct6775.c 	return clamp_val(DIV_ROUND_CLOSEST(val * 100, scale_in[nr]), 0, 255);
DIV_ROUND_CLOSEST 2377 drivers/hwmon/nct6775.c 	val = clamp_val(DIV_ROUND_CLOSEST(val, 1000), -128, 127);
DIV_ROUND_CLOSEST 2867 drivers/hwmon/nct6775.c 	val = clamp_val(DIV_ROUND_CLOSEST(val, 1000), 0,
DIV_ROUND_CLOSEST 2942 drivers/hwmon/nct6775.c 	val = clamp_val(DIV_ROUND_CLOSEST(val, 1000), 0, data->tolerance_mask);
DIV_ROUND_CLOSEST 3070 drivers/hwmon/nct6775.c 	val = clamp_val(DIV_ROUND_CLOSEST(val, 1000), 0, 255);
DIV_ROUND_CLOSEST 3244 drivers/hwmon/nct6775.c 	data->auto_temp[nr][point] = DIV_ROUND_CLOSEST(val, 1000);
DIV_ROUND_CLOSEST  230 drivers/hwmon/nct7802.c 		ret = DIV_ROUND_CLOSEST(1350000U, ret);
DIV_ROUND_CLOSEST  254 drivers/hwmon/nct7802.c 		ret = DIV_ROUND_CLOSEST(1350000U, ret);
DIV_ROUND_CLOSEST  268 drivers/hwmon/nct7802.c 		limit = DIV_ROUND_CLOSEST(1350000U, limit);
DIV_ROUND_CLOSEST  325 drivers/hwmon/nct7802.c 	voltage = DIV_ROUND_CLOSEST(voltage, nct7802_vmul[nr]);
DIV_ROUND_CLOSEST  460 drivers/hwmon/nct7802.c 	val = DIV_ROUND_CLOSEST(clamp_val(val, -128000, 127000), 1000);
DIV_ROUND_CLOSEST  587 drivers/hwmon/nct7904.c 		val = clamp_val(DIV_ROUND_CLOSEST(1350000, val), 1, 0x1fff);
DIV_ROUND_CLOSEST  682 drivers/hwmon/npcm750-pwm-fan.c 	prescale_val = DIV_ROUND_CLOSEST(output_freq, PWM_OUTPUT_FREQ_25KHZ);
DIV_ROUND_CLOSEST  229 drivers/hwmon/pmbus/lm25066.c 			ret = DIV_ROUND_CLOSEST(ret * 293, 6140);
DIV_ROUND_CLOSEST  233 drivers/hwmon/pmbus/lm25066.c 			ret = DIV_ROUND_CLOSEST(ret * 2832, 45400);
DIV_ROUND_CLOSEST  237 drivers/hwmon/pmbus/lm25066.c 			ret = DIV_ROUND_CLOSEST(ret * 70, 453);
DIV_ROUND_CLOSEST  242 drivers/hwmon/pmbus/lm25066.c 			ret = DIV_ROUND_CLOSEST(ret * 725, 2180);
DIV_ROUND_CLOSEST  302 drivers/hwmon/pmbus/lm25066.c 		ret = DIV_ROUND_CLOSEST(ret * 293, 6140);
DIV_ROUND_CLOSEST  310 drivers/hwmon/pmbus/lm25066.c 		ret = DIV_ROUND_CLOSEST(ret * 293, 6140);
DIV_ROUND_CLOSEST  381 drivers/hwmon/pmbus/lm25066.c 		word = DIV_ROUND_CLOSEST((int)word * 6140, 293);
DIV_ROUND_CLOSEST  389 drivers/hwmon/pmbus/lm25066.c 		word = DIV_ROUND_CLOSEST((int)word * 6140, 293);
DIV_ROUND_CLOSEST  702 drivers/hwmon/pmbus/pmbus_core.c 			rv = DIV_ROUND_CLOSEST(160000 - (val - 2) * 625, 100);
DIV_ROUND_CLOSEST  764 drivers/hwmon/pmbus/pmbus_core.c 		val = DIV_ROUND_CLOSEST(val, 1000);
DIV_ROUND_CLOSEST  775 drivers/hwmon/pmbus/pmbus_core.c 		val = DIV_ROUND_CLOSEST(val, 1000L);
DIV_ROUND_CLOSEST  796 drivers/hwmon/pmbus/pmbus_core.c 	mantissa = DIV_ROUND_CLOSEST(val, 1000);
DIV_ROUND_CLOSEST  850 drivers/hwmon/pmbus/pmbus_core.c 	return 2 + DIV_ROUND_CLOSEST((1600 - val) * 100, 625);
DIV_ROUND_CLOSEST  104 drivers/hwmon/pmbus/zl6100.c 	mantissa = DIV_ROUND_CLOSEST(val, 1000);
DIV_ROUND_CLOSEST  177 drivers/hwmon/pmbus/zl6100.c 		ret = zl6100_d2l(DIV_ROUND_CLOSEST(zl6100_l2d(ret) * 9, 10));
DIV_ROUND_CLOSEST  180 drivers/hwmon/pmbus/zl6100.c 		ret = zl6100_d2l(DIV_ROUND_CLOSEST(zl6100_l2d(ret) * 11, 10));
DIV_ROUND_CLOSEST  237 drivers/hwmon/pmbus/zl6100.c 		word = zl6100_d2l(DIV_ROUND_CLOSEST(zl6100_l2d(word) * 10, 9));
DIV_ROUND_CLOSEST  246 drivers/hwmon/pmbus/zl6100.c 		word = zl6100_d2l(DIV_ROUND_CLOSEST(zl6100_l2d(word) * 10, 11));
DIV_ROUND_CLOSEST  167 drivers/hwmon/s3c-hwmon.c 	ret = DIV_ROUND_CLOSEST(ret, cfg->div);
DIV_ROUND_CLOSEST  301 drivers/hwmon/sch5627.c 	val = DIV_ROUND_CLOSEST(
DIV_ROUND_CLOSEST  176 drivers/hwmon/sch5636.c 	val = DIV_ROUND_CLOSEST(
DIV_ROUND_CLOSEST  114 drivers/hwmon/stts751.c 	return DIV_ROUND_CLOSEST(val, 125) * 32;
DIV_ROUND_CLOSEST   51 drivers/hwmon/tmp103.c 	return DIV_ROUND_CLOSEST(val, 1000);
DIV_ROUND_CLOSEST  163 drivers/hwmon/tmp401.c 	return DIV_ROUND_CLOSEST(temp * 125, 32);
DIV_ROUND_CLOSEST  174 drivers/hwmon/tmp401.c 	return DIV_ROUND_CLOSEST(temp * (1 << (8 - zbits)), 1000) << zbits;
DIV_ROUND_CLOSEST  405 drivers/hwmon/w83627ehf.c 	return DIV_ROUND_CLOSEST(reg * scale_in[nr], 100);
DIV_ROUND_CLOSEST  410 drivers/hwmon/w83627ehf.c 	return clamp_val(DIV_ROUND_CLOSEST(val * 100, scale_in[nr]), 0, 255);
DIV_ROUND_CLOSEST 1262 drivers/hwmon/w83627ehf.c 	val = clamp_val(DIV_ROUND_CLOSEST(val, 1000), -128, 127);
DIV_ROUND_CLOSEST 1509 drivers/hwmon/w83627ehf.c 	val = clamp_val(DIV_ROUND_CLOSEST(val, 1000), 0, 127);
DIV_ROUND_CLOSEST 1535 drivers/hwmon/w83627ehf.c 	val = clamp_val(DIV_ROUND_CLOSEST(val, 1000), 0, 15);
DIV_ROUND_CLOSEST  239 drivers/hwmon/w83791d.c #define TEMP23_TO_REG(val)	(DIV_ROUND_CLOSEST(clamp_val((val), -128000, \
DIV_ROUND_CLOSEST  243 drivers/hwmon/w83791d.c #define TARGET_TEMP_TO_REG(val)	DIV_ROUND_CLOSEST(clamp_val((val), 0, 127000), \
DIV_ROUND_CLOSEST  247 drivers/hwmon/w83791d.c #define TOL_TEMP_TO_REG(val)	DIV_ROUND_CLOSEST(clamp_val((val), 0, 15000), \
DIV_ROUND_CLOSEST  307 drivers/hwmon/w83795.c 	reg1 = clamp_val(DIV_ROUND_CLOSEST(base_clock, val), 1, 128);
DIV_ROUND_CLOSEST  516 drivers/hwmon/w83l786ng.c 	val = DIV_ROUND_CLOSEST(val, 0x11);
DIV_ROUND_CLOSEST   41 drivers/hwmon/wm831x-hwmon.c 	return sprintf(buf, "%d\n", DIV_ROUND_CLOSEST(ret, 1000));
DIV_ROUND_CLOSEST   57 drivers/hwmon/wm831x-hwmon.c 	ret = DIV_ROUND_CLOSEST(ret * 10000, 10983);
DIV_ROUND_CLOSEST   33 drivers/hwmon/wm8350-hwmon.c 	val = DIV_ROUND_CLOSEST(val, 1000);
DIV_ROUND_CLOSEST  736 drivers/i2c/busses/i2c-mxs.c 		low_count = DIV_ROUND_CLOSEST(divider * 13, (13 + 6));
DIV_ROUND_CLOSEST  737 drivers/i2c/busses/i2c-mxs.c 		high_count = DIV_ROUND_CLOSEST(divider * 6, (13 + 6));
DIV_ROUND_CLOSEST  742 drivers/i2c/busses/i2c-mxs.c 		low_count = DIV_ROUND_CLOSEST(divider * 47, (47 + 40));
DIV_ROUND_CLOSEST  743 drivers/i2c/busses/i2c-mxs.c 		high_count = DIV_ROUND_CLOSEST(divider * 40, (47 + 40));
DIV_ROUND_CLOSEST  381 drivers/i2c/busses/i2c-stm32f7.c 	u32 i2cclk = DIV_ROUND_CLOSEST(NSEC_PER_SEC,
DIV_ROUND_CLOSEST  383 drivers/i2c/busses/i2c-stm32f7.c 	u32 i2cbus = DIV_ROUND_CLOSEST(NSEC_PER_SEC,
DIV_ROUND_CLOSEST 1076 drivers/i2c/busses/i2c-tegra.c 	xfer_time += DIV_ROUND_CLOSEST(((xfer_size * 9) + 2) * MSEC_PER_SEC,
DIV_ROUND_CLOSEST 1264 drivers/ide/ide-cd.c 	cd->current_speed = DIV_ROUND_CLOSEST(curspeed, 176);
DIV_ROUND_CLOSEST 1265 drivers/ide/ide-cd.c 	cd->max_speed = DIV_ROUND_CLOSEST(maxspeed, 176);
DIV_ROUND_CLOSEST  408 drivers/iio/accel/adxl372.c 	reg_val = DIV_ROUND_CLOSEST(act_time_ms * 1000, scale_factor);
DIV_ROUND_CLOSEST  438 drivers/iio/accel/adxl372.c 	res = DIV_ROUND_CLOSEST(inact_time_ms, scale_factor);
DIV_ROUND_CLOSEST  244 drivers/iio/adc/ad7124.c 	odr_sel_bits = DIV_ROUND_CLOSEST(fclk, odr * 32);
DIV_ROUND_CLOSEST  257 drivers/iio/adc/ad7124.c 		DIV_ROUND_CLOSEST(fclk, odr_sel_bits * 32);
DIV_ROUND_CLOSEST  352 drivers/iio/adc/ad7124.c 		res = DIV_ROUND_CLOSEST(vref, full_scale);
DIV_ROUND_CLOSEST  353 drivers/iio/adc/ad7124.c 		gain = DIV_ROUND_CLOSEST(res, val2);
DIV_ROUND_CLOSEST  301 drivers/iio/adc/ad7768-1.c 	res = DIV_ROUND_CLOSEST(st->mclk_freq, freq);
DIV_ROUND_CLOSEST  326 drivers/iio/adc/ad7768-1.c 	st->samp_freq = DIV_ROUND_CLOSEST(st->mclk_freq,
DIV_ROUND_CLOSEST  342 drivers/iio/adc/ad7768-1.c 		freq = DIV_ROUND_CLOSEST(st->mclk_freq,
DIV_ROUND_CLOSEST  161 drivers/iio/adc/ad7780.c 		gain = DIV_ROUND_CLOSEST(gain, val2);
DIV_ROUND_CLOSEST  214 drivers/iio/adc/ina2xx-adc.c 		*val = DIV_ROUND_CLOSEST(1000000, SAMPLING_PERIOD(chip));
DIV_ROUND_CLOSEST  640 drivers/iio/adc/meson_saradc.c 		*val = DIV_ROUND_CLOSEST(MESON_SAR_ADC_TEMP_OFFSET *
DIV_ROUND_CLOSEST  683 drivers/iio/adc/stm32-dfsdm-adc.c 	oversamp = DIV_ROUND_CLOSEST(spi_freq, sample_freq);
DIV_ROUND_CLOSEST  521 drivers/iio/frequency/adf4371.c 	tmp = DIV_ROUND_CLOSEST(st->fpfd, 1000000U);
DIV_ROUND_CLOSEST  116 drivers/iio/gyro/adis16080.c 			*val = DIV_ROUND_CLOSEST(25 * 585, 85 - 25);
DIV_ROUND_CLOSEST  377 drivers/iio/gyro/mpu3050-core.c 		DIV_ROUND_CLOSEST(mpu3050_fs_precision[0] * 1000000 * 2,
DIV_ROUND_CLOSEST  380 drivers/iio/gyro/mpu3050-core.c 		DIV_ROUND_CLOSEST(mpu3050_fs_precision[1] * 1000000 * 2,
DIV_ROUND_CLOSEST  383 drivers/iio/gyro/mpu3050-core.c 		DIV_ROUND_CLOSEST(mpu3050_fs_precision[2] * 1000000 * 2,
DIV_ROUND_CLOSEST  386 drivers/iio/gyro/mpu3050-core.c 		DIV_ROUND_CLOSEST(mpu3050_fs_precision[3] * 1000000 * 2,
DIV_ROUND_CLOSEST  409 drivers/iio/gyro/mpu3050-core.c 			mpu3050->divisor = DIV_ROUND_CLOSEST(8000, val) - 1;
DIV_ROUND_CLOSEST  414 drivers/iio/gyro/mpu3050-core.c 		mpu3050->divisor = DIV_ROUND_CLOSEST(1000, val) - 1;
DIV_ROUND_CLOSEST  198 drivers/input/touchscreen/bu21029_ts.c 		rz  = DIV_ROUND_CLOSEST(rz, SCALE_12BIT);
DIV_ROUND_CLOSEST  486 drivers/input/touchscreen/elants_i2c.c 		ts->x_res = DIV_ROUND_CLOSEST(ts->x_max, phy_x);
DIV_ROUND_CLOSEST  488 drivers/input/touchscreen/elants_i2c.c 		ts->y_res = DIV_ROUND_CLOSEST(ts->y_max, phy_y);
DIV_ROUND_CLOSEST  467 drivers/input/touchscreen/wdt87xx_i2c.c 	param->max_y = DIV_ROUND_CLOSEST(MAX_UNIT_AXIS * param->phy_h,
DIV_ROUND_CLOSEST  976 drivers/input/touchscreen/wdt87xx_i2c.c 	y = DIV_ROUND_CLOSEST(y * param->phy_h, param->phy_w);
DIV_ROUND_CLOSEST 1028 drivers/input/touchscreen/wdt87xx_i2c.c 	unsigned int res = DIV_ROUND_CLOSEST(MAX_UNIT_AXIS, wdt->param.phy_w);
DIV_ROUND_CLOSEST   25 drivers/leds/leds-asic3.c #define MS_TO_CLK(ms)	DIV_ROUND_CLOSEST(((ms)*1024), 32000)
DIV_ROUND_CLOSEST   93 drivers/leds/leds-ipaq-micro.c 		msg.tx_data[2] = (u8) DIV_ROUND_CLOSEST(*delay_on, 100);
DIV_ROUND_CLOSEST   97 drivers/leds/leds-ipaq-micro.c 		msg.tx_data[3] = (u8) DIV_ROUND_CLOSEST(*delay_off, 100);
DIV_ROUND_CLOSEST   70 drivers/leds/leds-mt6323.c #define MT6323_CAL_HW_DUTY(o, p)	DIV_ROUND_CLOSEST((o) * 100000ul,\
DIV_ROUND_CLOSEST  224 drivers/leds/leds-pca963x.c 	return scaling ? DIV_ROUND_CLOSEST(val * scaling, 1000) : val;
DIV_ROUND_CLOSEST  366 drivers/media/dvb-frontends/cxd2841er.c 	reg_value = DIV_ROUND_CLOSEST(symbol_rate * 16384, 1000);
DIV_ROUND_CLOSEST 1212 drivers/media/dvb-frontends/dib7000p.c 	int f_rel = DIV_ROUND_CLOSEST(rf_khz, xtal) * xtal - rf_khz;
DIV_ROUND_CLOSEST  187 drivers/media/dvb-frontends/horus3a.c 	frequency = DIV_ROUND_CLOSEST(frequency, 1000) * 1000;
DIV_ROUND_CLOSEST  196 drivers/media/dvb-frontends/horus3a.c 	ms = DIV_ROUND_CLOSEST((frequency * mixdiv) / 2, 1000);
DIV_ROUND_CLOSEST  152 drivers/media/dvb-frontends/m88ds3103.c 			itmp = DIV_ROUND_CLOSEST(itmp, 8 * M88DS3103_SNR_ITERATIONS);
DIV_ROUND_CLOSEST  586 drivers/media/dvb-frontends/m88ds3103.c 	s32tmp = DIV_ROUND_CLOSEST(s32tmp, dev->mclk / 1000);
DIV_ROUND_CLOSEST  388 drivers/media/dvb-frontends/stb6100.c 	nfrac = DIV_ROUND_CLOSEST((fvco - (nint * state->reference << psd2))
DIV_ROUND_CLOSEST  166 drivers/media/dvb-frontends/tda10021.c 	ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, FIN);
DIV_ROUND_CLOSEST  205 drivers/media/dvb-frontends/ts2020.c 	div_ref = DIV_ROUND_CLOSEST(f_ref_khz, 2000);
DIV_ROUND_CLOSEST  157 drivers/media/dvb-frontends/ves1820.c 	ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, fin);
DIV_ROUND_CLOSEST  142 drivers/media/i2c/cx25840/cx25840-ir.c 		DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000));
DIV_ROUND_CLOSEST  148 drivers/media/i2c/cx25840/cx25840-ir.c 	return DIV_ROUND_CLOSEST((divider + 1) * 1000,
DIV_ROUND_CLOSEST  155 drivers/media/i2c/cx25840/cx25840-ir.c 			  DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * 16));
DIV_ROUND_CLOSEST  160 drivers/media/i2c/cx25840/cx25840-ir.c 	return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, (divider + 1) * 16);
DIV_ROUND_CLOSEST  167 drivers/media/i2c/cx25840/cx25840-ir.c 		   DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * rollovers));
DIV_ROUND_CLOSEST  173 drivers/media/i2c/cx25840/cx25840-ir.c 	return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ,
DIV_ROUND_CLOSEST  196 drivers/media/i2c/cx25840/cx25840-ir.c 		DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000));
DIV_ROUND_CLOSEST  202 drivers/media/i2c/cx25840/cx25840-ir.c 	return DIV_ROUND_CLOSEST(count * 1000,
DIV_ROUND_CLOSEST  209 drivers/media/i2c/cx25840/cx25840-ir.c 	return DIV_ROUND_CLOSEST(count, CX25840_IR_REFCLK_FREQ / 1000000);
DIV_ROUND_CLOSEST  222 drivers/media/i2c/cx25840/cx25840-ir.c 	return DIV_ROUND_CLOSEST((1 << 2)  * ((u32) divider + 1) * 1000,
DIV_ROUND_CLOSEST  383 drivers/media/i2c/cx25840/cx25840-ir.c 	if (*carrier_range_low < DIV_ROUND_CLOSEST(c16, 16 + 3)) {
DIV_ROUND_CLOSEST  385 drivers/media/i2c/cx25840/cx25840-ir.c 		*carrier_range_low = DIV_ROUND_CLOSEST(c16, 16 + 4);
DIV_ROUND_CLOSEST  388 drivers/media/i2c/cx25840/cx25840-ir.c 		*carrier_range_low = DIV_ROUND_CLOSEST(c16, 16 + 3);
DIV_ROUND_CLOSEST  391 drivers/media/i2c/cx25840/cx25840-ir.c 	if (*carrier_range_high > DIV_ROUND_CLOSEST(c16, 16 - 3)) {
DIV_ROUND_CLOSEST  393 drivers/media/i2c/cx25840/cx25840-ir.c 		*carrier_range_high = DIV_ROUND_CLOSEST(c16, 16 - 4);
DIV_ROUND_CLOSEST  396 drivers/media/i2c/cx25840/cx25840-ir.c 		*carrier_range_high = DIV_ROUND_CLOSEST(c16, 16 - 3);
DIV_ROUND_CLOSEST  462 drivers/media/i2c/cx25840/cx25840-ir.c 	n = DIV_ROUND_CLOSEST(duty_cycle * 100, 625); /* 16ths of 100% */
DIV_ROUND_CLOSEST  468 drivers/media/i2c/cx25840/cx25840-ir.c 	return DIV_ROUND_CLOSEST((n + 1) * 100, 16);
DIV_ROUND_CLOSEST  504 drivers/media/i2c/ir-kbd-i2c.c 	code_block->carrier_pulse = DIV_ROUND_CLOSEST(
DIV_ROUND_CLOSEST  506 drivers/media/i2c/ir-kbd-i2c.c 	code_block->carrier_space = DIV_ROUND_CLOSEST(
DIV_ROUND_CLOSEST  522 drivers/media/i2c/ir-kbd-i2c.c 		l = DIV_ROUND_CLOSEST((XTAL_FREQ / 1000) * txbuf[i], 40000);
DIV_ROUND_CLOSEST 1084 drivers/media/i2c/mt9m111.c 	fps = DIV_ROUND_CLOSEST(fract->denominator, fract->numerator);
DIV_ROUND_CLOSEST  415 drivers/media/i2c/mt9p031.c 	xskip = DIV_ROUND_CLOSEST(crop->width, format->width);
DIV_ROUND_CLOSEST  416 drivers/media/i2c/mt9p031.c 	yskip = DIV_ROUND_CLOSEST(crop->height, format->height);
DIV_ROUND_CLOSEST  568 drivers/media/i2c/mt9p031.c 	hratio = DIV_ROUND_CLOSEST(__crop->width, width);
DIV_ROUND_CLOSEST  569 drivers/media/i2c/mt9p031.c 	vratio = DIV_ROUND_CLOSEST(__crop->height, height);
DIV_ROUND_CLOSEST  306 drivers/media/i2c/mt9t001.c 	hratio = DIV_ROUND_CLOSEST(crop->width, format->width);
DIV_ROUND_CLOSEST  307 drivers/media/i2c/mt9t001.c 	vratio = DIV_ROUND_CLOSEST(crop->height, format->height);
DIV_ROUND_CLOSEST  399 drivers/media/i2c/mt9t001.c 	hratio = DIV_ROUND_CLOSEST(__crop->width, width);
DIV_ROUND_CLOSEST  400 drivers/media/i2c/mt9t001.c 	vratio = DIV_ROUND_CLOSEST(__crop->height, height);
DIV_ROUND_CLOSEST  493 drivers/media/i2c/mt9v111.c 	pclk = DIV_ROUND_CLOSEST(mt9v111->sysclk, 2);
DIV_ROUND_CLOSEST  504 drivers/media/i2c/mt9v111.c 			unsigned int t_fps = DIV_ROUND_CLOSEST(pclk, t_frame);
DIV_ROUND_CLOSEST  548 drivers/media/i2c/mt9v111.c 	ret = mt9v111->sysclk < DIV_ROUND_CLOSEST(MT9V111_MAX_CLKIN, 2) ?
DIV_ROUND_CLOSEST  758 drivers/media/i2c/mt9v111.c 				DIV_ROUND_CLOSEST(MT9V111_MAX_CLKIN, 2) ? 15 :
DIV_ROUND_CLOSEST 1181 drivers/media/i2c/mt9v111.c 			  DIV_ROUND_CLOSEST(mt9v111->sysclk, 2), 1,
DIV_ROUND_CLOSEST 1182 drivers/media/i2c/mt9v111.c 			  DIV_ROUND_CLOSEST(mt9v111->sysclk, 2));
DIV_ROUND_CLOSEST 2123 drivers/media/i2c/ov5640.c 	fps = clamp_val(DIV_ROUND_CLOSEST(fi->denominator, fi->numerator),
DIV_ROUND_CLOSEST  685 drivers/media/i2c/ov772x.c 		div = DIV_ROUND_CLOSEST(pll_out, pclk);
DIV_ROUND_CLOSEST  686 drivers/media/i2c/ov772x.c 		t_pclk = DIV_ROUND_CLOSEST(fin * pll_mult, div);
DIV_ROUND_CLOSEST  300 drivers/media/i2c/tc358743.c 	return DIV_ROUND_CLOSEST((unsigned)t->pixelclock,
DIV_ROUND_CLOSEST  338 drivers/media/i2c/tc358743.c 		DIV_ROUND_CLOSEST(10000, frame_interval) : 0;
DIV_ROUND_CLOSEST  181 drivers/media/pci/cx23885/cx23888-ir.c 		DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ / 1000000 * ns, 1000));
DIV_ROUND_CLOSEST  187 drivers/media/pci/cx23885/cx23888-ir.c 	return DIV_ROUND_CLOSEST((divider + 1) * 1000,
DIV_ROUND_CLOSEST  194 drivers/media/pci/cx23885/cx23888-ir.c 			  DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ, freq * 16));
DIV_ROUND_CLOSEST  199 drivers/media/pci/cx23885/cx23888-ir.c 	return DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ, (divider + 1) * 16);
DIV_ROUND_CLOSEST  206 drivers/media/pci/cx23885/cx23888-ir.c 		   DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ, freq * rollovers));
DIV_ROUND_CLOSEST  212 drivers/media/pci/cx23885/cx23888-ir.c 	return DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ,
DIV_ROUND_CLOSEST  235 drivers/media/pci/cx23885/cx23888-ir.c 		DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ / 1000000 * ns, 1000));
DIV_ROUND_CLOSEST  241 drivers/media/pci/cx23885/cx23888-ir.c 	return DIV_ROUND_CLOSEST(count * 1000,
DIV_ROUND_CLOSEST  248 drivers/media/pci/cx23885/cx23888-ir.c 	return DIV_ROUND_CLOSEST(count, CX23888_IR_REFCLK_FREQ / 1000000);
DIV_ROUND_CLOSEST  261 drivers/media/pci/cx23885/cx23888-ir.c 	return DIV_ROUND_CLOSEST((1 << 2)  * ((u32) divider + 1) * 1000,
DIV_ROUND_CLOSEST  396 drivers/media/pci/cx23885/cx23888-ir.c 	if (*carrier_range_low < DIV_ROUND_CLOSEST(c16, 16 + 3)) {
DIV_ROUND_CLOSEST  398 drivers/media/pci/cx23885/cx23888-ir.c 		*carrier_range_low = DIV_ROUND_CLOSEST(c16, 16 + 4);
DIV_ROUND_CLOSEST  401 drivers/media/pci/cx23885/cx23888-ir.c 		*carrier_range_low = DIV_ROUND_CLOSEST(c16, 16 + 3);
DIV_ROUND_CLOSEST  404 drivers/media/pci/cx23885/cx23888-ir.c 	if (*carrier_range_high > DIV_ROUND_CLOSEST(c16, 16 - 3)) {
DIV_ROUND_CLOSEST  406 drivers/media/pci/cx23885/cx23888-ir.c 		*carrier_range_high = DIV_ROUND_CLOSEST(c16, 16 - 4);
DIV_ROUND_CLOSEST  409 drivers/media/pci/cx23885/cx23888-ir.c 		*carrier_range_high = DIV_ROUND_CLOSEST(c16, 16 - 3);
DIV_ROUND_CLOSEST  482 drivers/media/pci/cx23885/cx23888-ir.c 	n = DIV_ROUND_CLOSEST(duty_cycle * 100, 625); /* 16ths of 100% */
DIV_ROUND_CLOSEST  488 drivers/media/pci/cx23885/cx23888-ir.c 	return DIV_ROUND_CLOSEST((n + 1) * 100, 16);
DIV_ROUND_CLOSEST  430 drivers/media/pci/pluto2/pluto2.c 	return DIV_ROUND_CLOSEST(numerator, denominator);
DIV_ROUND_CLOSEST  345 drivers/media/platform/atmel/atmel-isc-base.c 	return DIV_ROUND_CLOSEST(parent_rate, isc_clk->div + 1);
DIV_ROUND_CLOSEST  372 drivers/media/platform/atmel/atmel-isc-base.c 			rate = DIV_ROUND_CLOSEST(parent_rate, div);
DIV_ROUND_CLOSEST  433 drivers/media/platform/atmel/atmel-isc-base.c 	div = DIV_ROUND_CLOSEST(parent_rate, rate);
DIV_ROUND_CLOSEST  211 drivers/media/platform/coda/coda-jpeg.c 		temp = DIV_ROUND_CLOSEST((unsigned int)q_tab[i] * scale, 100);
DIV_ROUND_CLOSEST  246 drivers/media/platform/meson/ao-cec-g12a.c 		f1 = DIV_ROUND_CLOSEST(parent_rate, n1);
DIV_ROUND_CLOSEST  247 drivers/media/platform/meson/ao-cec-g12a.c 		f2 = DIV_ROUND_CLOSEST(parent_rate, n2);
DIV_ROUND_CLOSEST  249 drivers/media/platform/meson/ao-cec-g12a.c 		p1 = DIV_ROUND_CLOSEST(100000000 * m1, f1 * (m1 + m2));
DIV_ROUND_CLOSEST  250 drivers/media/platform/meson/ao-cec-g12a.c 		p2 = DIV_ROUND_CLOSEST(100000000 * m2, f2 * (m1 + m2));
DIV_ROUND_CLOSEST  257 drivers/media/platform/meson/ao-cec-g12a.c 	return DIV_ROUND_CLOSEST(parent_rate, n1);
DIV_ROUND_CLOSEST  237 drivers/media/platform/omap3isp/isp.c 	divider = DIV_ROUND_CLOSEST(parent_rate, *rate);
DIV_ROUND_CLOSEST  519 drivers/media/platform/vivid/vivid-sdr-cap.c 	src_phase_step = DIV_ROUND_CLOSEST(FIXP_2PI * BEEP_FREQ,
DIV_ROUND_CLOSEST  555 drivers/media/platform/vivid/vivid-sdr-cap.c 			*vbuf++ = DIV_ROUND_CLOSEST(fixp_i, FIXP_FRAC * 10);
DIV_ROUND_CLOSEST  556 drivers/media/platform/vivid/vivid-sdr-cap.c 			*vbuf++ = DIV_ROUND_CLOSEST(fixp_q, FIXP_FRAC * 10);
DIV_ROUND_CLOSEST  563 drivers/media/platform/vivid/vivid-sdr-cap.c 			*vbuf++ = DIV_ROUND_CLOSEST(fixp_i, FIXP_FRAC * 10);
DIV_ROUND_CLOSEST  564 drivers/media/platform/vivid/vivid-sdr-cap.c 			*vbuf++ = DIV_ROUND_CLOSEST(fixp_q, FIXP_FRAC * 10);
DIV_ROUND_CLOSEST  638 drivers/media/rc/ene_ir.c 		dev->tx_sample = DIV_ROUND_CLOSEST(sample, sample_period);
DIV_ROUND_CLOSEST   68 drivers/media/rc/gpio-ir-tx.c 	pulse = DIV_ROUND_CLOSEST(gpio_ir->duty_cycle * (NSEC_PER_SEC / 100),
DIV_ROUND_CLOSEST   70 drivers/media/rc/gpio-ir-tx.c 	space = DIV_ROUND_CLOSEST((100 - gpio_ir->duty_cycle) *
DIV_ROUND_CLOSEST  294 drivers/media/rc/iguanair.c 		cycles = DIV_ROUND_CLOSEST(24000000, carrier * 2) -
DIV_ROUND_CLOSEST  346 drivers/media/rc/iguanair.c 		periods = DIV_ROUND_CLOSEST(txbuf[i] * ir->carrier, 1000000);
DIV_ROUND_CLOSEST  111 drivers/media/rc/ir-hix5hd2.c 	rate = DIV_ROUND_CLOSEST(priv->rate, 1000000);
DIV_ROUND_CLOSEST   46 drivers/media/rc/ir-rx51.c 	int duty, period = DIV_ROUND_CLOSEST(NSEC_PER_SEC, ir_rx51->freq);
DIV_ROUND_CLOSEST   48 drivers/media/rc/ir-rx51.c 	duty = DIV_ROUND_CLOSEST(ir_rx51->duty_cycle * period, 100);
DIV_ROUND_CLOSEST  244 drivers/media/rc/ir-rx51.c 	ir_rx51.freq = DIV_ROUND_CLOSEST(pwm_get_period(pwm), NSEC_PER_SEC);
DIV_ROUND_CLOSEST   49 drivers/media/rc/ir-spi.c 		periods = DIV_ROUND_CLOSEST(buffer[i] * idata->freq, 1000000);
DIV_ROUND_CLOSEST  105 drivers/media/rc/ite-cir.c 		    DIV_ROUND_CLOSEST(freq - ITE_LCF_MIN_CARRIER_FREQ,
DIV_ROUND_CLOSEST  241 drivers/media/rc/ite-cir.c 			    DIV_ROUND_CLOSEST(10000 * (high_freq - low_freq),
DIV_ROUND_CLOSEST  704 drivers/media/rc/mceusb.c 			period = DIV_ROUND_CLOSEST((1U << data[0] * 2) *
DIV_ROUND_CLOSEST 1073 drivers/media/rc/mceusb.c 	units = DIV_ROUND_CLOSEST(timeout, US_TO_NS(MCE_TIME_UNIT));
DIV_ROUND_CLOSEST  155 drivers/media/rc/mtk-cir.c 	val = DIV_ROUND_CLOSEST(1000000000ul,
DIV_ROUND_CLOSEST  162 drivers/media/rc/mtk-cir.c 	val = DIV_ROUND_CLOSEST(MTK_IR_SAMPLE, val);
DIV_ROUND_CLOSEST  415 drivers/media/rc/mtk-cir.c 		 DIV_ROUND_CLOSEST(MTK_IR_SAMPLE, 1000));
DIV_ROUND_CLOSEST  266 drivers/media/rc/nuvoton-cir.c 		val = DIV_ROUND_CLOSEST(val, SAMPLE_PERIOD);
DIV_ROUND_CLOSEST   60 drivers/media/rc/pwm-ir-tx.c 	period = DIV_ROUND_CLOSEST(NSEC_PER_SEC, pwm_ir->carrier);
DIV_ROUND_CLOSEST   61 drivers/media/rc/pwm-ir-tx.c 	duty = DIV_ROUND_CLOSEST(pwm_ir->duty_cycle * period, 100);
DIV_ROUND_CLOSEST  174 drivers/media/rc/rc-core-priv.h #define TO_US(duration)			DIV_ROUND_CLOSEST((duration), 1000)
DIV_ROUND_CLOSEST  225 drivers/media/rc/serial_ir.c 	pulse = DIV_ROUND_CLOSEST(serial_ir.duty_cycle * (NSEC_PER_SEC / 100),
DIV_ROUND_CLOSEST  227 drivers/media/rc/serial_ir.c 	space = DIV_ROUND_CLOSEST((100 - serial_ir.duty_cycle) *
DIV_ROUND_CLOSEST  318 drivers/media/rc/winbond-cir.c 			.carrier = DIV_ROUND_CLOSEST(counter * 1000000u,
DIV_ROUND_CLOSEST  545 drivers/media/rc/winbond-cir.c 	freq = DIV_ROUND_CLOSEST(carrier, 1000);
DIV_ROUND_CLOSEST  640 drivers/media/rc/winbond-cir.c 		buf[i] = DIV_ROUND_CLOSEST(b[i], 10);
DIV_ROUND_CLOSEST  222 drivers/media/tuners/msi001.c 	k_thresh = DIV_ROUND_CLOSEST(k_thresh, uitmp);
DIV_ROUND_CLOSEST  223 drivers/media/tuners/msi001.c 	k_frac = DIV_ROUND_CLOSEST(k_frac, uitmp);
DIV_ROUND_CLOSEST  118 drivers/media/tuners/qm1d1b0004.c 	word = DIV_ROUND_CLOSEST(frequency, pll);
DIV_ROUND_CLOSEST  130 drivers/media/tuners/tda18212.c 	buf[3] = DIV_ROUND_CLOSEST(if_khz, 50);
DIV_ROUND_CLOSEST  594 drivers/media/tuners/tda18250.c 		utmp = DIV_ROUND_CLOSEST(if_khz, 50);
DIV_ROUND_CLOSEST 1215 drivers/media/v4l2-core/tuner-core.c 			DIV_ROUND_CLOSEST(abs_freq * 2, 125) :
DIV_ROUND_CLOSEST 1216 drivers/media/v4l2-core/tuner-core.c 			DIV_ROUND_CLOSEST(abs_freq, 62500);
DIV_ROUND_CLOSEST  716 drivers/memory/emif.c 	fifo_we_slave_ratio =  DIV_ROUND_CLOSEST(
DIV_ROUND_CLOSEST  727 drivers/memory/emif.c 	fifo_we_slave_ratio =  DIV_ROUND_CLOSEST(
DIV_ROUND_CLOSEST  738 drivers/memory/emif.c 	fifo_we_slave_ratio =  DIV_ROUND_CLOSEST(
DIV_ROUND_CLOSEST  422 drivers/mfd/sm501.c 			diff = DIV_ROUND_CLOSEST(mclk, divider << shift) - freq;
DIV_ROUND_CLOSEST  617 drivers/mmc/host/moxart-mmc.c 	mmc->f_max = DIV_ROUND_CLOSEST(host->sysclk, 2);
DIV_ROUND_CLOSEST  618 drivers/mmc/host/moxart-mmc.c 	mmc->f_min = DIV_ROUND_CLOSEST(host->sysclk, CLK_DIV_MASK * 2);
DIV_ROUND_CLOSEST  596 drivers/mmc/host/sdhci-of-arasan.c 	u32 mhz = DIV_ROUND_CLOSEST(clk_get_rate(pltfm_host->clk), 1000000);
DIV_ROUND_CLOSEST 1317 drivers/net/ethernet/broadcom/b44.c 		     (DIV_ROUND_CLOSEST(ssb_clockspeed(sdev->bus),
DIV_ROUND_CLOSEST  123 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	return DIV_ROUND_CLOSEST(state * MLXSW_THERMAL_MAX_DUTY,
DIV_ROUND_CLOSEST  129 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	return DIV_ROUND_CLOSEST(duty * MLXSW_THERMAL_MAX_STATE,
DIV_ROUND_CLOSEST  218 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 			delta = DIV_ROUND_CLOSEST(temp, trip->temp - temp);
DIV_ROUND_CLOSEST 3330 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c 		upper_bound = DIV_ROUND_CLOSEST(ecmp_size * weight, total);
DIV_ROUND_CLOSEST 2169 drivers/net/ethernet/micrel/ksz884x.c 	num = DIV_ROUND_CLOSEST(num * 100, BROADCAST_STORM_VALUE);
DIV_ROUND_CLOSEST  527 drivers/net/ethernet/sfc/ptp.c 	nic_minor = DIV_ROUND_CLOSEST(nic_minor, 4);
DIV_ROUND_CLOSEST  528 drivers/net/ethernet/sfc/ptp.c 	correction = DIV_ROUND_CLOSEST(correction, 4);
DIV_ROUND_CLOSEST 1473 drivers/net/ethernet/ti/cpsw.c 		 DIV_ROUND_CLOSEST(val * priv->shp_cfg_speed, 100));
DIV_ROUND_CLOSEST  610 drivers/net/ieee802154/adf7242.c 	db = DIV_ROUND_CLOSEST(db + 29, 2);
DIV_ROUND_CLOSEST 1789 drivers/net/phy/marvell.c 	temp = clamp_val(DIV_ROUND_CLOSEST(temp, 5) + 5, 0, 0x1f);
DIV_ROUND_CLOSEST  524 drivers/net/phy/sfp.c 	*value = DIV_ROUND_CLOSEST(*value, 10);
DIV_ROUND_CLOSEST  531 drivers/net/phy/sfp.c 		*value = DIV_ROUND_CLOSEST(*value * slope, 256) + offset;
DIV_ROUND_CLOSEST  542 drivers/net/phy/sfp.c 	*value = DIV_ROUND_CLOSEST(*value * 1000, 256);
DIV_ROUND_CLOSEST  550 drivers/net/phy/sfp.c 	*value = DIV_ROUND_CLOSEST(*value, 10);
DIV_ROUND_CLOSEST  558 drivers/net/phy/sfp.c 	*value = DIV_ROUND_CLOSEST(*value, 500);
DIV_ROUND_CLOSEST  566 drivers/net/phy/sfp.c 	*value = DIV_ROUND_CLOSEST(*value, 10);
DIV_ROUND_CLOSEST 17751 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 			pwr_est = max(DIV_ROUND_CLOSEST(4 * num, den), -8);
DIV_ROUND_CLOSEST 26993 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		i_pwr = DIV_ROUND_CLOSEST(est[rx_core].i_pwr, num_samps);
DIV_ROUND_CLOSEST 26994 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 		q_pwr = DIV_ROUND_CLOSEST(est[rx_core].q_pwr, num_samps);
DIV_ROUND_CLOSEST 27676 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					i_pwr = DIV_ROUND_CLOSEST(est[rx_core].i_pwr,
DIV_ROUND_CLOSEST 27678 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c 					q_pwr = DIV_ROUND_CLOSEST(est[rx_core].q_pwr,
DIV_ROUND_CLOSEST  347 drivers/net/wireless/mediatek/mt7601u/mac.c 	atomic_set(&dev->avg_ampdu_len, n ? DIV_ROUND_CLOSEST(sum, n) : 1);
DIV_ROUND_CLOSEST 2836 drivers/net/wireless/realtek/rtw88/rtw8822c.c 	tmp_gs = DIV_ROUND_CLOSEST(tmp_gs, 10);
DIV_ROUND_CLOSEST  210 drivers/nvmem/imx-ocotp.c 	strobe_prog = DIV_ROUND_CLOSEST(clk_rate * TIMING_STROBE_PROG_US,
DIV_ROUND_CLOSEST  144 drivers/phy/cadence/cdns-dphy.c 	psm_div = DIV_ROUND_CLOSEST(psm_clk_hz, 1000000);
DIV_ROUND_CLOSEST  377 drivers/phy/mediatek/phy-mtk-tphy.c 		calibration_val = DIV_ROUND_CLOSEST(tmp, U3P_SR_COEF_DIVISOR);
DIV_ROUND_CLOSEST  170 drivers/phy/mediatek/phy-mtk-xsphy.c 		calib_val = DIV_ROUND_CLOSEST(tmp, XSP_SR_COEF_DIVISOR);
DIV_ROUND_CLOSEST  730 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c 		vco += DIV_ROUND_CLOSEST(parent_rate * frac, (1 << 24));
DIV_ROUND_CLOSEST 1354 drivers/pinctrl/sunxi/pinctrl-sunxi.c 		debounce_freq = DIV_ROUND_CLOSEST(USEC_PER_SEC, debounce);
DIV_ROUND_CLOSEST 1154 drivers/power/supply/ab8500_fg.c 	percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10);
DIV_ROUND_CLOSEST 1203 drivers/power/supply/ab8500_fg.c 				 DIV_ROUND_CLOSEST(di->bat_cap.prev_percent *
DIV_ROUND_CLOSEST 1275 drivers/power/supply/ab8500_fg.c 	int percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10);
DIV_ROUND_CLOSEST  368 drivers/power/supply/axp288_charger.c 		scaled_val = DIV_ROUND_CLOSEST(scaled_val, 1000);
DIV_ROUND_CLOSEST  375 drivers/power/supply/axp288_charger.c 		scaled_val = DIV_ROUND_CLOSEST(scaled_val, 1000);
DIV_ROUND_CLOSEST  176 drivers/power/supply/power_supply_hwmon.c 		pspval.intval = DIV_ROUND_CLOSEST(pspval.intval, 1000);
DIV_ROUND_CLOSEST  226 drivers/power/supply/power_supply_hwmon.c 		pspval.intval = DIV_ROUND_CLOSEST(pspval.intval, 100);
DIV_ROUND_CLOSEST  125 drivers/power/supply/sc27xx_fuel_gauge.c 	return DIV_ROUND_CLOSEST(adc * 1000, data->cur_1000ma_adc);
DIV_ROUND_CLOSEST  130 drivers/power/supply/sc27xx_fuel_gauge.c 	return DIV_ROUND_CLOSEST(adc * 1000, data->vol_1000mv_adc);
DIV_ROUND_CLOSEST  135 drivers/power/supply/sc27xx_fuel_gauge.c 	return DIV_ROUND_CLOSEST(vol * data->vol_1000mv_adc, 1000);
DIV_ROUND_CLOSEST  385 drivers/power/supply/sc27xx_fuel_gauge.c 	temp = DIV_ROUND_CLOSEST(delta_clbcnt * 10, 36 * SC27XX_FGU_SAMPLE_HZ);
DIV_ROUND_CLOSEST  392 drivers/power/supply/sc27xx_fuel_gauge.c 	delta_cap = DIV_ROUND_CLOSEST(temp * 100, data->total_cap);
DIV_ROUND_CLOSEST  852 drivers/power/supply/sc27xx_fuel_gauge.c 	int cur_cap = DIV_ROUND_CLOSEST(data->total_cap * capacity, 100);
DIV_ROUND_CLOSEST  858 drivers/power/supply/sc27xx_fuel_gauge.c 	return DIV_ROUND_CLOSEST(cur_cap * 36 * data->cur_1000ma_adc * SC27XX_FGU_SAMPLE_HZ, 10);
DIV_ROUND_CLOSEST  886 drivers/power/supply/sc27xx_fuel_gauge.c 	data->vol_1000mv_adc = DIV_ROUND_CLOSEST(cal_4200mv * 10, 42);
DIV_ROUND_CLOSEST   74 drivers/pwm/pwm-bcm2835.c 	scaler = DIV_ROUND_CLOSEST(NSEC_PER_SEC, rate);
DIV_ROUND_CLOSEST   75 drivers/pwm/pwm-bcm2835.c 	period = DIV_ROUND_CLOSEST(period_ns, scaler);
DIV_ROUND_CLOSEST   80 drivers/pwm/pwm-bcm2835.c 	writel(DIV_ROUND_CLOSEST(duty_ns, scaler),
DIV_ROUND_CLOSEST   46 drivers/pwm/pwm-clps711x.c 	return DIV_ROUND_CLOSEST(v * 0xf, pwm->args.period);
DIV_ROUND_CLOSEST   58 drivers/pwm/pwm-clps711x.c 	pwm->args.period = DIV_ROUND_CLOSEST(NSEC_PER_SEC, freq);
DIV_ROUND_CLOSEST  255 drivers/pwm/pwm-pca9685.c 		prescale = DIV_ROUND_CLOSEST(PCA9685_OSC_CLOCK_MHZ * period_ns,
DIV_ROUND_CLOSEST  187 drivers/pwm/pwm-stmpe.c 		duty = DIV_ROUND_CLOSEST(duty, period_ns);
DIV_ROUND_CLOSEST  472 drivers/regulator/ti-abb-regulator.c 	clk_rate = DIV_ROUND_CLOSEST(clk_get_rate(abb->clk), 1000000);
DIV_ROUND_CLOSEST  475 drivers/regulator/ti-abb-regulator.c 	cycle_rate = DIV_ROUND_CLOSEST(clock_cycles * 10, clk_rate);
DIV_ROUND_CLOSEST  478 drivers/regulator/ti-abb-regulator.c 	sr2_wt_cnt_val = DIV_ROUND_CLOSEST(abb->settling_time * 10, cycle_rate);
DIV_ROUND_CLOSEST  435 drivers/rtc/rtc-armada38x.c 	off = DIV_ROUND_CLOSEST(ppb_cor, 954);
DIV_ROUND_CLOSEST  438 drivers/rtc/rtc-armada38x.c 		off = DIV_ROUND_CLOSEST(ppb_cor, 3815);
DIV_ROUND_CLOSEST  835 drivers/rtc/rtc-ds1307.c 		ctrl_reg = DIV_ROUND_CLOSEST(offset,
DIV_ROUND_CLOSEST  839 drivers/rtc/rtc-ds1307.c 		ctrl_reg = DIV_ROUND_CLOSEST(abs(offset),
DIV_ROUND_CLOSEST  160 drivers/rtc/rtc-pcf2123.c 		reg = DIV_ROUND_CLOSEST(offset, OFFSET_STEP);
DIV_ROUND_CLOSEST  267 drivers/rtc/rtc-pcf85063.c 	mode0 = DIV_ROUND_CLOSEST(offset, PCF85063_OFFSET_STEP0);
DIV_ROUND_CLOSEST  268 drivers/rtc/rtc-pcf85063.c 	mode1 = DIV_ROUND_CLOSEST(offset, PCF85063_OFFSET_STEP1);
DIV_ROUND_CLOSEST  326 drivers/rtc/rtc-pcf8523.c 	reg_m0 = clamp(DIV_ROUND_CLOSEST(offset, 4340), -64L, 63L);
DIV_ROUND_CLOSEST  327 drivers/rtc/rtc-pcf8523.c 	reg_m1 = clamp(DIV_ROUND_CLOSEST(offset, 4069), -64L, 63L);
DIV_ROUND_CLOSEST  390 drivers/rtc/rtc-rv3028.c 	*offset = DIV_ROUND_CLOSEST(steps * OFFSET_STEP_PPT, 1000);
DIV_ROUND_CLOSEST  401 drivers/rtc/rtc-rv3028.c 	offset = DIV_ROUND_CLOSEST(offset, OFFSET_STEP_PPT);
DIV_ROUND_CLOSEST 3127 drivers/scsi/pmcraid.c 			cpu_to_le64(DIV_ROUND_CLOSEST(sgcount + ioadl_count, 8));
DIV_ROUND_CLOSEST  159 drivers/spi/spi-npcm-pspi.c 	ckdiv = DIV_ROUND_CLOSEST(clk_get_rate(priv->clk), (2 * speed)) - 1;
DIV_ROUND_CLOSEST  141 drivers/spi/spi-pic32.c 	div = DIV_ROUND_CLOSEST(clk_get_rate(pic32s->clk), 2 * spi_ck) - 1;
DIV_ROUND_CLOSEST  652 drivers/spi/spi-rockchip.c 		u32 rsd = DIV_ROUND_CLOSEST(rsd_nsecs * (rs->freq >> 8),
DIV_ROUND_CLOSEST  287 drivers/staging/comedi/drivers/addi_apci_3120.c 		divisor = DIV_ROUND_CLOSEST(ns, timer_base);
DIV_ROUND_CLOSEST  490 drivers/staging/comedi/drivers/addi_apci_3xxx.c 			timer = DIV_ROUND_CLOSEST(*ns, base);
DIV_ROUND_CLOSEST  183 drivers/staging/comedi/drivers/adv_pci1760.c 		divisor = DIV_ROUND_CLOSEST(ns, PCI1760_PWM_TIMEBASE);
DIV_ROUND_CLOSEST  644 drivers/staging/comedi/drivers/amplc_pci230.c 		div += DIV_ROUND_CLOSEST(rem, timebase);
DIV_ROUND_CLOSEST 1380 drivers/staging/comedi/drivers/cb_pcidas64.c 	num_increments = DIV_ROUND_CLOSEST(num_entries, increment_size);
DIV_ROUND_CLOSEST 2005 drivers/staging/comedi/drivers/cb_pcidas64.c 		divisor = DIV_ROUND_CLOSEST(ns, TIMER_BASE);
DIV_ROUND_CLOSEST  446 drivers/staging/comedi/drivers/comedi_8254.c 		divisor = DIV_ROUND_CLOSEST(*nanosec, i8254->osc_base);
DIV_ROUND_CLOSEST  319 drivers/staging/comedi/drivers/comedi_test.c 		arg = NSEC_PER_USEC * DIV_ROUND_CLOSEST(arg, NSEC_PER_USEC);
DIV_ROUND_CLOSEST  334 drivers/staging/comedi/drivers/comedi_test.c 		arg = NSEC_PER_USEC * DIV_ROUND_CLOSEST(arg, NSEC_PER_USEC);
DIV_ROUND_CLOSEST  575 drivers/staging/comedi/drivers/comedi_test.c 	arg = NSEC_PER_USEC * DIV_ROUND_CLOSEST(arg, NSEC_PER_USEC);
DIV_ROUND_CLOSEST  585 drivers/staging/comedi/drivers/das1800.c 		arg = DIV_ROUND_CLOSEST(arg, 1000);
DIV_ROUND_CLOSEST  377 drivers/staging/comedi/drivers/dt282x.c 			divider = DIV_ROUND_CLOSEST(*ns, base);
DIV_ROUND_CLOSEST  355 drivers/staging/comedi/drivers/dt3000.c 			divider = DIV_ROUND_CLOSEST(*nanosec, base);
DIV_ROUND_CLOSEST  365 drivers/staging/comedi/drivers/ni_labpc_common.c 			pacer->next_div = DIV_ROUND_CLOSEST(convert_period,
DIV_ROUND_CLOSEST  367 drivers/staging/comedi/drivers/ni_labpc_common.c 			pacer->next_div2 = DIV_ROUND_CLOSEST(scan_period,
DIV_ROUND_CLOSEST 1936 drivers/staging/comedi/drivers/ni_mio_common.c 		divider = DIV_ROUND_CLOSEST(nanosec, devpriv->clock_ns);
DIV_ROUND_CLOSEST 4185 drivers/staging/comedi/drivers/ni_mio_common.c 			up_count = DIV_ROUND_CLOSEST(data[2],
DIV_ROUND_CLOSEST 4200 drivers/staging/comedi/drivers/ni_mio_common.c 			down_count = DIV_ROUND_CLOSEST(data[4],
DIV_ROUND_CLOSEST 4245 drivers/staging/comedi/drivers/ni_mio_common.c 			up_count = DIV_ROUND_CLOSEST(data[2],
DIV_ROUND_CLOSEST 4260 drivers/staging/comedi/drivers/ni_mio_common.c 			down_count = DIV_ROUND_CLOSEST(data[4],
DIV_ROUND_CLOSEST 4914 drivers/staging/comedi/drivers/ni_mio_common.c 	*actual_period_ns = DIV_ROUND_CLOSEST(best_period_picosec * 4,
DIV_ROUND_CLOSEST  514 drivers/staging/comedi/drivers/ni_pcidio.c 		divider = DIV_ROUND_CLOSEST(*nanosec, base);
DIV_ROUND_CLOSEST  382 drivers/staging/comedi/drivers/rtd520.c 		divider = DIV_ROUND_CLOSEST(*nanosec, base);
DIV_ROUND_CLOSEST 1636 drivers/staging/comedi/drivers/s626.c 		divider = DIV_ROUND_CLOSEST(*nanosec, base);
DIV_ROUND_CLOSEST  410 drivers/staging/iio/adc/ad7192.c 	fadc = DIV_ROUND_CLOSEST(st->fclk,
DIV_ROUND_CLOSEST  412 drivers/staging/iio/adc/ad7192.c 	freq[0] = DIV_ROUND_CLOSEST(fadc * 240, 1024);
DIV_ROUND_CLOSEST  414 drivers/staging/iio/adc/ad7192.c 	fadc = DIV_ROUND_CLOSEST(st->fclk,
DIV_ROUND_CLOSEST  416 drivers/staging/iio/adc/ad7192.c 	freq[1] = DIV_ROUND_CLOSEST(fadc * 240, 1024);
DIV_ROUND_CLOSEST  418 drivers/staging/iio/adc/ad7192.c 	fadc = DIV_ROUND_CLOSEST(st->fclk, AD7192_MODE_RATE(st->mode));
DIV_ROUND_CLOSEST  419 drivers/staging/iio/adc/ad7192.c 	freq[2] = DIV_ROUND_CLOSEST(fadc * 230, 1024);
DIV_ROUND_CLOSEST  420 drivers/staging/iio/adc/ad7192.c 	freq[3] = DIV_ROUND_CLOSEST(fadc * 272, 1024);
DIV_ROUND_CLOSEST  539 drivers/staging/iio/adc/ad7192.c 	fadc = DIV_ROUND_CLOSEST(st->fclk,
DIV_ROUND_CLOSEST  543 drivers/staging/iio/adc/ad7192.c 		return DIV_ROUND_CLOSEST(fadc * 240, 1024);
DIV_ROUND_CLOSEST  545 drivers/staging/iio/adc/ad7192.c 		return DIV_ROUND_CLOSEST(fadc * 272, 1024);
DIV_ROUND_CLOSEST  547 drivers/staging/iio/adc/ad7192.c 		return DIV_ROUND_CLOSEST(fadc * 230, 1024);
DIV_ROUND_CLOSEST  236 drivers/staging/media/hantro/hantro_jpeg.c 		temp = DIV_ROUND_CLOSEST((unsigned int)tab[i] * scale, 100);
DIV_ROUND_CLOSEST  172 drivers/staging/media/imx/imx-media-fim.c 		error_avg = DIV_ROUND_CLOSEST(fim->sum, fim->num_avg);
DIV_ROUND_CLOSEST 1591 drivers/staging/media/ipu3/ipu3-css.c 	return DIV_ROUND_CLOSEST(val, align) * align;
DIV_ROUND_CLOSEST  106 drivers/staging/sm750fb/ddk750_chip.c 		divisor = DIV_ROUND_CLOSEST(get_mxclk_freq(), frequency);
DIV_ROUND_CLOSEST  158 drivers/staging/sm750fb/ddk750_chip.c 		divisor = DIV_ROUND_CLOSEST(get_mxclk_freq(), frequency);
DIV_ROUND_CLOSEST  128 drivers/thermal/rcar_gen3_thermal.c #define FIXPT_DIV(_a, _b) DIV_ROUND_CLOSEST(((_a) << FIXPT_SHIFT), (_b))
DIV_ROUND_CLOSEST  200 drivers/thermal/rcar_gen3_thermal.c 	celsius = DIV_ROUND_CLOSEST(mcelsius, 1000);
DIV_ROUND_CLOSEST  105 drivers/thermal/zx2967_thermal.c 	*temp = DIV_ROUND_CLOSEST(((s32)val + priv->tzd->tzp->offset) * 1000,
DIV_ROUND_CLOSEST   68 drivers/tty/serial/8250/8250_dwlib.c 	*frac = DIV_ROUND_CLOSEST(rem << d->dlf_size, base_baud);
DIV_ROUND_CLOSEST  126 drivers/tty/serial/8250/8250_early.c 		divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * device->baud);
DIV_ROUND_CLOSEST  161 drivers/tty/serial/8250/8250_exar.c 	quot_16 = DIV_ROUND_CLOSEST(p->uartclk, baud);
DIV_ROUND_CLOSEST  110 drivers/tty/serial/8250/8250_ingenic.c 	divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * baud);
DIV_ROUND_CLOSEST  358 drivers/tty/serial/8250/8250_mtk.c 		fraction = DIV_ROUND_CLOSEST(fraction, 10);
DIV_ROUND_CLOSEST  223 drivers/tty/serial/8250/8250_omap.c 	div_13 = DIV_ROUND_CLOSEST(uartclk, 13 * baud);
DIV_ROUND_CLOSEST  224 drivers/tty/serial/8250/8250_omap.c 	div_16 = DIV_ROUND_CLOSEST(uartclk, 16 * baud);
DIV_ROUND_CLOSEST 2419 drivers/tty/serial/8250/8250_port.c 	return DIV_ROUND_CLOSEST(port->uartclk, 16 * baud + 2) - 2;
DIV_ROUND_CLOSEST 1974 drivers/tty/serial/amba-pl011.c 		quot = DIV_ROUND_CLOSEST(port->uartclk * 8, baud);
DIV_ROUND_CLOSEST 1976 drivers/tty/serial/amba-pl011.c 		quot = DIV_ROUND_CLOSEST(port->uartclk * 4, baud);
DIV_ROUND_CLOSEST 2285 drivers/tty/serial/atmel_serial.c 		div = DIV_ROUND_CLOSEST(port->uartclk, baud * 2);
DIV_ROUND_CLOSEST  360 drivers/tty/serial/efm32-uart.c 			DIV_ROUND_CLOSEST(port->uartclk, 16 * 8192),
DIV_ROUND_CLOSEST  361 drivers/tty/serial/efm32-uart.c 			DIV_ROUND_CLOSEST(port->uartclk, 16));
DIV_ROUND_CLOSEST  396 drivers/tty/serial/efm32-uart.c 	clkdiv = (DIV_ROUND_CLOSEST(4 * port->uartclk, 16 * baud) - 4) << 6;
DIV_ROUND_CLOSEST  573 drivers/tty/serial/efm32-uart.c 	*baud = DIV_ROUND_CLOSEST(4 * efm_port->port.uartclk,
DIV_ROUND_CLOSEST  567 drivers/tty/serial/max310x.c 		fdiv = DIV_ROUND_CLOSEST(freq, div);
DIV_ROUND_CLOSEST  373 drivers/tty/serial/mps2-uart.c 			DIV_ROUND_CLOSEST(port->uartclk, UARTn_BAUDDIV_MASK),
DIV_ROUND_CLOSEST  374 drivers/tty/serial/mps2-uart.c 			DIV_ROUND_CLOSEST(port->uartclk, 16));
DIV_ROUND_CLOSEST  376 drivers/tty/serial/mps2-uart.c 	bauddiv = DIV_ROUND_CLOSEST(port->uartclk, baud);
DIV_ROUND_CLOSEST 1060 drivers/tty/serial/msm_serial.c 	divisor = DIV_ROUND_CLOSEST(target, 16 * baud);
DIV_ROUND_CLOSEST 1090 drivers/tty/serial/msm_serial.c 			divisor = DIV_ROUND_CLOSEST(target, 16 * baud);
DIV_ROUND_CLOSEST 1085 drivers/tty/serial/mxs-auart.c 		div = DIV_ROUND_CLOSEST(u->uartclk * 32, baud);
DIV_ROUND_CLOSEST  445 drivers/tty/serial/pch_uart.c 	div = DIV_ROUND_CLOSEST(priv->uartclk / 16, baud);
DIV_ROUND_CLOSEST  552 drivers/tty/serial/sc16is7xx.c 	return DIV_ROUND_CLOSEST(clk / 16, div);
DIV_ROUND_CLOSEST  315 drivers/tty/serial/sccnxp.c 	div_std = DIV_ROUND_CLOSEST(port->uartclk, 2 * 16 * baud);
DIV_ROUND_CLOSEST  317 drivers/tty/serial/sccnxp.c 		bestbaud = DIV_ROUND_CLOSEST(port->uartclk, 2 * 16 * div_std);
DIV_ROUND_CLOSEST  330 drivers/tty/serial/sccnxp.c 		div_std = DIV_ROUND_CLOSEST(chip->freq_std, baud_std[i].baud);
DIV_ROUND_CLOSEST  331 drivers/tty/serial/sccnxp.c 		tmp_baud = DIV_ROUND_CLOSEST(port->uartclk, div_std);
DIV_ROUND_CLOSEST  406 drivers/tty/serial/serial-tegra.c 		divisor = DIV_ROUND_CLOSEST(rate, baud * 16);
DIV_ROUND_CLOSEST  492 drivers/tty/serial/serial_core.c 		quot = DIV_ROUND_CLOSEST(port->uartclk, 16 * baud);
DIV_ROUND_CLOSEST 2222 drivers/tty/serial/sh-sci.c 		err = DIV_ROUND_CLOSEST(freq, sr) - bps;
DIV_ROUND_CLOSEST 2249 drivers/tty/serial/sh-sci.c 		dl = DIV_ROUND_CLOSEST(freq, sr * bps);
DIV_ROUND_CLOSEST 2252 drivers/tty/serial/sh-sci.c 		err = DIV_ROUND_CLOSEST(freq, sr * dl) - bps;
DIV_ROUND_CLOSEST 2314 drivers/tty/serial/sh-sci.c 			br = DIV_ROUND_CLOSEST(freq, scrate);
DIV_ROUND_CLOSEST 2317 drivers/tty/serial/sh-sci.c 			err = DIV_ROUND_CLOSEST(freq, br * prediv) - bps;
DIV_ROUND_CLOSEST 2542 drivers/tty/serial/sh-sci.c 			int deviation = DIV_ROUND_CLOSEST(min_err * last_stop *
DIV_ROUND_CLOSEST   81 drivers/tty/serial/stm32-usart.c 	rs485_deat_dedt = DIV_ROUND_CLOSEST(rs485_deat_dedt, 1000);
DIV_ROUND_CLOSEST   93 drivers/tty/serial/stm32-usart.c 	rs485_deat_dedt = DIV_ROUND_CLOSEST(rs485_deat_dedt, 1000);
DIV_ROUND_CLOSEST  127 drivers/tty/serial/stm32-usart.c 		baud = DIV_ROUND_CLOSEST(port->uartclk, usartdiv);
DIV_ROUND_CLOSEST  771 drivers/tty/serial/stm32-usart.c 	usartdiv = DIV_ROUND_CLOSEST(port->uartclk, baud);
DIV_ROUND_CLOSEST  693 drivers/tty/serial/vt8500_serial.c 	vt8500_port->clk_predivisor = DIV_ROUND_CLOSEST(
DIV_ROUND_CLOSEST  421 drivers/tty/serial/xilinx_uartps.c 		cd = DIV_ROUND_CLOSEST(clk, baud * (bdiv + 1));
DIV_ROUND_CLOSEST 1087 drivers/usb/serial/cp210x.c 	div = DIV_ROUND_CLOSEST(48000000, 2 * prescale * baud);
DIV_ROUND_CLOSEST   84 drivers/usb/serial/f81232.c 	return DIV_ROUND_CLOSEST(clockrate, baudrate);
DIV_ROUND_CLOSEST  545 drivers/usb/serial/f81534.c 	return DIV_ROUND_CLOSEST(clockrate, baudrate);
DIV_ROUND_CLOSEST 1144 drivers/usb/serial/ftdi_sio.c 	int divisor3 = DIV_ROUND_CLOSEST(base, 2 * baud);
DIV_ROUND_CLOSEST 1170 drivers/usb/serial/ftdi_sio.c 	int divisor3 = DIV_ROUND_CLOSEST(base, 2 * baud);
DIV_ROUND_CLOSEST 1193 drivers/usb/serial/ftdi_sio.c 	divisor3 = DIV_ROUND_CLOSEST(8 * base, 10 * baud);
DIV_ROUND_CLOSEST  701 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		var->width = DIV_ROUND_CLOSEST(w, 1000);
DIV_ROUND_CLOSEST  702 drivers/video/fbdev/omap2/omapfb/omapfb-main.c 		var->height = DIV_ROUND_CLOSEST(h, 1000);
DIV_ROUND_CLOSEST  116 drivers/w1/masters/mxc_w1.c 	clkdiv = DIV_ROUND_CLOSEST(clkrate, 1000000);
DIV_ROUND_CLOSEST   11 include/linux/util_macros.h 		if (__fc_x op DIV_ROUND_CLOSEST(__fc_a[__fc_i] +	\
DIV_ROUND_CLOSEST  110 include/net/red.h #define RED_ONE_PERCENT ((u32)DIV_ROUND_CLOSEST(1ULL<<32, 100))
DIV_ROUND_CLOSEST  414 include/net/red.h 	max_p_delta = DIV_ROUND_CLOSEST(p->max_P, p->qth_delta);
DIV_ROUND_CLOSEST  798 kernel/sched/core.c #define UCLAMP_BUCKET_DELTA DIV_ROUND_CLOSEST(SCHED_CAPACITY_SCALE, UCLAMP_BUCKETS)
DIV_ROUND_CLOSEST  230 net/ipv4/tcp_cdg.c 		gmin = DIV_ROUND_CLOSEST(gmin, 64);
DIV_ROUND_CLOSEST  231 net/ipv4/tcp_cdg.c 		gmax = DIV_ROUND_CLOSEST(gmax, 64);
DIV_ROUND_CLOSEST   97 net/mac80211/rc80211_minstrel_ht_debugfs.c 		tx_time = DIV_ROUND_CLOSEST(duration, 1000);
DIV_ROUND_CLOSEST  242 net/mac80211/rc80211_minstrel_ht_debugfs.c 		tx_time = DIV_ROUND_CLOSEST(duration, 1000);
DIV_ROUND_CLOSEST   97 sound/soc/adi/axi-spdif.c 	clkdiv = DIV_ROUND_CLOSEST(clk_get_rate(spdif->clk_ref),
DIV_ROUND_CLOSEST  558 sound/soc/atmel/atmel-pdmic.c 	*rate_min = DIV_ROUND_CLOSEST(mic_min_freq, 128);
DIV_ROUND_CLOSEST  496 sound/soc/atmel/atmel_ssc_dai.c 		cmr_div = DIV_ROUND_CLOSEST(ssc_p->mck_rate, 2 * bclk_rate);
DIV_ROUND_CLOSEST  925 sound/soc/codecs/pcm512x.c 		bclk_div = DIV_ROUND_CLOSEST(sck_rate, bclk_rate);
DIV_ROUND_CLOSEST  988 sound/soc/codecs/pcm512x.c 		bclk_div = DIV_ROUND_CLOSEST(sck_rate, bclk_rate);
DIV_ROUND_CLOSEST 1060 sound/soc/codecs/pcm512x.c 	osr_div = DIV_ROUND_CLOSEST(dac_rate, osr_rate);
DIV_ROUND_CLOSEST 1066 sound/soc/codecs/pcm512x.c 	dac_div = DIV_ROUND_CLOSEST(dacsrc_rate, dac_rate);
DIV_ROUND_CLOSEST 1073 sound/soc/codecs/pcm512x.c 	ncp_div = DIV_ROUND_CLOSEST(dac_rate,
DIV_ROUND_CLOSEST   97 sound/soc/spear/spdif_out.c 	divider = DIV_ROUND_CLOSEST(clk_get_rate(host->clk), (rate * 128));
DIV_ROUND_CLOSEST  452 sound/soc/stm/stm32_i2s.c 		tmp = DIV_ROUND_CLOSEST(i2s_clock_rate, i2s->mclk_rate);
DIV_ROUND_CLOSEST  465 sound/soc/stm/stm32_i2s.c 		tmp = DIV_ROUND_CLOSEST(i2s_clock_rate, (nb_bits * rate));
DIV_ROUND_CLOSEST  320 sound/soc/stm/stm32_sai_sub.c 	div = DIV_ROUND_CLOSEST(input_rate, output_rate);
DIV_ROUND_CLOSEST  112 sound/soc/xilinx/xlnx_spdif.c 	clk_div = DIV_ROUND_CLOSEST(ctx->aclk, MAX_CHANNELS * AES_SAMPLE_WIDTH *
DIV_ROUND_CLOSEST  659 sound/usb/misc/ua101.c 		DIV_ROUND_CLOSEST(ua->rate, ua->packets_per_second);
DIV_ROUND_CLOSEST  680 sound/usb/misc/ua101.c 		DIV_ROUND_CLOSEST(ua->rate * ua->playback.queue_length,