Lines Matching refs:CX25840_IR_REFCLK_FREQ
96 #define CX25840_IR_REFCLK_FREQ (CX25840_VIDCLK_FREQ / 2)
155 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000));
162 CX25840_IR_REFCLK_FREQ / 1000000);
168 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * 16));
173 return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, (divider + 1) * 16);
180 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * rollovers));
186 return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ,
209 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000));
216 CX25840_IR_REFCLK_FREQ / 1000000);
222 return DIV_ROUND_CLOSEST(count, CX25840_IR_REFCLK_FREQ / 1000000);
236 CX25840_IR_REFCLK_FREQ / 1000000);
249 rem = do_div(n, CX25840_IR_REFCLK_FREQ / 1000000); /* / MHz => ns */
250 if (rem >= CX25840_IR_REFCLK_FREQ / 1000000 / 2)
265 rem = do_div(n, CX25840_IR_REFCLK_FREQ / 1000000); /* / MHz => us */
266 if (rem >= CX25840_IR_REFCLK_FREQ / 1000000 / 2)
283 clocks = CX25840_IR_REFCLK_FREQ / 1000000 * (u64) ns; /* millicycles */