Searched refs:clk_ns (Results 1 – 2 of 2) sorted by relevance
607 unsigned int sda_max, sda_min, clk_ns, max_sta_cnt = 0x3f; in mtk_i2c_check_ac_timing() local620 clk_ns = 1000000000 / clk_src; in mtk_i2c_check_ac_timing()622 clk_ns = sample_ns / 2; in mtk_i2c_check_ac_timing()624 su_sta_cnt = DIV_ROUND_UP(spec->min_su_sta_ns, clk_ns); in mtk_i2c_check_ac_timing()
739 u64 timeout, clk_ns; in msdc_timeout_cal() local745 clk_ns = 1000000000ULL; in msdc_timeout_cal()746 do_div(clk_ns, mmc->actual_clock); in msdc_timeout_cal()747 timeout = ns + clk_ns - 1; in msdc_timeout_cal()748 do_div(timeout, clk_ns); in msdc_timeout_cal()