Searched refs:clk_div_restri (Results 1 – 1 of 1) sorted by relevance
662 int clk_div_restri = 0; in mtk_i2c_get_clk_div_restri() local669 clk_div_restri = 0; in mtk_i2c_get_clk_div_restri()671 clk_div_restri = 1; in mtk_i2c_get_clk_div_restri()674 clk_div_restri = -1; in mtk_i2c_get_clk_div_restri()676 clk_div_restri = 0; in mtk_i2c_get_clk_div_restri()678 clk_div_restri = 1; in mtk_i2c_get_clk_div_restri()681 return clk_div_restri; in mtk_i2c_get_clk_div_restri()812 int clk_div_restri = 0; in mtk_i2c_calculate_speed() local830 clk_div_restri = mtk_i2c_get_clk_div_restri(i2c, sample_cnt); in mtk_i2c_calculate_speed()831 step_cnt = DIV_ROUND_UP(opt_div + clk_div_restri, sample_cnt); in mtk_i2c_calculate_speed()[all …]