Lines Matching refs:DIV_ROUND_CLOSEST

142 		DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000));  in ns_to_clock_divider()
148 return DIV_ROUND_CLOSEST((divider + 1) * 1000, in clock_divider_to_ns()
155 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * 16)); in carrier_freq_to_clock_divider()
160 return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, (divider + 1) * 16); in clock_divider_to_carrier_freq()
167 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * rollovers)); in freq_to_clock_divider()
173 return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, in clock_divider_to_freq()
196 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_lpf_count()
202 return DIV_ROUND_CLOSEST(count * 1000, in lpf_count_to_ns()
209 return DIV_ROUND_CLOSEST(count, CX25840_IR_REFCLK_FREQ / 1000000); in lpf_count_to_us()
222 return DIV_ROUND_CLOSEST((1 << 2) * ((u32) divider + 1) * 1000, in clock_divider_to_resolution()
383 if (*carrier_range_low < DIV_ROUND_CLOSEST(c16, 16 + 3)) { in control_rx_s_carrier_window()
385 *carrier_range_low = DIV_ROUND_CLOSEST(c16, 16 + 4); in control_rx_s_carrier_window()
388 *carrier_range_low = DIV_ROUND_CLOSEST(c16, 16 + 3); in control_rx_s_carrier_window()
391 if (*carrier_range_high > DIV_ROUND_CLOSEST(c16, 16 - 3)) { in control_rx_s_carrier_window()
393 *carrier_range_high = DIV_ROUND_CLOSEST(c16, 16 - 4); in control_rx_s_carrier_window()
396 *carrier_range_high = DIV_ROUND_CLOSEST(c16, 16 - 3); in control_rx_s_carrier_window()
462 n = DIV_ROUND_CLOSEST(duty_cycle * 100, 625); /* 16ths of 100% */ in cduty_tx_s_duty_cycle()
468 return DIV_ROUND_CLOSEST((n + 1) * 100, 16); in cduty_tx_s_duty_cycle()