Searched refs:bdiv (Results 1 – 5 of 5) sorted by relevance
/openbmc/u-boot/drivers/serial/ |
H A D | serial_zynq.c | 51 unsigned int calc_bauderror, bdiv, bgen; in _uart_zynq_serial_setbrg() local 64 for (bdiv = 4; bdiv < 255; bdiv++) { in _uart_zynq_serial_setbrg() 65 bgen = clock / (baud * (bdiv + 1)); in _uart_zynq_serial_setbrg() 69 calc_baud = clock / (bgen * (bdiv + 1)); in _uart_zynq_serial_setbrg() 83 writel(bdiv, ®s->baud_rate_divider); in _uart_zynq_serial_setbrg()
|
/openbmc/linux/drivers/tty/serial/ |
H A D | xilinx_uartps.c | 399 u32 cd, bdiv; in cdns_uart_calc_baud_divs() local 412 for (bdiv = CDNS_UART_BDIV_MIN; bdiv <= CDNS_UART_BDIV_MAX; bdiv++) { in cdns_uart_calc_baud_divs() 413 cd = DIV_ROUND_CLOSEST(clk, baud * (bdiv + 1)); in cdns_uart_calc_baud_divs() 417 calc_baud = clk / (cd * (bdiv + 1)); in cdns_uart_calc_baud_divs() 425 *rbdiv = bdiv; in cdns_uart_calc_baud_divs() 449 u32 cd = 0, bdiv = 0; in cdns_uart_set_baud_rate() local 465 writel(bdiv, port->membase + CDNS_UART_BAUDDIV); in cdns_uart_set_baud_rate() 496 u32 bdiv, cd; in cdns_uart_clk_notifier_cb() local 504 &bdiv, &cd, &div8)) { in cdns_uart_clk_notifier_cb() 1190 u32 cd = 0, bdiv = 0; in cdns_early_console_setup() local [all …]
|
/openbmc/linux/sound/soc/sunxi/ |
H A D | sun8i-codec.c | 485 const struct sun8i_codec_clk_div *bdiv = &sun8i_codec_bclk_div[i]; in sun8i_codec_get_bclk_div() local 487 if (bdiv->div == div) in sun8i_codec_get_bclk_div() 488 return bdiv->val; in sun8i_codec_get_bclk_div()
|
H A D | sun4i-i2s.c | 297 const struct sun4i_i2s_clk_div *bdiv = ÷rs[i]; in sun4i_i2s_get_bclk_div() local 299 if (bdiv->div == div) in sun4i_i2s_get_bclk_div() 300 return bdiv->val; in sun4i_i2s_get_bclk_div()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | tlv320adc3xxx.c | 1149 u8 iface_len, bdiv; in adc3xxx_hw_params() local 1209 bdiv = (adc3xxx_divs[i].aosr * adc3xxx_divs[i].madc) / (2 * width); in adc3xxx_hw_params() 1211 ADC3XXX_BDIV_MASK, bdiv); in adc3xxx_hw_params()
|