| /u-boot/drivers/mmc/ |
| A D | mmc.c | 40 __weak int board_mmc_getwp(struct mmc *mmc) in board_mmc_getwp() 45 int mmc_getwp(struct mmc *mmc) in mmc_getwp() 61 __weak int board_mmc_getcd(struct mmc *mmc) in board_mmc_getcd() 508 static int mmc_go_idle(struct mmc *mmc) in mmc_go_idle() 858 int mmc_boot_wp(struct mmc *mmc) in mmc_boot_wp() 1042 int mmc_hwpart_config(struct mmc *mmc, in mmc_hwpart_config() 1240 int mmc_getcd(struct mmc *mmc) in mmc_getcd() 2769 int mmc_get_op_cond(struct mmc *mmc) in mmc_get_op_cond() 2854 int mmc_start_init(struct mmc *mmc) in mmc_start_init() 2910 int mmc_init(struct mmc *mmc) in mmc_init() [all …]
|
| A D | mmc-uclass.c | 21 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_mmc_get_b_max() local 37 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_mmc_send_cmd() local 65 int mmc_set_ios(struct mmc *mmc) in mmc_set_ios() 93 int mmc_getwp(struct mmc *mmc) in mmc_getwp() 107 int mmc_getcd(struct mmc *mmc) in mmc_getcd() 155 int mmc_hs400_prepare_ddr(struct mmc *mmc) in mmc_hs400_prepare_ddr() 169 int mmc_host_power_cycle(struct mmc *mmc) in mmc_host_power_cycle() 184 int mmc_deferred_probe(struct mmc *mmc) in mmc_deferred_probe() 199 int mmc_reinit(struct mmc *mmc) in mmc_reinit() 458 struct mmc *mmc = upriv->mmc; in mmc_blk_probe() local [all …]
|
| A D | meson_gx_mmc.c | 28 static inline void *get_regbase(const struct mmc *mmc) in get_regbase() 35 static inline uint32_t meson_read(struct mmc *mmc, int offset) in meson_read() 40 static inline void meson_write(struct mmc *mmc, uint32_t val, int offset) in meson_write() 45 static void meson_mmc_config_clock(struct mmc *mmc) in meson_mmc_config_clock() 88 struct mmc *mmc = mmc_get_mmc_dev(dev); in meson_dm_mmc_set_ios() local 122 static void meson_mmc_setup_cmd(struct mmc *mmc, struct mmc_data *data, in meson_mmc_setup_cmd() 161 static void meson_mmc_setup_addr(struct mmc *mmc, struct mmc_data *data) in meson_mmc_setup_addr() 185 static void meson_mmc_read_response(struct mmc *mmc, struct mmc_cmd *cmd) in meson_mmc_read_response() 200 struct mmc *mmc = mmc_get_mmc_dev(dev); in meson_dm_mmc_send_cmd() local 262 struct mmc *mmc = &pdata->mmc; in meson_mmc_probe() local
|
| A D | mmc_legacy.c | 31 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc() 60 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc() 90 void mmc_list_add(struct mmc *mmc) in mmc_list_add() 147 struct mmc *mmc = &mmc_static; in mmc_create() local 164 void mmc_destroy(struct mmc *mmc) in mmc_destroy() 171 struct mmc *mmc; in mmc_create() local 211 void mmc_destroy(struct mmc *mmc) in mmc_destroy() 220 struct mmc *mmc = find_mmc_device(desc->devnum); in mmc_select_hwpartp() local 241 struct mmc *mmc = find_mmc_device(dev); in mmc_get_dev() local
|
| A D | pxa_mmc_gen.c | 56 static int pxa_mmc_wait(struct mmc *mmc, uint32_t mask) in pxa_mmc_wait() 75 static int pxa_mmc_stop_clock(struct mmc *mmc) in pxa_mmc_stop_clock() 103 static int pxa_mmc_start_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in pxa_mmc_start_cmd() 147 static int pxa_mmc_cmd_done(struct mmc *mmc, struct mmc_cmd *cmd) in pxa_mmc_cmd_done() 189 static int pxa_mmc_do_read_xfer(struct mmc *mmc, struct mmc_data *data) in pxa_mmc_do_read_xfer() 224 static int pxa_mmc_do_write_xfer(struct mmc *mmc, struct mmc_data *data) in pxa_mmc_do_write_xfer() 372 static int pxa_mmc_init(struct mmc *mmc) in pxa_mmc_init() 379 static int pxa_mmc_request(struct mmc *mmc, struct mmc_cmd *cmd, in pxa_mmc_request() 387 static int pxa_mmc_set_ios(struct mmc *mmc) in pxa_mmc_set_ios() 412 struct mmc *mmc; in pxa_mmc_register() local [all …]
|
| A D | mmc_boot.c | 24 int mmc_boot_partition_size_change(struct mmc *mmc, unsigned long bootsize, in mmc_boot_partition_size_change() 86 int mmc_set_boot_bus_width(struct mmc *mmc, u8 width, u8 reset, u8 mode) in mmc_set_boot_bus_width() 101 int mmc_set_part_conf(struct mmc *mmc, u8 ack, u8 part_num, u8 access) in mmc_set_part_conf() 124 int mmc_set_rst_n_function(struct mmc *mmc, u8 enable) in mmc_set_rst_n_function()
|
| A D | octeontx_hsmmc.c | 176 static void octeontx_print_rsp_sts(struct mmc *mmc) in octeontx_print_rsp_sts() 246 static inline u64 read_csr(struct mmc *mmc, u64 reg) in read_csr() 1793 static int octeontx_tune_hs400(struct mmc *mmc) in octeontx_tune_hs400() 2246 struct mmc *mmc = dev_to_mmc(dev); in octeontx_mmc_execute_tuning() local 2422 struct mmc *mmc = &slot->mmc; in octeontx_mmc_set_ios() local 2768 static void set_wdog(struct mmc *mmc, u64 us) in set_wdog() 2813 static void check_switch_errors(struct mmc *mmc) in check_switch_errors() 3145 static void octeontx_mmc_set_clock(struct mmc *mmc) in octeontx_mmc_set_clock() 3163 static void octeontx_mmc_switch_io(struct mmc *mmc) in octeontx_mmc_switch_io() 3252 static void octeontx_mmc_switch_to(struct mmc *mmc) in octeontx_mmc_switch_to() [all …]
|
| A D | rpmb.c | 78 static int mmc_set_blockcount(struct mmc *mmc, unsigned int blockcount, in mmc_set_blockcount() 91 static int mmc_rpmb_request(struct mmc *mmc, const struct s_rpmb *s, in mmc_rpmb_request() 128 static int mmc_rpmb_response(struct mmc *mmc, struct s_rpmb *s, in mmc_rpmb_response() 176 static int mmc_rpmb_status(struct mmc *mmc, unsigned short expected) in mmc_rpmb_status() 232 int mmc_rpmb_get_counter(struct mmc *mmc, unsigned long *pcounter) in mmc_rpmb_get_counter() 251 int mmc_rpmb_set_key(struct mmc *mmc, void *key) in mmc_rpmb_set_key() 265 int mmc_rpmb_read(struct mmc *mmc, void *addr, unsigned short blk, in mmc_rpmb_read() 298 int mmc_rpmb_write(struct mmc *mmc, void *addr, unsigned short blk, in mmc_rpmb_write() 348 static int send_read_mult_block(struct mmc *mmc, struct s_rpmb *frm, in send_read_mult_block() 402 static int rpmb_route_read_req(struct mmc *mmc, struct s_rpmb *req, in rpmb_route_read_req() [all …]
|
| A D | omap_hsmmc.c | 213 static unsigned char mmc_board_init(struct mmc *mmc) in mmc_board_init() 366 static void omap_hsmmc_set_timing(struct mmc *mmc) in omap_hsmmc_set_timing() 625 struct mmc *mmc = upriv->mmc; in omap_hsmmc_execute_tuning() local 807 static int omap_hsmmc_init_setup(struct mmc *mmc) in omap_hsmmc_init_setup() 1015 static void omap_hsmmc_dma_cleanup(struct mmc *mmc) in omap_hsmmc_dma_cleanup() 1347 static void omap_hsmmc_set_clock(struct mmc *mmc) 1418 static int omap_hsmmc_set_ios(struct mmc *mmc) 1483 static int omap_hsmmc_getcd(struct mmc *mmc) 1497 static int omap_hsmmc_getwp(struct mmc *mmc) 1542 struct mmc *mmc; local [all …]
|
| A D | sdhci.c | 203 struct mmc *mmc = mmc_get_mmc_dev(dev); local 351 struct mmc *mmc = mmc_get_mmc_dev(dev); local 365 int sdhci_set_clock(struct mmc *mmc, unsigned int clock) 491 struct mmc *mmc = host->mmc; local 520 struct mmc *mmc = (struct mmc *)host->mmc; local 614 struct mmc *mmc = mmc_get_mmc_dev(dev); local 679 static int sdhci_init(struct mmc *mmc) 726 struct mmc *mmc = mmc_get_mmc_dev(dev); local 734 struct mmc *mmc = mmc_get_mmc_dev(dev); local 747 struct mmc *mmc = mmc_get_mmc_dev(dev); local [all …]
|
| A D | mmc_write.c | 18 static ulong mmc_erase_t(struct mmc *mmc, ulong start, lbaint_t blkcnt) in mmc_erase_t() 81 struct mmc *mmc = find_mmc_device(dev_num); in mmc_berase() local 130 static ulong mmc_write_blocks(struct mmc *mmc, lbaint_t start, in mmc_write_blocks() 202 struct mmc *mmc = find_mmc_device(dev_num); in mmc_bwrite() local
|
| A D | ftsdc010_mci.c | 55 struct mmc mmc; member 66 static inline int ftsdc010_send_cmd(struct mmc *mmc, struct mmc_cmd *mmc_cmd) in ftsdc010_send_cmd() 136 static void ftsdc010_clkset(struct mmc *mmc, uint32_t rate) in ftsdc010_clkset() 186 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_request() local 289 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_set_ios() local 313 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_get_cd() local 321 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_get_wp() local 332 static int ftsdc010_init(struct mmc *mmc) in ftsdc010_init() 363 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_probe() local
|
| A D | sunxi_mmc.c | 28 struct mmc mmc; member 225 static int mmc_config_clock(struct sunxi_mmc_priv *priv, struct mmc *mmc) in mmc_config_clock() 263 struct mmc *mmc) in sunxi_mmc_set_ios_common() 286 static int sunxi_mmc_core_init(struct mmc *mmc) in sunxi_mmc_core_init() 298 static int mmc_trans_data_by_cpu(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_trans_data_by_cpu() 333 static int mmc_rint_wait(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_rint_wait() 353 struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_common() 476 static int sunxi_mmc_set_ios_legacy(struct mmc *mmc) in sunxi_mmc_set_ios_legacy() 483 static int sunxi_mmc_send_cmd_legacy(struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_legacy() 491 static int sunxi_mmc_getcd_legacy(struct mmc *mmc) in sunxi_mmc_getcd_legacy()
|
| A D | dw_mmc.c | 122 static unsigned int dwmci_get_timeout(struct mmc *mmc, const unsigned int size) in dwmci_get_timeout() 139 struct mmc *mmc = host->mmc; in dwmci_data_transfer() local 246 struct mmc *mmc = mmc_get_mmc_dev(dev); local 466 struct mmc *mmc = mmc_get_mmc_dev(dev); local 525 static int dwmci_init(struct mmc *mmc) 572 struct mmc *mmc = mmc_get_mmc_dev(dev); local 617 int dwmci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg)
|
| A D | mmc_private.h | 78 static inline void mmmc_trace_before_send(struct mmc *mmc, struct mmc_cmd *cmd) in mmmc_trace_before_send() 82 static inline void mmmc_trace_after_send(struct mmc *mmc, struct mmc_cmd *cmd, in mmmc_trace_after_send() 87 static inline void mmc_trace_state(struct mmc *mmc, struct mmc_cmd *cmd) in mmc_trace_state()
|
| A D | mvebu_mmc.c | 67 static int mvebu_mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in mvebu_mmc_send_cmd() 320 static int mvebu_mmc_set_ios(struct mmc *mmc) in mvebu_mmc_set_ios() 379 static int mvebu_mmc_initialize(struct mmc *mmc) in mvebu_mmc_initialize() 433 struct mmc *mmc; in mvebu_mmc_init() local
|
| A D | zynq_sdhci.c | 38 struct mmc mmc; member 101 static int arasan_sdhci_execute_tuning(struct mmc *mmc, u8 opcode) in arasan_sdhci_execute_tuning() 192 struct mmc *mmc = (struct mmc *)host->mmc; in sdhci_zynqmp_sdcardclk_set_phase() local 248 struct mmc *mmc = (struct mmc *)host->mmc; in sdhci_zynqmp_sampleclk_set_phase() local 303 struct mmc *mmc = (struct mmc *)host->mmc; in sdhci_versal_sdcardclk_set_phase() local 367 struct mmc *mmc = (struct mmc *)host->mmc; in sdhci_versal_sampleclk_set_phase() local 427 struct mmc *mmc = (struct mmc *)host->mmc; in arasan_sdhci_set_tapdelay() local 529 struct mmc *mmc = (struct mmc *)host->mmc; in arasan_sdhci_set_control_reg() local
|
| A D | sh_mmcif.c | 549 static int sh_mmcif_set_ios_common(struct sh_mmcif_host *host, struct mmc *mmc) in sh_mmcif_set_ios_common() 574 static void *mmc_priv(struct mmc *mmc) in mmc_priv() 579 static int sh_mmcif_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in sh_mmcif_send_cmd() 587 static int sh_mmcif_set_ios(struct mmc *mmc) in sh_mmcif_set_ios() 594 static int sh_mmcif_initialize(struct mmc *mmc) in sh_mmcif_initialize() 618 struct mmc *mmc; in mmcif_mmc_init() local 644 struct mmc mmc; member 658 struct mmc *mmc = mmc_get_mmc_dev(dev); in sh_mmcif_dm_set_ios() local
|
| A D | fsl_esdhc_imx.c | 122 struct mmc mmc; member 160 struct mmc *mmc; member 752 static int esdhc_set_timing(struct mmc *mmc) in esdhc_set_timing() 796 static int esdhc_set_voltage(struct mmc *mmc) in esdhc_set_voltage() 849 static void esdhc_stop_tuning(struct mmc *mmc) in esdhc_stop_tuning() 865 struct mmc *mmc = &plat->mmc; in fsl_esdhc_execute_tuning() local 1125 static int esdhc_getcd(struct mmc *mmc) in esdhc_getcd() 1132 static int esdhc_init(struct mmc *mmc) in esdhc_init() 1147 static int esdhc_set_ios(struct mmc *mmc) in esdhc_set_ios() 1330 struct mmc *mmc; in fsl_esdhc_initialize() local [all …]
|
| A D | jz_mmc.c | 122 struct mmc mmc; member 195 static int jz_mmc_send_cmd(struct mmc *mmc, struct jz_mmc_priv *priv, in jz_mmc_send_cmd() 323 static int jz_mmc_set_ios(struct mmc *mmc, struct jz_mmc_priv *priv) in jz_mmc_set_ios() 347 static int jz_mmc_core_init(struct mmc *mmc) in jz_mmc_core_init() 371 static int jz_mmc_legacy_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in jz_mmc_legacy_send_cmd() 379 static int jz_mmc_legacy_set_ios(struct mmc *mmc) in jz_mmc_legacy_set_ios() 411 struct mmc *mmc; in jz_mmc_init() local 429 struct mmc *mmc = mmc_get_mmc_dev(dev); in jz_mmc_dm_send_cmd() local 437 struct mmc *mmc = mmc_get_mmc_dev(dev); in jz_mmc_dm_set_ios() local
|
| A D | mxsmmc.c | 60 struct mmc mmc; member 91 static int mxsmmc_set_ios(struct mmc *mmc) in mxsmmc_set_ios() 122 static int mxsmmc_init(struct mmc *mmc) in mxsmmc_init() 162 struct mmc *mmc = NULL; in mxsmmc_initialize() local 305 mxsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) 508 struct mmc *mmc = &plat->mmc; local 573 struct mmc *mmc; local
|
| /u-boot/include/ |
| A D | mmc.h | 665 struct mmc { struct 678 enum mmc_voltage signal_voltage; argument 681 uint ocr; 682 uint dsr; 684 uint scr[2]; 685 uint csd[4]; 687 ushort rca; 720 char init_in_progress; /* 1 if we have done mmc_start_init() */ argument 726 struct udevice *vmmc_supply; /* Main voltage regulator (Vcc)*/ argument 732 enum mmc_voltage current_voltage; argument [all …]
|
| /u-boot/common/spl/ |
| A D | spl_mmc.c | 20 static int mmc_load_legacy(struct spl_image_info *spl_image, struct mmc *mmc, in mmc_load_legacy() 49 struct mmc *mmc = load->dev; in h_spl_load_read() local 66 struct mmc *mmc, unsigned long sector) in mmc_load_image_raw_sector() 170 struct mmc *mmc, int partition, in mmc_load_image_raw_partition() 209 struct mmc *mmc) in mmc_load_image_raw_os() 246 struct mmc *mmc) in mmc_load_image_raw_os() 253 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc, in spl_mmc_do_fs_boot() 296 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc, in spl_mmc_do_fs_boot() 321 unsigned long __weak spl_mmc_get_uboot_raw_sector(struct mmc *mmc, in spl_mmc_get_uboot_raw_sector() 333 static struct mmc *mmc; in spl_mmc_load() local
|
| /u-boot/env/ |
| A D | mmc.c | 121 __weak uint mmc_get_env_part(struct mmc *mmc) in mmc_get_env_part() 128 static int mmc_set_env_part(struct mmc *mmc) in mmc_set_env_part() 142 static inline int mmc_set_env_part(struct mmc *mmc) {return 0; }; in mmc_set_env_part() 145 static const char *init_mmc_for_env(struct mmc *mmc) in init_mmc_for_env() 165 static void fini_mmc_for_env(struct mmc *mmc) in fini_mmc_for_env() 175 static inline int write_env(struct mmc *mmc, unsigned long size, in write_env() 193 struct mmc *mmc = find_mmc_device(dev); in env_mmc_save() local 255 struct mmc *mmc = find_mmc_device(dev); in env_mmc_erase() local 285 static inline int read_env(struct mmc *mmc, unsigned long size, in read_env() 303 struct mmc *mmc; in env_mmc_load() local [all …]
|
| /u-boot/cmd/ |
| A D | mmc.c | 125 struct mmc *mmc; in init_mmc_device() local 151 struct mmc *mmc; in do_mmcinfo() local 281 struct mmc *mmc; in do_mmcrpmb() local 330 struct mmc *mmc; in do_mmc_read() local 374 struct mmc *mmc; in do_mmc_sparse_write() local 423 struct mmc *mmc; in do_mmc_write() local 454 struct mmc *mmc; in do_mmc_erase() local 484 struct mmc *mmc; in do_mmc_rescan() local 497 struct mmc *mmc; in do_mmc_part() local 517 struct mmc *mmc; in do_mmc_dev() local [all …]
|