Lines Matching refs: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 {
536 struct mmc_host *mmc_alloc_host(int extra, struct device *);
537 struct mmc_host *devm_mmc_alloc_host(struct device *dev, int extra);
538 int mmc_add_host(struct mmc_host *);
539 void mmc_remove_host(struct mmc_host *);
540 void mmc_free_host(struct mmc_host *);
541 void mmc_of_parse_clk_phase(struct mmc_host *host,
543 int mmc_of_parse(struct mmc_host *host);
544 int mmc_of_parse_voltage(struct mmc_host *host, u32 *mask);
546 static inline void *mmc_priv(struct mmc_host *host)
551 static inline struct mmc_host *mmc_from_priv(void *priv)
553 return container_of(priv, struct mmc_host, private);
562 void mmc_detect_change(struct mmc_host *, unsigned long delay);
563 void mmc_request_done(struct mmc_host *, struct mmc_request *);
564 void mmc_command_done(struct mmc_host *host, struct mmc_request *mrq);
566 void mmc_cqe_request_done(struct mmc_host *host, struct mmc_request *mrq);
572 static inline bool sdio_irq_claimed(struct mmc_host *host)
577 static inline void mmc_signal_sdio_irq(struct mmc_host *host)
585 void sdio_signal_irq(struct mmc_host *host);
588 int mmc_regulator_set_ocr(struct mmc_host *mmc,
591 int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios);
593 static inline int mmc_regulator_set_ocr(struct mmc_host *mmc,
600 static inline int mmc_regulator_set_vqmmc(struct mmc_host *mmc,
607 int mmc_regulator_get_supply(struct mmc_host *mmc);
608 int mmc_regulator_enable_vqmmc(struct mmc_host *mmc);
609 void mmc_regulator_disable_vqmmc(struct mmc_host *mmc);
611 static inline int mmc_card_is_removable(struct mmc_host *host)
616 static inline int mmc_card_keep_power(struct mmc_host *host)
621 static inline int mmc_card_wake_sdio_irq(struct mmc_host *host)
640 void mmc_retune_timer_stop(struct mmc_host *host);
642 static inline void mmc_retune_needed(struct mmc_host *host)
648 static inline bool mmc_can_retune(struct mmc_host *host)
653 static inline bool mmc_doing_retune(struct mmc_host *host)
658 static inline bool mmc_doing_tune(struct mmc_host *host)
668 static inline void mmc_debugfs_err_stats_inc(struct mmc_host *host,
676 int mmc_send_tuning(struct mmc_host *host, u32 opcode, int *cmd_error);
677 int mmc_send_abort_tuning(struct mmc_host *host, u32 opcode);