Lines Matching refs:host
35 static void dw_mci_k3_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_k3_set_ios() argument
39 ret = clk_set_rate(host->ciu_clk, ios->clock); in dw_mci_k3_set_ios()
41 dev_warn(host->dev, "failed to set rate %uHz\n", ios->clock); in dw_mci_k3_set_ios()
43 host->bus_hz = clk_get_rate(host->ciu_clk); in dw_mci_k3_set_ios()
50 static int dw_mci_hi6220_parse_dt(struct dw_mci *host) in dw_mci_hi6220_parse_dt() argument
54 priv = devm_kzalloc(host->dev, sizeof(*priv), GFP_KERNEL); in dw_mci_hi6220_parse_dt()
58 priv->reg = syscon_regmap_lookup_by_phandle(host->dev->of_node, in dw_mci_hi6220_parse_dt()
63 host->priv = priv; in dw_mci_hi6220_parse_dt()
71 struct dw_mci *host; in dw_mci_hi6220_switch_voltage() local
75 host = slot->host; in dw_mci_hi6220_switch_voltage()
76 priv = host->priv; in dw_mci_hi6220_switch_voltage()
92 dev_dbg(host->dev, "voltage not supported\n"); in dw_mci_hi6220_switch_voltage()
97 dev_dbg(host->dev, "switch voltage failed\n"); in dw_mci_hi6220_switch_voltage()
106 dev_dbg(host->dev, "Regulator set error %d: %d - %d\n", in dw_mci_hi6220_switch_voltage()
114 static void dw_mci_hi6220_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_hi6220_set_ios() argument
121 ret = clk_set_rate(host->biu_clk, clock); in dw_mci_hi6220_set_ios()
123 dev_warn(host->dev, "failed to set rate %uHz\n", clock); in dw_mci_hi6220_set_ios()
125 host->bus_hz = clk_get_rate(host->biu_clk); in dw_mci_hi6220_set_ios()
155 struct dw_mci *host = dev_get_drvdata(dev); in dw_mci_k3_suspend() local
158 ret = dw_mci_suspend(host); in dw_mci_k3_suspend()
160 clk_disable_unprepare(host->ciu_clk); in dw_mci_k3_suspend()
167 struct dw_mci *host = dev_get_drvdata(dev); in dw_mci_k3_resume() local
170 ret = clk_prepare_enable(host->ciu_clk); in dw_mci_k3_resume()
172 dev_err(host->dev, "failed to enable ciu clock\n"); in dw_mci_k3_resume()
176 return dw_mci_resume(host); in dw_mci_k3_resume()