Searched refs:CX25840_IR_REFCLK_FREQ (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/media/i2c/cx25840/ |
H A D | cx25840-ir.c | 83 #define CX25840_IR_REFCLK_FREQ (CX25840_VIDCLK_FREQ / 2) macro 142 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_clock_divider() 149 CX25840_IR_REFCLK_FREQ / 1000000); 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() 203 CX25840_IR_REFCLK_FREQ / 1000000); in lpf_count_to_ns() 209 return DIV_ROUND_CLOSEST(count, CX25840_IR_REFCLK_FREQ / 100000 in lpf_count_to_us() [all...] |
/kernel/linux/linux-6.6/drivers/media/i2c/cx25840/ |
H A D | cx25840-ir.c | 83 #define CX25840_IR_REFCLK_FREQ (CX25840_VIDCLK_FREQ / 2) macro 142 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * 16)); in carrier_freq_to_clock_divider() 147 return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, (divider + 1) * 16); in clock_divider_to_carrier_freq() 153 return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, in clock_divider_to_freq() 176 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_lpf_count() 183 CX25840_IR_REFCLK_FREQ / 1000000); in lpf_count_to_ns() 189 return DIV_ROUND_CLOSEST(count, CX25840_IR_REFCLK_FREQ / 1000000); in lpf_count_to_us() 203 CX25840_IR_REFCLK_FREQ / 1000000); in clock_divider_to_resolution() 216 rem = do_div(n, CX25840_IR_REFCLK_FREQ / 1000000); /* / MHz => ns */ in pulse_width_count_to_ns() 217 if (rem >= CX25840_IR_REFCLK_FREQ / 100000 in pulse_width_count_to_ns() [all...] |
Completed in 3 milliseconds