Lines Matching refs:host
22 static void dw_mci_rockchip_prepare_command(struct dw_mci *host, u32 *cmdr) in dw_mci_rockchip_prepare_command() argument
27 static int dw_mci_rk3288_setup_clock(struct dw_mci *host) in dw_mci_rk3288_setup_clock() argument
29 host->bus_hz /= RK3288_CLKGEN_DIV; in dw_mci_rk3288_setup_clock()
34 static void dw_mci_rk3288_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_rk3288_set_ios() argument
59 ret = clk_set_rate(host->ciu_clk, cclkin); in dw_mci_rk3288_set_ios()
61 dev_warn(host->dev, "failed to set rate %uHz\n", ios->clock); in dw_mci_rk3288_set_ios()
63 bus_hz = clk_get_rate(host->ciu_clk) / RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios()
64 if (bus_hz != host->bus_hz) { in dw_mci_rk3288_set_ios()
65 host->bus_hz = bus_hz; in dw_mci_rk3288_set_ios()
67 host->current_speed = 0; in dw_mci_rk3288_set_ios()
71 static int dw_mci_rockchip_init(struct dw_mci *host) in dw_mci_rockchip_init() argument
74 host->sdio_id0 = 8; in dw_mci_rockchip_init()
125 struct dw_mci *host = dev_get_drvdata(dev); in dw_mci_rockchip_suspend() local
127 return dw_mci_suspend(host); in dw_mci_rockchip_suspend()
132 struct dw_mci *host = dev_get_drvdata(dev); in dw_mci_rockchip_resume() local
134 return dw_mci_resume(host); in dw_mci_rockchip_resume()