Lines Matching refs:host
31 struct dwmci_host host; member
38 struct dwmci_host *host = &priv->host; in snps_dwmmc_clk_setup() local
51 host->bus_hz = clk_get_rate(&clk_ciu); in snps_dwmmc_clk_setup()
52 if (host->bus_hz < CLOCK_MIN) { in snps_dwmmc_clk_setup()
82 struct dwmci_host *host = &priv->host; in snps_dwmmc_of_to_plat() local
86 host->ioaddr = dev_read_addr_ptr(dev); in snps_dwmmc_of_to_plat()
97 host->fifoth_val = MSIZE(0x2) | in snps_dwmmc_of_to_plat()
102 host->buswidth = dev_read_u32_default(dev, "bus-width", 4); in snps_dwmmc_of_to_plat()
103 if (host->buswidth != 1 && host->buswidth != 4 && host->buswidth != 8) in snps_dwmmc_of_to_plat()
114 host->fifo_mode = dev_read_bool(dev, "fifo-mode"); in snps_dwmmc_of_to_plat()
115 host->name = dev->name; in snps_dwmmc_of_to_plat()
116 host->dev_index = 0; in snps_dwmmc_of_to_plat()
117 host->priv = priv; in snps_dwmmc_of_to_plat()
125 struct dwmci_host *host = &priv->host; in snps_dwmmc_getcd() local
127 return !(dwmci_readl(host, DWMCI_CDETECT) & 1); in snps_dwmmc_getcd()
139 struct dwmci_host *host = &priv->host; in snps_dwmmc_probe() local
152 clock_max = host->bus_hz; in snps_dwmmc_probe()
154 clock_max = min_t(unsigned int, host->bus_hz, priv->f_max); in snps_dwmmc_probe()
157 dwmci_setup_cfg(&plat->cfg, host, clock_max, CLOCK_MIN); in snps_dwmmc_probe()
158 host->mmc = &plat->mmc; in snps_dwmmc_probe()
160 ret = add_dwmci(host, clock_max, CLOCK_MIN); in snps_dwmmc_probe()
164 host->mmc->priv = &priv->host; in snps_dwmmc_probe()
165 upriv->mmc = host->mmc; in snps_dwmmc_probe()
166 host->mmc->dev = dev; in snps_dwmmc_probe()