Lines Matching refs:host

259 	u32	(*read_l)(struct sdhci_host *host, int reg);
260 u16 (*read_w)(struct sdhci_host *host, int reg);
261 u8 (*read_b)(struct sdhci_host *host, int reg);
262 void (*write_l)(struct sdhci_host *host, u32 val, int reg);
263 void (*write_w)(struct sdhci_host *host, u16 val, int reg);
264 void (*write_b)(struct sdhci_host *host, u8 val, int reg);
266 int (*get_cd)(struct sdhci_host *host);
267 void (*set_control_reg)(struct sdhci_host *host);
268 int (*set_ios_post)(struct sdhci_host *host);
269 void (*set_clock)(struct sdhci_host *host, u32 div);
270 int (*platform_execute_tuning)(struct mmc *host, u8 opcode);
271 void (*set_delay)(struct sdhci_host *host);
272 int (*deferred_probe)(struct sdhci_host *host);
342 static inline void sdhci_writel(struct sdhci_host *host, u32 val, int reg) in sdhci_writel() argument
344 if (unlikely(host->ops->write_l)) in sdhci_writel()
345 host->ops->write_l(host, val, reg); in sdhci_writel()
347 writel(val, host->ioaddr + reg); in sdhci_writel()
350 static inline void sdhci_writew(struct sdhci_host *host, u16 val, int reg) in sdhci_writew() argument
352 if (unlikely(host->ops->write_w)) in sdhci_writew()
353 host->ops->write_w(host, val, reg); in sdhci_writew()
355 writew(val, host->ioaddr + reg); in sdhci_writew()
358 static inline void sdhci_writeb(struct sdhci_host *host, u8 val, int reg) in sdhci_writeb() argument
360 if (unlikely(host->ops->write_b)) in sdhci_writeb()
361 host->ops->write_b(host, val, reg); in sdhci_writeb()
363 writeb(val, host->ioaddr + reg); in sdhci_writeb()
366 static inline u32 sdhci_readl(struct sdhci_host *host, int reg) in sdhci_readl() argument
368 if (unlikely(host->ops->read_l)) in sdhci_readl()
369 return host->ops->read_l(host, reg); in sdhci_readl()
371 return readl(host->ioaddr + reg); in sdhci_readl()
374 static inline u16 sdhci_readw(struct sdhci_host *host, int reg) in sdhci_readw() argument
376 if (unlikely(host->ops->read_w)) in sdhci_readw()
377 return host->ops->read_w(host, reg); in sdhci_readw()
379 return readw(host->ioaddr + reg); in sdhci_readw()
382 static inline u8 sdhci_readb(struct sdhci_host *host, int reg) in sdhci_readb() argument
384 if (unlikely(host->ops->read_b)) in sdhci_readb()
385 return host->ops->read_b(host, reg); in sdhci_readb()
387 return readb(host->ioaddr + reg); in sdhci_readb()
392 static inline void sdhci_writel(struct sdhci_host *host, u32 val, int reg) in sdhci_writel() argument
394 writel(val, host->ioaddr + reg); in sdhci_writel()
397 static inline void sdhci_writew(struct sdhci_host *host, u16 val, int reg) in sdhci_writew() argument
399 writew(val, host->ioaddr + reg); in sdhci_writew()
402 static inline void sdhci_writeb(struct sdhci_host *host, u8 val, int reg) in sdhci_writeb() argument
404 writeb(val, host->ioaddr + reg); in sdhci_writeb()
406 static inline u32 sdhci_readl(struct sdhci_host *host, int reg) in sdhci_readl() argument
408 return readl(host->ioaddr + reg); in sdhci_readl()
411 static inline u16 sdhci_readw(struct sdhci_host *host, int reg) in sdhci_readw() argument
413 return readw(host->ioaddr + reg); in sdhci_readw()
416 static inline u8 sdhci_readb(struct sdhci_host *host, int reg) in sdhci_readb() argument
418 return readb(host->ioaddr + reg); in sdhci_readb()
455 int sdhci_setup_cfg(struct mmc_config *cfg, struct sdhci_host *host,
486 int add_sdhci(struct sdhci_host *host, u32 f_max, u32 f_min);
489 void sdhci_set_uhs_timing(struct sdhci_host *host);
503 void sdhci_set_control_reg(struct sdhci_host *host);