Searched refs:DIV_U64_ROUND_CLOSEST (Results 1 – 9 of 9) sorted by relevance
107 bt->tq = DIV_U64_ROUND_CLOSEST(mul_u32_u32(bt->brp, NSEC_PER_SEC), in can_fixup_bittiming()
199 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()
97 DIV_U64_ROUND_CLOSEST(scaled_ns * PSEC_PER_NSEC, 466U); in hwtstamp_correct_latency()
336 #define DIV_U64_ROUND_CLOSEST(dividend, divisor) \ macro
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()
640 gain = DIV_U64_ROUND_CLOSEST(gain * 32768, MICRO); in ad4851_set_calibscale()
1151 temp = DIV_U64_ROUND_CLOSEST(temp, in ad7173_read_raw()
488 *val = DIV_U64_ROUND_CLOSEST((u64)(lux_raw * 215), 1000); in opt4060_calc_illuminance()
1679 result = DIV_U64_ROUND_CLOSEST((u64)USEC_PER_SEC * transfer->len * BITS_PER_BYTE, in spi_imx_transfer_estimate_time_us()