Lines Matching refs:host
31 struct dwmci_host host;
38 struct dwmci_host *host = &priv->host;
51 host->bus_hz = clk_get_rate(&clk_ciu);
52 if (host->bus_hz < CLOCK_MIN) {
78 struct dwmci_host *host = &priv->host;
82 host->ioaddr = dev_read_addr_ptr(dev);
93 host->fifoth_val = MSIZE(0x2) |
98 host->buswidth = dev_read_u32_default(dev, "bus-width", 4);
99 if (host->buswidth != 1 && host->buswidth != 4 && host->buswidth != 8)
104 * host->bus_hz in probe() instead.
110 host->fifo_mode = dev_read_bool(dev, "fifo-mode");
111 host->name = dev->name;
112 host->dev_index = 0;
113 host->priv = priv;
121 struct dwmci_host *host = &priv->host;
123 return !(dwmci_readl(host, DWMCI_CDETECT) & 1);
135 struct dwmci_host *host = &priv->host;
148 clock_max = host->bus_hz;
150 clock_max = min_t(unsigned int, host->bus_hz, priv->f_max);
153 dwmci_setup_cfg(&plat->cfg, host, clock_max, CLOCK_MIN);
154 host->mmc = &plat->mmc;
156 ret = add_dwmci(host, clock_max, CLOCK_MIN);
160 host->mmc->priv = &priv->host;
161 upriv->mmc = host->mmc;
162 host->mmc->dev = dev;