Searched refs:DIV_ROUND_CLOSEST (Results 126 - 150 of 482) sorted by relevance

1234567891011>>

/linux-master/drivers/tty/serial/
H A Dmps2-uart.c354 DIV_ROUND_CLOSEST(port->uartclk, UARTn_BAUDDIV_MASK),
355 DIV_ROUND_CLOSEST(port->uartclk, 16));
357 bauddiv = DIV_ROUND_CLOSEST(port->uartclk, baud);
/linux-master/drivers/rtc/
H A Drtc-at91rm9200.c321 *offset = DIV_ROUND_CLOSEST(AT91_RTC_CORR_DIVIDEND, val);
356 corr = DIV_ROUND_CLOSEST(AT91_RTC_CORR_DIVIDEND, offset * AT91_RTC_CORR_LOW_RATIO);
358 corr = DIV_ROUND_CLOSEST(AT91_RTC_CORR_DIVIDEND, offset);
H A Drtc-rzn1.c284 stepsh = DIV_ROUND_CLOSEST(offset, 1017);
285 stepsl = DIV_ROUND_CLOSEST(offset, 3051);
H A Drtc-pcf8523.c362 reg_m0 = clamp(DIV_ROUND_CLOSEST(offset, 4340), -64L, 63L);
363 reg_m1 = clamp(DIV_ROUND_CLOSEST(offset, 4069), -64L, 63L);
/linux-master/drivers/regulator/
H A Dti-abb-regulator.c473 clk_rate = DIV_ROUND_CLOSEST(clk_get_rate(abb->clk), 1000000);
476 cycle_rate = DIV_ROUND_CLOSEST(clock_cycles * 10, clk_rate);
479 sr2_wt_cnt_val = DIV_ROUND_CLOSEST(abb->settling_time * 10, cycle_rate);
H A Dmcp16502.c307 ret = DIV_ROUND_CLOSEST(uV_delta * us_ramp[val],
314 ret = DIV_ROUND_CLOSEST(uV_delta * us_ramp[val],
/linux-master/drivers/hwmon/
H A Dadt7411.c437 val = DIV_ROUND_CLOSEST(val * 256, 7000);
465 val = DIV_ROUND_CLOSEST(val * 256, data->vref_cached);
502 val = DIV_ROUND_CLOSEST(val, 1000);
H A Demc6w201.c206 val = DIV_ROUND_CLOSEST(val * 192, nominal_mv[nr]);
245 val = DIV_ROUND_CLOSEST(val, 1000);
290 val = DIV_ROUND_CLOSEST(5400000U, val);
H A Dasus_rog_ryujin.c108 return DIV_ROUND_CLOSEST(val * 255, 100);
113 return DIV_ROUND_CLOSEST(val * 100, 255);
H A Dltc4282.c251 *val = DIV_ROUND_CLOSEST(in * fs, U8_MAX);
444 *val = DIV_ROUND_CLOSEST(in * MILLI, st->rsense);
459 *val = DIV_ROUND_CLOSEST(in * MILLI, st->rsense);
566 temp = DIV_ROUND_CLOSEST(DECA * st->vfs_out * 40 * BIT(8), U16_MAX);
666 tmp = DIV_ROUND_CLOSEST(U16_MAX * lowest, fs);
674 tmp = DIV_ROUND_CLOSEST(U16_MAX * highest, fs);
730 in = DIV_ROUND_CLOSEST(val * U8_MAX, fs);
1254 st->power_max = DIV_ROUND_CLOSEST(st->vsense_max * DECA * MILLI, st->rsense) * st->vfs_out;
H A Dcorsair-cpro.c188 val = DIV_ROUND_CLOSEST(val * 100, 255);
280 *val = DIV_ROUND_CLOSEST(ret * 255, 100);
H A Demc2305.c28 DIV_ROUND_CLOSEST((duty) * (max_state), (pwm_max))
30 DIV_ROUND_CLOSEST((state) * (pwm_max), (max_state))
H A Dhwmon-vid.c109 return DIV_ROUND_CLOSEST(15500 - 125 * val, 10);
/linux-master/net/mac80211/
H A Drc80211_minstrel_ht_debugfs.c121 tx_time = DIV_ROUND_CLOSEST(duration, 1000);
265 tx_time = DIV_ROUND_CLOSEST(duration, 1000);
/linux-master/drivers/media/tuners/
H A Dmsi001.c222 k_thresh = DIV_ROUND_CLOSEST(k_thresh, uitmp);
223 k_frac = DIV_ROUND_CLOSEST(k_frac, uitmp);
/linux-master/net/ipv4/
H A Dtcp_cdg.c230 gmin = DIV_ROUND_CLOSEST(gmin, 64);
231 gmax = DIV_ROUND_CLOSEST(gmax, 64);
/linux-master/drivers/gpu/drm/stm/
H A Ddw_mipi_dsi-stm.c138 return DIV_ROUND_CLOSEST(clkin_khz * ndiv, divisor);
173 n = DIV_ROUND_CLOSEST(i * o * clkout_khz, clkin_khz);
/linux-master/arch/arm/kernel/
H A Dsmp_twd.c57 writel_relaxed(DIV_ROUND_CLOSEST(twd_timer_rate, HZ),
/linux-master/drivers/clocksource/
H A Dtimer-atmel-pit.c210 data->cycle = DIV_ROUND_CLOSEST(pit_rate, HZ);
H A Dasm9260_timer.c235 priv.ticks_per_jiffy = DIV_ROUND_CLOSEST(rate, HZ);
H A Dmps2-timer.c146 ce->clock_count_per_tick = DIV_ROUND_CLOSEST(rate, HZ);
H A Dtimer-fsl-ftm.c285 priv->periodic_cyc = DIV_ROUND_CLOSEST(freq,
/linux-master/drivers/phy/intel/
H A Dphy-intel-lgm-emmc.c76 quot = DIV_ROUND_CLOSEST(rate, 50000000);
H A Dphy-intel-keembay-emmc.c84 mhz = DIV_ROUND_CLOSEST(clk_get_rate(priv->emmcclk), 1000000);
/linux-master/drivers/clk/actions/
H A Dowl-pll.c22 mul = DIV_ROUND_CLOSEST(rate, pll_hw->bfreq);

Completed in 274 milliseconds

1234567891011>>