Lines Matching refs:host
90 void (*post_req)(struct mmc_host *host, struct mmc_request *req,
92 void (*pre_req)(struct mmc_host *host, struct mmc_request *req,
94 void (*request)(struct mmc_host *host, struct mmc_request *req);
115 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios);
116 int (*get_ro)(struct mmc_host *host);
117 int (*get_cd)(struct mmc_host *host);
119 void (*enable_sdio_irq)(struct mmc_host *host, int enable);
122 void (*init_card)(struct mmc_host *host, struct mmc_card *card);
124 int (*start_signal_voltage_switch)(struct mmc_host *host, struct mmc_ios *ios);
127 int (*card_busy)(struct mmc_host *host);
130 int (*execute_tuning)(struct mmc_host *host, u32 opcode);
133 int (*prepare_hs400_tuning)(struct mmc_host *host, struct mmc_ios *ios);
135 void (*hw_reset)(struct mmc_host *host);
136 void (*card_event)(struct mmc_host *host);
380 int mmc_of_parse(struct mmc_host *host);
382 static inline void *mmc_priv(struct mmc_host *host) in mmc_priv() argument
384 return (void *)host->private; in mmc_priv()
387 #define mmc_host_is_spi(host) ((host)->caps & MMC_CAP_SPI) argument
393 int mmc_power_save_host(struct mmc_host *host);
394 int mmc_power_restore_host(struct mmc_host *host);
399 static inline void mmc_signal_sdio_irq(struct mmc_host *host) in mmc_signal_sdio_irq() argument
401 host->ops->enable_sdio_irq(host, 0); in mmc_signal_sdio_irq()
402 host->sdio_irq_pending = true; in mmc_signal_sdio_irq()
403 wake_up_process(host->sdio_irq_thread); in mmc_signal_sdio_irq()
406 void sdio_run_irqs(struct mmc_host *host);
431 static inline int mmc_card_is_removable(struct mmc_host *host) in mmc_card_is_removable() argument
433 return !(host->caps & MMC_CAP_NONREMOVABLE); in mmc_card_is_removable()
436 static inline int mmc_card_keep_power(struct mmc_host *host) in mmc_card_keep_power() argument
438 return host->pm_flags & MMC_PM_KEEP_POWER; in mmc_card_keep_power()
441 static inline int mmc_card_wake_sdio_irq(struct mmc_host *host) in mmc_card_wake_sdio_irq() argument
443 return host->pm_flags & MMC_PM_WAKE_SDIO_IRQ; in mmc_card_wake_sdio_irq()
446 static inline int mmc_host_cmd23(struct mmc_host *host) in mmc_host_cmd23() argument
448 return host->caps & MMC_CAP_CMD23; in mmc_host_cmd23()
451 static inline int mmc_boot_partition_access(struct mmc_host *host) in mmc_boot_partition_access() argument
453 return !(host->caps2 & MMC_CAP2_BOOTPART_NOACC); in mmc_boot_partition_access()
456 static inline int mmc_host_uhs(struct mmc_host *host) in mmc_host_uhs() argument
458 return host->caps & in mmc_host_uhs()
464 static inline int mmc_host_packed_wr(struct mmc_host *host) in mmc_host_packed_wr() argument
466 return host->caps2 & MMC_CAP2_PACKED_WR; in mmc_host_packed_wr()
470 void mmc_host_clk_hold(struct mmc_host *host);
471 void mmc_host_clk_release(struct mmc_host *host);
472 unsigned int mmc_host_clk_rate(struct mmc_host *host);
475 static inline void mmc_host_clk_hold(struct mmc_host *host) in mmc_host_clk_hold() argument
479 static inline void mmc_host_clk_release(struct mmc_host *host) in mmc_host_clk_release() argument
483 static inline unsigned int mmc_host_clk_rate(struct mmc_host *host) in mmc_host_clk_rate() argument
485 return host->ios.clock; in mmc_host_clk_rate()
491 return card->host->ios.timing == MMC_TIMING_SD_HS || in mmc_card_hs()
492 card->host->ios.timing == MMC_TIMING_MMC_HS; in mmc_card_hs()
497 return card->host->ios.timing >= MMC_TIMING_UHS_SDR12 && in mmc_card_uhs()
498 card->host->ios.timing <= MMC_TIMING_UHS_DDR50; in mmc_card_uhs()
503 return card->host->ios.timing == MMC_TIMING_MMC_HS200; in mmc_card_hs200()
508 return card->host->ios.timing == MMC_TIMING_MMC_DDR52; in mmc_card_ddr52()
513 return card->host->ios.timing == MMC_TIMING_MMC_HS400; in mmc_card_hs400()