/linux/drivers/mmc/core/ |
A D | core.h | 14 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 D | pwrseq.h | 12 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 D | host.h | 16 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 D | mmc_ops.h | 21 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, 36 int mmc_send_cid(struct mmc_host *host, u32 *cid); 37 int mmc_spi_read_ocr(struct mmc_host *host, int highcap, u32 *ocrp); 38 int mmc_spi_set_crc(struct mmc_host *host, int use_crc); 42 bool mmc_prepare_busy_cmd(struct mmc_host *host, struct mmc_command *cmd,
|
A D | host.c | 112 void mmc_retune_enable(struct mmc_host *host) in mmc_retune_enable() 124 void mmc_retune_pause(struct mmc_host *host) in mmc_retune_pause() 134 void mmc_retune_unpause(struct mmc_host *host) in mmc_retune_unpause() 149 void mmc_retune_disable(struct mmc_host *host) in mmc_retune_disable() 163 void mmc_retune_hold(struct mmc_host *host) in mmc_retune_hold() 179 int mmc_retune(struct mmc_host *host) in mmc_retune() 276 int mmc_of_parse(struct mmc_host *host) in mmc_of_parse() 525 struct mmc_host *host; in mmc_alloc_host() 599 int mmc_add_host(struct mmc_host *host) in mmc_add_host() 630 void mmc_remove_host(struct mmc_host *host) in mmc_remove_host() [all …]
|
A D | core.c | 535 int mmc_cqe_recovery(struct mmc_host *host) in mmc_cqe_recovery() 870 struct mmc_host *host = card->host; in mmc_put_card() 923 struct mmc_host *host = card->host; in mmc_execute_tuning() 1279 struct mmc_host *host = card->host; in mmc_select_drive_strength() 1354 void mmc_power_off(struct mmc_host *host) in mmc_power_off() 1863 struct mmc_host *host = card->host; in mmc_do_calc_max_discard() 1940 struct mmc_host *host = card->host; in mmc_calc_max_discard() 2006 int mmc_hw_reset(struct mmc_host *host) in mmc_hw_reset() 2019 int mmc_sw_reset(struct mmc_host *host) in mmc_sw_reset() 2190 struct mmc_host *host = in mmc_rescan() [all …]
|
A D | sd_ops.h | 14 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); 25 int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card);
|
A D | slot-gpio.c | 31 struct mmc_host *host = dev_id; in mmc_gpio_cd_irqt() 40 int mmc_gpio_alloc(struct mmc_host *host) in mmc_gpio_alloc() 62 int mmc_gpio_get_ro(struct mmc_host *host) in mmc_gpio_get_ro() 73 int mmc_gpio_get_cd(struct mmc_host *host) in mmc_gpio_get_cd() 88 void mmc_gpiod_request_cd_irq(struct mmc_host *host) in mmc_gpiod_request_cd_irq() 122 int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on) in mmc_gpio_set_cd_wake() 146 void mmc_gpio_set_cd_isr(struct mmc_host *host, in mmc_gpio_set_cd_isr() 169 int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id, in mmc_gpiod_request_cd() 205 bool mmc_can_gpio_cd(struct mmc_host *host) in mmc_can_gpio_cd() 222 int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id, in mmc_gpiod_request_ro() [all …]
|
A D | crypto.h | 11 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 D | pwrseq.c | 21 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 D | mmc_ops.c | 114 int mmc_deselect_cards(struct mmc_host *host) in mmc_deselect_cards() 127 int mmc_set_dsr(struct mmc_host *host) in mmc_set_dsr() 139 int mmc_go_idle(struct mmc_host *host) in mmc_go_idle() 333 int mmc_send_cid(struct mmc_host *host, u32 *cid) in mmc_send_cid() 386 int mmc_spi_set_crc(struct mmc_host *host, int use_crc) in mmc_spi_set_crc() 434 struct mmc_host *host = data->card->host; in mmc_busy_cb() 477 struct mmc_host *host = card->host; in __mmc_poll_for_busy() 568 struct mmc_host *host = card->host; in __mmc_switch() 706 int mmc_send_abort_tuning(struct mmc_host *host, u32 opcode) in mmc_send_abort_tuning() 832 struct mmc_host *host = card->host; in mmc_send_hpi_cmd() [all …]
|
A D | sdio_irq.c | 30 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()
|
A D | queue.c | 38 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() 61 struct mmc_host *host = mq->card->host; in mmc_issue_type() 99 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() 208 struct mmc_host *host = card->host; in mmc_mq_init_request() 233 struct mmc_host *host = card->host; in mmc_mq_queue_rq() 349 struct mmc_host *host = card->host; in mmc_setup_queue() 394 static inline bool mmc_merge_capable(struct mmc_host *host) in mmc_merge_capable() [all …]
|
A D | debugfs.c | 55 struct mmc_host *host = s->private; in mmc_ios_show() 201 struct mmc_host *host = data; in mmc_clock_opt_get() 210 struct mmc_host *host = data; in mmc_clock_opt_set() 226 void mmc_add_host_debugfs(struct mmc_host *host) in mmc_add_host_debugfs() 248 void mmc_remove_host_debugfs(struct mmc_host *host) in mmc_remove_host_debugfs() 255 struct mmc_host *host = card->host; in mmc_add_card_debugfs()
|
/linux/include/linux/mmc/ |
A D | host.h | 94 struct mmc_host; 136 int (*get_ro)(struct mmc_host *host); 145 int (*get_cd)(struct mmc_host *host); 157 int (*card_busy)(struct mmc_host *host); 184 void (*hw_reset)(struct mmc_host *host); 215 void (*cqe_off)(struct mmc_host *host); 295 struct mmc_host { struct 510 int mmc_add_host(struct mmc_host *); 511 void mmc_remove_host(struct mmc_host *); 512 void mmc_free_host(struct mmc_host *); [all …]
|
A D | slot-gpio.h | 14 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);
|
A D | core.h | 143 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);
|
/linux/drivers/mmc/host/ |
A D | cqhci.h | 214 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); 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, 317 int cqhci_deactivate(struct mmc_host *mmc); 318 static inline int cqhci_suspend(struct mmc_host *mmc) in cqhci_suspend() [all …]
|
A D | mmc_hsq.c | 22 struct mmc_host *mmc = hsq->mmc; in mmc_hsq_retry_handler() 29 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() 212 static int mmc_hsq_request(struct mmc_host *mmc, struct mmc_request *mrq) in mmc_hsq_request() 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() 340 int mmc_hsq_init(struct mmc_hsq *hsq, struct mmc_host *mmc) in mmc_hsq_init() 362 void mmc_hsq_suspend(struct mmc_host *mmc) in mmc_hsq_suspend() [all …]
|
A D | meson-mx-sdhc-mmc.c | 38 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() 134 static void meson_mx_sdhc_start_cmd(struct mmc_host *mmc, in meson_mx_sdhc_start_cmd() 418 static int meson_mx_sdhc_card_busy(struct mmc_host *mmc) in meson_mx_sdhc_card_busy() 526 struct mmc_host *mmc = host->mmc; in meson_mx_sdhc_request_done() 743 static void meson_mx_sdhc_init_hw(struct mmc_host *mmc) in meson_mx_sdhc_init_hw() [all …]
|
A D | mmc_hsq.h | 10 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);
|
A D | cqhci-core.c | 110 struct mmc_host *mmc = cq_host->mmc; in cqhci_dumpregs() 248 struct mmc_host *mmc = cq_host->mmc; in __cqhci_enable() 314 int cqhci_deactivate(struct mmc_host *mmc) in cqhci_deactivate() 325 int cqhci_resume(struct mmc_host *mmc) in cqhci_resume() 370 static void cqhci_off(struct mmc_host *mmc) in cqhci_off() 397 static void cqhci_disable(struct mmc_host *mmc) in cqhci_disable() 532 static void cqhci_prep_dcmd_desc(struct mmc_host *mmc, in cqhci_prep_dcmd_desc() 876 static int cqhci_wait_for_idle(struct mmc_host *mmc) in cqhci_wait_for_idle() 985 static void cqhci_recovery_start(struct mmc_host *mmc) in cqhci_recovery_start() 1058 static void cqhci_recovery_finish(struct mmc_host *mmc) in cqhci_recovery_finish() [all …]
|
/linux/arch/mips/alchemy/devboards/ |
A D | db1200.c | 343 void (*mmc_cd)(struct mmc_host *, unsigned long); in db1200_mmc_cdfn() 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() 458 pb1200_mmc1_cdfn, 0, "sd1_insert", mmc_host); in pb1200_mmc1_cd_setup() 463 pb1200_mmc1_cdfn, 0, "sd1_eject", mmc_host); in pb1200_mmc1_cd_setup() 465 free_irq(PB1200_SD1_INSERT_INT, mmc_host); in pb1200_mmc1_cd_setup() 475 free_irq(PB1200_SD1_INSERT_INT, mmc_host); in pb1200_mmc1_cd_setup() [all …]
|
A D | db1000.c | 170 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 254 static int db1100_mmc1_card_readonly(void *mmc_host) in db1100_mmc1_card_readonly() argument [all …]
|
A D | db1300.c | 462 void (*mmc_cd)(struct mmc_host *, unsigned long); in db1300_mmc_cdfn() 480 static int db1300_mmc_card_readonly(void *mmc_host) in db1300_mmc_card_readonly() argument 486 static int db1300_mmc_card_inserted(void *mmc_host) in db1300_mmc_card_inserted() argument 497 db1300_mmc_cdfn, 0, "sd_insert", mmc_host); in db1300_mmc_cd_setup() 502 db1300_mmc_cdfn, 0, "sd_eject", mmc_host); in db1300_mmc_cd_setup() 504 free_irq(DB1300_SD1_INSERT_INT, mmc_host); in db1300_mmc_cd_setup() 508 if (db1300_mmc_card_inserted(mmc_host)) in db1300_mmc_cd_setup() 514 free_irq(DB1300_SD1_INSERT_INT, mmc_host); in db1300_mmc_cd_setup() 515 free_irq(DB1300_SD1_EJECT_INT, mmc_host); in db1300_mmc_cd_setup() 579 static int db1300_movinand_inserted(void *mmc_host) in db1300_movinand_inserted() argument [all …]
|