Home
last modified time | relevance | path

Searched refs:mmc_cmd (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/u-boot/drivers/mmc/
H A Dmmc_private.h14 extern int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
75 void mmmc_trace_before_send(struct mmc *mmc, struct mmc_cmd *cmd);
76 void mmmc_trace_after_send(struct mmc *mmc, struct mmc_cmd *cmd, int ret);
77 void mmc_trace_state(struct mmc *mmc, struct mmc_cmd *cmd);
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 Dftsdc010_mci.c63 static inline int ftsdc010_send_cmd(struct mmc *mmc, struct mmc_cmd *mmc_cmd) in ftsdc010_send_cmd() argument
70 uint32_t arg = mmc_cmd->cmdarg; in ftsdc010_send_cmd()
71 uint32_t flags = mmc_cmd->resp_type; in ftsdc010_send_cmd()
109 mmc_cmd->response[0] = readl(&regs->rsp3); in ftsdc010_send_cmd()
110 mmc_cmd->response[1] = readl(&regs->rsp2); in ftsdc010_send_cmd()
111 mmc_cmd->response[2] = readl(&regs->rsp1); in ftsdc010_send_cmd()
112 mmc_cmd->response[3] = readl(&regs->rsp0); in ftsdc010_send_cmd()
114 mmc_cmd->response[0] = readl(&regs->rsp0); in ftsdc010_send_cmd()
119 mmc_cmd->cmdidx, st); in ftsdc010_send_cmd()
125 mmc_cmd->cmdidx); in ftsdc010_send_cmd()
[all …]
H A Drpmb.c79 struct mmc_cmd cmd = {0}; in mmc_set_blockcount()
92 struct mmc_cmd cmd = {0}; in mmc_rpmb_request()
125 struct mmc_cmd cmd = {0}; in mmc_rpmb_response()
328 struct mmc_cmd cmd = { in send_write_mult_block()
345 struct mmc_cmd cmd = { in send_read_mult_block()
H A Dmxcmmc.c111 struct mmc_cmd *cmd;
162 static int mxcmci_start_cmd(struct mxcmci_host *host, struct mmc_cmd *cmd, in mxcmci_start_cmd()
196 struct mmc_cmd *cmd, struct mmc_data *data) in mxcmci_finish_request()
231 struct mmc_cmd *cmd = host->cmd; in mxcmci_read_response()
390 static int mxcmci_request(struct mmc *mmc, struct mmc_cmd *cmd, in mxcmci_request()
H A Dmmc.c211 struct mmc_cmd cmd; in mmc_send_status()
256 struct mmc_cmd cmd; in mmc_set_blocklen()
319 struct mmc_cmd cmd; in mmc_send_tuning()
359 struct mmc_cmd cmd; in mmc_read_blocks()
456 struct mmc_cmd cmd; in mmc_go_idle()
478 struct mmc_cmd cmd; in mmc_switch_voltage()
541 struct mmc_cmd cmd; in sd_send_op_cond()
619 struct mmc_cmd cmd; in mmc_send_op_cond_iter()
661 struct mmc_cmd cmd; in mmc_complete_op_cond()
708 struct mmc_cmd cmd; in mmc_send_ext_csd()
[all …]
H A Dsh_mmcif.c313 struct mmc_cmd *cmd) in sh_mmcif_get_response()
328 struct mmc_cmd *cmd) in sh_mmcif_get_cmd12response()
334 struct mmc_data *data, struct mmc_cmd *cmd) in sh_mmcif_set_cmd()
432 struct mmc_data *data, struct mmc_cmd *cmd) in sh_mmcif_start_cmd()
517 struct mmc_cmd *cmd, struct mmc_data *data) in sh_mmcif_send_cmd_common()
574 static int sh_mmcif_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in sh_mmcif_send_cmd()
642 int sh_mmcif_dm_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in sh_mmcif_dm_send_cmd()
H A Dmeson_gx_mmc.c100 struct mmc_cmd *cmd) in meson_mmc_setup_cmd()
162 static void meson_mmc_read_response(struct mmc *mmc, struct mmc_cmd *cmd) in meson_mmc_read_response()
174 static int meson_dm_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in meson_dm_mmc_send_cmd()
H A Darm_pl180_mmci.c36 static int wait_for_command_end(struct mmc *dev, struct mmc_cmd *cmd) in wait_for_command_end()
76 static int do_command(struct mmc *dev, struct mmc_cmd *cmd) in do_command()
223 struct mmc_cmd *cmd, in do_data_transfer()
269 struct mmc_cmd *cmd, in host_request()
482 static int dm_host_request(struct udevice *dev, struct mmc_cmd *cmd, in dm_host_request()
H A Dtmio-common.c98 static int tmio_sd_check_error(struct udevice *dev, struct mmc_cmd *cmd) in tmio_sd_check_error()
134 static int tmio_sd_wait_for_irq(struct udevice *dev, struct mmc_cmd *cmd, in tmio_sd_wait_for_irq()
183 static int tmio_sd_pio_read_one_block(struct udevice *dev, struct mmc_cmd *cmd, in tmio_sd_pio_read_one_block()
236 static int tmio_sd_pio_write_one_block(struct udevice *dev, struct mmc_cmd *cmd, in tmio_sd_pio_write_one_block()
260 static int tmio_sd_pio_xfer(struct udevice *dev, struct mmc_cmd *cmd, in tmio_sd_pio_xfer()
405 int tmio_sd_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in tmio_sd_send_cmd()
H A Dstm32_sdmmc2.c239 struct mmc_cmd *cmd, u32 cmd_param) in stm32_sdmmc2_start_cmd()
265 struct mmc_cmd *cmd, in stm32_sdmmc2_end_cmd()
318 struct mmc_cmd *cmd, in stm32_sdmmc2_end_data()
381 static int stm32_sdmmc2_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in stm32_sdmmc2_send_cmd()
419 struct mmc_cmd stop_cmd; in stm32_sdmmc2_send_cmd()
H A Dpxa_mmc_gen.c97 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()
261 static int pxa_mmc_request(struct mmc *mmc, struct mmc_cmd *cmd, in pxa_mmc_request()
H A Dbcm2835_sdhost.c173 struct mmc_cmd *cmd; /* Current command */
373 static void bcm2835_prepare_data(struct bcm2835_host *host, struct mmc_cmd *cmd, in bcm2835_prepare_data()
403 static int bcm2835_send_command(struct bcm2835_host *host, struct mmc_cmd *cmd, in bcm2835_send_command()
461 struct mmc_cmd *cmd = host->cmd; in bcm2835_finish_command()
656 static int bcm2835_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in bcm2835_send_cmd()
H A Dmmc_write.c19 struct mmc_cmd cmd; in mmc_erase_t()
132 struct mmc_cmd cmd; in mmc_write_blocks()
H A Djz_mmc.c192 struct mmc_cmd *cmd, struct mmc_data *data) in jz_mmc_send_cmd()
367 static int jz_mmc_legacy_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in jz_mmc_legacy_send_cmd()
421 static int jz_mmc_dm_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in jz_mmc_dm_send_cmd()
H A Dsh_sdhi.c428 static void sh_sdhi_get_response(struct sh_sdhi_host *host, struct mmc_cmd *cmd) in sh_sdhi_get_response()
533 struct mmc_data *data, struct mmc_cmd *cmd) in sh_sdhi_start_cmd()
643 struct mmc_cmd *cmd, struct mmc_data *data) in sh_sdhi_send_cmd_common()
699 static int sh_sdhi_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in sh_sdhi_send_cmd()
794 int sh_sdhi_dm_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in sh_sdhi_dm_send_cmd()
H A Dmmc_boot.c27 struct mmc_cmd cmd; in mmc_boot_partition_size_change()
H A Dsandbox_mmc.c25 static int sandbox_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in sandbox_mmc_send_cmd()
H A Dgen_atmel_mci.c164 struct mmc_cmd *cmd, struct mmc_data *data, u32* error_flags)
240 static int atmel_mci_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,
248 mci_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
H A Dtegra_mmc.c124 struct mmc_cmd *cmd, in tegra_mmc_wait_inhibit()
154 static int tegra_mmc_send_cmd_bounced(struct udevice *dev, struct mmc_cmd *cmd, in tegra_mmc_send_cmd_bounced()
327 static int tegra_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in tegra_mmc_send_cmd()
H A Dmmc-uclass.c14 int dm_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in dm_mmc_send_cmd()
31 int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) in mmc_send_cmd()
H A Dsunxi_mmc.c360 struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_common()
490 static int sunxi_mmc_send_cmd_legacy(struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_legacy()
579 static int sunxi_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd()
H A Dsdhci.c40 static void sdhci_cmd_done(struct sdhci_host *host, struct mmc_cmd *cmd) in sdhci_cmd_done()
137 static int sdhci_send_command(struct udevice *dev, struct mmc_cmd *cmd,
143 static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd,
H A Dfsl_esdhc.c153 static uint esdhc_xfertyp(struct mmc_cmd *cmd, struct mmc_data *data) in esdhc_xfertyp()
365 (struct mmc_cmd *cmd, in check_and_invalidate_dcache_range()
411 struct mmc_cmd *cmd, struct mmc_data *data) in esdhc_send_cmd_common()
849 struct mmc_cmd cmd; in esdhc_stop_tuning()
1127 static int esdhc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, in esdhc_send_cmd()
1592 static int fsl_esdhc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, in fsl_esdhc_send_cmd()
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dbcmsdh.c389 struct mmc_command mmc_cmd; in brcmf_sdiod_sglist_rw() local
429 memset(&mmc_cmd, 0, sizeof(struct mmc_command)); in brcmf_sdiod_sglist_rw()
435 mmc_cmd.opcode = SD_IO_RW_EXTENDED; in brcmf_sdiod_sglist_rw()
436 mmc_cmd.arg = write ? 1<<31 : 0; /* write flag */ in brcmf_sdiod_sglist_rw()
437 mmc_cmd.arg |= (func->num & 0x7) << 28; /* SDIO func num */ in brcmf_sdiod_sglist_rw()
438 mmc_cmd.arg |= 1 << 27; /* block mode */ in brcmf_sdiod_sglist_rw()
440 mmc_cmd.arg |= (func->num == 1) ? 1 << 26 : 0; in brcmf_sdiod_sglist_rw()
441 mmc_cmd.flags = MMC_RSP_SPI_R5 | MMC_RSP_R5 | MMC_CMD_ADTC; in brcmf_sdiod_sglist_rw()
442 mmc_req.cmd = &mmc_cmd; in brcmf_sdiod_sglist_rw()
465 ret = mmc_submit_one(&mmc_dat, &mmc_req, &mmc_cmd, in brcmf_sdiod_sglist_rw()
[all …]
/openbmc/u-boot/include/
H A Dmmc.h376 struct mmc_cmd { struct
406 int (*send_cmd)(struct udevice *dev, struct mmc_cmd *cmd,
468 int dm_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,
488 struct mmc_cmd *cmd, struct mmc_data *data);

12