Lines Matching refs:bus_hz
373 host->bus_hz); in dw_mci_set_cto()
1222 div = host->bus_hz / clock; in dw_mci_setup_bus()
1223 if (host->bus_hz % clock && host->bus_hz > clock) in dw_mci_setup_bus()
1230 div = (host->bus_hz != clock) ? DIV_ROUND_UP(div, 2) : 0; in dw_mci_setup_bus()
1239 slot->id, host->bus_hz, clock, in dw_mci_setup_bus()
1240 div ? ((host->bus_hz / div) >> 1) : in dw_mci_setup_bus()
1241 host->bus_hz, div); in dw_mci_setup_bus()
1276 slot->mmc->actual_clock = div ? ((host->bus_hz / div) >> 1) : in dw_mci_setup_bus()
1277 host->bus_hz; in dw_mci_setup_bus()
1300 tmp = DIV_ROUND_UP_ULL((u64)timeout_ns * host->bus_hz, NSEC_PER_SEC); in dw_mci_set_data_timeout()
2016 host->bus_hz); in dw_mci_set_drto()
3242 pdata->bus_hz = clock_frequency; in dw_mci_parse_dt()
3316 host->bus_hz = host->pdata->bus_hz; in dw_mci_probe()
3324 if (host->pdata->bus_hz) { in dw_mci_probe()
3325 ret = clk_set_rate(host->ciu_clk, host->pdata->bus_hz); in dw_mci_probe()
3329 host->pdata->bus_hz); in dw_mci_probe()
3331 host->bus_hz = clk_get_rate(host->ciu_clk); in dw_mci_probe()
3334 if (!host->bus_hz) { in dw_mci_probe()