Lines Matching refs:host

54 static void pxav2_reset(struct sdhci_host *host, u8 mask)  in pxav2_reset()  argument
56 struct platform_device *pdev = to_platform_device(mmc_dev(host->mmc)); in pxav2_reset()
59 sdhci_reset(host, mask); in pxav2_reset()
69 tmp = readw(host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP); in pxav2_reset()
77 writew(tmp, host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP); in pxav2_reset()
81 tmp = readw(host->ioaddr + SD_FIFO_PARAM); in pxav2_reset()
83 writew(tmp, host->ioaddr + SD_FIFO_PARAM); in pxav2_reset()
85 tmp = readw(host->ioaddr + SD_FIFO_PARAM); in pxav2_reset()
88 writew(tmp, host->ioaddr + SD_FIFO_PARAM); in pxav2_reset()
93 static void pxav2_mmc_set_bus_width(struct sdhci_host *host, int width) in pxav2_mmc_set_bus_width() argument
98 ctrl = readb(host->ioaddr + SDHCI_HOST_CONTROL); in pxav2_mmc_set_bus_width()
99 tmp = readw(host->ioaddr + SD_CE_ATA_2); in pxav2_mmc_set_bus_width()
110 writew(tmp, host->ioaddr + SD_CE_ATA_2); in pxav2_mmc_set_bus_width()
111 writeb(ctrl, host->ioaddr + SDHCI_HOST_CONTROL); in pxav2_mmc_set_bus_width()
169 struct sdhci_host *host = NULL; in sdhci_pxav2_probe() local
175 host = sdhci_pltfm_init(pdev, NULL, 0); in sdhci_pxav2_probe()
176 if (IS_ERR(host)) in sdhci_pxav2_probe()
177 return PTR_ERR(host); in sdhci_pxav2_probe()
179 pltfm_host = sdhci_priv(host); in sdhci_pxav2_probe()
191 host->quirks = SDHCI_QUIRK_BROKEN_ADMA in sdhci_pxav2_probe()
202 host->quirks |= SDHCI_QUIRK_BROKEN_CARD_DETECTION; in sdhci_pxav2_probe()
203 host->mmc->caps |= MMC_CAP_NONREMOVABLE; in sdhci_pxav2_probe()
208 host->mmc->caps |= MMC_CAP_8_BIT_DATA; in sdhci_pxav2_probe()
211 host->quirks |= pdata->quirks; in sdhci_pxav2_probe()
213 host->mmc->caps |= pdata->host_caps; in sdhci_pxav2_probe()
215 host->mmc->pm_caps |= pdata->pm_caps; in sdhci_pxav2_probe()
218 host->ops = &pxav2_sdhci_ops; in sdhci_pxav2_probe()
220 ret = sdhci_add_host(host); in sdhci_pxav2_probe()
226 platform_set_drvdata(pdev, host); in sdhci_pxav2_probe()
240 struct sdhci_host *host = platform_get_drvdata(pdev); in sdhci_pxav2_remove() local
241 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_pxav2_remove()
243 sdhci_remove_host(host, 1); in sdhci_pxav2_remove()