Searched refs:cto_div (Results 1 – 2 of 2) sorted by relevance
205 unsigned int cto_div; in dwmci_get_cto() local209 cto_div = (dwmci_readl(host, DWMCI_CLKDIV) & 0xff) * 2; in dwmci_get_cto()210 if (cto_div == 0) in dwmci_get_cto()211 cto_div = 1; in dwmci_get_cto()213 cto_ms = DIV_ROUND_UP_ULL((u64)MSEC_PER_SEC * cto_clks * cto_div, in dwmci_get_cto()
385 unsigned int cto_div; in dw_mci_set_cto() local390 cto_div = (mci_readl(host, CLKDIV) & 0xff) * 2; in dw_mci_set_cto()391 if (cto_div == 0) in dw_mci_set_cto()392 cto_div = 1; in dw_mci_set_cto()394 cto_ms = DIV_ROUND_UP_ULL((u64)MSEC_PER_SEC * cto_clks * cto_div, in dw_mci_set_cto()