Home
last modified time | relevance | path

Searched refs:fscl (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/drivers/i2c/busses/
Di2c-cadence.c1012 unsigned long fscl = *f, best_fscl = *f, actual_fscl, temp; in cdns_i2c_calc_divs() local
1017 temp = input_clk / (22 * fscl); in cdns_i2c_calc_divs()
1028 div_b = DIV_ROUND_UP(input_clk, 22 * fscl * (div_a + 1)); in cdns_i2c_calc_divs()
1036 if (actual_fscl > fscl) in cdns_i2c_calc_divs()
1039 current_error = ((actual_fscl > fscl) ? (actual_fscl - fscl) : in cdns_i2c_calc_divs()
1040 (fscl - actual_fscl)); in cdns_i2c_calc_divs()
1078 unsigned long fscl = id->i2c_clk; in cdns_i2c_setclk() local
1080 ret = cdns_i2c_calc_divs(&fscl, clk_in, &div_a, &div_b); in cdns_i2c_setclk()
1126 unsigned long fscl = id->i2c_clk; in cdns_i2c_clk_notifier_cb() local
1130 ret = cdns_i2c_calc_divs(&fscl, input_clk, &div_a, &div_b); in cdns_i2c_clk_notifier_cb()