Lines Matching refs:div_b
673 unsigned int div_a, div_b, calc_div_a = 0, calc_div_b = 0; in cdns_i2c_calc_divs() local
688 div_b = DIV_ROUND_UP(input_clk, 22 * fscl * (div_a + 1)); in cdns_i2c_calc_divs()
690 if ((div_b < 1) || (div_b > CDNS_I2C_DIVB_MAX)) in cdns_i2c_calc_divs()
692 div_b--; in cdns_i2c_calc_divs()
694 actual_fscl = input_clk / (22 * (div_a + 1) * (div_b + 1)); in cdns_i2c_calc_divs()
704 calc_div_b = div_b; in cdns_i2c_calc_divs()
735 unsigned int div_a, div_b; in cdns_i2c_setclk() local
740 ret = cdns_i2c_calc_divs(&fscl, clk_in, &div_a, &div_b); in cdns_i2c_setclk()
747 (div_b << CDNS_I2C_CR_DIVB_SHIFT)); in cdns_i2c_setclk()
783 unsigned int div_a, div_b; in cdns_i2c_clk_notifier_cb() local
786 ret = cdns_i2c_calc_divs(&fscl, input_clk, &div_a, &div_b); in cdns_i2c_clk_notifier_cb()