/linux-master/drivers/tty/serial/ |
H A D | mps2-uart.c | 354 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 D | rtc-at91rm9200.c | 321 *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 D | rtc-rzn1.c | 284 stepsh = DIV_ROUND_CLOSEST(offset, 1017); 285 stepsl = DIV_ROUND_CLOSEST(offset, 3051);
|
H A D | rtc-pcf8523.c | 362 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 D | ti-abb-regulator.c | 473 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 D | mcp16502.c | 307 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 D | adt7411.c | 437 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 D | emc6w201.c | 206 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 D | asus_rog_ryujin.c | 108 return DIV_ROUND_CLOSEST(val * 255, 100); 113 return DIV_ROUND_CLOSEST(val * 100, 255);
|
H A D | ltc4282.c | 251 *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 D | corsair-cpro.c | 188 val = DIV_ROUND_CLOSEST(val * 100, 255); 280 *val = DIV_ROUND_CLOSEST(ret * 255, 100);
|
H A D | emc2305.c | 28 DIV_ROUND_CLOSEST((duty) * (max_state), (pwm_max)) 30 DIV_ROUND_CLOSEST((state) * (pwm_max), (max_state))
|
H A D | hwmon-vid.c | 109 return DIV_ROUND_CLOSEST(15500 - 125 * val, 10);
|
/linux-master/net/mac80211/ |
H A D | rc80211_minstrel_ht_debugfs.c | 121 tx_time = DIV_ROUND_CLOSEST(duration, 1000); 265 tx_time = DIV_ROUND_CLOSEST(duration, 1000);
|
/linux-master/drivers/media/tuners/ |
H A D | msi001.c | 222 k_thresh = DIV_ROUND_CLOSEST(k_thresh, uitmp); 223 k_frac = DIV_ROUND_CLOSEST(k_frac, uitmp);
|
/linux-master/net/ipv4/ |
H A D | tcp_cdg.c | 230 gmin = DIV_ROUND_CLOSEST(gmin, 64); 231 gmax = DIV_ROUND_CLOSEST(gmax, 64);
|
/linux-master/drivers/gpu/drm/stm/ |
H A D | dw_mipi_dsi-stm.c | 138 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 D | smp_twd.c | 57 writel_relaxed(DIV_ROUND_CLOSEST(twd_timer_rate, HZ),
|
/linux-master/drivers/clocksource/ |
H A D | timer-atmel-pit.c | 210 data->cycle = DIV_ROUND_CLOSEST(pit_rate, HZ);
|
H A D | asm9260_timer.c | 235 priv.ticks_per_jiffy = DIV_ROUND_CLOSEST(rate, HZ);
|
H A D | mps2-timer.c | 146 ce->clock_count_per_tick = DIV_ROUND_CLOSEST(rate, HZ);
|
H A D | timer-fsl-ftm.c | 285 priv->periodic_cyc = DIV_ROUND_CLOSEST(freq,
|
/linux-master/drivers/phy/intel/ |
H A D | phy-intel-lgm-emmc.c | 76 quot = DIV_ROUND_CLOSEST(rate, 50000000);
|
H A D | phy-intel-keembay-emmc.c | 84 mhz = DIV_ROUND_CLOSEST(clk_get_rate(priv->emmcclk), 1000000);
|
/linux-master/drivers/clk/actions/ |
H A D | owl-pll.c | 22 mul = DIV_ROUND_CLOSEST(rate, pll_hw->bfreq);
|