Lines Matching refs:mmc_host
94 struct mmc_host;
105 void (*post_req)(struct mmc_host *host, struct mmc_request *req,
107 void (*pre_req)(struct mmc_host *host, struct mmc_request *req);
108 void (*request)(struct mmc_host *host, struct mmc_request *req);
110 int (*request_atomic)(struct mmc_host *host,
127 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios);
136 int (*get_ro)(struct mmc_host *host);
145 int (*get_cd)(struct mmc_host *host);
147 void (*enable_sdio_irq)(struct mmc_host *host, int enable);
149 void (*ack_sdio_irq)(struct mmc_host *host);
152 void (*init_card)(struct mmc_host *host, struct mmc_card *card);
154 int (*start_signal_voltage_switch)(struct mmc_host *host, struct mmc_ios *ios);
157 int (*card_busy)(struct mmc_host *host);
160 int (*execute_tuning)(struct mmc_host *host, u32 opcode);
163 int (*prepare_hs400_tuning)(struct mmc_host *host, struct mmc_ios *ios);
166 int (*hs400_prepare_ddr)(struct mmc_host *host);
169 void (*hs400_downgrade)(struct mmc_host *host);
172 void (*hs400_complete)(struct mmc_host *host);
175 void (*hs400_enhanced_strobe)(struct mmc_host *host,
181 void (*hw_reset)(struct mmc_host *host);
182 void (*card_event)(struct mmc_host *host);
192 int (*init_sd_express)(struct mmc_host *host, struct mmc_ios *ios);
197 int (*cqe_enable)(struct mmc_host *host, struct mmc_card *card);
199 void (*cqe_disable)(struct mmc_host *host);
204 int (*cqe_request)(struct mmc_host *host, struct mmc_request *mrq);
206 void (*cqe_post_req)(struct mmc_host *host, struct mmc_request *mrq);
212 void (*cqe_off)(struct mmc_host *host);
217 int (*cqe_wait_for_idle)(struct mmc_host *host);
223 bool (*cqe_timeout)(struct mmc_host *host, struct mmc_request *mrq,
229 void (*cqe_recovery_start)(struct mmc_host *host);
236 void (*cqe_recovery_finish)(struct mmc_host *host);
292 struct mmc_host { struct
506 struct mmc_host *mmc_alloc_host(int extra, struct device *); argument
507 int mmc_add_host(struct mmc_host *);
508 void mmc_remove_host(struct mmc_host *);
509 void mmc_free_host(struct mmc_host *);
510 void mmc_of_parse_clk_phase(struct mmc_host *host,
512 int mmc_of_parse(struct mmc_host *host);
513 int mmc_of_parse_voltage(struct mmc_host *host, u32 *mask);
515 static inline void *mmc_priv(struct mmc_host *host) in mmc_priv()
520 static inline struct mmc_host *mmc_from_priv(void *priv) in mmc_from_priv()
522 return container_of(priv, struct mmc_host, private); in mmc_from_priv()
531 void mmc_detect_change(struct mmc_host *, unsigned long delay);
532 void mmc_request_done(struct mmc_host *, struct mmc_request *);
533 void mmc_command_done(struct mmc_host *host, struct mmc_request *mrq);
535 void mmc_cqe_request_done(struct mmc_host *host, struct mmc_request *mrq);
541 static inline bool sdio_irq_claimed(struct mmc_host *host) in sdio_irq_claimed()
546 static inline void mmc_signal_sdio_irq(struct mmc_host *host) in mmc_signal_sdio_irq()
554 void sdio_signal_irq(struct mmc_host *host);
557 int mmc_regulator_set_ocr(struct mmc_host *mmc,
560 int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios);
562 static inline int mmc_regulator_set_ocr(struct mmc_host *mmc, in mmc_regulator_set_ocr()
569 static inline int mmc_regulator_set_vqmmc(struct mmc_host *mmc, in mmc_regulator_set_vqmmc()
576 int mmc_regulator_get_supply(struct mmc_host *mmc);
578 static inline int mmc_card_is_removable(struct mmc_host *host) in mmc_card_is_removable()
583 static inline int mmc_card_keep_power(struct mmc_host *host) in mmc_card_keep_power()
588 static inline int mmc_card_wake_sdio_irq(struct mmc_host *host) in mmc_card_wake_sdio_irq()
607 void mmc_retune_timer_stop(struct mmc_host *host);
609 static inline void mmc_retune_needed(struct mmc_host *host) in mmc_retune_needed()
615 static inline bool mmc_can_retune(struct mmc_host *host) in mmc_can_retune()
620 static inline bool mmc_doing_retune(struct mmc_host *host) in mmc_doing_retune()
625 static inline bool mmc_doing_tune(struct mmc_host *host) in mmc_doing_tune()
635 int mmc_send_tuning(struct mmc_host *host, u32 opcode, int *cmd_error);
636 int mmc_send_abort_tuning(struct mmc_host *host, u32 opcode);