Home
last modified time | relevance | path

Searched refs:mmc_host (Results 1 – 25 of 170) sorted by relevance

1234567

/OK3568_Linux_fs/kernel/drivers/mmc/core/
H A Dcore.h14 struct mmc_host;
23 void (*remove)(struct mmc_host *);
24 void (*detect)(struct mmc_host *);
25 int (*pre_suspend)(struct mmc_host *);
26 int (*suspend)(struct mmc_host *);
27 int (*resume)(struct mmc_host *);
28 int (*runtime_suspend)(struct mmc_host *);
29 int (*runtime_resume)(struct mmc_host *);
30 int (*alive)(struct mmc_host *);
31 int (*shutdown)(struct mmc_host *);
[all …]
H A Dpwrseq.h12 struct mmc_host;
17 void (*pre_power_on)(struct mmc_host *host);
18 void (*post_power_on)(struct mmc_host *host);
19 void (*power_off)(struct mmc_host *host);
20 void (*reset)(struct mmc_host *host);
35 int mmc_pwrseq_alloc(struct mmc_host *host);
36 void mmc_pwrseq_pre_power_on(struct mmc_host *host);
37 void mmc_pwrseq_post_power_on(struct mmc_host *host);
38 void mmc_pwrseq_power_off(struct mmc_host *host);
39 void mmc_pwrseq_reset(struct mmc_host *host);
[all …]
H A Dhost.h16 void mmc_retune_enable(struct mmc_host *host);
17 void mmc_retune_disable(struct mmc_host *host);
18 void mmc_retune_hold(struct mmc_host *host);
19 void mmc_retune_release(struct mmc_host *host);
20 int mmc_retune(struct mmc_host *host);
21 void mmc_retune_pause(struct mmc_host *host);
22 void mmc_retune_unpause(struct mmc_host *host);
24 static inline void mmc_retune_hold_now(struct mmc_host *host) in mmc_retune_hold_now()
30 static inline void mmc_retune_recheck(struct mmc_host *host) in mmc_retune_recheck()
36 static inline int mmc_host_cmd23(struct mmc_host *host) in mmc_host_cmd23()
[all …]
H A Dhost.c34 #define cls_dev_to_mmc_host(d) container_of(d, struct mmc_host, class_dev)
41 struct mmc_host *host = cls_dev_to_mmc_host(dev); in mmc_host_class_prepare()
59 struct mmc_host *host = cls_dev_to_mmc_host(dev); in mmc_host_class_complete()
76 struct mmc_host *host = cls_dev_to_mmc_host(dev); in mmc_host_classdev_release()
85 struct mmc_host *host = cls_dev_to_mmc_host(dev); in mmc_host_classdev_shutdown()
108 void mmc_retune_enable(struct mmc_host *host) in mmc_retune_enable()
120 void mmc_retune_pause(struct mmc_host *host) in mmc_retune_pause()
130 void mmc_retune_unpause(struct mmc_host *host) in mmc_retune_unpause()
139 void mmc_retune_disable(struct mmc_host *host) in mmc_retune_disable()
148 void mmc_retune_timer_stop(struct mmc_host *host) in mmc_retune_timer_stop()
[all …]
H A Dcore.c80 static void mmc_should_fail_request(struct mmc_host *host, in mmc_should_fail_request()
104 static inline void mmc_should_fail_request(struct mmc_host *host, in mmc_should_fail_request()
117 void mmc_command_done(struct mmc_host *host, struct mmc_request *mrq) in mmc_command_done()
137 void mmc_request_done(struct mmc_host *host, struct mmc_request *mrq) in mmc_request_done()
215 static void __mmc_start_request(struct mmc_host *host, struct mmc_request *mrq) in __mmc_start_request()
263 static void mmc_mrq_pr_debug(struct mmc_host *host, struct mmc_request *mrq, in mmc_mrq_pr_debug()
297 static int mmc_mrq_prep(struct mmc_host *host, struct mmc_request *mrq) in mmc_mrq_prep()
334 int mmc_start_request(struct mmc_host *host, struct mmc_request *mrq) in mmc_start_request()
365 static inline void mmc_wait_ongoing_tfr_cmd(struct mmc_host *host) in mmc_wait_ongoing_tfr_cmd()
377 static int __mmc_start_req(struct mmc_host *host, struct mmc_request *mrq) in __mmc_start_req()
[all …]
H A Dmmc_ops.h19 struct mmc_host;
23 int mmc_deselect_cards(struct mmc_host *host);
24 int mmc_set_dsr(struct mmc_host *host);
25 int mmc_go_idle(struct mmc_host *host);
26 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
31 int mmc_send_cid(struct mmc_host *host, u32 *cid);
32 int mmc_spi_read_ocr(struct mmc_host *host, int highcap, u32 *ocrp);
33 int mmc_spi_set_crc(struct mmc_host *host, int use_crc);
H A Dslot-gpio.c33 struct mmc_host *host = dev_id; in mmc_gpio_cd_irqt()
47 int mmc_gpio_alloc(struct mmc_host *host) in mmc_gpio_alloc()
69 int mmc_gpio_get_ro(struct mmc_host *host) in mmc_gpio_get_ro()
80 int mmc_gpio_get_cd(struct mmc_host *host) in mmc_gpio_get_cd()
95 void mmc_gpiod_request_cd_irq(struct mmc_host *host) in mmc_gpiod_request_cd_irq()
129 int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on) in mmc_gpio_set_cd_wake()
153 void mmc_gpio_set_cd_isr(struct mmc_host *host, in mmc_gpio_set_cd_isr()
176 int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, in mmc_gpiod_request_cd()
208 bool mmc_can_gpio_cd(struct mmc_host *host) in mmc_can_gpio_cd()
225 int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id, in mmc_gpiod_request_ro()
[all …]
H A Dcrypto.h11 struct mmc_host;
17 void mmc_crypto_set_initial_state(struct mmc_host *host);
19 void mmc_crypto_setup_queue(struct request_queue *q, struct mmc_host *host);
25 static inline void mmc_crypto_set_initial_state(struct mmc_host *host) in mmc_crypto_set_initial_state()
30 struct mmc_host *host) in mmc_crypto_setup_queue()
H A Dsd_ops.h14 struct mmc_host;
17 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
18 int mmc_send_if_cond(struct mmc_host *host, u32 ocr);
19 int mmc_send_relative_addr(struct mmc_host *host, unsigned int *rca);
24 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card);
H A Dpwrseq.c21 int mmc_pwrseq_alloc(struct mmc_host *host) in mmc_pwrseq_alloc()
54 void mmc_pwrseq_pre_power_on(struct mmc_host *host) in mmc_pwrseq_pre_power_on()
62 void mmc_pwrseq_post_power_on(struct mmc_host *host) in mmc_pwrseq_post_power_on()
70 void mmc_pwrseq_power_off(struct mmc_host *host) in mmc_pwrseq_power_off()
78 void mmc_pwrseq_reset(struct mmc_host *host) in mmc_pwrseq_reset()
86 void mmc_pwrseq_free(struct mmc_host *host) in mmc_pwrseq_free()
H A Dsdio_irq.c30 static int sdio_get_pending_irqs(struct mmc_host *host, u8 *pending) in sdio_get_pending_irqs()
58 static int process_sdio_pending_irqs(struct mmc_host *host) in process_sdio_pending_irqs()
113 static void sdio_run_irqs(struct mmc_host *host) in sdio_run_irqs()
126 struct mmc_host *host = in sdio_irq_work()
127 container_of(work, struct mmc_host, sdio_irq_work.work); in sdio_irq_work()
132 void sdio_signal_irq(struct mmc_host *host) in sdio_signal_irq()
141 struct mmc_host *host = _host; in sdio_irq_thread()
226 struct mmc_host *host = card->host; in sdio_card_irq_get()
251 struct mmc_host *host = card->host; in sdio_card_irq_put()
H A Dmmc_ops.c86 static int _mmc_select_card(struct mmc_host *host, struct mmc_card *card) in _mmc_select_card()
109 int mmc_deselect_cards(struct mmc_host *host) in mmc_deselect_cards()
122 int mmc_set_dsr(struct mmc_host *host) in mmc_set_dsr()
134 int mmc_go_idle(struct mmc_host *host) in mmc_go_idle()
173 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_op_cond()
247 mmc_send_cxd_native(struct mmc_host *host, u32 arg, u32 *cxd, int opcode) in mmc_send_cxd_native()
270 mmc_send_cxd_data(struct mmc_card *card, struct mmc_host *host, in mmc_send_cxd_data()
349 static int mmc_spi_send_cid(struct mmc_host *host, u32 *cid) in mmc_spi_send_cid()
370 int mmc_send_cid(struct mmc_host *host, u32 *cid) in mmc_send_cid()
408 int mmc_spi_read_ocr(struct mmc_host *host, int highcap, u32 *ocrp) in mmc_spi_read_ocr()
[all …]
H A Dsd.h9 struct mmc_host;
12 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
13 int mmc_sd_get_csd(struct mmc_host *host, struct mmc_card *card);
15 int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card,
H A Dqueue.c41 static inline bool mmc_cqe_can_dcmd(struct mmc_host *host) in mmc_cqe_can_dcmd()
46 static enum mmc_issue_type mmc_cqe_issue_type(struct mmc_host *host, in mmc_cqe_issue_type()
64 struct mmc_host *host = mq->card->host; in mmc_issue_type()
103 struct mmc_host *host = mq->card->host; in mmc_cqe_timed_out()
129 struct mmc_host *host = card->host; in mmc_mq_timed_out()
145 struct mmc_host *host = mq->card->host; in mmc_mq_recovery_handler()
200 static unsigned int mmc_get_max_segments(struct mmc_host *host) in mmc_get_max_segments()
217 struct mmc_host *host = card->host; in __mmc_init_request()
255 struct mmc_host *host = card->host; in mmc_mq_queue_rq()
371 struct mmc_host *host = card->host; in mmc_setup_queue()
[all …]
H A Ddebugfs.c54 struct mmc_host *host = s->private; in mmc_ios_show()
200 struct mmc_host *host = data; in mmc_clock_opt_get()
209 struct mmc_host *host = data; in mmc_clock_opt_set()
225 void mmc_add_host_debugfs(struct mmc_host *host) in mmc_add_host_debugfs()
247 void mmc_remove_host_debugfs(struct mmc_host *host) in mmc_remove_host_debugfs()
254 struct mmc_host *host = card->host; in mmc_add_card_debugfs()
/OK3568_Linux_fs/kernel/include/linux/mmc/
H A Dhost.h84 struct mmc_host;
95 void (*post_req)(struct mmc_host *host, struct mmc_request *req,
97 void (*pre_req)(struct mmc_host *host, struct mmc_request *req);
98 void (*request)(struct mmc_host *host, struct mmc_request *req);
100 int (*request_atomic)(struct mmc_host *host,
117 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios);
126 int (*get_ro)(struct mmc_host *host);
135 int (*get_cd)(struct mmc_host *host);
137 void (*enable_sdio_irq)(struct mmc_host *host, int enable);
139 void (*ack_sdio_irq)(struct mmc_host *host);
[all …]
H A Dslot-gpio.h14 struct mmc_host;
16 int mmc_gpio_get_ro(struct mmc_host *host);
17 int mmc_gpio_get_cd(struct mmc_host *host);
18 int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id,
21 int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id,
23 void mmc_gpio_set_cd_isr(struct mmc_host *host,
25 int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on);
26 void mmc_gpiod_request_cd_irq(struct mmc_host *host);
27 bool mmc_can_gpio_cd(struct mmc_host *host);
28 bool mmc_can_gpio_ro(struct mmc_host *host);
H A Dcore.h143 struct mmc_host;
159 struct mmc_host *host;
174 void mmc_wait_for_req(struct mmc_host *host, struct mmc_request *mrq);
175 int mmc_wait_for_cmd(struct mmc_host *host, struct mmc_command *cmd,
178 int mmc_hw_reset(struct mmc_host *host);
179 int mmc_sw_reset(struct mmc_host *host);
/OK3568_Linux_fs/kernel/drivers/mmc/host/
H A Dcqhci.h214 struct mmc_host;
221 struct mmc_host *mmc;
280 void (*dumpregs)(struct mmc_host *mmc);
283 void (*enable)(struct mmc_host *mmc);
284 void (*disable)(struct mmc_host *mmc, bool recovery);
285 void (*update_dcmd_desc)(struct mmc_host *mmc, struct mmc_request *mrq,
287 void (*pre_enable)(struct mmc_host *mmc);
288 void (*post_disable)(struct mmc_host *mmc);
313 irqreturn_t cqhci_irq(struct mmc_host *mmc, u32 intmask, int cmd_error,
315 int cqhci_init(struct cqhci_host *cq_host, struct mmc_host *mmc, bool dma64);
[all …]
H A Dmmc_hsq.c22 struct mmc_host *mmc = hsq->mmc; in mmc_hsq_retry_handler()
29 struct mmc_host *mmc = hsq->mmc; in mmc_hsq_pump_requests()
153 bool mmc_hsq_finalize_request(struct mmc_host *mmc, struct mmc_request *mrq) in mmc_hsq_finalize_request()
180 static void mmc_hsq_recovery_start(struct mmc_host *mmc) in mmc_hsq_recovery_start()
192 static void mmc_hsq_recovery_finish(struct mmc_host *mmc) in mmc_hsq_recovery_finish()
212 static int mmc_hsq_request(struct mmc_host *mmc, struct mmc_request *mrq) in mmc_hsq_request()
248 static void mmc_hsq_post_req(struct mmc_host *mmc, struct mmc_request *mrq) in mmc_hsq_post_req()
271 static int mmc_hsq_wait_for_idle(struct mmc_host *mmc) in mmc_hsq_wait_for_idle()
282 static void mmc_hsq_disable(struct mmc_host *mmc) in mmc_hsq_disable()
312 static int mmc_hsq_enable(struct mmc_host *mmc, struct mmc_card *card) in mmc_hsq_enable()
[all …]
H A Dmeson-mx-sdhc-mmc.c38 void (*init_hw)(struct mmc_host *mmc);
39 void (*set_pdma)(struct mmc_host *mmc);
40 void (*wait_before_send)(struct mmc_host *mmc);
45 struct mmc_host *mmc;
68 static void meson_mx_sdhc_hw_reset(struct mmc_host *mmc) in meson_mx_sdhc_hw_reset()
82 static void meson_mx_sdhc_clear_fifo(struct mmc_host *mmc) in meson_mx_sdhc_clear_fifo()
105 static void meson_mx_sdhc_wait_cmd_ready(struct mmc_host *mmc) in meson_mx_sdhc_wait_cmd_ready()
134 static void meson_mx_sdhc_start_cmd(struct mmc_host *mmc, in meson_mx_sdhc_start_cmd()
239 static void meson_mx_sdhc_disable_clks(struct mmc_host *mmc) in meson_mx_sdhc_disable_clks()
251 static int meson_mx_sdhc_enable_clks(struct mmc_host *mmc) in meson_mx_sdhc_enable_clks()
[all …]
H A Dmmc_hsq.h10 struct mmc_host *mmc;
26 int mmc_hsq_init(struct mmc_hsq *hsq, struct mmc_host *mmc);
27 void mmc_hsq_suspend(struct mmc_host *mmc);
28 int mmc_hsq_resume(struct mmc_host *mmc);
29 bool mmc_hsq_finalize_request(struct mmc_host *mmc, struct mmc_request *mrq);
/OK3568_Linux_fs/kernel/arch/mips/alchemy/devboards/
H A Ddb1200.c343 void (*mmc_cd)(struct mmc_host *, unsigned long); in db1200_mmc_cdfn()
361 static int db1200_mmc_cd_setup(void *mmc_host, int en) in db1200_mmc_cd_setup() argument
367 db1200_mmc_cdfn, 0, "sd_insert", mmc_host); in db1200_mmc_cd_setup()
372 db1200_mmc_cdfn, 0, "sd_eject", mmc_host); in db1200_mmc_cd_setup()
374 free_irq(DB1200_SD0_INSERT_INT, mmc_host); in db1200_mmc_cd_setup()
384 free_irq(DB1200_SD0_INSERT_INT, mmc_host); in db1200_mmc_cd_setup()
385 free_irq(DB1200_SD0_EJECT_INT, mmc_host); in db1200_mmc_cd_setup()
392 static void db1200_mmc_set_power(void *mmc_host, int state) in db1200_mmc_set_power() argument
401 static int db1200_mmc_card_readonly(void *mmc_host) in db1200_mmc_card_readonly() argument
406 static int db1200_mmc_card_inserted(void *mmc_host) in db1200_mmc_card_inserted() argument
[all …]
H A Ddb1000.c170 void (*mmc_cd)(struct mmc_host *, unsigned long); in db1100_mmc_cd()
179 static int db1100_mmc_cd_setup(void *mmc_host, int en) in db1100_mmc_cd_setup() argument
191 "sd0_cd", mmc_host); in db1100_mmc_cd_setup()
193 free_irq(irq, mmc_host); in db1100_mmc_cd_setup()
197 static int db1100_mmc1_cd_setup(void *mmc_host, int en) in db1100_mmc1_cd_setup() argument
209 "sd1_cd", mmc_host); in db1100_mmc1_cd_setup()
211 free_irq(irq, mmc_host); in db1100_mmc1_cd_setup()
215 static int db1100_mmc_card_readonly(void *mmc_host) in db1100_mmc_card_readonly() argument
221 static int db1100_mmc_card_inserted(void *mmc_host) in db1100_mmc_card_inserted() argument
226 static void db1100_mmc_set_power(void *mmc_host, int state) in db1100_mmc_set_power() argument
[all …]
/OK3568_Linux_fs/kernel/include/trace/hooks/
H A Dmmc_core.h22 struct mmc_host;
31 TP_PROTO(struct mmc_host *host, int err, bool *allow),
40 TP_PROTO(struct mmc_host *host, u32 ocr, int err),
46 TP_PROTO(struct mmc_host *host, bool *allow),

1234567