Searched refs:DIV_U64_ROUND_CLOSEST (Results 1 – 11 of 11) sorted by relevance
| /linux/include/linux/can/ |
| H A D | bittiming.h | 276 return DIV_U64_ROUND_CLOSEST(mul_u32_u32(tqmin, NSEC_PER_SEC), in can_tqmin_to_ns()
|
| /linux/drivers/hwmon/pmbus/ |
| H A D | isl68137.c | 222 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 D | bittiming.c | 108 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 D | stmmac_hwtstamp.c | 97 DIV_U64_ROUND_CLOSEST(scaled_ns * PSEC_PER_NSEC, 466U); in hwtstamp_correct_latency()
|
| /linux/include/linux/ |
| H A D | math64.h | 393 #define DIV_U64_ROUND_CLOSEST(dividend, divisor) \ macro
|
| /linux/drivers/tty/serial/ |
| H A D | mvebu-uart.c | 1121 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 D | ina238.c | 790 data->current_lsb = DIV_U64_ROUND_CLOSEST(250ULL * INA238_FIXED_SHUNT * data->gain, in ina238_probe()
|
| /linux/drivers/iio/light/ |
| H A D | opt4060.c | 471 *val = DIV_U64_ROUND_CLOSEST((u64)(lux_raw * 215), 1000); in opt4060_calc_illuminance()
|
| /linux/drivers/iio/adc/ |
| H A D | ad4851.c | 642 gain = DIV_U64_ROUND_CLOSEST(gain * 32768, MICRO); in ad4851_set_calibscale()
|
| H A D | ad7173.c | 1305 temp = DIV_U64_ROUND_CLOSEST(temp, in ad7173_read_raw()
|
| /linux/drivers/spi/ |
| H A D | spi-imx.c | 2114 result = DIV_U64_ROUND_CLOSEST((u64)USEC_PER_SEC * transfer->len * BITS_PER_BYTE, in spi_imx_transfer_estimate_time_us()
|