/u-boot/drivers/mmc/ |
A D | mmc.c | 43 __weak int board_mmc_getwp(struct mmc *mmc) in board_mmc_getwp() 48 int mmc_getwp(struct mmc *mmc) in mmc_getwp() 64 __weak int board_mmc_getcd(struct mmc *mmc) in board_mmc_getcd() 511 static int mmc_go_idle(struct mmc *mmc) in mmc_go_idle() 864 int mmc_boot_wp(struct mmc *mmc) in mmc_boot_wp() 1075 int mmc_hwpart_config(struct mmc *mmc, in mmc_hwpart_config() 1273 int mmc_getcd(struct mmc *mmc) in mmc_getcd() 1497 static int sd_read_ssr(struct mmc *mmc) in sd_read_ssr() 2893 int mmc_start_init(struct mmc *mmc) in mmc_start_init() 2967 int mmc_init(struct mmc *mmc) in mmc_init() [all …]
|
A D | mvebu_mmc.c | 28 static inline void *get_regbase(const struct mmc *mmc) in get_regbase() 40 static u32 mvebu_mmc_read(const struct mmc *mmc, u32 offs) in mvebu_mmc_read() 48 struct mmc *mmc = &pdata->mmc; in mvebu_mmc_setup_data() local 83 struct mmc *mmc = &pdata->mmc; in mvebu_mmc_send_cmd() local 250 struct mmc *mmc = &pdata->mmc; in mvebu_mmc_power_up() local 276 struct mmc *mmc = &pdata->mmc; in mvebu_mmc_set_clk() local 294 struct mmc *mmc = &pdata->mmc; in mvebu_mmc_set_bus() local 335 struct mmc *mmc = &pdata->mmc; in mvebu_mmc_set_ios() local 348 static void mvebu_window_setup(const struct mmc *mmc) in mvebu_window_setup() 397 struct mmc *mmc = &pdata->mmc; in mvebu_mmc_initialize() local [all …]
|
A D | mmc-uclass.c | 24 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_mmc_get_b_max() local 40 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_mmc_send_cmd() local 68 int mmc_set_ios(struct mmc *mmc) in mmc_set_ios() 96 int mmc_getwp(struct mmc *mmc) in mmc_getwp() 110 int mmc_getcd(struct mmc *mmc) in mmc_getcd() 158 int mmc_hs400_prepare_ddr(struct mmc *mmc) in mmc_hs400_prepare_ddr() 172 int mmc_host_power_cycle(struct mmc *mmc) in mmc_host_power_cycle() 187 int mmc_deferred_probe(struct mmc *mmc) in mmc_deferred_probe() 202 int mmc_reinit(struct mmc *mmc) in mmc_reinit() 484 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 | octeontx_hsmmc.c | 185 static void octeontx_print_rsp_sts(struct mmc *mmc) in octeontx_print_rsp_sts() 255 static inline u64 read_csr(struct mmc *mmc, u64 reg) in read_csr() 1813 static int octeontx_tune_hs400(struct mmc *mmc) in octeontx_tune_hs400() 2266 struct mmc *mmc = dev_to_mmc(dev); in octeontx_mmc_execute_tuning() local 2445 struct mmc *mmc = &slot->mmc; in octeontx_mmc_set_ios() local 2842 static void set_wdog(struct mmc *mmc, u64 us) in set_wdog() 2866 static void check_switch_errors(struct mmc *mmc) in check_switch_errors() 3215 static void octeontx_mmc_set_clock(struct mmc *mmc) in octeontx_mmc_set_clock() 3233 static void octeontx_mmc_switch_io(struct mmc *mmc) in octeontx_mmc_switch_io() 3322 static void octeontx_mmc_switch_to(struct mmc *mmc) in octeontx_mmc_switch_to() [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 | 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 | sdhci.c | 203 struct mmc *mmc = mmc_get_mmc_dev(dev); local 352 struct mmc *mmc = mmc_get_mmc_dev(dev); local 514 struct mmc *mmc = host->mmc; local 551 struct mmc *mmc = (struct mmc *)host->mmc; local 645 struct mmc *mmc = mmc_get_mmc_dev(dev); local 712 static int sdhci_init(struct mmc *mmc) 759 struct mmc *mmc = mmc_get_mmc_dev(dev); local 767 struct mmc *mmc = mmc_get_mmc_dev(dev); local 780 struct mmc *mmc = mmc_get_mmc_dev(dev); local 812 struct mmc *mmc = mmc_get_mmc_dev(dev); local [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 | sunxi_mmc.c | 37 struct mmc mmc; member 175 static int mmc_config_clock(struct sunxi_mmc_priv *priv, struct mmc *mmc) in mmc_config_clock() 214 struct mmc *mmc) in sunxi_mmc_set_ios_common() 236 static int mmc_trans_data_by_cpu(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_trans_data_by_cpu() 298 static int mmc_rint_wait(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_rint_wait() 318 struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_common() 483 static int sunxi_mmc_core_init(struct mmc *mmc) in sunxi_mmc_core_init() 494 static int sunxi_mmc_set_ios_legacy(struct mmc *mmc) in sunxi_mmc_set_ios_legacy() 501 static int sunxi_mmc_send_cmd_legacy(struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_legacy() 591 struct mmc *mmc = mmc_get_mmc_dev(dev); in sunxi_mmc_getcd() local
|
A D | ftsdc010_mci.c | 53 struct mmc mmc; member 64 static inline int ftsdc010_send_cmd(struct mmc *mmc, struct mmc_cmd *mmc_cmd) in ftsdc010_send_cmd() 134 static void ftsdc010_clkset(struct mmc *mmc, uint32_t rate) in ftsdc010_clkset() 184 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_request() local 287 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_set_ios() local 311 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_get_cd() local 319 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_get_wp() local 330 static int ftsdc010_init(struct mmc *mmc) in ftsdc010_init() 361 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_probe() local
|
A D | mmc_write.c | 18 static ulong mmc_erase_t(struct mmc *mmc, ulong start, lbaint_t blkcnt, u32 args) in mmc_erase_t() 81 struct mmc *mmc = find_mmc_device(dev_num); in mmc_berase() local 142 static ulong mmc_write_blocks(struct mmc *mmc, lbaint_t start, in mmc_write_blocks() 214 struct mmc *mmc = find_mmc_device(dev_num); in mmc_bwrite() local
|
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 247 struct mmc *mmc = mmc_get_mmc_dev(dev); local 467 struct mmc *mmc = mmc_get_mmc_dev(dev); local 526 static int dwmci_init(struct mmc *mmc) 573 struct mmc *mmc = mmc_get_mmc_dev(dev); local 618 int dwmci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg)
|
A D | mmc_private.h | 77 static inline void mmmc_trace_before_send(struct mmc *mmc, struct mmc_cmd *cmd) in mmmc_trace_before_send() 81 static inline void mmmc_trace_after_send(struct mmc *mmc, struct mmc_cmd *cmd, in mmmc_trace_after_send() 86 static inline void mmc_trace_state(struct mmc *mmc, struct mmc_cmd *cmd) in mmc_trace_state()
|
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 | 118 struct mmc mmc; member 154 struct mmc *mmc; member 709 static int esdhc_set_timing(struct mmc *mmc) in esdhc_set_timing() 753 static int esdhc_set_voltage(struct mmc *mmc) in esdhc_set_voltage() 811 static void esdhc_stop_tuning(struct mmc *mmc) in esdhc_stop_tuning() 827 struct mmc *mmc = &plat->mmc; in fsl_esdhc_execute_tuning() local 1107 static int esdhc_getcd(struct mmc *mmc) in esdhc_getcd() 1114 static int esdhc_init(struct mmc *mmc) in esdhc_init() 1129 static int esdhc_set_ios(struct mmc *mmc) in esdhc_set_ios() 1292 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 | fsl_esdhc.c | 85 struct mmc mmc; member 107 struct mmc *mmc; member 276 static int esdhc_setup_data(struct fsl_esdhc_priv *priv, struct mmc *mmc, in esdhc_setup_data() 749 static int esdhc_init_common(struct fsl_esdhc_priv *priv, struct mmc *mmc) in esdhc_init_common() 897 static int esdhc_getcd(struct mmc *mmc) in esdhc_getcd() 904 static int esdhc_init(struct mmc *mmc) in esdhc_init() 911 static int esdhc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in esdhc_send_cmd() 919 static int esdhc_set_ios(struct mmc *mmc) in esdhc_set_ios() 938 struct mmc *mmc; in fsl_esdhc_initialize() local 1008 struct mmc *mmc; in fsl_esdhc_probe() local [all …]
|
/u-boot/env/ |
A D | mmc.c | 97 static inline s64 mmc_offset(struct mmc *mmc, int copy) in mmc_offset() 145 static inline s64 mmc_offset(struct mmc *mmc, int copy) in mmc_offset() 174 __weak uint mmc_get_env_part(struct mmc *mmc) in mmc_get_env_part() 193 static bool mmc_set_env_part_init(struct mmc *mmc) in mmc_set_env_part_init() 202 static int mmc_set_env_part_restore(struct mmc *mmc) in mmc_set_env_part_restore() 212 static const char *init_mmc_for_env(struct mmc *mmc) in init_mmc_for_env() 232 static void fini_mmc_for_env(struct mmc *mmc) in fini_mmc_for_env() 256 struct mmc *mmc = find_mmc_device(dev); in env_mmc_save() local 326 struct mmc *mmc = find_mmc_device(dev); in env_mmc_erase() local 390 struct mmc *mmc; in env_mmc_load() local [all …]
|
/u-boot/include/ |
A D | mmc.h | 661 struct mmc { struct 674 enum mmc_voltage signal_voltage; argument 677 uint ocr; 678 uint dsr; 680 uint scr[2]; 681 uint csd[4]; 683 ushort rca; 717 char init_in_progress; /* 1 if we have done mmc_start_init() */ argument 723 struct udevice *vmmc_supply; /* Main voltage regulator (Vcc)*/ argument 729 enum mmc_voltage current_voltage; argument [all …]
|
/u-boot/common/spl/ |
A D | spl_mmc.c | 22 struct mmc *mmc, in mmc_load_legacy() 65 struct mmc *mmc = load->dev; in h_spl_load_read() local 83 struct mmc *mmc, unsigned long sector) in mmc_load_image_raw_sector() 188 struct mmc *mmc, int partition, in mmc_load_image_raw_partition() 228 struct mmc *mmc) in mmc_load_image_raw_os() 262 struct mmc *mmc) in mmc_load_image_raw_os() 278 struct mmc *mmc, in spl_mmc_do_fs_boot() 370 int default_spl_mmc_emmc_boot_partition(struct mmc *mmc) in default_spl_mmc_emmc_boot_partition() 388 int __weak spl_mmc_emmc_boot_partition(struct mmc *mmc) in spl_mmc_emmc_boot_partition() 393 static int spl_mmc_get_mmc_devnum(struct mmc *mmc) in spl_mmc_get_mmc_devnum() [all …]
|
/u-boot/cmd/ |
A D | mmc.c | 136 struct mmc *mmc; in __init_mmc_device() local 171 struct mmc *mmc; in do_mmcinfo() local 301 struct mmc *mmc; in do_mmcrpmb() local 350 struct mmc *mmc; in do_mmc_read() local 394 struct mmc *mmc; in do_mmc_sparse_write() local 443 struct mmc *mmc; in do_mmc_write() local 474 struct mmc *mmc; in do_mmc_erase() local 504 struct mmc *mmc; in do_mmc_rescan() local 527 struct mmc *mmc; in do_mmc_part() local 547 struct mmc *mmc; in do_mmc_dev() local [all …]
|
/u-boot/arch/arm/mach-k3/ |
A D | j721e_init.c | 104 struct mmc *mmc = find_mmc_device(0); in k3_mmc_stop_clock() local 117 struct mmc *mmc = find_mmc_device(0); in k3_mmc_restart_clock() local 146 static struct mmc *mmc; in do_dt_magic() local 293 u32 spl_mmc_boot_mode(struct mmc *mmc, const u32 boot_device) in spl_mmc_boot_mode()
|
A D | j721s2_init.c | 101 struct mmc *mmc = find_mmc_device(0); in k3_mmc_stop_clock() local 116 struct mmc *mmc = find_mmc_device(0); in k3_mmc_restart_clock() local 243 static struct mmc *mmc; in do_dt_magic() local 301 u32 spl_mmc_boot_mode(struct mmc *mmc, const u32 boot_device) in spl_mmc_boot_mode()
|