Home
last modified time | relevance | path

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

1234567

/u-boot-v2022.01-rc1/drivers/mmc/
A Dmmc.c40 __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()
1464 static int sd_read_ssr(struct mmc *mmc) in sd_read_ssr()
2857 int mmc_start_init(struct mmc *mmc) in mmc_start_init()
2931 int mmc_init(struct mmc *mmc) in mmc_init()
[all …]
A Dmmc-uclass.c23 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_mmc_get_b_max() local
39 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_mmc_send_cmd() local
67 int mmc_set_ios(struct mmc *mmc) in mmc_set_ios()
95 int mmc_getwp(struct mmc *mmc) in mmc_getwp()
109 int mmc_getcd(struct mmc *mmc) in mmc_getcd()
157 int mmc_hs400_prepare_ddr(struct mmc *mmc) in mmc_hs400_prepare_ddr()
171 int mmc_host_power_cycle(struct mmc *mmc) in mmc_host_power_cycle()
186 int mmc_deferred_probe(struct mmc *mmc) in mmc_deferred_probe()
201 int mmc_reinit(struct mmc *mmc) in mmc_reinit()
461 struct mmc *mmc = upriv->mmc; in mmc_blk_probe() local
[all …]
A Dmvebu_mmc.c28 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 Dmeson_gx_mmc.c28 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 Dmmc_legacy.c31 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 Dpxa_mmc_gen.c56 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 Docteontx_hsmmc.c185 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 Dmmc_boot.c24 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 Drpmb.c78 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 Domap_hsmmc.c213 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 Dsdhci.c203 struct mmc *mmc = mmc_get_mmc_dev(dev); local
350 struct mmc *mmc = mmc_get_mmc_dev(dev); local
364 int sdhci_set_clock(struct mmc *mmc, unsigned int clock)
496 struct mmc *mmc = host->mmc; local
528 struct mmc *mmc = (struct mmc *)host->mmc; local
622 struct mmc *mmc = mmc_get_mmc_dev(dev); local
687 static int sdhci_init(struct mmc *mmc)
734 struct mmc *mmc = mmc_get_mmc_dev(dev); local
742 struct mmc *mmc = mmc_get_mmc_dev(dev); local
755 struct mmc *mmc = mmc_get_mmc_dev(dev); local
[all …]
A Dsunxi_mmc.c31 struct mmc mmc; member
232 static int mmc_config_clock(struct sunxi_mmc_priv *priv, struct mmc *mmc) in mmc_config_clock()
271 struct mmc *mmc) in sunxi_mmc_set_ios_common()
294 static int sunxi_mmc_core_init(struct mmc *mmc) in sunxi_mmc_core_init()
306 static int mmc_trans_data_by_cpu(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_trans_data_by_cpu()
368 static int mmc_rint_wait(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_rint_wait()
388 struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_common()
511 static int sunxi_mmc_set_ios_legacy(struct mmc *mmc) in sunxi_mmc_set_ios_legacy()
518 static int sunxi_mmc_send_cmd_legacy(struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_legacy()
526 static int sunxi_mmc_getcd_legacy(struct mmc *mmc) in sunxi_mmc_getcd_legacy()
[all …]
A Dftsdc010_mci.c53 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 Dmmc_write.c18 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 Ddw_mmc.c122 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 Dmmc_private.h77 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 Dsh_mmcif.c549 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 Dfsl_esdhc_imx.c122 struct mmc mmc; member
161 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()
857 static void esdhc_stop_tuning(struct mmc *mmc) in esdhc_stop_tuning()
873 struct mmc *mmc = &plat->mmc; in fsl_esdhc_execute_tuning() local
1133 static int esdhc_getcd(struct mmc *mmc) in esdhc_getcd()
1140 static int esdhc_init(struct mmc *mmc) in esdhc_init()
1155 static int esdhc_set_ios(struct mmc *mmc) in esdhc_set_ios()
1333 struct mmc *mmc; in fsl_esdhc_initialize() local
[all …]
A Djz_mmc.c122 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 Dfsl_esdhc.c84 struct mmc mmc; member
106 struct mmc *mmc; member
275 static int esdhc_setup_data(struct fsl_esdhc_priv *priv, struct mmc *mmc, in esdhc_setup_data()
731 static int esdhc_init_common(struct fsl_esdhc_priv *priv, struct mmc *mmc) in esdhc_init_common()
879 static int esdhc_getcd(struct mmc *mmc) in esdhc_getcd()
886 static int esdhc_init(struct mmc *mmc) in esdhc_init()
893 static int esdhc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in esdhc_send_cmd()
901 static int esdhc_set_ios(struct mmc *mmc) in esdhc_set_ios()
920 struct mmc *mmc; in fsl_esdhc_initialize() local
990 struct mmc *mmc; in fsl_esdhc_probe() local
[all …]
A Dmxsmmc.c60 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-v2022.01-rc1/common/spl/
A Dspl_mmc.c20 static int mmc_load_legacy(struct spl_image_info *spl_image, struct mmc *mmc, in mmc_load_legacy()
63 struct mmc *mmc = load->dev; in h_spl_load_read() local
80 struct mmc *mmc, unsigned long sector) in mmc_load_image_raw_sector()
184 struct mmc *mmc, int partition, in mmc_load_image_raw_partition()
223 struct mmc *mmc) in mmc_load_image_raw_os()
260 struct mmc *mmc) in mmc_load_image_raw_os()
267 static int spl_mmc_do_fs_boot(struct spl_image_info *spl_image, struct mmc *mmc, in spl_mmc_do_fs_boot()
335 unsigned long __weak spl_mmc_get_uboot_raw_sector(struct mmc *mmc, in spl_mmc_get_uboot_raw_sector()
341 int default_spl_mmc_emmc_boot_partition(struct mmc *mmc) in default_spl_mmc_emmc_boot_partition()
359 int __weak spl_mmc_emmc_boot_partition(struct mmc *mmc) in spl_mmc_emmc_boot_partition()
[all …]
/u-boot-v2022.01-rc1/include/
A Dmmc.h653 struct mmc { struct
666 enum mmc_voltage signal_voltage; argument
669 uint ocr;
670 uint dsr;
672 uint scr[2];
673 uint csd[4];
675 ushort rca;
708 char init_in_progress; /* 1 if we have done mmc_start_init() */ argument
714 struct udevice *vmmc_supply; /* Main voltage regulator (Vcc)*/ argument
720 enum mmc_voltage current_voltage; argument
[all …]
/u-boot-v2022.01-rc1/cmd/
A Dmmc.c127 struct mmc *mmc; in __init_mmc_device() local
162 struct mmc *mmc; in do_mmcinfo() local
292 struct mmc *mmc; in do_mmcrpmb() local
341 struct mmc *mmc; in do_mmc_read() local
385 struct mmc *mmc; in do_mmc_sparse_write() local
434 struct mmc *mmc; in do_mmc_write() local
465 struct mmc *mmc; in do_mmc_erase() local
495 struct mmc *mmc; in do_mmc_rescan() local
517 struct mmc *mmc; in do_mmc_part() local
537 struct mmc *mmc; in do_mmc_dev() local
[all …]
/u-boot-v2022.01-rc1/env/
A Dmmc.c134 __weak uint mmc_get_env_part(struct mmc *mmc) in mmc_get_env_part()
141 static int mmc_set_env_part(struct mmc *mmc, uint part) in mmc_set_env_part()
156 static const char *init_mmc_for_env(struct mmc *mmc) in init_mmc_for_env()
177 static void fini_mmc_for_env(struct mmc *mmc) in fini_mmc_for_env()
187 static inline int write_env(struct mmc *mmc, unsigned long size, in write_env()
205 struct mmc *mmc = find_mmc_device(dev); in env_mmc_save() local
255 static inline int erase_env(struct mmc *mmc, unsigned long size, in erase_env()
273 struct mmc *mmc = find_mmc_device(dev); in env_mmc_erase() local
314 static inline int read_env(struct mmc *mmc, unsigned long size, in read_env()
332 struct mmc *mmc; in env_mmc_load() local
[all …]

Completed in 67 milliseconds

1234567