Lines Matching refs:reg
36 static inline u32 sdhci_be32bs_readl(struct sdhci_host *host, int reg)
38 return in_be32(host->ioaddr + reg);
41 static inline u16 sdhci_be32bs_readw(struct sdhci_host *host, int reg)
43 return in_be16(host->ioaddr + (reg ^ 0x2));
46 static inline u8 sdhci_be32bs_readb(struct sdhci_host *host, int reg)
48 return in_8(host->ioaddr + (reg ^ 0x3));
52 u32 val, int reg)
54 out_be32(host->ioaddr + reg, val);
58 u16 val, int reg)
61 int base = reg & ~0x3;
62 int shift = (reg & 0x2) * 8;
64 switch (reg) {
81 static inline void sdhci_be32bs_writeb(struct sdhci_host *host, u8 val, int reg)
83 int base = reg & ~0x3;
84 int shift = (reg & 0x3) * 8;