| /bsp/raspberry-pi/raspi-dm2.0/drivers/sdhci/include/ |
| A D | sdhci_host.h | 98 struct mmc_host; 138 int (*get_ro)(struct mmc_host *host); 147 int (*get_cd)(struct mmc_host *host); 151 void (*ack_sdio_irq)(struct mmc_host *host); 156 int (*card_busy)(struct mmc_host *host); 171 void (*hs400_complete)(struct mmc_host *host); 178 void (*hw_reset)(struct mmc_host *host); 179 void (*card_event)(struct mmc_host *host); 245 struct mmc_host struct 318 int mmc_add_host(struct mmc_host *); [all …]
|
| A D | sdhci.h | 497 struct mmc_host *mmc; /* MMC structure */ 783 int sdhci_get_cd_nogpio(struct mmc_host *mmc); 784 void sdhci_request(struct mmc_host *mmc, struct rt_mmcsd_req *mrq); 785 int sdhci_request_atomic(struct mmc_host *mmc, struct rt_mmcsd_req *mrq); 789 int sdhci_execute_tuning(struct mmc_host *mmc, rt_uint32_t opcode); 791 void sdhci_set_ios(struct mmc_host *mmc, struct rt_mmcsd_io_cfg *ios); 792 int sdhci_start_signal_voltage_switch(struct mmc_host *mmc, 794 void sdhci_enable_sdio_irq(struct mmc_host *mmc, int enable); 798 void sdhci_cqe_enable(struct mmc_host *mmc); 799 void sdhci_cqe_disable(struct mmc_host *mmc, rt_bool_t recovery);
|
| A D | sdhci_misc.h | 63 rt_bool_t mmc_can_gpio_cd(struct mmc_host *host);
|
| /bsp/raspberry-pi/raspi-dm2.0/drivers/sdhci/src/ |
| A D | fit-mmc.c | 19 struct mmc_host *mmc = (struct mmc_host *)host; in plat_request() 103 struct mmc_host *mmc = (struct mmc_host *)host; in plat_set_ioconfig() 114 struct mmc_host *mmc = (struct mmc_host *)host; in plat_get_card_status() 121 struct mmc_host *mmc = (struct mmc_host *)host; in plat_execute_tuning() 128 struct mmc_host *mmc = (struct mmc_host *)host; in plat_enable_sdio_irq() 149 int mmc_add_host(struct mmc_host *mmc) in mmc_add_host() 168 struct mmc_host *mmc; in mmc_alloc_host() 192 int mmc_gpio_get_cd(struct mmc_host *host) in mmc_gpio_get_cd() 212 int mmc_gpio_get_ro(struct mmc_host *host) in mmc_gpio_get_ro() 221 int mmc_of_parse(struct mmc_host *host) in mmc_of_parse() [all …]
|
| A D | sdhci_voltage.c | 12 int mmc_regulator_get_supply(struct mmc_host *mmc) in mmc_regulator_get_supply()
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/ |
| A D | _sdhost.h | 138 int (*suspend)(struct mmc_host *); 139 int (*resume)(struct mmc_host *); 142 struct mmc_host { struct 546 static inline int mmc_card_keep_power(struct mmc_host *host) in mmc_card_keep_power() 551 static inline int mmc_card_wake_sdio_irq(struct mmc_host *host) in mmc_card_wake_sdio_irq() 558 extern int32_t HAL_SDC_Get_ReadOnly(struct mmc_host *host); 561 extern uint32_t HAL_SDC_Is_Busy(struct mmc_host *host); 563 extern int32_t HAL_SDC_Claim_Host(struct mmc_host *host); 564 extern void HAL_SDC_Release_Host(struct mmc_host *host); 596 extern int32_t HAL_SDC_PowerOn(struct mmc_host *host); [all …]
|
| A D | _sd.h | 39 extern int32_t mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card, struct mmc_comman… 40 extern int32_t mmc_app_cmd(struct mmc_host *host, struct mmc_card *card); 41 extern int32_t mmc_send_relative_addr(struct mmc_host *host, uint32_t *rca); 42 extern int32_t mmc_send_if_cond(struct mmc_host *host, uint32_t ocr);
|
| A D | _core.h | 320 void mmc_attach_bus(struct mmc_host *host, const struct mmc_bus_ops *ops); 321 void mmc_detach_bus(struct mmc_host *host); 333 extern int32_t mmc_wait_for_cmd(struct mmc_host *host, struct mmc_command *cmd); 334 extern int32_t mmc_wait_for_req(struct mmc_host *host, struct mmc_request *mrq); 336 extern int32_t mmc_attach_sd(struct mmc_card *card, struct mmc_host *host); 337 extern void mmc_deattach_sd(struct mmc_card *card, struct mmc_host *host); 340 extern int32_t mmc_all_send_cid(struct mmc_host *host, uint32_t *cid); 341 extern int32_t mmc_send_relative_addr(struct mmc_host *host, uint32_t *rca); 363 static inline void mmc_claim_host(struct mmc_host *host) in mmc_claim_host() 375 static inline void mmc_release_host(struct mmc_host *host) in mmc_release_host()
|
| A D | hal_sdhost.c | 272 static struct mmc_host *_mci_host[SDC_NUM]; 807 struct mmc_host *host = _mci_host[sdc_id]; in __mci_irq_handler() 1757 struct mmc_host *host = (struct mmc_host *)arg; in __mci_voltage_stable_det() 1771 struct mmc_host *host = (struct mmc_host *)arg; in __mci_cd_timer() 1798 struct mmc_host *host = (struct mmc_host *)arg; in __mci_dat3_det() 1807 struct mmc_host *host = (struct mmc_host *)arg; in __mci_cd_irq() 2133 struct mmc_host *hal_sdc_init(struct mmc_host *host) in hal_sdc_init() 2363 struct mmc_host *host = _mci_host[sdc_id]; in hal_sdc_deinit() 2428 struct mmc_host *host = _mci_host[sdc_id]; in hal_sdc_create() 2477 int32_t hal_sdc_destroy(struct mmc_host *host) in hal_sdc_destroy() [all …]
|
| A D | _sdio.h | 55 extern uint32_t sdio_reset(struct mmc_host *host); 56 extern int mmc_attach_sdio(struct mmc_card *card, struct mmc_host *host); 57 extern void mmc_deattach_sdio(struct mmc_card *card, struct mmc_host *host);
|
| A D | core.c | 119 static inline void mmc_host_clk_hold(struct mmc_host *host) in mmc_host_clk_hold() 124 static inline void mmc_host_clk_release(struct mmc_host *host) in mmc_host_clk_release() 140 static void mmc_power_up(struct mmc_host *host) in mmc_power_up() 168 static void mmc_power_off(struct mmc_host *host) in mmc_power_off() 197 static int32_t mmc_go_idle(struct mmc_host *host) in mmc_go_idle() 743 int32_t mmc_send_if_cond(struct mmc_host *host, uint32_t ocr) in mmc_send_if_cond() 837 void mmc_detach_bus(struct mmc_host *host) in mmc_detach_bus() 867 struct mmc_host *host = hal_sdc_open(sdc_id); in mmc_rescan() 957 struct mmc_host *host; in mmc_card_deinit() 1119 extern int mmc_sdio_remove(struct mmc_host *host); [all …]
|
| A D | _mmc.h | 50 extern int mmc_attach_mmc(struct mmc_card *card, struct mmc_host *host); 51 extern int32_t mmc_all_send_cid(struct mmc_host *host, uint32_t *cid);
|
| A D | sdio_irq.c | 37 static int process_sdio_pending_irqs(struct mmc_host *host) 111 void sdio_run_irqs(struct mmc_host *host) 122 struct mmc_host *host = _host; 225 struct mmc_host *host = card->host; 256 struct mmc_host *host = card->host;
|
| A D | hal_sdpin.c | 59 int32_t sdmmc_pinctl_set_from_cfg(struct mmc_host *host, char *sdc_str, uint32_t pin_num) in sdmmc_pinctl_set_from_cfg() 116 uint32_t sdmmc_pinctrl_init(struct mmc_host *host) in sdmmc_pinctrl_init() 198 int mmc_gpiod_request_cd_irq(struct mmc_host *host) in mmc_gpiod_request_cd_irq()
|
| A D | sd.c | 66 static int32_t mmc_send_app_op_cond(struct mmc_host *host, uint32_t ocr, uint32_t *rocr) in mmc_send_app_op_cond() 770 static int32_t mmc_send_cxd_native(struct mmc_host *host, uint32_t arg, uint32_t *cxd, int32_t opco… in mmc_send_cxd_native() 819 int32_t mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card) in mmc_sd_setup_card() 900 static int32_t mmc_sd_init_card(struct mmc_card *card, struct mmc_host *host) in mmc_sd_init_card() 1024 static int32_t mmc_sd_suspend(struct mmc_host *host) in mmc_sd_suspend() 1043 static int32_t mmc_sd_resume(struct mmc_host *host) in mmc_sd_resume() 1071 int32_t mmc_attach_sd(struct mmc_card *card, struct mmc_host *host) in mmc_attach_sd() 1116 void mmc_deattach_sd(struct mmc_card *card, struct mmc_host *host) in mmc_deattach_sd()
|
| A D | sdio.c | 511 mmc_io_rw_direct_host(struct mmc_host *host, int32_t write, uint32_t fn, in mmc_io_rw_direct_host() 1106 int mmc_sdio_remove(struct mmc_host *host) in mmc_sdio_remove() 1606 int32_t mmc_sd_get_cid(struct mmc_host *host, uint32_t ocr, uint32_t *cid, uint32_t *rocr) in mmc_sd_get_cid() 1855 uint32_t sdio_reset(struct mmc_host *host) in sdio_reset() 1888 struct mmc_host *host = card->host; in sdio_set_host_pm_flags() 1919 static int mmc_sdio_suspend(struct mmc_host *host) in mmc_sdio_suspend() 1955 int mmc_sdio_resume(struct mmc_host *host) in mmc_sdio_resume() 2029 int mmc_attach_sdio(struct mmc_card *card, struct mmc_host *host) in mmc_attach_sdio() 2144 void mmc_deattach_sdio(struct mmc_card *card, struct mmc_host *host) in mmc_deattach_sdio()
|
| A D | mmc.c | 256 int32_t smc_model_set_blkcnt(struct mmc_host *host, uint32_t blkcnt) in smc_model_set_blkcnt() 315 int mmc_attach_mmc(struct mmc_card *card, struct mmc_host *host) in mmc_attach_mmc()
|
| A D | test.c | 140 struct mmc_host *host; in mmc_test_init() 201 struct mmc_host *host; in mmc_test_exit()
|
| /bsp/allwinner/libraries/sunxi-hal/include/hal/sdmmc/ |
| A D | hal_sdhost.h | 102 extern struct mmc_host *hal_sdc_init(struct mmc_host *host); 112 extern struct mmc_host *hal_sdc_create(uint32_t sdc_id, SDC_InitTypeDef *param); 113 extern int32_t hal_sdc_destroy(struct mmc_host *host); 115 extern struct mmc_host *hal_sdc_open(uint32_t sdc_id); 117 extern void hal_sdc_set_high_speed(struct mmc_host *host);
|
| A D | card.h | 207 struct mmc_host; 306 struct mmc_host *host; /* the host this device belongs to */
|
| /bsp/phytium/libraries/drivers/ |
| A D | drv_sdif.c | 55 static struct rt_mmcsd_host *mmc_host[FSDIF_NUM] = {RT_NULL}; variable 91 if (mmc_host[id]) in sdif_change() 93 mmcsd_change(mmc_host[id]); in sdif_change() 100 if (mmc_host[id]) in sdif_card_inserted() 102 return mmc_host[id]->ops->get_card_status(mmc_host[id]); in sdif_card_inserted() 649 mmc_host[id] = host; in sdif_host_init()
|
| A D | drv_sdif_msg.c | 55 static struct rt_mmcsd_host *mmc_host[FSDIF_NUM] = {RT_NULL}; variable 85 if (mmc_host[id]) in sdif_change() 87 mmcsd_change(mmc_host[id]); in sdif_change() 94 if (mmc_host[id]) in sdif_card_inserted() 96 return mmc_host[id]->ops->get_card_status(mmc_host[id]); in sdif_card_inserted() 890 mmc_host[id] = host; in sdif_host_init()
|
| /bsp/raspberry-pi/raspi-dm2.0/drivers/sdhci/ |
| A D | sdhci.c | 174 struct mmc_host *mmc = host->mmc; in sdhci_cleanup_host() 362 struct mmc_host *mmc = host->mmc; in sdhci_do_reset() 817 struct mmc_host *mmc = host->mmc; in sdhci_set_power_reg() 1014 static int sdhci_get_cd(struct mmc_host *mmc) in sdhci_get_cd() 2174 struct mmc_host *mmc = host->mmc; in sdhci_thread_irq() 2445 struct mmc_host *mmc = host->mmc; in sdhci_send_tuning() 2579 struct mmc_host *mmc = host->mmc; in sdhci_remove_host() 2858 struct mmc_host *mmc; in sdhci_alloc_host() 2893 struct mmc_host *mmc; in sdhci_setup_host() 3348 struct mmc_host *mmc = host->mmc; in sdhci_init() [all …]
|