/openbmc/u-boot/drivers/mmc/ |
H A D | mmc.c | 33 static int mmc_wait_dat0(struct mmc *mmc, int state, int timeout) in mmc_wait_dat0() 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() 67 void mmmc_trace_before_send(struct mmc *mmc, struct mmc_cmd *cmd) in mmmc_trace_before_send() 73 void mmmc_trace_after_send(struct mmc *mmc, struct mmc_cmd *cmd, int ret) in mmmc_trace_after_send() 125 void mmc_trace_state(struct mmc *mmc, struct mmc_cmd *cmd) in mmc_trace_state() 160 static uint mmc_mode2freq(struct mmc *mmc, enum bus_mode mode) in mmc_mode2freq() 186 static int mmc_select_mode(struct mmc *mmc, enum bus_mode mode) in mmc_select_mode() 197 int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mmc_send_cmd() [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_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 | mmc-uclass.c | 17 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_mmc_send_cmd() local 31 int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mmc_send_cmd() 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() 73 int mmc_wait_dat0(struct mmc *mmc, int state, int timeout) in mmc_wait_dat0() 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() [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 | 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 | 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() 325 static int send_write_mult_block(struct mmc *mmc, const struct s_rpmb *frm, in send_write_mult_block() 342 static int send_read_mult_block(struct mmc *mmc, struct s_rpmb *frm, in send_read_mult_block() [all …]
|
H A D | omap_hsmmc.c | 163 static inline struct omap_hsmmc_data *omap_hsmmc_get_data(struct mmc *mmc) in omap_hsmmc_get_data() 171 static inline struct mmc_config *omap_hsmmc_get_cfg(struct mmc *mmc) in omap_hsmmc_get_cfg() 202 static unsigned char mmc_board_init(struct mmc *mmc) in mmc_board_init() 303 static void omap_hsmmc_io_recalibrate(struct mmc *mmc) in omap_hsmmc_io_recalibrate() 355 static void omap_hsmmc_set_timing(struct mmc *mmc) in omap_hsmmc_set_timing() 408 static void omap_hsmmc_conf_bus_power(struct mmc *mmc, uint signal_voltage) in omap_hsmmc_conf_bus_power() 463 static int omap_hsmmc_set_io_regulator(struct mmc *mmc, int mV) in omap_hsmmc_set_io_regulator() 504 static int omap_hsmmc_set_signal_voltage(struct mmc *mmc) in omap_hsmmc_set_signal_voltage() 549 static uint32_t omap_hsmmc_set_capabilities(struct mmc *mmc) in omap_hsmmc_set_capabilities() 574 static void omap_hsmmc_disable_tuning(struct mmc *mmc) in omap_hsmmc_disable_tuning() [all …]
|
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 | mmc_write.c | 17 static ulong mmc_erase_t(struct mmc *mmc, ulong start, lbaint_t blkcnt) in mmc_erase_t() 80 struct mmc *mmc = find_mmc_device(dev_num); in mmc_berase() local 129 static ulong mmc_write_blocks(struct mmc *mmc, lbaint_t start, in mmc_write_blocks() 201 struct mmc *mmc = find_mmc_device(dev_num); in mmc_bwrite() 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()
|
H A D | sdhci.c | 140 struct mmc *mmc = mmc_get_mmc_dev(dev); local 315 struct mmc *mmc = mmc_get_mmc_dev(dev); local 329 static int sdhci_set_clock(struct mmc *mmc, unsigned int clock) 456 struct mmc *mmc = mmc_get_mmc_dev(dev); local 536 static int sdhci_init(struct mmc *mmc) 568 struct mmc *mmc = mmc_get_mmc_dev(dev); local 707 int sdhci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg)
|
H A D | mmc_private.h | 79 static inline void mmmc_trace_before_send(struct mmc *mmc, struct mmc_cmd *cmd) in mmmc_trace_before_send() 83 static inline void mmmc_trace_after_send(struct mmc *mmc, struct mmc_cmd *cmd, in mmmc_trace_after_send() 88 static inline void mmc_trace_state(struct mmc *mmc, struct mmc_cmd *cmd) in mmc_trace_state()
|
H A D | mvebu_mmc.c | 65 static int mvebu_mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in mvebu_mmc_send_cmd() 318 static int mvebu_mmc_set_ios(struct mmc *mmc) in mvebu_mmc_set_ios() 377 static int mvebu_mmc_initialize(struct mmc *mmc) in mvebu_mmc_initialize() 431 struct mmc *mmc; in mvebu_mmc_init() local
|
H A D | sh_mmcif.c | 544 static int sh_mmcif_set_ios_common(struct sh_mmcif_host *host, struct mmc *mmc) in sh_mmcif_set_ios_common() 569 static void *mmc_priv(struct mmc *mmc) in mmc_priv() 574 static int sh_mmcif_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in sh_mmcif_send_cmd() 582 static int sh_mmcif_set_ios(struct mmc *mmc) in sh_mmcif_set_ios() 589 static int sh_mmcif_initialize(struct mmc *mmc) in sh_mmcif_initialize() 613 struct mmc *mmc; in mmcif_mmc_init() local 639 struct mmc mmc; member 653 struct mmc *mmc = mmc_get_mmc_dev(dev); in sh_mmcif_dm_set_ios() local
|
H A D | fsl_esdhc.c | 92 struct mmc mmc; member 130 struct mmc *mmc; member 256 static int esdhc_setup_data(struct fsl_esdhc_priv *priv, struct mmc *mmc, in esdhc_setup_data() 410 static int esdhc_send_cmd_common(struct fsl_esdhc_priv *priv, struct mmc *mmc, in esdhc_send_cmd_common() 603 static void set_sysctl(struct fsl_esdhc_priv *priv, struct mmc *mmc, uint clock) in set_sysctl() 710 static void esdhc_reset_tuning(struct mmc *mmc) in esdhc_reset_tuning() 724 static void esdhc_set_strobe_dll(struct mmc *mmc) in esdhc_set_strobe_dll() 751 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() 847 static void esdhc_stop_tuning(struct mmc *mmc) in esdhc_stop_tuning() [all …]
|
H A D | jz_mmc.c | 118 struct mmc mmc; member 191 static int jz_mmc_send_cmd(struct mmc *mmc, struct jz_mmc_priv *priv, in jz_mmc_send_cmd() 319 static int jz_mmc_set_ios(struct mmc *mmc, struct jz_mmc_priv *priv) in jz_mmc_set_ios() 343 static int jz_mmc_core_init(struct mmc *mmc) in jz_mmc_core_init() 367 static int jz_mmc_legacy_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in jz_mmc_legacy_send_cmd() 375 static int jz_mmc_legacy_set_ios(struct mmc *mmc) in jz_mmc_legacy_set_ios() 407 struct mmc *mmc; in jz_mmc_init() local 425 struct mmc *mmc = mmc_get_mmc_dev(dev); in jz_mmc_dm_send_cmd() local 433 struct mmc *mmc = mmc_get_mmc_dev(dev); in jz_mmc_dm_set_ios() local
|
H A D | zynq_sdhci.c | 22 struct mmc mmc; member 87 static int arasan_sdhci_execute_tuning(struct mmc *mmc, u8 opcode) in arasan_sdhci_execute_tuning() 168 struct mmc *mmc = (struct mmc *)host->mmc; in arasan_sdhci_set_tapdelay() local 180 struct mmc *mmc = (struct mmc *)host->mmc; in arasan_sdhci_set_control_reg() local
|
H A D | mxsmmc.c | 135 mxsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mxsmmc_send_cmd() 306 static int mxsmmc_set_ios(struct mmc *mmc) in mxsmmc_set_ios() 337 static int mxsmmc_init(struct mmc *mmc) in mxsmmc_init() 376 struct mmc *mmc = NULL; in mxsmmc_initialize() local
|
H A D | dw_mmc.c | 222 struct mmc *mmc = mmc_get_mmc_dev(dev); local 436 struct mmc *mmc = mmc_get_mmc_dev(dev); local 475 static int dwmci_init(struct mmc *mmc) 522 struct mmc *mmc = mmc_get_mmc_dev(dev); local 567 int dwmci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg)
|
/openbmc/u-boot/include/ |
H A D | mmc.h | 351 struct mmc *mmc; member 570 struct mmc { struct 574 const struct mmc_config *cfg; /* provided configuration */ argument 582 enum mmc_voltage signal_voltage; argument 583 uint card_caps; 584 uint host_caps; 585 uint ocr; 586 uint dsr; 587 uint dsr_imp; 588 uint scr[2]; [all …]
|
/openbmc/u-boot/cmd/ |
H A D | mmc.c | 16 static void print_mmcinfo(struct mmc *mmc) in print_mmcinfo() 97 struct mmc *mmc; in init_mmc_device() local 121 struct mmc *mmc; in do_mmcinfo() local 156 struct mmc *mmc = find_mmc_device(curr_device); in do_mmcrpmb_key() local 177 struct mmc *mmc = find_mmc_device(curr_device); in do_mmcrpmb_read() local 205 struct mmc *mmc = find_mmc_device(curr_device); in do_mmcrpmb_write() local 228 struct mmc *mmc = find_mmc_device(curr_device); in do_mmcrpmb_counter() 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 [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/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 …]
|