Home
last modified time | relevance | path

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

123456

/linux/drivers/mmc/core/
A Dcore.h14 struct mmc_host;
21 void (*remove)(struct mmc_host *);
22 void (*detect)(struct mmc_host *);
23 int (*pre_suspend)(struct mmc_host *);
24 int (*suspend)(struct mmc_host *);
25 int (*resume)(struct mmc_host *);
28 int (*alive)(struct mmc_host *);
29 int (*shutdown)(struct mmc_host *);
30 int (*hw_reset)(struct mmc_host *);
31 int (*sw_reset)(struct mmc_host *);
[all …]
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 …]
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_clear(struct mmc_host *host) in mmc_retune_clear()
36 static inline void mmc_retune_recheck(struct mmc_host *host) in mmc_retune_recheck()
42 static inline int mmc_host_cmd23(struct mmc_host *host) in mmc_host_cmd23()
[all …]
A Dmmc_ops.h21 struct mmc_host;
26 int mmc_deselect_cards(struct mmc_host *host);
27 int mmc_set_dsr(struct mmc_host *host);
28 int mmc_go_idle(struct mmc_host *host);
29 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
31 int mmc_send_adtc_data(struct mmc_card *card, struct mmc_host *host, u32 opcode,
35 int mmc_send_cid(struct mmc_host *host, u32 *cid);
36 int mmc_spi_read_ocr(struct mmc_host *host, int highcap, u32 *ocrp);
37 int mmc_spi_set_crc(struct mmc_host *host, int use_crc);
41 bool mmc_prepare_busy_cmd(struct mmc_host *host, struct mmc_command *cmd,
[all …]
A Dhost.c111 void mmc_retune_enable(struct mmc_host *host) in mmc_retune_enable()
123 void mmc_retune_pause(struct mmc_host *host) in mmc_retune_pause()
132 void mmc_retune_unpause(struct mmc_host *host) in mmc_retune_unpause()
161 void mmc_retune_hold(struct mmc_host *host) in mmc_retune_hold()
177 int mmc_retune(struct mmc_host *host) in mmc_retune()
272 int mmc_of_parse(struct mmc_host *host) in mmc_of_parse()
521 struct mmc_host *host; in mmc_alloc_host()
590 mmc_free_host(*(struct mmc_host **)res); in devm_mmc_host_release()
595 struct mmc_host **dr, *host; in devm_mmc_alloc_host()
641 int mmc_add_host(struct mmc_host *host) in mmc_add_host()
[all …]
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_if_cond_pcie(struct mmc_host *host, u32 ocr);
20 int mmc_send_relative_addr(struct mmc_host *host, unsigned int *rca);
23 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card);
A Dslot-gpio.c32 struct mmc_host *host = dev_id; in mmc_gpio_cd_irqt()
41 int mmc_gpio_alloc(struct mmc_host *host) in mmc_gpio_alloc()
64 void mmc_gpio_set_cd_irq(struct mmc_host *host, int irq) in mmc_gpio_set_cd_irq()
75 int mmc_gpio_get_ro(struct mmc_host *host) in mmc_gpio_get_ro()
90 int mmc_gpio_get_cd(struct mmc_host *host) in mmc_gpio_get_cd()
105 void mmc_gpiod_request_cd_irq(struct mmc_host *host) in mmc_gpiod_request_cd_irq()
141 int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on) in mmc_gpio_set_cd_wake()
165 void mmc_gpio_set_cd_isr(struct mmc_host *host, irq_handler_t isr) in mmc_gpio_set_cd_isr()
187 int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, in mmc_gpiod_request_cd()
243 bool mmc_can_gpio_cd(struct mmc_host *host) in mmc_can_gpio_cd()
[all …]
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()
A Dcore.c534 int mmc_cqe_recovery(struct mmc_host *host) in mmc_cqe_recovery()
874 struct mmc_host *host = card->host; in mmc_put_card()
927 struct mmc_host *host = card->host; in mmc_execute_tuning()
1291 struct mmc_host *host = card->host; in mmc_select_drive_strength()
1366 void mmc_power_off(struct mmc_host *host) in mmc_power_off()
1880 struct mmc_host *host = card->host; in mmc_do_calc_max_discard()
1957 struct mmc_host *host = card->host; in mmc_calc_max_discard()
2025 struct mmc_host *host = card->host; in mmc_hw_reset()
2039 struct mmc_host *host = card->host; in mmc_sw_reset()
2209 struct mmc_host *host = in mmc_rescan()
[all …]
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()
A Dmmc_ops.c64 struct mmc_host *host;
122 int mmc_deselect_cards(struct mmc_host *host) in mmc_deselect_cards()
135 int mmc_set_dsr(struct mmc_host *host) in mmc_set_dsr()
147 int mmc_go_idle(struct mmc_host *host) in mmc_go_idle()
187 struct mmc_host *host = data->host; in __mmc_send_op_cond_cb()
362 int mmc_send_cid(struct mmc_host *host, u32 *cid) in mmc_send_cid()
463 struct mmc_host *host = data->card->host; in mmc_busy_cb()
547 struct mmc_host *host = card->host; in mmc_poll_for_busy()
599 struct mmc_host *host = card->host; in __mmc_switch()
863 struct mmc_host *host = card->host; in mmc_send_hpi_cmd()
[all …]
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); 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()
A Ddebugfs.c58 struct mmc_host *host = s->private; in mmc_ios_show()
204 struct mmc_host *host = data; in mmc_clock_opt_get()
213 struct mmc_host *host = data; in mmc_clock_opt_set()
231 struct mmc_host *host = data; in mmc_err_state_get()
252 struct mmc_host *host = file->private; in mmc_err_stats_show()
289 struct mmc_host *host = filp->f_mapping->host->i_private; in mmc_err_stats_write()
347 void mmc_add_host_debugfs(struct mmc_host *host) in mmc_add_host_debugfs()
375 void mmc_remove_host_debugfs(struct mmc_host *host) in mmc_remove_host_debugfs()
382 struct mmc_host *host = card->host; in mmc_add_card_debugfs()
A Dsd_ops.c31 struct mmc_host *host;
36 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card) in mmc_app_cmd()
66 static int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card, in mmc_wait_for_app_cmd()
135 struct mmc_host *host = data->host; in sd_app_op_cond_cb()
162 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) in mmc_send_app_op_cond()
191 static int __mmc_send_if_cond(struct mmc_host *host, u32 ocr, u8 pcie_bits, in __mmc_send_if_cond()
226 int mmc_send_if_cond(struct mmc_host *host, u32 ocr) in mmc_send_if_cond()
231 int mmc_send_if_cond_pcie(struct mmc_host *host, u32 ocr) in mmc_send_if_cond_pcie()
267 int mmc_send_relative_addr(struct mmc_host *host, unsigned int *rca) in mmc_send_relative_addr()
A Dqueue.c38 static inline bool mmc_cqe_can_dcmd(struct mmc_host *host) in mmc_cqe_can_dcmd()
43 static enum mmc_issue_type mmc_cqe_issue_type(struct mmc_host *host, in mmc_cqe_issue_type()
62 struct mmc_host *host = mq->card->host; in mmc_issue_type()
100 struct mmc_host *host = mq->card->host; in mmc_cqe_timed_out()
125 struct mmc_host *host = card->host; in mmc_mq_timed_out()
141 struct mmc_host *host = mq->card->host; in mmc_mq_recovery_handler()
211 struct mmc_host *host = card->host; in mmc_mq_init_request()
236 struct mmc_host *host = card->host; in mmc_mq_queue_rq()
349 struct mmc_host *host = card->host; in mmc_alloc_disk()
405 static inline bool mmc_merge_capable(struct mmc_host *host) in mmc_merge_capable()
[all …]
A Dsd.h9 struct mmc_host;
12 int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr);
15 int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card,
/linux/include/linux/mmc/
A Dhost.h95 struct mmc_host;
156 int (*get_ro)(struct mmc_host *host);
165 int (*get_cd)(struct mmc_host *host);
177 int (*card_busy)(struct mmc_host *host);
211 void (*card_event)(struct mmc_host *host);
241 void (*cqe_off)(struct mmc_host *host);
297 struct mmc_host { struct
516 int mmc_add_host(struct mmc_host *);
517 void mmc_remove_host(struct mmc_host *);
518 void mmc_free_host(struct mmc_host *);
[all …]
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 void mmc_gpio_set_cd_irq(struct mmc_host *host, int irq);
19 int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id,
22 int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id,
25 void mmc_gpio_set_cd_isr(struct mmc_host *host, irq_handler_t isr);
26 int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on);
27 void mmc_gpiod_request_cd_irq(struct mmc_host *host);
28 bool mmc_can_gpio_cd(struct mmc_host *host);
[all …]
/linux/drivers/mmc/host/
A Dcqhci.h217 struct mmc_host;
224 struct mmc_host *mmc;
283 void (*dumpregs)(struct mmc_host *mmc);
286 void (*enable)(struct mmc_host *mmc);
287 void (*disable)(struct mmc_host *mmc, bool recovery);
290 void (*pre_enable)(struct mmc_host *mmc);
291 void (*post_disable)(struct mmc_host *mmc);
319 irqreturn_t cqhci_irq(struct mmc_host *mmc, u32 intmask, int cmd_error,
323 int cqhci_deactivate(struct mmc_host *mmc);
325 static inline int cqhci_suspend(struct mmc_host *mmc) in cqhci_suspend()
[all …]
A Dmmc_hsq.c19 struct mmc_host *mmc = hsq->mmc; in mmc_hsq_retry_handler()
26 struct mmc_host *mmc = hsq->mmc; in mmc_hsq_modify_threshold()
45 struct mmc_host *mmc = hsq->mmc; in mmc_hsq_pump_requests()
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()
277 static int mmc_hsq_wait_for_idle(struct mmc_host *mmc) in mmc_hsq_wait_for_idle()
288 static void mmc_hsq_disable(struct mmc_host *mmc) in mmc_hsq_disable()
318 static int mmc_hsq_enable(struct mmc_host *mmc, struct mmc_card *card) in mmc_hsq_enable()
346 int mmc_hsq_init(struct mmc_hsq *hsq, struct mmc_host *mmc) in mmc_hsq_init()
374 void mmc_hsq_suspend(struct mmc_host *mmc) in mmc_hsq_suspend()
[all …]
A Dmmc_hsq.h24 struct mmc_host *mmc;
42 int mmc_hsq_init(struct mmc_hsq *hsq, struct mmc_host *mmc);
43 void mmc_hsq_suspend(struct mmc_host *mmc);
44 int mmc_hsq_resume(struct mmc_host *mmc);
45 bool mmc_hsq_finalize_request(struct mmc_host *mmc, struct mmc_request *mrq);
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;
80 static void meson_mx_sdhc_clear_fifo(struct mmc_host *mmc) in meson_mx_sdhc_clear_fifo()
132 static void meson_mx_sdhc_start_cmd(struct mmc_host *mmc, in meson_mx_sdhc_start_cmd()
249 static int meson_mx_sdhc_enable_clks(struct mmc_host *mmc) in meson_mx_sdhc_enable_clks()
400 static int meson_mx_sdhc_card_busy(struct mmc_host *mmc) in meson_mx_sdhc_card_busy()
507 struct mmc_host *mmc = host->mmc; in meson_mx_sdhc_request_done()
724 static void meson_mx_sdhc_init_hw(struct mmc_host *mmc) in meson_mx_sdhc_init_hw()
[all …]
/linux/arch/mips/alchemy/devboards/
A Ddb1000.c175 static int db1100_mmc_cd_setup(void *mmc_host, int en) in db1100_mmc_cd_setup() argument
187 "sd0_cd", mmc_host); in db1100_mmc_cd_setup()
189 free_irq(irq, mmc_host); in db1100_mmc_cd_setup()
193 static int db1100_mmc1_cd_setup(void *mmc_host, int en) in db1100_mmc1_cd_setup() argument
205 "sd1_cd", mmc_host); in db1100_mmc1_cd_setup()
207 free_irq(irq, mmc_host); in db1100_mmc1_cd_setup()
211 static int db1100_mmc_card_readonly(void *mmc_host) in db1100_mmc_card_readonly() argument
217 static int db1100_mmc_card_inserted(void *mmc_host) in db1100_mmc_card_inserted() argument
222 static void db1100_mmc_set_power(void *mmc_host, int state) in db1100_mmc_set_power() argument
250 static int db1100_mmc1_card_readonly(void *mmc_host) in db1100_mmc1_card_readonly() argument
[all …]
A Ddb1200.c360 db1200_mmc_cdfn, 0, "sd_insert", mmc_host); in db1200_mmc_cd_setup()
365 db1200_mmc_cdfn, 0, "sd_eject", mmc_host); in db1200_mmc_cd_setup()
367 free_irq(DB1200_SD0_INSERT_INT, mmc_host); in db1200_mmc_cd_setup()
377 free_irq(DB1200_SD0_INSERT_INT, mmc_host); in db1200_mmc_cd_setup()
378 free_irq(DB1200_SD0_EJECT_INT, mmc_host); in db1200_mmc_cd_setup()
394 static int db1200_mmc_card_readonly(void *mmc_host) in db1200_mmc_card_readonly() argument
444 pb1200_mmc1_cdfn, 0, "sd1_insert", mmc_host); in pb1200_mmc1_cd_setup()
449 pb1200_mmc1_cdfn, 0, "sd1_eject", mmc_host); in pb1200_mmc1_cd_setup()
451 free_irq(PB1200_SD1_INSERT_INT, mmc_host); in pb1200_mmc1_cd_setup()
461 free_irq(PB1200_SD1_INSERT_INT, mmc_host); in pb1200_mmc1_cd_setup()
[all …]
/linux/arch/mips/include/asm/mach-au1x00/
A Dau1100_mmc.h44 int(*cd_setup)(void *mmc_host, int on);
45 int(*card_inserted)(void *mmc_host);
46 int(*card_readonly)(void *mmc_host);
47 void(*set_power)(void *mmc_host, int state);

Completed in 43 milliseconds

123456