| /rk3399_rockchip-uboot/drivers/mmc/ |
| H A D | mmc.c | 52 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc() 59 __weak int board_mmc_getwp(struct mmc *mmc) in board_mmc_getwp() 64 int mmc_getwp(struct mmc *mmc) in mmc_getwp() 80 __weak int board_mmc_getcd(struct mmc *mmc) in board_mmc_getcd() 87 void mmmc_trace_before_send(struct mmc *mmc, struct mmc_cmd *cmd) in mmmc_trace_before_send() 93 void mmmc_trace_after_send(struct mmc *mmc, struct mmc_cmd *cmd, int ret) in mmmc_trace_after_send() 145 void mmc_trace_state(struct mmc *mmc, struct mmc_cmd *cmd) in mmc_trace_state() 155 int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mmc_send_cmd() 167 int mmc_send_status(struct mmc *mmc, int timeout) in mmc_send_status() 211 int mmc_set_blocklen(struct mmc *mmc, int len) in mmc_set_blocklen() [all …]
|
| H A D | meson_gx_mmc.c | 16 static inline void *get_regbase(const struct mmc *mmc) in get_regbase() 23 static inline uint32_t meson_read(struct mmc *mmc, int offset) in meson_read() 28 static inline void meson_write(struct mmc *mmc, uint32_t val, int offset) in meson_write() 33 static void meson_mmc_config_clock(struct mmc *mmc) in meson_mmc_config_clock() 63 struct mmc *mmc = mmc_get_mmc_dev(dev); in meson_dm_mmc_set_ios() local 97 static void meson_mmc_setup_cmd(struct mmc *mmc, struct mmc_data *data, in meson_mmc_setup_cmd() 136 static void meson_mmc_setup_addr(struct mmc *mmc, struct mmc_data *data) in meson_mmc_setup_addr() 160 static void meson_mmc_read_response(struct mmc *mmc, struct mmc_cmd *cmd) in meson_mmc_read_response() 175 struct mmc *mmc = mmc_get_mmc_dev(dev); in meson_dm_mmc_send_cmd() local 237 struct mmc *mmc = &pdata->mmc; in meson_mmc_probe() local
|
| H A D | mmc-uclass.c | 21 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_mmc_send_cmd() local 59 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_mmc_send_cmd_prepare() local 77 int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mmc_send_cmd() 83 int mmc_send_cmd_prepare(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mmc_send_cmd_prepare() 89 bool mmc_card_busy(struct mmc *mmc) in mmc_card_busy() 98 bool mmc_can_card_busy(struct mmc *mmc) in mmc_can_card_busy() 114 int mmc_set_ios(struct mmc *mmc) in mmc_set_ios() 128 int mmc_getwp(struct mmc *mmc) in mmc_getwp() 142 int mmc_getcd(struct mmc *mmc) in mmc_getcd() 157 int mmc_set_enhanced_strobe(struct mmc *mmc) in mmc_set_enhanced_strobe() [all …]
|
| H A D | mmc_legacy.c | 41 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc() 74 void mmc_list_add(struct mmc *mmc) in mmc_list_add() 131 struct mmc *mmc = &mmc_static; in mmc_create() local 139 void mmc_destroy(struct mmc *mmc) in mmc_destroy() 146 struct mmc *mmc; in mmc_create() local 186 void mmc_destroy(struct mmc *mmc) in mmc_destroy() 195 struct mmc *mmc = find_mmc_device(desc->devnum); in mmc_select_hwpartp() local 216 struct mmc *mmc = find_mmc_device(dev); in mmc_get_dev() local
|
| H A D | rpmb.c | 57 static int mmc_rpmb_request(struct mmc *mmc, const void *s, in mmc_rpmb_request() 90 static int mmc_rpmb_response(struct mmc *mmc, struct s_rpmb *s, in mmc_rpmb_response() 138 static int mmc_rpmb_status(struct mmc *mmc, unsigned short expected) in mmc_rpmb_status() 194 int mmc_rpmb_get_counter(struct mmc *mmc, unsigned long *pcounter) in mmc_rpmb_get_counter() 213 int mmc_rpmb_set_key(struct mmc *mmc, void *key) in mmc_rpmb_set_key() 227 int mmc_rpmb_read(struct mmc *mmc, void *addr, unsigned short blk, in mmc_rpmb_read() 283 int mmc_rpmb_write(struct mmc *mmc, void *addr, unsigned short blk, in mmc_rpmb_write() 341 int read_counter(struct mmc *mmc, struct s_rpmb *requestpackets) in read_counter() 352 int program_key(struct mmc *mmc, struct s_rpmb *requestpackets) in program_key() 367 int authenticated_read(struct mmc *mmc, in authenticated_read() [all …]
|
| H A D | pxa_mmc_gen.c | 51 static int pxa_mmc_wait(struct mmc *mmc, uint32_t mask) in pxa_mmc_wait() 70 static int pxa_mmc_stop_clock(struct mmc *mmc) in pxa_mmc_stop_clock() 98 static int pxa_mmc_start_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in pxa_mmc_start_cmd() 142 static int pxa_mmc_cmd_done(struct mmc *mmc, struct mmc_cmd *cmd) in pxa_mmc_cmd_done() 184 static int pxa_mmc_do_read_xfer(struct mmc *mmc, struct mmc_data *data) in pxa_mmc_do_read_xfer() 220 static int pxa_mmc_do_write_xfer(struct mmc *mmc, struct mmc_data *data) in pxa_mmc_do_write_xfer() 262 static int pxa_mmc_request(struct mmc *mmc, struct mmc_cmd *cmd, in pxa_mmc_request() 316 static int pxa_mmc_set_ios(struct mmc *mmc) in pxa_mmc_set_ios() 349 static int pxa_mmc_init(struct mmc *mmc) in pxa_mmc_init() 387 struct mmc *mmc; in pxa_mmc_register() local
|
| H 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()
|
| 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 | sunxi_mmc.c | 25 struct mmc mmc; member 207 static int mmc_config_clock(struct sunxi_mmc_priv *priv, struct mmc *mmc) in mmc_config_clock() 235 struct mmc *mmc) in sunxi_mmc_set_ios_common() 258 static int sunxi_mmc_core_init(struct mmc *mmc) in sunxi_mmc_core_init() 270 static int mmc_trans_data_by_cpu(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_trans_data_by_cpu() 302 static int mmc_rint_wait(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_rint_wait() 322 struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_common() 444 static int sunxi_mmc_set_ios_legacy(struct mmc *mmc) in sunxi_mmc_set_ios_legacy() 451 static int sunxi_mmc_send_cmd_legacy(struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_legacy() 459 static int sunxi_mmc_getcd_legacy(struct mmc *mmc) in sunxi_mmc_getcd_legacy()
|
| H A D | omap_hsmmc.c | 87 static inline struct omap_hsmmc_data *omap_hsmmc_get_data(struct mmc *mmc) in omap_hsmmc_get_data() 95 static inline struct mmc_config *omap_hsmmc_get_cfg(struct mmc *mmc) in omap_hsmmc_get_cfg() 126 static unsigned char mmc_board_init(struct mmc *mmc) in mmc_board_init() 220 static int omap_hsmmc_init_setup(struct mmc *mmc) in omap_hsmmc_init_setup() 330 static int omap_hsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, 568 static int omap_hsmmc_set_ios(struct mmc *mmc) 661 static int omap_hsmmc_getcd(struct mmc *mmc) 675 static int omap_hsmmc_getwp(struct mmc *mmc) 716 struct mmc *mmc; local 861 struct mmc *mmc; local
|
| H A D | ftsdc010_mci.c | 33 static inline int ftsdc010_send_cmd(struct mmc *mmc, struct mmc_cmd *mmc_cmd) in ftsdc010_send_cmd() 103 static void ftsdc010_clkset(struct mmc *mmc, uint32_t rate) in ftsdc010_clkset() 151 static int ftsdc010_request(struct mmc *mmc, struct mmc_cmd *cmd, in ftsdc010_request() 254 static int ftsdc010_set_ios(struct mmc *mmc) in ftsdc010_set_ios() 277 static int ftsdc010_init(struct mmc *mmc) in ftsdc010_init() 322 struct mmc *mmc; in ftsdc010_mmc_init() local
|
| H A D | mmc_write.c | 18 static ulong mmc_erase_t(struct mmc *mmc, ulong start, lbaint_t blkcnt) in mmc_erase_t() 94 struct mmc *mmc = find_mmc_device(dev_num); in mmc_berase() local 162 static ulong mmc_write_blocks(struct mmc *mmc, lbaint_t start, in mmc_write_blocks() 235 struct mmc *mmc = find_mmc_device(dev_num); in mmc_bwrite() local
|
| H A D | sdhci.c | 141 struct mmc *mmc = mmc_get_mmc_dev(dev); local 480 struct mmc *mmc = mmc_get_mmc_dev(dev); local 497 struct mmc *mmc = mmc_get_mmc_dev(dev); local 554 static int sdhci_init(struct mmc *mmc) 649 struct mmc *mmc = mmc_get_mmc_dev(dev); local 688 struct mmc *mmc = mmc_get_mmc_dev(dev); local 695 struct mmc *mmc = mmc_get_mmc_dev(dev); local 809 int sdhci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg)
|
| H A D | mmc_private.h | 93 static inline void mmmc_trace_before_send(struct mmc *mmc, struct mmc_cmd *cmd) in mmmc_trace_before_send() 97 static inline void mmmc_trace_after_send(struct mmc *mmc, struct mmc_cmd *cmd, in mmmc_trace_after_send() 102 static inline void mmc_trace_state(struct mmc *mmc, struct mmc_cmd *cmd) in mmc_trace_state()
|
| H A D | mvebu_mmc.c | 66 static int mvebu_mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in mvebu_mmc_send_cmd() 319 static int mvebu_mmc_set_ios(struct mmc *mmc) in mvebu_mmc_set_ios() 378 static int mvebu_mmc_initialize(struct mmc *mmc) in mvebu_mmc_initialize() 432 struct mmc *mmc; in mvebu_mmc_init() local
|
| H A D | dw_mmc.c | 357 struct mmc *mmc = mmc_get_mmc_dev(dev); local 502 struct mmc *mmc = mmc_get_mmc_dev(dev); local 701 struct mmc *mmc = mmc_get_mmc_dev(dev); local 721 struct mmc *mmc = mmc_get_mmc_dev(dev); local 737 struct mmc *mmc = mmc_get_mmc_dev(dev); local 776 static int dwmci_init(struct mmc *mmc) 858 struct mmc *mmc = mmc_get_mmc_dev(dev); local 882 struct mmc *mmc = mmc_get_mmc_dev(dev); local 945 int dwmci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg)
|
| H A D | fsl_esdhc.c | 86 struct mmc mmc; member 110 struct mmc *mmc; member 226 static int esdhc_setup_data(struct fsl_esdhc_priv *priv, struct mmc *mmc, in esdhc_setup_data() 357 static int esdhc_send_cmd_common(struct fsl_esdhc_priv *priv, struct mmc *mmc, in esdhc_send_cmd_common() 529 static void set_sysctl(struct fsl_esdhc_priv *priv, struct mmc *mmc, uint clock) in set_sysctl() 603 static int esdhc_set_ios_common(struct fsl_esdhc_priv *priv, struct mmc *mmc) in esdhc_set_ios_common() 627 static int esdhc_init_common(struct fsl_esdhc_priv *priv, struct mmc *mmc) in esdhc_init_common() 730 static int esdhc_getcd(struct mmc *mmc) in esdhc_getcd() 737 static int esdhc_init(struct mmc *mmc) in esdhc_init() 744 static int esdhc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in esdhc_send_cmd() [all …]
|
| H A D | davinci_mmc.c | 28 static void dmmc_set_clock(struct mmc *mmc, uint clock) in dmmc_set_clock() 128 dmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in dmmc_send_cmd() 316 static int dmmc_init(struct mmc *mmc) in dmmc_init() 351 static int dmmc_set_ios(struct mmc *mmc) in dmmc_set_ios()
|
| H A D | mxsmmc.c | 136 mxsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mxsmmc_send_cmd() 307 static int mxsmmc_set_ios(struct mmc *mmc) in mxsmmc_set_ios() 338 static int mxsmmc_init(struct mmc *mmc) in mxsmmc_init() 377 struct mmc *mmc = NULL; in mxsmmc_initialize() local
|
| H A D | gen_atmel_mci.c | 41 struct mmc mmc; member 83 struct mmc *mmc = &plat->mmc; local 239 struct mmc *mmc = mmc_get_mmc_dev(dev); local 380 struct mmc *mmc = mmc_get_mmc_dev(dev); local 475 struct mmc *mmc; local 591 struct mmc *mmc; local
|
| H A D | sh_sdhi.c | 651 static int sh_sdhi_set_ios_common(struct sh_sdhi_host *host, struct mmc *mmc) in sh_sdhi_set_ios_common() 695 static void *mmc_priv(struct mmc *mmc) in mmc_priv() 700 static int sh_sdhi_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in sh_sdhi_send_cmd() 708 static int sh_sdhi_set_ios(struct mmc *mmc) in sh_sdhi_set_ios() 715 static int sh_sdhi_initialize(struct mmc *mmc) in sh_sdhi_initialize() 756 struct mmc *mmc; in sh_sdhi_init() local 792 struct mmc mmc; member 806 struct mmc *mmc = mmc_get_mmc_dev(dev); in sh_sdhi_dm_set_ios() local
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | mmc.c | 19 static void print_mmcinfo(struct mmc *mmc) in print_mmcinfo() 96 struct mmc *mmc; in init_mmc_device() local 111 struct mmc *mmc; in do_mmcinfo() local 135 struct mmc *mmc; in do_mmc_test_secure_storage() local 193 struct mmc *mmc; in init_rpmb() local 251 struct mmc *mmc = find_mmc_device(curr_device); in do_readcounter() local 266 struct mmc *mmc = find_mmc_device(curr_device); in do_programkey() local 284 struct mmc *mmc = find_mmc_device(curr_device); in do_authenticatedread() local 302 struct mmc *mmc = find_mmc_device(curr_device); in do_authenticatedwrite() local 319 struct mmc *mmc; in do_returnmmc() local [all …]
|
| /rk3399_rockchip-uboot/include/ |
| H A D | mmc.h | 360 struct mmc *mmc; member 535 struct mmc { struct 539 const struct mmc_config *cfg; /* provided configuration */ argument 540 uint version; 541 void *priv; 542 uint has_init; 543 int high_capacity; 544 uint bus_width; 550 uint timing; 565 uint clock; [all …]
|
| /rk3399_rockchip-uboot/common/spl/ |
| H A D | spl_mmc.c | 24 static int mmc_load_legacy(struct spl_image_info *spl_image, struct mmc *mmc, in mmc_load_legacy() 58 struct mmc *mmc, unsigned long sector) 154 struct mmc *mmc, 193 struct mmc *mmc) 227 struct mmc *mmc) 234 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc) 276 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc) 285 struct mmc *mmc = NULL; local
|
| /rk3399_rockchip-uboot/env/ |
| H A D | mmc.c | 114 __weak int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr) in mmc_get_env_addr() 132 __weak uint mmc_get_env_part(struct mmc *mmc) in mmc_get_env_part() 139 static int mmc_set_env_part(struct mmc *mmc) in mmc_set_env_part() 153 static inline int mmc_set_env_part(struct mmc *mmc) {return 0; }; in mmc_set_env_part() 156 static const char *init_mmc_for_env(struct mmc *mmc) in init_mmc_for_env() 176 static void fini_mmc_for_env(struct mmc *mmc) in fini_mmc_for_env() 186 static inline int write_env(struct mmc *mmc, unsigned long size, in write_env() 204 struct mmc *mmc = find_mmc_device(dev); in env_mmc_save() local 249 static inline int read_env(struct mmc *mmc, unsigned long size, in read_env() 267 struct mmc *mmc; in env_mmc_load() local [all …]
|