Lines Matching refs:mmc_host
97 struct mmc_host;
127 void (*post_req)(struct mmc_host *host, struct mmc_request *req,
129 void (*pre_req)(struct mmc_host *host, struct mmc_request *req);
130 void (*request)(struct mmc_host *host, struct mmc_request *req);
132 int (*request_atomic)(struct mmc_host *host,
149 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios);
158 int (*get_ro)(struct mmc_host *host);
167 int (*get_cd)(struct mmc_host *host);
169 void (*enable_sdio_irq)(struct mmc_host *host, int enable);
171 void (*ack_sdio_irq)(struct mmc_host *host);
174 void (*init_card)(struct mmc_host *host, struct mmc_card *card);
176 int (*start_signal_voltage_switch)(struct mmc_host *host, struct mmc_ios *ios);
179 int (*card_busy)(struct mmc_host *host);
182 int (*execute_tuning)(struct mmc_host *host, u32 opcode);
185 int (*prepare_hs400_tuning)(struct mmc_host *host, struct mmc_ios *ios);
188 int (*execute_hs400_tuning)(struct mmc_host *host, struct mmc_card *card);
191 int (*hs400_prepare_ddr)(struct mmc_host *host);
194 void (*hs400_downgrade)(struct mmc_host *host);
197 void (*hs400_complete)(struct mmc_host *host);
200 void (*hs400_enhanced_strobe)(struct mmc_host *host,
206 void (*hw_reset)(struct mmc_host *host);
207 void (*card_event)(struct mmc_host *host);
217 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);
324 struct mmc_host { struct
545 struct mmc_host *mmc_alloc_host(int extra, struct device *); argument
546 int mmc_add_host(struct mmc_host *);
547 void mmc_remove_host(struct mmc_host *);
548 void mmc_free_host(struct mmc_host *);
549 void mmc_of_parse_clk_phase(struct mmc_host *host,
551 int mmc_of_parse(struct mmc_host *host);
552 int mmc_of_parse_voltage(struct mmc_host *host, u32 *mask);
554 static inline void *mmc_priv(struct mmc_host *host) in mmc_priv()
559 static inline struct mmc_host *mmc_from_priv(void *priv) in mmc_from_priv()
561 return container_of(priv, struct mmc_host, private); in mmc_from_priv()
570 void mmc_detect_change(struct mmc_host *, unsigned long delay);
571 void mmc_request_done(struct mmc_host *, struct mmc_request *);
572 void mmc_command_done(struct mmc_host *host, struct mmc_request *mrq);
574 void mmc_cqe_request_done(struct mmc_host *host, struct mmc_request *mrq);
580 static inline bool sdio_irq_claimed(struct mmc_host *host) in sdio_irq_claimed()
585 static inline void mmc_signal_sdio_irq(struct mmc_host *host) in mmc_signal_sdio_irq()
593 void sdio_signal_irq(struct mmc_host *host);
596 int mmc_regulator_set_ocr(struct mmc_host *mmc,
599 int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios);
601 static inline int mmc_regulator_set_ocr(struct mmc_host *mmc, in mmc_regulator_set_ocr()
608 static inline int mmc_regulator_set_vqmmc(struct mmc_host *mmc, in mmc_regulator_set_vqmmc()
615 int mmc_regulator_get_supply(struct mmc_host *mmc);
617 static inline int mmc_card_is_removable(struct mmc_host *host) in mmc_card_is_removable()
622 static inline int mmc_card_keep_power(struct mmc_host *host) in mmc_card_keep_power()
627 static inline int mmc_card_wake_sdio_irq(struct mmc_host *host) in mmc_card_wake_sdio_irq()
646 void mmc_retune_timer_stop(struct mmc_host *host);
648 static inline void mmc_retune_needed(struct mmc_host *host) in mmc_retune_needed()
654 static inline bool mmc_can_retune(struct mmc_host *host) in mmc_can_retune()
659 static inline bool mmc_doing_retune(struct mmc_host *host) in mmc_doing_retune()
664 static inline bool mmc_doing_tune(struct mmc_host *host) in mmc_doing_tune()
674 static inline void mmc_debugfs_err_stats_inc(struct mmc_host *host, in mmc_debugfs_err_stats_inc()
680 int mmc_send_tuning(struct mmc_host *host, u32 opcode, int *cmd_error);
681 int mmc_send_abort_tuning(struct mmc_host *host, u32 opcode);