Home
last modified time | relevance | path

Searched defs:mmc (Results 1 – 25 of 152) sorted by relevance

1234567

/external/u-boot/drivers/mmc/
Dmmc.c33 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()
159 static uint mmc_mode2freq(struct mmc *mmc, enum bus_mode mode) in mmc_mode2freq()
184 static int mmc_select_mode(struct mmc *mmc, enum bus_mode mode) in mmc_select_mode()
195 int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mmc_send_cmd()
[all …]
Dmeson_gx_mmc.c15 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
Dmmc_legacy.c32 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
Dmmc-uclass.c17 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()
200 struct mmc *mmc = mmc_get_mmc_dev(mmc_dev); in find_mmc_device() local
215 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc()
[all …]
Dpxa_mmc_gen.c50 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
Dmmc_boot.c23 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()
Domap_hsmmc.c163 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()
299 static void omap_hsmmc_io_recalibrate(struct mmc *mmc) in omap_hsmmc_io_recalibrate()
351 static void omap_hsmmc_set_timing(struct mmc *mmc) in omap_hsmmc_set_timing()
404 static void omap_hsmmc_conf_bus_power(struct mmc *mmc, uint signal_voltage) in omap_hsmmc_conf_bus_power()
459 static int omap_hsmmc_set_io_regulator(struct mmc *mmc, int mV) in omap_hsmmc_set_io_regulator()
500 static int omap_hsmmc_set_signal_voltage(struct mmc *mmc) in omap_hsmmc_set_signal_voltage()
545 static uint32_t omap_hsmmc_set_capabilities(struct mmc *mmc) in omap_hsmmc_set_capabilities()
570 static void omap_hsmmc_disable_tuning(struct mmc *mmc) in omap_hsmmc_disable_tuning()
[all …]
Dmmc_spi.c53 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
Drpmb.c76 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()
Dsunxi_mmc.c24 struct mmc mmc; member
208 static int mmc_config_clock(struct sunxi_mmc_priv *priv, struct mmc *mmc) in mmc_config_clock()
236 struct mmc *mmc) in sunxi_mmc_set_ios_common()
259 static int sunxi_mmc_core_init(struct mmc *mmc) in sunxi_mmc_core_init()
271 static int mmc_trans_data_by_cpu(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_trans_data_by_cpu()
306 static int mmc_rint_wait(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_rint_wait()
326 struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_common()
449 static int sunxi_mmc_set_ios_legacy(struct mmc *mmc) in sunxi_mmc_set_ios_legacy()
456 static int sunxi_mmc_send_cmd_legacy(struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_legacy()
464 static int sunxi_mmc_getcd_legacy(struct mmc *mmc) in sunxi_mmc_getcd_legacy()
Dftsdc010_mci.c52 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
Dsdhci.c140 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
508 static int sdhci_init(struct mmc *mmc)
540 struct mmc *mmc = mmc_get_mmc_dev(dev); local
679 int sdhci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg)
Dmmc_write.c17 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
Darm_pl180_mmci.c32 struct mmc mmc; member
367 int arm_pl180_mmci_init(struct pl180_mmc_host *host, struct mmc **mmc) in arm_pl180_mmci_init()
408 struct mmc *mmc = &pdata->mmc; in arm_pl180_mmc_probe() local
468 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_host_request() local
475 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_host_set_ios() local
483 struct mmc *mmc = &pdata->mmc; in dm_mmc_getcd() local
505 struct mmc *mmc = &pdata->mmc; in arm_pl180_mmc_ofdata_to_platdata() local
Dmvebu_mmc.c65 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
Dmmc_private.h79 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()
Dsh_mmcif.c544 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
Dfsl_esdhc.c91 struct mmc mmc; member
128 struct mmc *mmc; member
254 static int esdhc_setup_data(struct fsl_esdhc_priv *priv, struct mmc *mmc, in esdhc_setup_data()
389 static int esdhc_send_cmd_common(struct fsl_esdhc_priv *priv, struct mmc *mmc, in esdhc_send_cmd_common()
572 static void set_sysctl(struct fsl_esdhc_priv *priv, struct mmc *mmc, uint clock) in set_sysctl()
678 static void esdhc_reset_tuning(struct mmc *mmc) in esdhc_reset_tuning()
692 static int esdhc_set_timing(struct mmc *mmc) in esdhc_set_timing()
731 static int esdhc_set_voltage(struct mmc *mmc) in esdhc_set_voltage()
782 static void esdhc_stop_tuning(struct mmc *mmc) in esdhc_stop_tuning()
798 struct mmc *mmc = &plat->mmc; in fsl_esdhc_execute_tuning() local
[all …]
Ddavinci_mmc.c27 static void dmmc_set_clock(struct mmc *mmc, uint clock) in dmmc_set_clock()
127 dmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in dmmc_send_cmd()
315 static int dmmc_init(struct mmc *mmc) in dmmc_init()
350 static int dmmc_set_ios(struct mmc *mmc) in dmmc_set_ios()
Dmxsmmc.c135 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
Ddw_mmc.c190 struct mmc *mmc = mmc_get_mmc_dev(dev); local
388 struct mmc *mmc = mmc_get_mmc_dev(dev); local
427 static int dwmci_init(struct mmc *mmc)
471 struct mmc *mmc = mmc_get_mmc_dev(dev); local
516 int dwmci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg)
/external/u-boot/include/
Dmmc.h345 struct mmc *mmc; member
559 struct mmc { struct
563 const struct mmc_config *cfg; /* provided configuration */ argument
571 enum mmc_voltage signal_voltage; argument
572 uint card_caps;
573 uint host_caps;
574 uint ocr;
575 uint dsr;
576 uint dsr_imp;
577 uint scr[2];
[all …]
/external/u-boot/common/spl/
Dspl_mmc.c18 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()
153 struct mmc *mmc, int partition) in mmc_load_image_raw_partition()
192 struct mmc *mmc) in mmc_load_image_raw_os()
226 struct mmc *mmc) in mmc_load_image_raw_os()
233 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc) in spl_mmc_do_fs_boot()
275 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc) in spl_mmc_do_fs_boot()
303 struct mmc *mmc = NULL; in spl_mmc_load_image() local
/external/u-boot/cmd/
Dmmc.c16 static void print_mmcinfo(struct mmc *mmc) in print_mmcinfo()
97 struct mmc *mmc; in init_mmc_device() local
112 struct mmc *mmc; in do_mmcinfo() local
147 struct mmc *mmc = find_mmc_device(curr_device); in do_mmcrpmb_key() local
168 struct mmc *mmc = find_mmc_device(curr_device); in do_mmcrpmb_read() local
196 struct mmc *mmc = find_mmc_device(curr_device); in do_mmcrpmb_write() local
219 struct mmc *mmc = find_mmc_device(curr_device); in do_mmcrpmb_counter() local
238 struct mmc *mmc; in do_mmcrpmb() local
287 struct mmc *mmc; in do_mmc_read() local
331 struct mmc *mmc; in do_mmc_sparse_write() local
[all …]
/external/u-boot/env/
Dmmc.c113 __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 …]

1234567