Lines Matching refs:CX25840_IR_REFCLK_FREQ
92 #define CX25840_IR_REFCLK_FREQ (CX25840_VIDCLK_FREQ / 2) macro
151 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_clock_divider()
158 CX25840_IR_REFCLK_FREQ / 1000000); in clock_divider_to_ns()
164 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * 16)); in carrier_freq_to_clock_divider()
169 return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, (divider + 1) * 16); in clock_divider_to_carrier_freq()
176 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * rollovers)); in freq_to_clock_divider()
182 return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, in clock_divider_to_freq()
205 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_lpf_count()
212 CX25840_IR_REFCLK_FREQ / 1000000); in lpf_count_to_ns()
218 return DIV_ROUND_CLOSEST(count, CX25840_IR_REFCLK_FREQ / 1000000); in lpf_count_to_us()
232 CX25840_IR_REFCLK_FREQ / 1000000); in clock_divider_to_resolution()
245 rem = do_div(n, CX25840_IR_REFCLK_FREQ / 1000000); /* / MHz => ns */ in pulse_width_count_to_ns()
246 if (rem >= CX25840_IR_REFCLK_FREQ / 1000000 / 2) in pulse_width_count_to_ns()
263 n = ((u64) ns) * CX25840_IR_REFCLK_FREQ / 1000000; /* millicycles */
287 rem = do_div(n, CX25840_IR_REFCLK_FREQ / 1000000); /* / MHz => us */ in pulse_width_count_to_us()
288 if (rem >= CX25840_IR_REFCLK_FREQ / 1000000 / 2) in pulse_width_count_to_us()
305 clocks = CX25840_IR_REFCLK_FREQ / 1000000 * (u64) ns; /* millicycles */ in ns_to_pulse_clocks()