Lines Matching defs:host
11 #include <linux/mmc/host.h>
31 static void dw_mci_starfive_set_ios(struct dw_mci *host, struct mmc_ios *ios)
38 ret = clk_set_rate(host->ciu_clk, clock);
40 dev_dbg(host->dev, "Use an external frequency divider %uHz\n", ios->clock);
41 host->bus_hz = clk_get_rate(host->ciu_clk);
43 dev_dbg(host->dev, "Using the internal divider\n");
51 struct dw_mci *host = slot->host;
52 struct starfive_priv *priv = host->priv;
70 mci_writel(host, RINTSTS, ALL_INT_CLR);
111 mci_writel(host, RINTSTS, ALL_INT_CLR);
113 dev_info(host->dev, "Found valid delay chain! use it [delay=%d]\n", i);
115 dev_err(host->dev, "No valid delay chain! use default\n");
119 mci_writel(host, RINTSTS, ALL_INT_CLR);
123 static int dw_mci_starfive_parse_dt(struct dw_mci *host)
129 priv = devm_kzalloc(host->dev, sizeof(*priv), GFP_KERNEL);
133 ret = of_parse_phandle_with_fixed_args(host->dev->of_node,
136 dev_err(host->dev, "Failed to parse starfive,sysreg\n");
149 host->priv = priv;