Searched refs:div_a (Results 1 – 1 of 1) sorted by relevance
/Linux-v6.6/drivers/i2c/busses/ |
D | i2c-cadence.c | 1017 unsigned int div_a, div_b, calc_div_a = 0, calc_div_b = 0; in cdns_i2c_calc_divs() local 1031 for (div_a = 0; div_a < CDNS_I2C_DIVA_MAX; div_a++) { in cdns_i2c_calc_divs() 1032 div_b = DIV_ROUND_UP(input_clk, 22 * fscl * (div_a + 1)); in cdns_i2c_calc_divs() 1038 actual_fscl = input_clk / (22 * (div_a + 1) * (div_b + 1)); in cdns_i2c_calc_divs() 1046 calc_div_a = div_a; in cdns_i2c_calc_divs() 1078 unsigned int div_a, div_b; in cdns_i2c_setclk() local 1083 ret = cdns_i2c_calc_divs(&fscl, clk_in, &div_a, &div_b); in cdns_i2c_setclk() 1089 ctrl_reg |= ((div_a << CDNS_I2C_CR_DIVA_SHIFT) | in cdns_i2c_setclk() 1130 unsigned int div_a, div_b; in cdns_i2c_clk_notifier_cb() local 1133 ret = cdns_i2c_calc_divs(&fscl, input_clk, &div_a, &div_b); in cdns_i2c_clk_notifier_cb()
|