Searched refs:clk_ns (Results 1 – 3 of 3) sorted by relevance
663 u32 timeout, clk_ns; in msdc_set_timeout() local672 clk_ns = 1000000000UL / host->sclk; in msdc_set_timeout()673 timeout = (ns + clk_ns - 1) / clk_ns + clks; in msdc_set_timeout()
704 unsigned int sda_max, sda_min, clk_ns, max_sta_cnt = 0x3f; in mtk_i2c_check_ac_timing() local717 clk_ns = 1000000000 / clk_src; in mtk_i2c_check_ac_timing()719 clk_ns = sample_ns / 2; in mtk_i2c_check_ac_timing()722 i2c->timing_info.scl_int_delay_ns, clk_ns); in mtk_i2c_check_ac_timing()
792 u64 timeout, clk_ns; in msdc_timeout_cal() local798 clk_ns = 1000000000ULL; in msdc_timeout_cal()799 do_div(clk_ns, mmc->actual_clock); in msdc_timeout_cal()800 timeout = ns + clk_ns - 1; in msdc_timeout_cal()801 do_div(timeout, clk_ns); in msdc_timeout_cal()