Home
last modified time | relevance | path

Searched refs:mmc (Results 1 – 25 of 800) sorted by relevance

12345678910>>...32

/u-boot/drivers/mmc/
A Dmmc_legacy.c31 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc() argument
60 struct blk_desc *mmc_get_blk_desc(struct mmc *mmc) in mmc_get_blk_desc() argument
90 void mmc_list_add(struct mmc *mmc) in mmc_list_add() argument
147 struct mmc *mmc = &mmc_static; in mmc_create() local
164 void mmc_destroy(struct mmc *mmc) in mmc_destroy() argument
171 struct mmc *mmc; in mmc_create() local
183 mmc = calloc(1, sizeof(*mmc)); in mmc_create()
211 void mmc_destroy(struct mmc *mmc) in mmc_destroy() argument
220 struct mmc *mmc = find_mmc_device(desc->devnum); in mmc_select_hwpartp() local
223 if (!mmc) in mmc_select_hwpartp()
[all …]
A Dmmc.c40 __weak int board_mmc_getwp(struct mmc *mmc) in board_mmc_getwp() argument
45 int mmc_getwp(struct mmc *mmc) in mmc_getwp() argument
53 wp = mmc->cfg->ops->getwp(mmc); in mmc_getwp()
61 __weak int board_mmc_getcd(struct mmc *mmc) in board_mmc_getcd() argument
858 int mmc_boot_wp(struct mmc *mmc) in mmc_boot_wp() argument
1240 int mmc_getcd(struct mmc *mmc) in mmc_getcd() argument
1248 cd = mmc->cfg->ops->getcd(mmc); in mmc_getcd()
2810 err = mmc->cfg->ops->init(mmc); in mmc_get_op_cond()
2910 int mmc_init(struct mmc *mmc) in mmc_init() argument
2917 upriv->mmc = mmc; in mmc_init()
[all …]
A Dmmc_write.c18 static ulong mmc_erase_t(struct mmc *mmc, ulong start, lbaint_t blkcnt) in mmc_erase_t() argument
24 if (mmc->high_capacity) { in mmc_erase_t()
31 if (IS_SD(mmc)) { in mmc_erase_t()
81 struct mmc *mmc = find_mmc_device(dev_num); in mmc_berase() local
85 if (!mmc) in mmc_berase()
104 mmc->erase_grp_size, start & ~(mmc->erase_grp_size - 1), in mmc_berase()
109 if (IS_SD(mmc) && mmc->ssr.au) { in mmc_berase()
130 static ulong mmc_write_blocks(struct mmc *mmc, lbaint_t start, in mmc_write_blocks() argument
202 struct mmc *mmc = find_mmc_device(dev_num); in mmc_bwrite() local
203 if (!mmc) in mmc_bwrite()
[all …]
A Dmmc_private.h15 int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data);
16 int mmc_send_status(struct mmc *mmc, unsigned int *status);
17 int mmc_poll_for_busy(struct mmc *mmc, int timeout);
19 int mmc_set_blocklen(struct mmc *mmc, int len);
74 void mmmc_trace_before_send(struct mmc *mmc, struct mmc_cmd *cmd);
75 void mmmc_trace_after_send(struct mmc *mmc, struct mmc_cmd *cmd, int ret);
76 void mmc_trace_state(struct mmc *mmc, struct mmc_cmd *cmd);
87 static inline void mmc_trace_state(struct mmc *mmc, struct mmc_cmd *cmd) in mmc_trace_state() argument
114 void mmc_list_add(struct mmc *mmc);
123 int mmc_switch_part(struct mmc *mmc, unsigned int part_num);
[all …]
A Dmeson_gx_mmc.c28 static inline void *get_regbase(const struct mmc *mmc) in get_regbase() argument
35 static inline uint32_t meson_read(struct mmc *mmc, int offset) in meson_read() argument
40 static inline void meson_write(struct mmc *mmc, uint32_t val, int offset) in meson_write() argument
45 static void meson_mmc_config_clock(struct mmc *mmc) in meson_mmc_config_clock() argument
50 if (!mmc->clock) 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() argument
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
286 mmc->priv = pdata; in meson_mmc_probe()
[all …]
A Dmmc-uclass.c21 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_mmc_get_b_max() local
37 struct mmc *mmc = mmc_get_mmc_dev(dev); in dm_mmc_send_cmd() local
65 int mmc_set_ios(struct mmc *mmc) in mmc_set_ios() argument
93 int mmc_getwp(struct mmc *mmc) in mmc_getwp() argument
107 int mmc_getcd(struct mmc *mmc) in mmc_getcd() argument
155 int mmc_hs400_prepare_ddr(struct mmc *mmc) in mmc_hs400_prepare_ddr() argument
169 int mmc_host_power_cycle(struct mmc *mmc) in mmc_host_power_cycle() argument
184 int mmc_deferred_probe(struct mmc *mmc) in mmc_deferred_probe() argument
199 int mmc_reinit(struct mmc *mmc) in mmc_reinit() argument
458 struct mmc *mmc = upriv->mmc; in mmc_blk_probe() local
[all …]
A Drpmb.c78 static int mmc_set_blockcount(struct mmc *mmc, unsigned int blockcount, in mmc_set_blockcount() argument
91 static int mmc_rpmb_request(struct mmc *mmc, const struct s_rpmb *s, in mmc_rpmb_request() argument
128 static int mmc_rpmb_response(struct mmc *mmc, struct s_rpmb *s, in mmc_rpmb_response() argument
176 static int mmc_rpmb_status(struct mmc *mmc, unsigned short expected) in mmc_rpmb_status() argument
232 int mmc_rpmb_get_counter(struct mmc *mmc, unsigned long *pcounter) in mmc_rpmb_get_counter() argument
251 int mmc_rpmb_set_key(struct mmc *mmc, void *key) in mmc_rpmb_set_key() argument
265 int mmc_rpmb_read(struct mmc *mmc, void *addr, unsigned short blk, in mmc_rpmb_read() argument
298 int mmc_rpmb_write(struct mmc *mmc, void *addr, unsigned short blk, in mmc_rpmb_write() argument
348 static int send_read_mult_block(struct mmc *mmc, struct s_rpmb *frm, in send_read_mult_block() argument
402 static int rpmb_route_read_req(struct mmc *mmc, struct s_rpmb *req, in rpmb_route_read_req() argument
[all …]
A Docteontx_hsmmc.c73 static void octeontx_mmc_switch_to(struct mmc *mmc);
76 static void set_wdog(struct mmc *mmc, u64 us);
777 u8 c = sdm->mmc.c, r = sdm->mmc.r; in octeontx_mmc_get_cr_mods()
950 if (size > 1 && ((IS_SD(mmc) && (mmc->scr[0] & 2)) || !IS_SD(mmc))) in octeontx_mmc_start_dma()
1258 ((IS_SD(mmc) && mmc->scr[0] & 2) || !IS_SD(mmc)); in octeontx_mmc_write_blocks()
2246 struct mmc *mmc = dev_to_mmc(dev); in octeontx_mmc_execute_tuning() local
2422 struct mmc *mmc = &slot->mmc; in octeontx_mmc_set_ios() local
3153 mmc->dev->name, mmc->cfg->f_min, mmc->cfg->f_max, clock); in octeontx_mmc_set_clock()
3641 struct mmc *mmc; in octeontx_mmc_slot_probe() local
3650 mmc = &slot->mmc; in octeontx_mmc_slot_probe()
[all …]
A Dpxa_mmc_gen.c56 static int pxa_mmc_wait(struct mmc *mmc, uint32_t mask) in pxa_mmc_wait() argument
75 static int pxa_mmc_stop_clock(struct mmc *mmc) in pxa_mmc_stop_clock() argument
103 static int pxa_mmc_start_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in pxa_mmc_start_cmd() argument
147 static int pxa_mmc_cmd_done(struct mmc *mmc, struct mmc_cmd *cmd) in pxa_mmc_cmd_done() argument
338 tmp = mmc->cfg->f_max / mmc->clock; in pxa_mmc_set_ios_common()
372 static int pxa_mmc_init(struct mmc *mmc) in pxa_mmc_init() argument
387 static int pxa_mmc_set_ios(struct mmc *mmc) in pxa_mmc_set_ios() argument
412 struct mmc *mmc; in pxa_mmc_register() local
448 if (!mmc) in pxa_mmc_register()
464 struct mmc *mmc = &plat->mmc; in pxa_mmc_probe() local
[all …]
A Dfsl_esdhc_spl.c28 struct mmc *mmc = find_mmc_device(0); in mmc_spl_load_image() local
29 if (!mmc) { in mmc_spl_load_image()
34 if (mmc_init(mmc)) { in mmc_spl_load_image()
39 blk_start = ALIGN(offs, mmc->read_bl_len) / mmc->read_bl_len; in mmc_spl_load_image()
40 blk_cnt = ALIGN(size, mmc->read_bl_len) / mmc->read_bl_len; in mmc_spl_load_image()
42 err = mmc->block_dev.block_read(&mmc->block_dev, blk_start, blk_cnt, in mmc_spl_load_image()
67 struct mmc *mmc; in mmc_boot() local
70 if (!mmc) { in mmc_boot()
90 err = mmc->block_dev.block_read(&mmc->block_dev, in mmc_boot()
127 blk_start = ALIGN(offset, mmc->read_bl_len) / mmc->read_bl_len; in mmc_boot()
[all …]
A Dmmc_boot.c24 int mmc_boot_partition_size_change(struct mmc *mmc, unsigned long bootsize, in mmc_boot_partition_size_change() argument
35 err = mmc_send_cmd(mmc, &cmd, NULL); in mmc_boot_partition_size_change()
46 err = mmc_send_cmd(mmc, &cmd, NULL); in mmc_boot_partition_size_change()
59 err = mmc_send_cmd(mmc, &cmd, NULL); in mmc_boot_partition_size_change()
71 err = mmc_send_cmd(mmc, &cmd, NULL); 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() argument
88 return mmc_switch(mmc, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_BOOT_BUS_WIDTH, 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() argument
110 ret = mmc_switch(mmc, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_PART_CONF, in mmc_set_part_conf()
113 mmc->part_config = part_conf; in mmc_set_part_conf()
[all …]
A Domap_hsmmc.c625 struct mmc *mmc = upriv->mmc; in omap_hsmmc_execute_tuning() local
1051 struct mmc *mmc = upriv->mmc;
1418 static int omap_hsmmc_set_ios(struct mmc *mmc) argument
1426 struct mmc *mmc = upriv->mmc;
1483 static int omap_hsmmc_getcd(struct mmc *mmc) argument
1497 static int omap_hsmmc_getwp(struct mmc *mmc) argument
1542 struct mmc *mmc; local
1954 plat->mmc = calloc(1, sizeof(struct mmc));
1964 struct mmc *mmc; local
1975 mmc = plat->mmc;
[all …]
A Dzynq_sdhci.c38 struct mmc mmc; member
101 static int arasan_sdhci_execute_tuning(struct mmc *mmc, u8 opcode) in arasan_sdhci_execute_tuning() argument
192 struct mmc *mmc = (struct mmc *)host->mmc; in sdhci_zynqmp_sdcardclk_set_phase() local
248 struct mmc *mmc = (struct mmc *)host->mmc; in sdhci_zynqmp_sampleclk_set_phase() local
303 struct mmc *mmc = (struct mmc *)host->mmc; in sdhci_versal_sdcardclk_set_phase() local
367 struct mmc *mmc = (struct mmc *)host->mmc; in sdhci_versal_sampleclk_set_phase() local
427 struct mmc *mmc = (struct mmc *)host->mmc; in arasan_sdhci_set_tapdelay() local
529 struct mmc *mmc = (struct mmc *)host->mmc; in arasan_sdhci_set_control_reg() local
532 if (!IS_SD(mmc)) in arasan_sdhci_set_control_reg()
603 host->mmc = &plat->mmc; in arasan_sdhci_probe()
[all …]
A Dsdhci.c203 struct mmc *mmc = mmc_get_mmc_dev(dev); local
351 struct mmc *mmc = mmc_get_mmc_dev(dev); local
491 struct mmc *mmc = host->mmc; local
520 struct mmc *mmc = (struct mmc *)host->mmc; local
614 struct mmc *mmc = mmc_get_mmc_dev(dev); local
616 static int sdhci_set_ios(struct mmc *mmc)
627 sdhci_set_clock(mmc, mmc->clock);
679 static int sdhci_init(struct mmc *mmc) argument
726 struct mmc *mmc = mmc_get_mmc_dev(dev); local
734 struct mmc *mmc = mmc_get_mmc_dev(dev); local
[all …]
A Dbcmstb_sdhci.c47 struct mmc mmc; member
54 return sdhci_bind(dev, &plat->mmc, &plat->cfg); in sdhci_bcmstb_bind()
76 host->mmc = &plat->mmc; in sdhci_bcmstb_probe()
77 host->mmc->dev = dev; in sdhci_bcmstb_probe()
84 upriv->mmc = &plat->mmc; in sdhci_bcmstb_probe()
85 host->mmc->priv = host; in sdhci_bcmstb_probe()
A Dftsdc010_mci.c55 struct mmc mmc; member
136 static void ftsdc010_clkset(struct mmc *mmc, uint32_t rate) in ftsdc010_clkset() argument
186 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_request() local
289 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_set_ios() local
293 ftsdc010_clkset(mmc, mmc->clock); in ftsdc010_set_ios()
313 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_get_cd() local
321 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_get_wp() local
332 static int ftsdc010_init(struct mmc *mmc) in ftsdc010_init() argument
363 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_probe() local
454 chip->mmc = &plat->mmc; in ftsdc010_mmc_probe()
[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() argument
323 static int jz_mmc_set_ios(struct mmc *mmc, struct jz_mmc_priv *priv) in jz_mmc_set_ios() argument
347 static int jz_mmc_core_init(struct mmc *mmc) in jz_mmc_core_init() argument
371 static int jz_mmc_legacy_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in jz_mmc_legacy_send_cmd() argument
379 static int jz_mmc_legacy_set_ios(struct mmc *mmc) in jz_mmc_legacy_set_ios() argument
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
488 plat->mmc.priv = priv; in jz_mmc_probe()
[all …]
/u-boot/cmd/
A Dmmc.c125 struct mmc *mmc; in init_mmc_device() local
151 struct mmc *mmc; in do_mmcinfo() local
281 struct mmc *mmc; in do_mmcrpmb() local
330 struct mmc *mmc; in do_mmc_read() local
374 struct mmc *mmc; in do_mmc_sparse_write() local
423 struct mmc *mmc; in do_mmc_write() local
454 struct mmc *mmc; in do_mmc_erase() local
484 struct mmc *mmc; in do_mmc_rescan() local
497 struct mmc *mmc; in do_mmc_part() local
517 struct mmc *mmc; in do_mmc_dev() local
[all …]
/u-boot/env/
A Dmmc.c121 __weak uint mmc_get_env_part(struct mmc *mmc) in mmc_get_env_part() argument
128 static int mmc_set_env_part(struct mmc *mmc) in mmc_set_env_part() argument
145 static const char *init_mmc_for_env(struct mmc *mmc) in init_mmc_for_env() argument
147 if (!mmc) in init_mmc_for_env()
165 static void fini_mmc_for_env(struct mmc *mmc) in fini_mmc_for_env() argument
182 blk_cnt = ALIGN(size, mmc->write_bl_len) / mmc->write_bl_len; in write_env()
193 struct mmc *mmc = find_mmc_device(dev); in env_mmc_save() local
255 struct mmc *mmc = find_mmc_device(dev); in env_mmc_erase() local
292 blk_cnt = ALIGN(size, mmc->read_bl_len) / mmc->read_bl_len; in read_env()
303 struct mmc *mmc; in env_mmc_load() local
[all …]
/u-boot/include/
A Dmmc.h383 struct mmc *mmc; member
556 int mmc_getcd(struct mmc *mmc);
557 int mmc_getwp(struct mmc *mmc);
563 int mmc_reinit(struct mmc *mmc);
571 int (*init)(struct mmc *mmc);
572 int (*getcd)(struct mmc *mmc);
573 int (*getwp)(struct mmc *mmc);
796 int mmc_init(struct mmc *mmc);
802 int mmc_deinit(struct mmc *mmc);
862 int mmc_getcd(struct mmc *mmc);
[all …]
/u-boot/common/spl/
A Dspl_mmc.c20 static int mmc_load_legacy(struct spl_image_info *spl_image, struct mmc *mmc, in mmc_load_legacy() argument
49 struct mmc *mmc = load->dev; in h_spl_load_read() local
66 struct mmc *mmc, unsigned long sector) in mmc_load_image_raw_sector() argument
88 load.dev = mmc; in mmc_load_image_raw_sector()
97 load.dev = mmc; in mmc_load_image_raw_sector()
170 struct mmc *mmc, int partition, in mmc_load_image_raw_partition() argument
209 struct mmc *mmc) in mmc_load_image_raw_os() argument
246 struct mmc *mmc) in mmc_load_image_raw_os() argument
333 static struct mmc *mmc; in spl_mmc_load() local
339 if (!mmc) { in spl_mmc_load()
[all …]
/u-boot/drivers/dfu/
A Ddfu_mmc.c28 struct mmc *mmc; in mmc_block_op() local
32 mmc = find_mmc_device(dfu->data.mmc.dev_num); in mmc_block_op()
33 if (!mmc) { in mmc_block_op()
48 dfu->data.mmc.lba_start + dfu->data.mmc.lba_size) { in mmc_block_op()
121 dfu->data.mmc.dev, dfu->data.mmc.part); in mmc_file_op()
254 *size = dfu->data.mmc.lba_size * dfu->data.mmc.lba_blk_size; in dfu_get_medium_size_mmc()
346 struct mmc *mmc; in dfu_fill_entity_mmc() local
369 mmc = find_mmc_device(dfu->data.mmc.dev_num); in dfu_fill_entity_mmc()
370 if (mmc == NULL) { in dfu_fill_entity_mmc()
376 if (mmc_init(mmc)) { in dfu_fill_entity_mmc()
[all …]
/u-boot/drivers/tee/optee/
A Drpmb.c62 struct mmc *mmc; in get_mmc() local
70 mmc = find_mmc_device(dev_id); in get_mmc()
71 if (!mmc) { in get_mmc()
94 priv->rpmb_mmc = mmc; in get_mmc()
96 return mmc; in get_mmc()
101 struct mmc *mmc = find_mmc_device(dev_id); in rpmb_get_dev_info() local
104 if (!mmc) in rpmb_get_dev_info()
107 if (!mmc->ext_csd) in rpmb_get_dev_info()
124 struct mmc *mmc; in rpmb_process_request() local
131 mmc = get_mmc(priv, sreq->dev_id); in rpmb_process_request()
[all …]
/u-boot/board/freescale/common/
A Dsdhc_boot.c20 int mmc_get_env_addr(struct mmc *mmc, int copy, u32 *env_addr) in mmc_get_env_addr() argument
25 blklen = mmc->read_bl_len; in mmc_get_env_addr()
32 n = blk_dread(mmc_get_blk_desc(mmc), 0, 1, tmp_buf); in mmc_get_env_addr()
34 n = mmc->block_dev.block_read(&mmc->block_dev, 0, 1, tmp_buf); in mmc_get_env_addr()
57 if (mmc->high_capacity) { in mmc_get_env_addr()
63 if ((tmp + CONFIG_ENV_SIZE > mmc->capacity) || in mmc_get_env_addr()
/u-boot/arch/arm/mach-uniphier/
A Dmmc-boot-mode.c12 struct mmc *mmc; in spl_mmc_boot_mode() local
27 mmc = find_mmc_device(0); in spl_mmc_boot_mode()
28 mmc->part_config &= ~EXT_CSD_BOOT_PART_NUM(PART_ACCESS_MASK); in spl_mmc_boot_mode()
29 mmc->part_config |= EXT_CSD_BOOT_PARTITION_ENABLE; in spl_mmc_boot_mode()

Completed in 65 milliseconds

12345678910>>...32