Searched refs:sample_ns (Results 1 – 1 of 1) sorted by relevance
705 unsigned int sample_ns = div_u64(1000000000ULL * (sample_cnt + 1), in mtk_i2c_check_ac_timing() local719 clk_ns = sample_ns / 2; in mtk_i2c_check_ac_timing()726 low_cnt = DIV_ROUND_UP(spec->min_low_ns, sample_ns); in mtk_i2c_check_ac_timing()739 sda_max = spec->max_hd_dat_ns / sample_ns; in mtk_i2c_check_ac_timing()743 sda_min = DIV_ROUND_UP(spec->min_su_dat_ns, sample_ns); in mtk_i2c_check_ac_timing()