Home
last modified time | relevance | path

Searched refs:DIV_U64_ROUND_CLOSEST (Results 1 – 11 of 11) sorted by relevance

/linux/include/linux/can/
H A Dbittiming.h276 return DIV_U64_ROUND_CLOSEST(mul_u32_u32(tqmin, NSEC_PER_SEC), in can_tqmin_to_ns()
/linux/drivers/hwmon/pmbus/
H A Disl68137.c222 temp = DIV_U64_ROUND_CLOSEST((u64)ret * in raa_dmpvr2_read_word_data()
258 temp = DIV_U64_ROUND_CLOSEST((u64)word * in raa_dmpvr2_write_word_data()
/linux/drivers/net/can/dev/
H A Dbittiming.c108 bt->tq = DIV_U64_ROUND_CLOSEST(mul_u32_u32(bt->brp, NSEC_PER_SEC), in can_fixup_bittiming()
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_hwtstamp.c97 DIV_U64_ROUND_CLOSEST(scaled_ns * PSEC_PER_NSEC, 466U); in hwtstamp_correct_latency()
/linux/include/linux/
H A Dmath64.h393 #define DIV_U64_ROUND_CLOSEST(dividend, divisor) \ macro
/linux/drivers/tty/serial/
H A Dmvebu-uart.c1121 divisor = DIV_U64_ROUND_CLOSEST((u64)(val & BRDV_BAUD_MASK) * in mvebu_uart_clock_prepare()
1150 divisor = DIV_U64_ROUND_CLOSEST((u64)(val & BRDV_BAUD_MASK) * in mvebu_uart_clock_prepare()
/linux/drivers/hwmon/
H A Dina238.c790 data->current_lsb = DIV_U64_ROUND_CLOSEST(250ULL * INA238_FIXED_SHUNT * data->gain, in ina238_probe()
/linux/drivers/iio/light/
H A Dopt4060.c471 *val = DIV_U64_ROUND_CLOSEST((u64)(lux_raw * 215), 1000); in opt4060_calc_illuminance()
/linux/drivers/iio/adc/
H A Dad4851.c642 gain = DIV_U64_ROUND_CLOSEST(gain * 32768, MICRO); in ad4851_set_calibscale()
H A Dad7173.c1305 temp = DIV_U64_ROUND_CLOSEST(temp, in ad7173_read_raw()
/linux/drivers/spi/
H A Dspi-imx.c2114 result = DIV_U64_ROUND_CLOSEST((u64)USEC_PER_SEC * transfer->len * BITS_PER_BYTE, in spi_imx_transfer_estimate_time_us()