Home
last modified time | relevance | path

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

12345

/Linux-v4.19/drivers/mmc/core/
Dcore.h17 struct mmc_host;
24 void (*remove)(struct mmc_host *);
25 void (*detect)(struct mmc_host *);
26 int (*pre_suspend)(struct mmc_host *);
27 int (*suspend)(struct mmc_host *);
28 int (*resume)(struct mmc_host *);
29 int (*runtime_suspend)(struct mmc_host *);
30 int (*runtime_resume)(struct mmc_host *);
31 int (*alive)(struct mmc_host *);
32 int (*shutdown)(struct mmc_host *);
[all …]
Dpwrseq.h13 struct mmc_host;
18 void (*pre_power_on)(struct mmc_host *host);
19 void (*post_power_on)(struct mmc_host *host);
20 void (*power_off)(struct mmc_host *host);
21 void (*reset)(struct mmc_host *host);
36 int mmc_pwrseq_alloc(struct mmc_host *host);
37 void mmc_pwrseq_pre_power_on(struct mmc_host *host);
38 void mmc_pwrseq_post_power_on(struct mmc_host *host);
39 void mmc_pwrseq_power_off(struct mmc_host *host);
40 void mmc_pwrseq_reset(struct mmc_host *host);
[all …]
Dhost.h19 void mmc_retune_enable(struct mmc_host *host);
20 void mmc_retune_disable(struct mmc_host *host);
21 void mmc_retune_hold(struct mmc_host *host);
22 void mmc_retune_release(struct mmc_host *host);
23 int mmc_retune(struct mmc_host *host);
24 void mmc_retune_pause(struct mmc_host *host);
25 void mmc_retune_unpause(struct mmc_host *host);
27 static inline void mmc_retune_hold_now(struct mmc_host *host) in mmc_retune_hold_now()
33 static inline void mmc_retune_recheck(struct mmc_host *host) in mmc_retune_recheck()
39 static inline int mmc_host_cmd23(struct mmc_host *host) in mmc_host_cmd23()
[all …]
Dmmc_ops.h17 struct mmc_host;
21 int mmc_deselect_cards(struct mmc_host *host);
22 int mmc_set_dsr(struct mmc_host *host);
23 int mmc_go_idle(struct mmc_host *host);
24 int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
29 int mmc_send_cid(struct mmc_host *host, u32 *cid);
30 int mmc_spi_read_ocr(struct mmc_host *host, int highcap, u32 *ocrp);
31 int mmc_spi_set_crc(struct mmc_host *host, int use_crc);
Dhost.c35 #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_classdev_release()
61 void mmc_retune_enable(struct mmc_host *host) in mmc_retune_enable()
73 void mmc_retune_pause(struct mmc_host *host) in mmc_retune_pause()
83 void mmc_retune_unpause(struct mmc_host *host) in mmc_retune_unpause()
92 void mmc_retune_disable(struct mmc_host *host) in mmc_retune_disable()
101 void mmc_retune_timer_stop(struct mmc_host *host) in mmc_retune_timer_stop()
107 void mmc_retune_hold(struct mmc_host *host) in mmc_retune_hold()
114 void mmc_retune_release(struct mmc_host *host) in mmc_retune_release()
123 int mmc_retune(struct mmc_host *host) in mmc_retune()
[all …]
Dsd_ops.h18 struct mmc_host;
22 int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
23 int mmc_send_if_cond(struct mmc_host *host, u32 ocr);
24 int mmc_send_relative_addr(struct mmc_host *host, unsigned int *rca);
29 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card);
30 int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card,
Dslot-gpio.c37 struct mmc_host *host = dev_id; in mmc_gpio_cd_irqt()
46 int mmc_gpio_alloc(struct mmc_host *host) in mmc_gpio_alloc()
64 int mmc_gpio_get_ro(struct mmc_host *host) in mmc_gpio_get_ro()
79 int mmc_gpio_get_cd(struct mmc_host *host) in mmc_gpio_get_cd()
111 int mmc_gpio_request_ro(struct mmc_host *host, unsigned int gpio) in mmc_gpio_request_ro()
131 void mmc_gpiod_request_cd_irq(struct mmc_host *host) in mmc_gpiod_request_cd_irq()
165 int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on) in mmc_gpio_set_cd_wake()
189 void mmc_gpio_set_cd_isr(struct mmc_host *host, in mmc_gpio_set_cd_isr()
214 int mmc_gpio_request_cd(struct mmc_host *host, unsigned int gpio, in mmc_gpio_request_cd()
259 int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, in mmc_gpiod_request_cd()
[all …]
Dcore.c84 static void mmc_should_fail_request(struct mmc_host *host, in mmc_should_fail_request()
108 static inline void mmc_should_fail_request(struct mmc_host *host, in mmc_should_fail_request()
121 void mmc_command_done(struct mmc_host *host, struct mmc_request *mrq) in mmc_command_done()
141 void mmc_request_done(struct mmc_host *host, struct mmc_request *mrq) in mmc_request_done()
218 static void __mmc_start_request(struct mmc_host *host, struct mmc_request *mrq) in __mmc_start_request()
266 static void mmc_mrq_pr_debug(struct mmc_host *host, struct mmc_request *mrq, in mmc_mrq_pr_debug()
300 static int mmc_mrq_prep(struct mmc_host *host, struct mmc_request *mrq) in mmc_mrq_prep()
337 int mmc_start_request(struct mmc_host *host, struct mmc_request *mrq) in mmc_start_request()
368 static inline void mmc_wait_ongoing_tfr_cmd(struct mmc_host *host) in mmc_wait_ongoing_tfr_cmd()
380 static int __mmc_start_req(struct mmc_host *host, struct mmc_request *mrq) in __mmc_start_req()
[all …]
Dpwrseq.c22 int mmc_pwrseq_alloc(struct mmc_host *host) in mmc_pwrseq_alloc()
55 void mmc_pwrseq_pre_power_on(struct mmc_host *host) in mmc_pwrseq_pre_power_on()
63 void mmc_pwrseq_post_power_on(struct mmc_host *host) in mmc_pwrseq_post_power_on()
71 void mmc_pwrseq_power_off(struct mmc_host *host) in mmc_pwrseq_power_off()
79 void mmc_pwrseq_reset(struct mmc_host *host) in mmc_pwrseq_reset()
87 void mmc_pwrseq_free(struct mmc_host *host) in mmc_pwrseq_free()
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,
Dsdio_irq.c34 static int process_sdio_pending_irqs(struct mmc_host *host) in process_sdio_pending_irqs()
95 void sdio_run_irqs(struct mmc_host *host) in sdio_run_irqs()
110 struct mmc_host *host = in sdio_irq_work()
111 container_of(work, struct mmc_host, sdio_irq_work.work); in sdio_irq_work()
116 void sdio_signal_irq(struct mmc_host *host) in sdio_signal_irq()
124 struct mmc_host *host = _host; in sdio_irq_thread()
211 struct mmc_host *host = card->host; in sdio_card_irq_get()
236 struct mmc_host *host = card->host; in sdio_card_irq_put()
Ddebugfs.c57 struct mmc_host *host = s->private; in mmc_ios_show()
203 struct mmc_host *host = data; in mmc_clock_opt_get()
212 struct mmc_host *host = data; in mmc_clock_opt_set()
228 void mmc_add_host_debugfs(struct mmc_host *host) in mmc_add_host_debugfs()
274 void mmc_remove_host_debugfs(struct mmc_host *host) in mmc_remove_host_debugfs()
281 struct mmc_host *host = card->host; in mmc_add_card_debugfs()
Dmmc_ops.c88 static int _mmc_select_card(struct mmc_host *host, struct mmc_card *card) in _mmc_select_card()
111 int mmc_deselect_cards(struct mmc_host *host) in mmc_deselect_cards()
124 int mmc_set_dsr(struct mmc_host *host) in mmc_set_dsr()
136 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()
223 mmc_send_cxd_native(struct mmc_host *host, u32 arg, u32 *cxd, int opcode) in mmc_send_cxd_native()
246 mmc_send_cxd_data(struct mmc_card *card, struct mmc_host *host, in mmc_send_cxd_data()
325 static int mmc_spi_send_cid(struct mmc_host *host, u32 *cid) in mmc_spi_send_cid()
346 int mmc_send_cid(struct mmc_host *host, u32 *cid) in mmc_send_cid()
384 int mmc_spi_read_ocr(struct mmc_host *host, int highcap, u32 *ocrp) in mmc_spi_read_ocr()
[all …]
Dsdio_ops.h18 struct mmc_host;
22 int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
27 int sdio_reset(struct mmc_host *host);
Dbus.c134 struct mmc_host *host = card->host; in mmc_bus_shutdown()
152 struct mmc_host *host = card->host; in mmc_bus_suspend()
169 struct mmc_host *host = card->host; in mmc_bus_resume()
186 struct mmc_host *host = card->host; in mmc_runtime_suspend()
194 struct mmc_host *host = card->host; in mmc_runtime_resume()
264 struct mmc_card *mmc_alloc_card(struct mmc_host *host, struct device_type *type) in mmc_alloc_card()
373 struct mmc_host *host = card->host; in mmc_remove_card()
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()
102 struct mmc_host *host = mq->card->host; in mmc_cqe_timed_out()
210 struct mmc_host *host = card->host; in __mmc_init_request()
248 struct mmc_host *host = card->host; in mmc_mq_queue_rq()
356 struct mmc_host *host = card->host; in mmc_setup_queue()
423 struct mmc_host *host = card->host; in mmc_mq_init()
459 struct mmc_host *host = card->host; in mmc_init_queue()
/Linux-v4.19/include/linux/mmc/
Dhost.h83 struct mmc_host;
94 void (*post_req)(struct mmc_host *host, struct mmc_request *req,
96 void (*pre_req)(struct mmc_host *host, struct mmc_request *req);
97 void (*request)(struct mmc_host *host, struct mmc_request *req);
113 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios);
122 int (*get_ro)(struct mmc_host *host);
131 int (*get_cd)(struct mmc_host *host);
133 void (*enable_sdio_irq)(struct mmc_host *host, int enable);
134 void (*ack_sdio_irq)(struct mmc_host *host);
137 void (*init_card)(struct mmc_host *host, struct mmc_card *card);
[all …]
Dslot-gpio.h17 struct mmc_host;
19 int mmc_gpio_get_ro(struct mmc_host *host);
20 int mmc_gpio_request_ro(struct mmc_host *host, unsigned int gpio);
22 int mmc_gpio_get_cd(struct mmc_host *host);
23 int mmc_gpio_request_cd(struct mmc_host *host, unsigned int gpio,
26 int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id,
29 int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id,
32 void mmc_gpio_set_cd_isr(struct mmc_host *host,
34 int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on);
35 void mmc_gpiod_request_cd_irq(struct mmc_host *host);
[all …]
Dcore.h149 struct mmc_host;
165 struct mmc_host *host;
175 void mmc_wait_for_req(struct mmc_host *host, struct mmc_request *mrq);
176 int mmc_wait_for_cmd(struct mmc_host *host, struct mmc_command *cmd,
179 int mmc_hw_reset(struct mmc_host *host);
180 int mmc_sw_reset(struct mmc_host *host);
/Linux-v4.19/drivers/mmc/host/
Dcqhci.h149 struct mmc_host;
155 struct mmc_host *mmc;
208 void (*dumpregs)(struct mmc_host *mmc);
211 void (*enable)(struct mmc_host *mmc);
212 void (*disable)(struct mmc_host *mmc, bool recovery);
233 irqreturn_t cqhci_irq(struct mmc_host *mmc, u32 intmask, int cmd_error,
235 int cqhci_init(struct cqhci_host *cq_host, struct mmc_host *mmc, bool dma64);
237 int cqhci_suspend(struct mmc_host *mmc);
238 int cqhci_resume(struct mmc_host *mmc);
Dcqhci.c110 struct mmc_host *mmc = cq_host->mmc; in cqhci_dumpregs()
240 struct mmc_host *mmc = cq_host->mmc; in __cqhci_enable()
300 int cqhci_suspend(struct mmc_host *mmc) in cqhci_suspend()
311 int cqhci_resume(struct mmc_host *mmc) in cqhci_resume()
318 static int cqhci_enable(struct mmc_host *mmc, struct mmc_card *card) in cqhci_enable()
345 static void cqhci_off(struct mmc_host *mmc) in cqhci_off()
376 static void cqhci_disable(struct mmc_host *mmc) in cqhci_disable()
423 static int cqhci_dma_map(struct mmc_host *host, struct mmc_request *mrq) in cqhci_dma_map()
498 static void cqhci_prep_dcmd_desc(struct mmc_host *mmc, in cqhci_prep_dcmd_desc()
540 static void cqhci_post_req(struct mmc_host *host, struct mmc_request *mrq) in cqhci_post_req()
[all …]
/Linux-v4.19/arch/mips/alchemy/devboards/
Ddb1200.c358 void (*mmc_cd)(struct mmc_host *, unsigned long); in db1200_mmc_cdfn()
376 static int db1200_mmc_cd_setup(void *mmc_host, int en) in db1200_mmc_cd_setup() argument
382 db1200_mmc_cdfn, 0, "sd_insert", mmc_host); in db1200_mmc_cd_setup()
387 db1200_mmc_cdfn, 0, "sd_eject", mmc_host); in db1200_mmc_cd_setup()
389 free_irq(DB1200_SD0_INSERT_INT, mmc_host); in db1200_mmc_cd_setup()
399 free_irq(DB1200_SD0_INSERT_INT, mmc_host); in db1200_mmc_cd_setup()
400 free_irq(DB1200_SD0_EJECT_INT, mmc_host); in db1200_mmc_cd_setup()
407 static void db1200_mmc_set_power(void *mmc_host, int state) in db1200_mmc_set_power() argument
416 static int db1200_mmc_card_readonly(void *mmc_host) in db1200_mmc_card_readonly() argument
421 static int db1200_mmc_card_inserted(void *mmc_host) in db1200_mmc_card_inserted() argument
[all …]
Ddb1000.c179 void (*mmc_cd)(struct mmc_host *, unsigned long); in db1100_mmc_cd()
188 static int db1100_mmc_cd_setup(void *mmc_host, int en) in db1100_mmc_cd_setup() argument
200 "sd0_cd", mmc_host); in db1100_mmc_cd_setup()
202 free_irq(irq, mmc_host); in db1100_mmc_cd_setup()
206 static int db1100_mmc1_cd_setup(void *mmc_host, int en) in db1100_mmc1_cd_setup() argument
218 "sd1_cd", mmc_host); in db1100_mmc1_cd_setup()
220 free_irq(irq, mmc_host); in db1100_mmc1_cd_setup()
224 static int db1100_mmc_card_readonly(void *mmc_host) in db1100_mmc_card_readonly() argument
230 static int db1100_mmc_card_inserted(void *mmc_host) in db1100_mmc_card_inserted() argument
235 static void db1100_mmc_set_power(void *mmc_host, int state) in db1100_mmc_set_power() argument
[all …]
Ddb1300.c460 void (*mmc_cd)(struct mmc_host *, unsigned long); in db1300_mmc_cdfn()
478 static int db1300_mmc_card_readonly(void *mmc_host) in db1300_mmc_card_readonly() argument
484 static int db1300_mmc_card_inserted(void *mmc_host) in db1300_mmc_card_inserted() argument
489 static int db1300_mmc_cd_setup(void *mmc_host, int en) in db1300_mmc_cd_setup() argument
495 db1300_mmc_cdfn, 0, "sd_insert", mmc_host); in db1300_mmc_cd_setup()
500 db1300_mmc_cdfn, 0, "sd_eject", mmc_host); in db1300_mmc_cd_setup()
502 free_irq(DB1300_SD1_INSERT_INT, mmc_host); in db1300_mmc_cd_setup()
506 if (db1300_mmc_card_inserted(mmc_host)) in db1300_mmc_cd_setup()
512 free_irq(DB1300_SD1_INSERT_INT, mmc_host); in db1300_mmc_cd_setup()
513 free_irq(DB1300_SD1_EJECT_INT, mmc_host); in db1300_mmc_cd_setup()
[all …]
/Linux-v4.19/arch/mips/include/asm/mach-au1x00/
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);

12345