Home
last modified time | relevance | path

Searched refs:sample_div (Results 1 – 2 of 2) sorted by relevance

/drivers/media/rc/
Dst_rc.c27 int sample_div; member
132 symbol /= dev->sample_div; in st_rc_rx_interrupt()
134 mark /= dev->sample_div; in st_rc_rx_interrupt()
182 dev->sample_div = baseclock / (10000 * rx_sampling_freq_div); in st_rc_hardware_init()
183 rx_max_symbol_per = (rx_max_symbol_per * 1000)/dev->sample_div; in st_rc_hardware_init()
/drivers/tty/serial/
Dsirfsoc_uart.c637 unsigned short sample_div; in sirfsoc_usp_calc_sample_div() local
641 for (sample_div = SIRF_USP_MIN_SAMPLE_DIV; in sirfsoc_usp_calc_sample_div()
642 sample_div <= SIRF_MAX_SAMPLE_DIV; sample_div++) { in sirfsoc_usp_calc_sample_div()
644 (ioclk_rate + (set_rate * sample_div) / 2) in sirfsoc_usp_calc_sample_div()
645 / (set_rate * sample_div) * set_rate * sample_div; in sirfsoc_usp_calc_sample_div()
650 (set_rate * sample_div) + 1) / 2 - 1; in sirfsoc_usp_calc_sample_div()
654 *sample_reg = sample_div; in sirfsoc_usp_calc_sample_div()
667 unsigned short sample_div; in sirfsoc_uart_calc_sample_div() local
673 for (sample_div = SIRF_MIN_SAMPLE_DIV; in sirfsoc_uart_calc_sample_div()
674 sample_div <= SIRF_MAX_SAMPLE_DIV; sample_div++) { in sirfsoc_uart_calc_sample_div()
[all …]