Lines Matching refs:CX23888_IR_REFCLK_FREQ
110 #define CX23888_IR_REFCLK_FREQ (CX23888_VIDCLK_FREQ / 2) macro
190 DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_clock_divider()
197 CX23888_IR_REFCLK_FREQ / 1000000); in clock_divider_to_ns()
203 DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ, freq * 16)); in carrier_freq_to_clock_divider()
208 return DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ, (divider + 1) * 16); in clock_divider_to_carrier_freq()
215 DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ, freq * rollovers)); in freq_to_clock_divider()
221 return DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ, in clock_divider_to_freq()
244 DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_lpf_count()
251 CX23888_IR_REFCLK_FREQ / 1000000); in lpf_count_to_ns()
257 return DIV_ROUND_CLOSEST(count, CX23888_IR_REFCLK_FREQ / 1000000); in lpf_count_to_us()
271 CX23888_IR_REFCLK_FREQ / 1000000); in clock_divider_to_resolution()
284 rem = do_div(n, CX23888_IR_REFCLK_FREQ / 1000000); /* / MHz => ns */ in pulse_width_count_to_ns()
285 if (rem >= CX23888_IR_REFCLK_FREQ / 1000000 / 2) in pulse_width_count_to_ns()
300 rem = do_div(n, CX23888_IR_REFCLK_FREQ / 1000000); /* / MHz => us */ in pulse_width_count_to_us()
301 if (rem >= CX23888_IR_REFCLK_FREQ / 1000000 / 2) in pulse_width_count_to_us()
318 clocks = CX23888_IR_REFCLK_FREQ / 1000000 * (u64) ns; /* millicycles */ in ns_to_pulse_clocks()