Lines Matching defs:mmc_host

94 struct mmc_host;
124 void (*post_req)(struct mmc_host *host, struct mmc_request *req,
126 void (*pre_req)(struct mmc_host *host, struct mmc_request *req);
127 void (*request)(struct mmc_host *host, struct mmc_request *req);
129 int (*request_atomic)(struct mmc_host *host,
146 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios);
155 int (*get_ro)(struct mmc_host *host);
164 int (*get_cd)(struct mmc_host *host);
166 void (*enable_sdio_irq)(struct mmc_host *host, int enable);
168 void (*ack_sdio_irq)(struct mmc_host *host);
171 void (*init_card)(struct mmc_host *host, struct mmc_card *card);
173 int (*start_signal_voltage_switch)(struct mmc_host *host, struct mmc_ios *ios);
176 int (*card_busy)(struct mmc_host *host);
179 int (*execute_tuning)(struct mmc_host *host, u32 opcode);
182 int (*prepare_hs400_tuning)(struct mmc_host *host, struct mmc_ios *ios);
185 int (*execute_hs400_tuning)(struct mmc_host *host, struct mmc_card *card);
188 int (*prepare_sd_hs_tuning)(struct mmc_host *host, struct mmc_card *card);
191 int (*execute_sd_hs_tuning)(struct mmc_host *host, struct mmc_card *card);
194 int (*hs400_prepare_ddr)(struct mmc_host *host);
197 void (*hs400_downgrade)(struct mmc_host *host);
200 void (*hs400_complete)(struct mmc_host *host);
203 void (*hs400_enhanced_strobe)(struct mmc_host *host,
209 void (*card_hw_reset)(struct mmc_host *host);
210 void (*card_event)(struct mmc_host *host);
220 int (*init_sd_express)(struct mmc_host *host, struct mmc_ios *ios);
225 int (*cqe_enable)(struct mmc_host *host, struct mmc_card *card);
227 void (*cqe_disable)(struct mmc_host *host);
232 int (*cqe_request)(struct mmc_host *host, struct mmc_request *mrq);
234 void (*cqe_post_req)(struct mmc_host *host, struct mmc_request *mrq);
240 void (*cqe_off)(struct mmc_host *host);
245 int (*cqe_wait_for_idle)(struct mmc_host *host);
251 bool (*cqe_timeout)(struct mmc_host *host, struct mmc_request *mrq,
257 void (*cqe_recovery_start)(struct mmc_host *host);
264 void (*cqe_recovery_finish)(struct mmc_host *host);
320 struct mmc_host {
537 struct mmc_host *mmc_alloc_host(int extra, struct device *);
538 struct mmc_host *devm_mmc_alloc_host(struct device *dev, int extra);
539 int mmc_add_host(struct mmc_host *);
540 void mmc_remove_host(struct mmc_host *);
541 void mmc_free_host(struct mmc_host *);
544 int mmc_of_parse(struct mmc_host *host);
545 int mmc_of_parse_voltage(struct mmc_host *host, u32 *mask);
547 static inline void *mmc_priv(struct mmc_host *host)
552 static inline struct mmc_host *mmc_from_priv(void *priv)
554 return container_of(priv, struct mmc_host, private);
563 void mmc_detect_change(struct mmc_host *, unsigned long delay);
564 void mmc_request_done(struct mmc_host *, struct mmc_request *);
565 void mmc_command_done(struct mmc_host *host, struct mmc_request *mrq);
567 void mmc_cqe_request_done(struct mmc_host *host, struct mmc_request *mrq);
573 static inline bool sdio_irq_claimed(struct mmc_host *host)
578 static inline void mmc_signal_sdio_irq(struct mmc_host *host)
586 void sdio_signal_irq(struct mmc_host *host);
589 int mmc_regulator_set_ocr(struct mmc_host *mmc,
592 int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios);
594 static inline int mmc_regulator_set_ocr(struct mmc_host *mmc,
601 static inline int mmc_regulator_set_vqmmc(struct mmc_host *mmc,
608 int mmc_regulator_get_supply(struct mmc_host *mmc);
609 int mmc_regulator_enable_vqmmc(struct mmc_host *mmc);
610 void mmc_regulator_disable_vqmmc(struct mmc_host *mmc);
612 static inline int mmc_card_is_removable(struct mmc_host *host)
617 static inline int mmc_card_keep_power(struct mmc_host *host)
622 static inline int mmc_card_wake_sdio_irq(struct mmc_host *host)
641 void mmc_retune_timer_stop(struct mmc_host *host);
643 static inline void mmc_retune_needed(struct mmc_host *host)
649 static inline bool mmc_can_retune(struct mmc_host *host)
654 static inline bool mmc_doing_retune(struct mmc_host *host)
659 static inline bool mmc_doing_tune(struct mmc_host *host)
669 static inline void mmc_debugfs_err_stats_inc(struct mmc_host *host,
677 int mmc_send_tuning(struct mmc_host *host, u32 opcode, int *cmd_error);
678 int mmc_send_abort_tuning(struct mmc_host *host, u32 opcode);