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

/linux-4.4.14/drivers/media/rc/
H A Dst_rc.c30 int sample_div; member in struct:st_rc_device
131 symbol /= dev->sample_div; st_rc_rx_interrupt()
133 mark /= dev->sample_div; st_rc_rx_interrupt()
183 dev->sample_div = baseclock / (10000 * rx_sampling_freq_div); st_rc_hardware_init()
184 rx_max_symbol_per = (rx_max_symbol_per * 1000)/dev->sample_div; st_rc_hardware_init()
/linux-4.4.14/drivers/tty/serial/
H A Dsirfsoc_uart.c638 unsigned short sample_div; sirfsoc_usp_calc_sample_div() local
642 for (sample_div = SIRF_USP_MIN_SAMPLE_DIV; sirfsoc_usp_calc_sample_div()
643 sample_div <= SIRF_MAX_SAMPLE_DIV; sample_div++) { sirfsoc_usp_calc_sample_div()
645 (ioclk_rate + (set_rate * sample_div) / 2) sirfsoc_usp_calc_sample_div()
646 / (set_rate * sample_div) * set_rate * sample_div; sirfsoc_usp_calc_sample_div()
651 (set_rate * sample_div) + 1) / 2 - 1; sirfsoc_usp_calc_sample_div()
655 *sample_reg = sample_div; sirfsoc_usp_calc_sample_div()
668 unsigned short sample_div; sirfsoc_uart_calc_sample_div() local
674 for (sample_div = SIRF_MIN_SAMPLE_DIV; sirfsoc_uart_calc_sample_div()
675 sample_div <= SIRF_MAX_SAMPLE_DIV; sample_div++) { sirfsoc_uart_calc_sample_div()
676 ioclk_div = (ioclk_rate / (baud_rate * (sample_div + 1))) - 1; sirfsoc_uart_calc_sample_div()
679 baud_tmp = ioclk_rate / ((ioclk_div + 1) * (sample_div + 1)); sirfsoc_uart_calc_sample_div()
686 regv = regv | (sample_div << SIRF_SAMPLE_DIV_SHIFT); sirfsoc_uart_calc_sample_div()

Completed in 63 milliseconds