Searched refs:div_b (Results 1 – 1 of 1) sorted by relevance
1017 unsigned int div_a, div_b, calc_div_a = 0, calc_div_b = 0; in cdns_i2c_calc_divs() local1032 div_b = DIV_ROUND_UP(input_clk, 22 * fscl * (div_a + 1)); in cdns_i2c_calc_divs()1034 if ((div_b < 1) || (div_b > CDNS_I2C_DIVB_MAX)) in cdns_i2c_calc_divs()1036 div_b--; in cdns_i2c_calc_divs()1038 actual_fscl = input_clk / (22 * (div_a + 1) * (div_b + 1)); in cdns_i2c_calc_divs()1047 calc_div_b = div_b; in cdns_i2c_calc_divs()1078 unsigned int div_a, div_b; in cdns_i2c_setclk() local1083 ret = cdns_i2c_calc_divs(&fscl, clk_in, &div_a, &div_b); in cdns_i2c_setclk()1090 (div_b << CDNS_I2C_CR_DIVB_SHIFT)); in cdns_i2c_setclk()1130 unsigned int div_a, div_b; in cdns_i2c_clk_notifier_cb() local[all …]