Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/can/dev/
H A Dbittiming.c107 bt->tq = DIV_U64_ROUND_CLOSEST(mul_u32_u32(bt->brp, NSEC_PER_SEC), in can_fixup_bittiming()
/linux-6.15/drivers/hwmon/pmbus/
H A Disl68137.c199 temp = DIV_U64_ROUND_CLOSEST((u64)ret * in raa_dmpvr2_read_word_data()
235 temp = DIV_U64_ROUND_CLOSEST((u64)word * in raa_dmpvr2_write_word_data()
/linux-6.15/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-6.15/include/linux/
H A Dmath64.h336 #define DIV_U64_ROUND_CLOSEST(dividend, divisor) \ macro
/linux-6.15/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-6.15/drivers/iio/adc/
H A Dad4851.c640 gain = DIV_U64_ROUND_CLOSEST(gain * 32768, MICRO); in ad4851_set_calibscale()
H A Dad7173.c1151 temp = DIV_U64_ROUND_CLOSEST(temp, in ad7173_read_raw()
/linux-6.15/drivers/iio/light/
H A Dopt4060.c488 *val = DIV_U64_ROUND_CLOSEST((u64)(lux_raw * 215), 1000); in opt4060_calc_illuminance()
/linux-6.15/drivers/spi/
H A Dspi-imx.c1679 result = DIV_U64_ROUND_CLOSEST((u64)USEC_PER_SEC * transfer->len * BITS_PER_BYTE, in spi_imx_transfer_estimate_time_us()