Lines Matching refs:host
32 struct dwmci_host host; member
38 static uint rockchip_dwmmc_get_mmc_clk(struct dwmci_host *host, uint freq) in rockchip_dwmmc_get_mmc_clk() argument
40 struct udevice *dev = host->priv; in rockchip_dwmmc_get_mmc_clk()
57 struct dwmci_host *host = &priv->host; in rockchip_dwmmc_of_to_plat() local
59 host->name = dev->name; in rockchip_dwmmc_of_to_plat()
60 host->ioaddr = dev_read_addr_ptr(dev); in rockchip_dwmmc_of_to_plat()
61 host->buswidth = dev_read_u32_default(dev, "bus-width", 4); in rockchip_dwmmc_of_to_plat()
62 host->get_mmc_clk = rockchip_dwmmc_get_mmc_clk; in rockchip_dwmmc_of_to_plat()
63 host->priv = dev; in rockchip_dwmmc_of_to_plat()
67 host->dev_index = 0; in rockchip_dwmmc_of_to_plat()
69 host->dev_index = 1; in rockchip_dwmmc_of_to_plat()
107 struct dwmci_host *host = &priv->host; in rockchip_dwmmc_probe() local
113 host->name = dev->name; in rockchip_dwmmc_probe()
114 host->ioaddr = map_sysmem(dtplat->reg[0], dtplat->reg[1]); in rockchip_dwmmc_probe()
115 host->buswidth = dtplat->bus_width; in rockchip_dwmmc_probe()
116 host->get_mmc_clk = rockchip_dwmmc_get_mmc_clk; in rockchip_dwmmc_probe()
117 host->priv = dev; in rockchip_dwmmc_probe()
118 host->dev_index = 0; in rockchip_dwmmc_probe()
132 host->fifoth_val = MSIZE(0x2) | in rockchip_dwmmc_probe()
136 host->fifo_mode = priv->fifo_mode; in rockchip_dwmmc_probe()
147 dwmci_setup_cfg(&plat->cfg, host, priv->minmax[1], priv->minmax[0]); in rockchip_dwmmc_probe()
148 host->mmc = &plat->mmc; in rockchip_dwmmc_probe()
149 host->mmc->priv = &priv->host; in rockchip_dwmmc_probe()
150 host->mmc->dev = dev; in rockchip_dwmmc_probe()
151 upriv->mmc = host->mmc; in rockchip_dwmmc_probe()