Searched refs:fscl (Results 1 – 1 of 1) sorted by relevance
/linux-4.19.296/drivers/i2c/busses/ |
D | i2c-cadence.c | 672 unsigned long fscl = *f, best_fscl = *f, actual_fscl, temp; in cdns_i2c_calc_divs() local 677 temp = input_clk / (22 * fscl); in cdns_i2c_calc_divs() 688 div_b = DIV_ROUND_UP(input_clk, 22 * fscl * (div_a + 1)); in cdns_i2c_calc_divs() 696 if (actual_fscl > fscl) in cdns_i2c_calc_divs() 699 current_error = ((actual_fscl > fscl) ? (actual_fscl - fscl) : in cdns_i2c_calc_divs() 700 (fscl - actual_fscl)); in cdns_i2c_calc_divs() 738 unsigned long fscl = id->i2c_clk; in cdns_i2c_setclk() local 740 ret = cdns_i2c_calc_divs(&fscl, clk_in, &div_a, &div_b); in cdns_i2c_setclk() 782 unsigned long fscl = id->i2c_clk; 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()
|