Lines Matching refs:mmc_host

140 struct mmc_host;
170 void (*post_req)(struct mmc_host *host, struct mmc_request *req,
172 void (*pre_req)(struct mmc_host *host, struct mmc_request *req);
173 void (*request)(struct mmc_host *host, struct mmc_request *req);
175 int (*request_atomic)(struct mmc_host *host,
192 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios);
201 int (*get_ro)(struct mmc_host *host);
210 int (*get_cd)(struct mmc_host *host);
212 void (*enable_sdio_irq)(struct mmc_host *host, int enable);
214 void (*ack_sdio_irq)(struct mmc_host *host);
217 void (*init_card)(struct mmc_host *host, struct mmc_card *card);
219 int (*start_signal_voltage_switch)(struct mmc_host *host, struct mmc_ios *ios);
222 int (*card_busy)(struct mmc_host *host);
225 int (*execute_tuning)(struct mmc_host *host, u32 opcode);
228 int (*prepare_hs400_tuning)(struct mmc_host *host, struct mmc_ios *ios);
231 int (*execute_hs400_tuning)(struct mmc_host *host, struct mmc_card *card);
234 int (*prepare_sd_hs_tuning)(struct mmc_host *host, struct mmc_card *card);
237 int (*execute_sd_hs_tuning)(struct mmc_host *host, struct mmc_card *card);
240 int (*hs400_prepare_ddr)(struct mmc_host *host);
243 void (*hs400_downgrade)(struct mmc_host *host);
246 void (*hs400_complete)(struct mmc_host *host);
249 void (*hs400_enhanced_strobe)(struct mmc_host *host,
255 void (*card_hw_reset)(struct mmc_host *host);
256 void (*card_event)(struct mmc_host *host);
266 int (*init_sd_express)(struct mmc_host *host, struct mmc_ios *ios);
274 int (*uhs2_control)(struct mmc_host *host, enum sd_uhs2_operation op);
279 int (*cqe_enable)(struct mmc_host *host, struct mmc_card *card);
281 void (*cqe_disable)(struct mmc_host *host);
286 int (*cqe_request)(struct mmc_host *host, struct mmc_request *mrq);
288 void (*cqe_post_req)(struct mmc_host *host, struct mmc_request *mrq);
294 void (*cqe_off)(struct mmc_host *host);
299 int (*cqe_wait_for_idle)(struct mmc_host *host);
305 bool (*cqe_timeout)(struct mmc_host *host, struct mmc_request *mrq,
311 void (*cqe_recovery_start)(struct mmc_host *host);
318 void (*cqe_recovery_finish)(struct mmc_host *host);
351 struct mmc_host { struct
573 struct mmc_host *mmc_alloc_host(int extra, struct device *); argument
574 struct mmc_host *devm_mmc_alloc_host(struct device *dev, int extra);
575 int mmc_add_host(struct mmc_host *);
576 void mmc_remove_host(struct mmc_host *);
577 void mmc_free_host(struct mmc_host *);
580 int mmc_of_parse(struct mmc_host *host);
581 int mmc_of_parse_voltage(struct mmc_host *host, u32 *mask);
583 static inline void *mmc_priv(struct mmc_host *host) in mmc_priv()
588 static inline struct mmc_host *mmc_from_priv(void *priv) in mmc_from_priv()
590 return container_of(priv, struct mmc_host, private); in mmc_from_priv()
594 static inline struct mmc_host *
597 return container_of(profile, struct mmc_host, crypto_profile); in mmc_from_crypto_profile()
607 void mmc_detect_change(struct mmc_host *, unsigned long delay);
608 void mmc_request_done(struct mmc_host *, struct mmc_request *);
609 void mmc_command_done(struct mmc_host *host, struct mmc_request *mrq);
611 void mmc_cqe_request_done(struct mmc_host *host, struct mmc_request *mrq);
617 static inline bool sdio_irq_claimed(struct mmc_host *host) in sdio_irq_claimed()
622 static inline void mmc_signal_sdio_irq(struct mmc_host *host) in mmc_signal_sdio_irq()
630 void sdio_signal_irq(struct mmc_host *host);
633 int mmc_regulator_set_ocr(struct mmc_host *mmc,
636 int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios);
637 int mmc_regulator_set_vqmmc2(struct mmc_host *mmc, struct mmc_ios *ios);
639 static inline int mmc_regulator_set_ocr(struct mmc_host *mmc, in mmc_regulator_set_ocr()
646 static inline int mmc_regulator_set_vqmmc(struct mmc_host *mmc, in mmc_regulator_set_vqmmc()
652 static inline int mmc_regulator_set_vqmmc2(struct mmc_host *mmc, in mmc_regulator_set_vqmmc2()
659 int mmc_regulator_get_supply(struct mmc_host *mmc);
660 int mmc_regulator_enable_vqmmc(struct mmc_host *mmc);
661 void mmc_regulator_disable_vqmmc(struct mmc_host *mmc);
663 static inline int mmc_card_is_removable(struct mmc_host *host) in mmc_card_is_removable()
668 static inline int mmc_card_keep_power(struct mmc_host *host) in mmc_card_keep_power()
673 static inline int mmc_card_wake_sdio_irq(struct mmc_host *host) in mmc_card_wake_sdio_irq()
692 static inline bool mmc_card_uhs2(struct mmc_host *host) in mmc_card_uhs2()
700 void mmc_retune_timer_stop(struct mmc_host *host);
702 static inline void mmc_retune_needed(struct mmc_host *host) in mmc_retune_needed()
708 static inline bool mmc_can_retune(struct mmc_host *host) in mmc_can_retune()
713 static inline bool mmc_doing_retune(struct mmc_host *host) in mmc_doing_retune()
718 static inline bool mmc_doing_tune(struct mmc_host *host) in mmc_doing_tune()
728 static inline void mmc_debugfs_err_stats_inc(struct mmc_host *host, in mmc_debugfs_err_stats_inc()
734 static inline int mmc_card_uhs2_hd_mode(struct mmc_host *host) in mmc_card_uhs2_hd_mode()
743 int mmc_send_tuning(struct mmc_host *host, u32 opcode, int *cmd_error);
744 int mmc_send_abort_tuning(struct mmc_host *host, u32 opcode);