/openbmc/u-boot/drivers/mmc/ |
H A D | mmc.c | 39 __weak int board_mmc_getwp(struct mmc *mmc) in board_mmc_getwp() 44 int mmc_getwp(struct mmc *mmc) in mmc_getwp() 60 __weak int board_mmc_getcd(struct mmc *mmc) in board_mmc_getcd() 454 static int mmc_go_idle(struct mmc *mmc) in mmc_go_idle() 965 int mmc_hwpart_config(struct mmc *mmc, in mmc_hwpart_config() 1161 int mmc_getcd(struct mmc *mmc) in mmc_getcd() 1392 static int sd_read_ssr(struct mmc *mmc) in sd_read_ssr() 2620 int mmc_get_op_cond(struct mmc *mmc) in mmc_get_op_cond() 2704 int mmc_start_init(struct mmc *mmc) in mmc_start_init() 2758 int mmc_init(struct mmc *mmc) in mmc_init() [all …]
|
H A D | meson_gx_mmc.c | 15 static inline void *get_regbase(const struct mmc *mmc) in get_regbase() 22 static inline uint32_t meson_read(struct mmc *mmc, int offset) in meson_read() 27 static inline void meson_write(struct mmc *mmc, uint32_t val, int offset) in meson_write() 32 static void meson_mmc_config_clock(struct mmc *mmc) in meson_mmc_config_clock() 65 struct mmc *mmc = mmc_get_mmc_dev(dev); in meson_dm_mmc_set_ios() local 99 static void meson_mmc_setup_cmd(struct mmc *mmc, struct mmc_data *data, in meson_mmc_setup_cmd() 138 static void meson_mmc_setup_addr(struct mmc *mmc, struct mmc_data *data) in meson_mmc_setup_addr() 162 static void meson_mmc_read_response(struct mmc *mmc, struct mmc_cmd *cmd) in meson_mmc_read_response() 177 struct mmc *mmc = mmc_get_mmc_dev(dev); in meson_dm_mmc_send_cmd() local 239 struct mmc *mmc = &pdata->mmc; in meson_mmc_probe() local
|
H A D | mmc-uclass.c | 17 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_mmc_send_cmd() local 45 int mmc_set_ios(struct mmc *mmc) in mmc_set_ios() 58 void mmc_send_init_stream(struct mmc *mmc) in mmc_send_init_stream() 88 int mmc_getwp(struct mmc *mmc) in mmc_getwp() 102 int mmc_getcd(struct mmc *mmc) in mmc_getcd() 117 int mmc_execute_tuning(struct mmc *mmc, uint opcode) in mmc_execute_tuning() 204 struct mmc *mmc = mmc_get_mmc_dev(mmc_dev); in find_mmc_device() local 219 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc() 343 struct mmc *mmc = mmc_get_mmc_dev(mmc_dev); in mmc_select_hwpart() local 359 struct mmc *mmc = upriv->mmc; in mmc_blk_probe() local [all …]
|
H A D | mmc_legacy.c | 32 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc() 61 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc() 94 void mmc_list_add(struct mmc *mmc) in mmc_list_add() 151 struct mmc *mmc = &mmc_static; in mmc_create() local 159 void mmc_destroy(struct mmc *mmc) in mmc_destroy() 166 struct mmc *mmc; in mmc_create() local 206 void mmc_destroy(struct mmc *mmc) in mmc_destroy() 215 struct mmc *mmc = find_mmc_device(desc->devnum); in mmc_select_hwpartp() local 236 struct mmc *mmc = find_mmc_device(dev); in mmc_get_dev() local
|
H A D | rpmb.c | 76 static int mmc_set_blockcount(struct mmc *mmc, unsigned int blockcount, in mmc_set_blockcount() 89 static int mmc_rpmb_request(struct mmc *mmc, const struct s_rpmb *s, in mmc_rpmb_request() 122 static int mmc_rpmb_response(struct mmc *mmc, struct s_rpmb *s, in mmc_rpmb_response() 170 static int mmc_rpmb_status(struct mmc *mmc, unsigned short expected) in mmc_rpmb_status() 226 int mmc_rpmb_get_counter(struct mmc *mmc, unsigned long *pcounter) in mmc_rpmb_get_counter() 245 int mmc_rpmb_set_key(struct mmc *mmc, void *key) in mmc_rpmb_set_key() 259 int mmc_rpmb_read(struct mmc *mmc, void *addr, unsigned short blk, in mmc_rpmb_read() 292 int mmc_rpmb_write(struct mmc *mmc, void *addr, unsigned short blk, in mmc_rpmb_write() 342 static int send_read_mult_block(struct mmc *mmc, struct s_rpmb *frm, in send_read_mult_block() 396 static int rpmb_route_read_req(struct mmc *mmc, struct s_rpmb *req, in rpmb_route_read_req() [all …]
|
H A D | pxa_mmc_gen.c | 50 static int pxa_mmc_wait(struct mmc *mmc, uint32_t mask) in pxa_mmc_wait() 69 static int pxa_mmc_stop_clock(struct mmc *mmc) in pxa_mmc_stop_clock() 97 static int pxa_mmc_start_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in pxa_mmc_start_cmd() 141 static int pxa_mmc_cmd_done(struct mmc *mmc, struct mmc_cmd *cmd) in pxa_mmc_cmd_done() 183 static int pxa_mmc_do_read_xfer(struct mmc *mmc, struct mmc_data *data) in pxa_mmc_do_read_xfer() 219 static int pxa_mmc_do_write_xfer(struct mmc *mmc, struct mmc_data *data) in pxa_mmc_do_write_xfer() 261 static int pxa_mmc_request(struct mmc *mmc, struct mmc_cmd *cmd, in pxa_mmc_request() 315 static int pxa_mmc_set_ios(struct mmc *mmc) in pxa_mmc_set_ios() 348 static int pxa_mmc_init(struct mmc *mmc) in pxa_mmc_init() 386 struct mmc *mmc; in pxa_mmc_register() local
|
H A D | omap_hsmmc.c | 202 static unsigned char mmc_board_init(struct mmc *mmc) in mmc_board_init() 355 static void omap_hsmmc_set_timing(struct mmc *mmc) in omap_hsmmc_set_timing() 618 struct mmc *mmc = upriv->mmc; in omap_hsmmc_execute_tuning() local 808 static int omap_hsmmc_init_setup(struct mmc *mmc) in omap_hsmmc_init_setup() 1016 static void omap_hsmmc_dma_cleanup(struct mmc *mmc) in omap_hsmmc_dma_cleanup() 1349 static void omap_hsmmc_set_clock(struct mmc *mmc) 1420 static int omap_hsmmc_set_ios(struct mmc *mmc) 1485 static int omap_hsmmc_getcd(struct mmc *mmc) 1499 static int omap_hsmmc_getwp(struct mmc *mmc) 1547 struct mmc *mmc; local [all …]
|
H A D | mmc_boot.c | 23 int mmc_boot_partition_size_change(struct mmc *mmc, unsigned long bootsize, in mmc_boot_partition_size_change() 85 int mmc_set_boot_bus_width(struct mmc *mmc, u8 width, u8 reset, u8 mode) in mmc_set_boot_bus_width() 100 int mmc_set_part_conf(struct mmc *mmc, u8 ack, u8 part_num, u8 access) in mmc_set_part_conf() 123 int mmc_set_rst_n_function(struct mmc *mmc, u8 enable) in mmc_set_rst_n_function()
|
H A D | mmc_spi.c | 53 static uint mmc_spi_sendcmd(struct mmc *mmc, ushort cmdidx, u32 cmdarg) in mmc_spi_sendcmd() 76 static uint mmc_spi_readdata(struct mmc *mmc, void *xbuf, in mmc_spi_readdata() 111 static uint mmc_spi_writedata(struct mmc *mmc, const void *xbuf, in mmc_spi_writedata() 173 static int mmc_spi_request(struct mmc *mmc, struct mmc_cmd *cmd, in mmc_spi_request() 239 static int mmc_spi_set_ios(struct mmc *mmc) in mmc_spi_set_ios() 249 static int mmc_spi_init_p(struct mmc *mmc) in mmc_spi_init_p() 278 struct mmc *mmc; in mmc_spi_init() local
|
H A D | ftsdc010_mci.c | 52 struct mmc mmc; member 63 static inline int ftsdc010_send_cmd(struct mmc *mmc, struct mmc_cmd *mmc_cmd) in ftsdc010_send_cmd() 133 static void ftsdc010_clkset(struct mmc *mmc, uint32_t rate) in ftsdc010_clkset() 183 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_request() local 286 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_set_ios() local 310 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_get_cd() local 318 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_get_wp() local 329 static int ftsdc010_init(struct mmc *mmc) in ftsdc010_init() 360 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_probe() local
|
H A D | sunxi_mmc.c | 32 struct mmc mmc; member 232 static int mmc_config_clock(struct sunxi_mmc_priv *priv, struct mmc *mmc) in mmc_config_clock() 270 struct mmc *mmc) in sunxi_mmc_set_ios_common() 293 static int sunxi_mmc_core_init(struct mmc *mmc) in sunxi_mmc_core_init() 305 static int mmc_trans_data_by_cpu(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_trans_data_by_cpu() 340 static int mmc_rint_wait(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_rint_wait() 360 struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_common() 483 static int sunxi_mmc_set_ios_legacy(struct mmc *mmc) in sunxi_mmc_set_ios_legacy() 490 static int sunxi_mmc_send_cmd_legacy(struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_legacy() 498 static int sunxi_mmc_getcd_legacy(struct mmc *mmc) in sunxi_mmc_getcd_legacy()
|
/openbmc/linux/drivers/mmc/host/ |
H A D | mmc_hsq.c | 19 struct mmc_host *mmc = hsq->mmc; in mmc_hsq_retry_handler() local 26 struct mmc_host *mmc = hsq->mmc; in mmc_hsq_pump_requests() local 159 static void mmc_hsq_recovery_start(struct mmc_host *mmc) in mmc_hsq_recovery_start() 171 static void mmc_hsq_recovery_finish(struct mmc_host *mmc) in mmc_hsq_recovery_finish() 191 static int mmc_hsq_request(struct mmc_host *mmc, struct mmc_request *mrq) in mmc_hsq_request() 256 static int mmc_hsq_wait_for_idle(struct mmc_host *mmc) in mmc_hsq_wait_for_idle() 267 static void mmc_hsq_disable(struct mmc_host *mmc) in mmc_hsq_disable() 297 static int mmc_hsq_enable(struct mmc_host *mmc, struct mmc_card *card) in mmc_hsq_enable() 325 int mmc_hsq_init(struct mmc_hsq *hsq, struct mmc_host *mmc) in mmc_hsq_init() 352 void mmc_hsq_suspend(struct mmc_host *mmc) in mmc_hsq_suspend() [all …]
|
H A D | meson-mx-sdhc-mmc.c | 45 struct mmc_host *mmc; member 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() 402 static int meson_mx_sdhc_card_busy(struct mmc_host *mmc) in meson_mx_sdhc_card_busy() 510 struct mmc_host *mmc = host->mmc; in meson_mx_sdhc_request_done() local 727 static void meson_mx_sdhc_init_hw(struct mmc_host *mmc) in meson_mx_sdhc_init_hw() [all …]
|
H A D | cqhci-core.c | 110 struct mmc_host *mmc = cq_host->mmc; in cqhci_dumpregs() local 248 struct mmc_host *mmc = cq_host->mmc; in __cqhci_enable() local 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() 883 static int cqhci_wait_for_idle(struct mmc_host *mmc) in cqhci_wait_for_idle() 992 static void cqhci_recovery_start(struct mmc_host *mmc) in cqhci_recovery_start() 1065 static void cqhci_recovery_finish(struct mmc_host *mmc) in cqhci_recovery_finish() [all …]
|
H A D | tmio_mmc_core.c | 633 struct mmc_host *mmc = host->mmc; in __tmio_mmc_card_detect_irq() local 682 struct mmc_host *mmc = host->mmc; in __tmio_mmc_sdio_irq() local 878 struct mmc_host *mmc = host->mmc; in tmio_mmc_power_on() local 912 struct mmc_host *mmc = host->mmc; in tmio_mmc_power_off() local 1016 static int tmio_mmc_get_ro(struct mmc_host *mmc) in tmio_mmc_get_ro() 1024 static int tmio_mmc_get_cd(struct mmc_host *mmc) in tmio_mmc_get_cd() 1055 struct mmc_host *mmc = host->mmc; in tmio_mmc_init_ocr() local 1077 struct mmc_host *mmc) in tmio_mmc_of_parse() 1097 struct mmc_host *mmc; in tmio_mmc_host_alloc() local 1145 struct mmc_host *mmc = _host->mmc; in tmio_mmc_host_probe() local [all …]
|
H A D | meson-gx-mmc.c | 154 struct mmc_host *mmc; member 228 static void meson_mmc_get_transfer_mode(struct mmc_host *mmc, in meson_mmc_get_transfer_mode() 356 struct mmc_host *mmc = host->mmc; in meson_mmc_clk_set() local 526 static int meson_mmc_resampling_tuning(struct mmc_host *mmc, u32 opcode) in meson_mmc_resampling_tuning() 594 static void meson_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in meson_mmc_set_ios() 652 static void meson_mmc_request_done(struct mmc_host *mmc, in meson_mmc_request_done() 663 static void meson_mmc_set_blksz(struct mmc_host *mmc, unsigned int blksz) in meson_mmc_set_blksz() 1075 static int meson_mmc_card_busy(struct mmc_host *mmc) in meson_mmc_card_busy() 1110 static void meson_mmc_enable_sdio_irq(struct mmc_host *mmc, int enable) in meson_mmc_enable_sdio_irq() 1120 static void meson_mmc_ack_sdio_irq(struct mmc_host *mmc) in meson_mmc_ack_sdio_irq() [all …]
|
H A D | sdhci.c | 239 struct mmc_host *mmc = host->mmc; in sdhci_do_reset() local 361 struct mmc_host *mmc = host->mmc; in sdhci_init() local 449 struct mmc_host *mmc = host->mmc; in sdhci_led_register() local 936 struct mmc_host *mmc = host->mmc; in sdhci_calc_sw_timeout() local 1213 struct mmc_host *mmc = host->mmc; in sdhci_external_dma_init() local 2051 struct mmc_host *mmc = host->mmc; in sdhci_set_power_reg() local 2794 struct mmc_host *mmc = host->mmc; in sdhci_send_tuning() local 3788 struct mmc_host *mmc = host->mmc; in sdhci_resume_host() local 3849 struct mmc_host *mmc = host->mmc; in sdhci_runtime_resume_host() local 4033 struct mmc_host *mmc; in sdhci_alloc_host() local [all …]
|
H A D | pxamci.c | 50 struct mmc_host *mmc; member 78 struct mmc_host *mmc = host->mmc; in pxamci_init_ocr() local 99 struct mmc_host *mmc = host->mmc; in pxamci_set_power() local 399 static void pxamci_request(struct mmc_host *mmc, struct mmc_request *mrq) in pxamci_request() 425 static int pxamci_get_ro(struct mmc_host *mmc) in pxamci_get_ro() 440 static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in pxamci_set_ios() 578 struct mmc_host *mmc) in pxamci_of_init() 600 struct mmc_host *mmc) in pxamci_of_init() 608 struct mmc_host *mmc; in pxamci_probe() local 787 struct mmc_host *mmc = platform_get_drvdata(pdev); in pxamci_remove() local
|
H A D | alcor.c | 692 static void alcor_set_timing(struct mmc_host *mmc, struct mmc_ios *ios) in alcor_set_timing() 720 static int alcor_card_busy(struct mmc_host *mmc) in alcor_card_busy() 732 static int alcor_get_cd(struct mmc_host *mmc) in alcor_get_cd() 744 static int alcor_get_ro(struct mmc_host *mmc) in alcor_get_ro() 775 static void alcor_pre_req(struct mmc_host *mmc, in alcor_pre_req() 825 static void alcor_post_req(struct mmc_host *mmc, in alcor_post_req() 906 static void alcor_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in alcor_set_ios() 927 static int alcor_signal_voltage_switch(struct mmc_host *mmc, in alcor_signal_voltage_switch() 1050 struct mmc_host *mmc = mmc_from_priv(host); in alcor_init_mmc() local 1082 struct mmc_host *mmc; in alcor_pci_sdmmc_drv_probe() local [all …]
|
H A D | rtsx_pci_sdmmc.c | 28 struct mmc_host *mmc; member 431 struct mmc_host *mmc = host->mmc; in sd_read_long_data() local 489 struct mmc_host *mmc = host->mmc; in sd_write_long_data() local 802 struct mmc_host *mmc = host->mmc; in sd_request() local 908 struct mmc_host *mmc = host->mmc; in sd_power_on() local 1135 static int sdmmc_get_ro(struct mmc_host *mmc) in sdmmc_get_ro() 1160 static int sdmmc_get_cd(struct mmc_host *mmc) in sdmmc_get_cd() 1414 struct mmc_host *mmc = host->mmc; in init_extra_caps() local 1437 struct mmc_host *mmc = host->mmc; in realtek_init_host() local 1473 struct mmc_host *mmc; in rtsx_pci_sdmmc_drv_probe() local [all …]
|
/openbmc/u-boot/include/ |
H A D | mmc.h | 570 struct mmc { struct 582 enum mmc_voltage signal_voltage; argument 585 uint ocr; 586 uint dsr; 588 uint scr[2]; 589 uint csd[4]; 591 ushort rca; 622 char init_in_progress; /* 1 if we have done mmc_start_init() */ argument 628 struct udevice *vmmc_supply; /* Main voltage regulator (Vcc)*/ argument 634 enum mmc_voltage current_voltage; argument [all …]
|
/openbmc/u-boot/cmd/ |
H A D | mmc.c | 97 struct mmc *mmc; in init_mmc_device() local 121 struct mmc *mmc; in do_mmcinfo() local 247 struct mmc *mmc; in do_mmcrpmb() local 296 struct mmc *mmc; in do_mmc_read() local 340 struct mmc *mmc; in do_mmc_sparse_write() local 389 struct mmc *mmc; in do_mmc_write() local 419 struct mmc *mmc; in do_mmc_erase() local 449 struct mmc *mmc; in do_mmc_rescan() local 461 struct mmc *mmc; in do_mmc_part() local 480 struct mmc *mmc; in do_mmc_dev() local [all …]
|
/openbmc/u-boot/env/ |
H A D | mmc.c | 113 __weak int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr) in mmc_get_env_addr() 131 __weak uint mmc_get_env_part(struct mmc *mmc) in mmc_get_env_part() 138 static int mmc_set_env_part(struct mmc *mmc) in mmc_set_env_part() 152 static inline int mmc_set_env_part(struct mmc *mmc) {return 0; }; in mmc_set_env_part() 155 static const char *init_mmc_for_env(struct mmc *mmc) in init_mmc_for_env() 175 static void fini_mmc_for_env(struct mmc *mmc) in fini_mmc_for_env() 185 static inline int write_env(struct mmc *mmc, unsigned long size, in write_env() 203 struct mmc *mmc = find_mmc_device(dev); in env_mmc_save() local 247 static inline int read_env(struct mmc *mmc, unsigned long size, in read_env() 265 struct mmc *mmc; in env_mmc_load() local [all …]
|
/openbmc/u-boot/common/spl/ |
H A D | spl_mmc.c | 18 static int mmc_load_legacy(struct spl_image_info *spl_image, struct mmc *mmc, in mmc_load_legacy() 47 struct mmc *mmc = load->dev; in h_spl_load_read() local 54 struct mmc *mmc, unsigned long sector) in mmc_load_image_raw_sector() 154 struct mmc *mmc, int partition, in mmc_load_image_raw_partition() 193 struct mmc *mmc) in mmc_load_image_raw_os() 230 struct mmc *mmc) in mmc_load_image_raw_os() 237 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc, in spl_mmc_do_fs_boot() 280 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc, in spl_mmc_do_fs_boot() 312 static struct mmc *mmc; in spl_mmc_load() local
|
/openbmc/linux/drivers/mmc/core/ |
H A D | regulator.c | 106 int mmc_regulator_set_ocr(struct mmc_host *mmc, in mmc_regulator_set_ocr() 182 int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_regulator_set_vqmmc() 248 int mmc_regulator_get_supply(struct mmc_host *mmc) in mmc_regulator_get_supply() 286 int mmc_regulator_enable_vqmmc(struct mmc_host *mmc) in mmc_regulator_enable_vqmmc() 310 void mmc_regulator_disable_vqmmc(struct mmc_host *mmc) in mmc_regulator_disable_vqmmc()
|