Lines Matching refs:CX25840_IR_REFCLK_FREQ
97 #define CX25840_IR_REFCLK_FREQ (CX25840_VIDCLK_FREQ / 2) macro
156 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_clock_divider()
163 CX25840_IR_REFCLK_FREQ / 1000000); in clock_divider_to_ns()
169 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * 16)); in carrier_freq_to_clock_divider()
174 return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, (divider + 1) * 16); in clock_divider_to_carrier_freq()
181 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * rollovers)); in freq_to_clock_divider()
187 return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, in clock_divider_to_freq()
210 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_lpf_count()
217 CX25840_IR_REFCLK_FREQ / 1000000); in lpf_count_to_ns()
223 return DIV_ROUND_CLOSEST(count, CX25840_IR_REFCLK_FREQ / 1000000); in lpf_count_to_us()
237 CX25840_IR_REFCLK_FREQ / 1000000); in clock_divider_to_resolution()
250 rem = do_div(n, CX25840_IR_REFCLK_FREQ / 1000000); /* / MHz => ns */ in pulse_width_count_to_ns()
251 if (rem >= CX25840_IR_REFCLK_FREQ / 1000000 / 2) in pulse_width_count_to_ns()
268 n = ((u64) ns) * CX25840_IR_REFCLK_FREQ / 1000000; /* millicycles */
292 rem = do_div(n, CX25840_IR_REFCLK_FREQ / 1000000); /* / MHz => us */ in pulse_width_count_to_us()
293 if (rem >= CX25840_IR_REFCLK_FREQ / 1000000 / 2) in pulse_width_count_to_us()
310 clocks = CX25840_IR_REFCLK_FREQ / 1000000 * (u64) ns; /* millicycles */ in ns_to_pulse_clocks()