Lines Matching refs:host

54 	struct sdhci_host host;  member
59 static inline struct bcm2835_sdhci_host *to_bcm(struct sdhci_host *host) in to_bcm() argument
61 return (struct bcm2835_sdhci_host *)host; in to_bcm()
64 static inline void bcm2835_sdhci_raw_writel(struct sdhci_host *host, u32 val, in bcm2835_sdhci_raw_writel() argument
67 struct bcm2835_sdhci_host *bcm_host = to_bcm(host); in bcm2835_sdhci_raw_writel()
82 writel(val, host->ioaddr + reg); in bcm2835_sdhci_raw_writel()
86 static inline u32 bcm2835_sdhci_raw_readl(struct sdhci_host *host, int reg) in bcm2835_sdhci_raw_readl() argument
88 return readl(host->ioaddr + reg); in bcm2835_sdhci_raw_readl()
91 static void bcm2835_sdhci_writel(struct sdhci_host *host, u32 val, int reg) in bcm2835_sdhci_writel() argument
93 bcm2835_sdhci_raw_writel(host, val, reg); in bcm2835_sdhci_writel()
96 static void bcm2835_sdhci_writew(struct sdhci_host *host, u16 val, int reg) in bcm2835_sdhci_writew() argument
100 bcm2835_sdhci_raw_readl(host, reg & ~3); in bcm2835_sdhci_writew()
109 bcm2835_sdhci_raw_writel(host, newval, reg & ~3); in bcm2835_sdhci_writew()
112 static void bcm2835_sdhci_writeb(struct sdhci_host *host, u8 val, int reg) in bcm2835_sdhci_writeb() argument
114 u32 oldval = bcm2835_sdhci_raw_readl(host, reg & ~3); in bcm2835_sdhci_writeb()
120 bcm2835_sdhci_raw_writel(host, newval, reg & ~3); in bcm2835_sdhci_writeb()
123 static u32 bcm2835_sdhci_readl(struct sdhci_host *host, int reg) in bcm2835_sdhci_readl() argument
125 u32 val = bcm2835_sdhci_raw_readl(host, reg); in bcm2835_sdhci_readl()
130 static u16 bcm2835_sdhci_readw(struct sdhci_host *host, int reg) in bcm2835_sdhci_readw() argument
132 u32 val = bcm2835_sdhci_raw_readl(host, (reg & ~3)); in bcm2835_sdhci_readw()
140 static u8 bcm2835_sdhci_readb(struct sdhci_host *host, int reg) in bcm2835_sdhci_readb() argument
142 u32 val = bcm2835_sdhci_raw_readl(host, (reg & ~3)); in bcm2835_sdhci_readb()
171 struct sdhci_host *host = &priv->host; in bcm2835_sdhci_probe() local
203 host->name = dev->name; in bcm2835_sdhci_probe()
204 host->ioaddr = (void *)base; in bcm2835_sdhci_probe()
205 host->quirks = SDHCI_QUIRK_BROKEN_VOLTAGE | SDHCI_QUIRK_BROKEN_R1B | in bcm2835_sdhci_probe()
207 host->max_clk = emmc_freq; in bcm2835_sdhci_probe()
208 host->voltages = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195; in bcm2835_sdhci_probe()
209 host->ops = &bcm2835_ops; in bcm2835_sdhci_probe()
211 ret = sdhci_setup_cfg(&plat->cfg, host, emmc_freq, MIN_FREQ); in bcm2835_sdhci_probe()
218 host->mmc = &plat->mmc; in bcm2835_sdhci_probe()
219 host->mmc->priv = host; in bcm2835_sdhci_probe()