Home
last modified time | relevance | path

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

12

/u-boot/drivers/mmc/
A Dmmc_boot.c31 cmd.cmdidx = MMC_CMD_RES_MAN; in mmc_boot_partition_size_change()
42 cmd.cmdidx = MMC_CMD_RES_MAN; in mmc_boot_partition_size_change()
55 cmd.cmdidx = MMC_CMD_RES_MAN; in mmc_boot_partition_size_change()
67 cmd.cmdidx = MMC_CMD_RES_MAN; in mmc_boot_partition_size_change()
A Dmmc_write.c39 cmd.cmdidx = start_cmd; in mmc_erase_t()
47 cmd.cmdidx = end_cmd; in mmc_erase_t()
54 cmd.cmdidx = MMC_CMD_ERASE; in mmc_erase_t()
146 cmd.cmdidx = MMC_CMD_WRITE_SINGLE_BLOCK; in mmc_write_blocks()
148 cmd.cmdidx = MMC_CMD_WRITE_MULTIPLE_BLOCK; in mmc_write_blocks()
171 cmd.cmdidx = MMC_CMD_STOP_TRANSMISSION; in mmc_write_blocks()
A Dstm32_sdmmc2.c258 cmd_param |= cmd->cmdidx | SDMMC_CMD_CPSMEN; in stm32_sdmmc2_start_cmd()
328 status, cmd->cmdidx); in stm32_sdmmc2_end_cmd()
335 status, cmd->cmdidx); in stm32_sdmmc2_end_cmd()
405 status, cmd->cmdidx); in stm32_sdmmc2_end_data()
413 status, cmd->cmdidx); in stm32_sdmmc2_end_data()
420 status, cmd->cmdidx); in stm32_sdmmc2_end_data()
427 status, cmd->cmdidx); in stm32_sdmmc2_end_data()
434 status, cmd->cmdidx); in stm32_sdmmc2_end_data()
483 stop_cmd.cmdidx = MMC_CMD_STOP_TRANSMISSION; in stm32_sdmmc2_send_cmd()
499 dev_err(dev, "cmd %d failed, retrying ...\n", cmd->cmdidx); in stm32_sdmmc2_send_cmd()
[all …]
A Dmmc_spi.c89 ushort cmdidx, u32 cmdarg, u32 resp_type, in mmc_spi_sendcmd() argument
101 __func__, cmdidx, cmdarg, resp_type, in mmc_spi_sendcmd()
105 cmdo[1] = MMC_SPI_CMD(cmdidx); in mmc_spi_sendcmd()
119 debug("%s: cmd%d", __func__, cmdidx); in mmc_spi_sendcmd()
333 switch (cmd->cmdidx) { in dm_mmc_spi_request()
387 ret = mmc_spi_sendcmd(dev, cmd->cmdidx, cmd->cmdarg, cmd->resp_type, in dm_mmc_spi_request()
392 switch (cmd->cmdidx) { in dm_mmc_spi_request()
425 __func__, cmd->cmdidx, cmd->response[0], cmd->response[1], in dm_mmc_spi_request()
431 multi = (cmd->cmdidx == MMC_CMD_WRITE_MULTIPLE_BLOCK); in dm_mmc_spi_request()
A Drpmb.c83 cmd.cmdidx = MMC_CMD_SET_BLOCK_COUNT; in mmc_set_blockcount()
107 cmd.cmdidx = MMC_CMD_WRITE_MULTIPLE_BLOCK; in mmc_rpmb_request()
142 cmd.cmdidx = MMC_CMD_READ_MULTIPLE_BLOCK; in mmc_rpmb_response()
335 .cmdidx = MMC_CMD_WRITE_MULTIPLE_BLOCK, in send_write_mult_block()
352 .cmdidx = MMC_CMD_READ_MULTIPLE_BLOCK, in send_read_mult_block()
A Dmmc.c70 printf("CMD_SEND:%d\n", cmd->cmdidx); in mmmc_trace_before_send()
258 cmd.cmdidx = MMC_CMD_SEND_STATUS; in mmc_send_status()
320 cmd.cmdidx = MMC_CMD_SET_BLOCKLEN; in mmc_set_blocklen()
378 cmd.cmdidx = opcode; in mmc_send_tuning()
598 cmd.cmdidx = MMC_CMD_APP_CMD; in sd_send_op_cond()
804 cmd.cmdidx = MMC_CMD_SWITCH; in __mmc_switch()
1296 cmd.cmdidx = MMC_CMD_APP_CMD; in sd_get_capabilities()
1441 cmd.cmdidx = MMC_CMD_APP_CMD; in sd_select_bus_width()
1480 cmd.cmdidx = MMC_CMD_APP_CMD; in sd_read_ssr()
2462 cmd.cmdidx = MMC_CMD_SEND_CSD; in mmc_startup()
[all …]
A Dmxsmmc.c327 debug("MMC%d: CMD%d\n", devnum, cmd->cmdidx);
371 reg |= cmd->cmdidx << SSP_CMD0_CMD_OFFSET;
372 if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION)
427 printf("MMC%d: Command %d busy\n", devnum, cmd->cmdidx);
434 devnum, cmd->cmdidx, reg);
441 devnum, cmd->cmdidx, reg);
462 "(status 0x%08x)!\n", devnum, cmd->cmdidx, reg);
479 devnum, cmd->cmdidx, reg);
A Dmvebu_mmc.c77 DRIVER_NAME, cmd->cmdidx, cmd->resp_type, cmd->cmdarg); in mvebu_mmc_send_cmd()
80 cmd->cmdidx, mvebu_mmc_read(SDIO_HW_STATE)); in mvebu_mmc_send_cmd()
112 resptype = SDIO_CMD_INDEX(cmd->cmdidx); in mvebu_mmc_send_cmd()
171 DRIVER_NAME, cmd->cmdidx, in mvebu_mmc_send_cmd()
A Dsh_mmcif.c342 u32 opc = cmd->cmdidx; in sh_mmcif_set_cmd()
441 u32 opc = cmd->cmdidx; in sh_mmcif_start_cmd()
478 debug("CMD%d ARG:%08x\n", cmd->cmdidx, cmd->cmdarg); in sh_mmcif_start_cmd()
490 switch (cmd->cmdidx) { in sh_mmcif_start_cmd()
497 printf(DRIVER_NAME": Cmd(d'%d) err\n", cmd->cmdidx); in sh_mmcif_start_cmd()
515 ret = sh_mmcif_data_trans(host, data, cmd->cmdidx); in sh_mmcif_start_cmd()
516 host->last_cmd = cmd->cmdidx; in sh_mmcif_start_cmd()
528 switch (cmd->cmdidx) { in sh_mmcif_send_cmd_common()
A Dsunxi_mmc.c365 debug("mmc cmd %d check rsp busy\n", cmd->cmdidx); in sunxi_mmc_send_cmd_common()
366 if (cmd->cmdidx == 12) in sunxi_mmc_send_cmd_common()
369 if (!cmd->cmdidx) in sunxi_mmc_send_cmd_common()
394 cmd->cmdidx, cmdval | cmd->cmdidx, cmd->cmdarg); in sunxi_mmc_send_cmd_common()
398 writel(cmdval | cmd->cmdidx, &priv->reg->cmd); in sunxi_mmc_send_cmd_common()
410 writel(cmdval | cmd->cmdidx, &priv->reg->cmd); in sunxi_mmc_send_cmd_common()
A Darm_pl180_mmci.c56 debug("CMD%d time out\n", cmd->cmdidx); in wait_for_command_end()
60 printf("CMD%d CRC error\n", cmd->cmdidx); in wait_for_command_end()
71 cmd->cmdidx, cmd->response[0], cmd->response[1], in wait_for_command_end()
85 sdi_cmd = ((cmd->cmdidx & SDI_CMD_CMDINDEX_MASK) | SDI_CMD_CPSMEN); in do_command()
99 if ((result == 0) && (cmd->cmdidx == MMC_CMD_ALL_SEND_CID)) in do_command()
103 if ((result == 0) && (cmd->cmdidx == MMC_CMD_SET_RELATIVE_ADDR)) { in do_command()
A Dsandbox_mmc.c44 switch (cmd->cmdidx) { in sandbox_mmc_send_cmd()
116 debug("%s: Unknown command %d\n", __func__, cmd->cmdidx); in sandbox_mmc_send_cmd()
A Dftsdc010_mci.c72 uint32_t cmd = FTSDC010_CMD_IDX(mmc_cmd->cmdidx); in ftsdc010_send_cmd()
122 mmc_cmd->cmdidx, st); in ftsdc010_send_cmd()
128 mmc_cmd->cmdidx); in ftsdc010_send_cmd()
129 } else if (mmc_cmd->cmdidx == MMC_CMD_APP_CMD) { in ftsdc010_send_cmd()
228 printf("ftsdc010: CMD%d failed\n", cmd->cmdidx); in ftsdc010_request()
A Dsdhci.c227 if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION ||
228 ((cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK ||
229 cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200) && !data))
251 if ((cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK ||
252 cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200) && !data)
270 if (data || cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK ||
271 cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200)
300 sdhci_writew(host, SDHCI_MAKE_CMD(cmd->cmdidx, flags), SDHCI_COMMAND);
A Dfsl_esdhc.c119 cmd->cmdidx != MMC_CMD_SEND_TUNING_BLOCK && in esdhc_xfertyp()
120 cmd->cmdidx != MMC_CMD_SEND_TUNING_BLOCK_HS200) in esdhc_xfertyp()
144 if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION) in esdhc_xfertyp()
147 return XFERTYP_CMD(cmd->cmdidx) | xfertyp; in esdhc_xfertyp()
348 cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION) in esdhc_send_cmd_common()
387 if (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK || in esdhc_send_cmd_common()
388 cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200) in esdhc_send_cmd_common()
451 if (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK || in esdhc_send_cmd_common()
452 cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200) in esdhc_send_cmd_common()
A Docteontx_hsmmc.c792 if (cmd->cmdidx == 56) in octeontx_mmc_get_cr_mods()
1223 cmd.cmdidx = MMC_CMD_SEND_STATUS; in octeontx_mmc_poll_ready()
1364 else if (cmd->cmdidx == MMC_CMD_ERASE) in octeontx_mmc_send_cmd()
1388 switch (cmd->cmdidx) { in octeontx_mmc_send_cmd()
1427 emm_cmd.s.cmd_idx = cmd->cmdidx; in octeontx_mmc_send_cmd()
1442 __func__, name, cmd->cmdidx); in octeontx_mmc_send_cmd()
1447 __func__, name, cmd->cmdidx); in octeontx_mmc_send_cmd()
1466 name, cmd->cmdidx, emm_cmd.u); in octeontx_mmc_send_cmd()
1494 cmd->cmdidx, cmd->cmdarg); in octeontx_mmc_send_cmd()
1623 cmd.cmdidx = opcode; in octeontx_mmc_test_cmd()
[all …]
A Dfsl_esdhc_imx.c216 if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION) in esdhc_xfertyp()
219 return XFERTYP_CMD(cmd->cmdidx) | xfertyp; in esdhc_xfertyp()
456 if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION) in esdhc_send_cmd_common()
499 if ((cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK) || in esdhc_send_cmd_common()
500 (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200)) in esdhc_send_cmd_common()
525 if (cmd->cmdidx == SD_CMD_SWITCH_UHS18V) { in esdhc_send_cmd_common()
572 if ((cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK) || in esdhc_send_cmd_common()
573 (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200)) { in esdhc_send_cmd_common()
622 if (cmd->cmdidx == SD_CMD_SWITCH_UHS18V) in esdhc_send_cmd_common()
853 cmd.cmdidx = MMC_CMD_STOP_TRANSMISSION; in esdhc_stop_tuning()
A Dgen_atmel_mci.c194 return cmdr | MMCI_BF(CMDNB, cmd->cmdidx);
270 if ((cmd->cmdidx == MMC_CMD_READ_MULTIPLE_BLOCK)
271 || (cmd->cmdidx == MMC_CMD_WRITE_MULTIPLE_BLOCK))
367 if (cmd->cmdidx == MMC_CMD_SWITCH)
A Dtegra_mmc.c218 debug("cmd: %d\n", cmd->cmdidx); in tegra_mmc_send_cmd_bounced()
220 writew((cmd->cmdidx << 8) | flags, &priv->reg->cmdreg); in tegra_mmc_send_cmd_bounced()
240 debug("timeout: %08x cmd %d\n", mask, cmd->cmdidx); in tegra_mmc_send_cmd_bounced()
245 debug("error: %08x cmd %d\n", mask, cmd->cmdidx); in tegra_mmc_send_cmd_bounced()
A Ddavinci_mmc.c170 cmddata = cmd->cmdidx;
174 if (cmd->cmdidx == MMC_CMD_GO_IDLE_STATE)
303 if (cmd->cmdidx == MMC_CMD_SEND_EXT_CSD)
A Dzynq_sdhci.c128 cmd.cmdidx = opcode; in arasan_sdhci_execute_tuning()
139 if (cmd.cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200 && in arasan_sdhci_execute_tuning()
152 if (cmd.cmdidx == MMC_CMD_SEND_TUNING_BLOCK) in arasan_sdhci_execute_tuning()
A Dbcm2835_sdhost.c439 sdcmd = cmd->cmdidx & SDCMD_CMD_MASK; in bcm2835_send_command()
485 (host->cmd->cmdidx != MMC_CMD_SEND_OP_COND)) { in bcm2835_finish_command()
490 host->cmd->cmdidx); in bcm2835_finish_command()
681 (cmd && cmd->cmdidx != MMC_CMD_STOP_TRANSMISSION)) { in bcm2835_send_cmd()
A Dtmio-common.c103 if ((cmd->cmdidx != MMC_CMD_SEND_TUNING_BLOCK) && in tmio_sd_check_error()
104 (cmd->cmdidx != MMC_CMD_SEND_TUNING_BLOCK_HS200)) in tmio_sd_check_error()
416 tmp = cmd->cmdidx; in tmio_sd_send_cmd()
460 cmd->cmdidx, tmp, cmd->cmdarg); in tmio_sd_send_cmd()
A Domap_hsmmc.c801 if (cmd && mmc_is_tuning_cmd(cmd->cmdidx)) in mmc_enable_irq()
1056 priv->last_cmd = cmd->cmdidx;
1060 if (cmd->cmdidx == MMC_CMD_STOP_TRANSMISSION)
1094 if (cmd->cmdidx == SD_CMD_APP_SEND_SCR)
1117 if ((cmd->cmdidx == MMC_CMD_READ_MULTIPLE_BLOCK) ||
1118 (cmd->cmdidx == MMC_CMD_WRITE_MULTIPLE_BLOCK)) {
1133 !mmc_is_tuning_cmd(cmd->cmdidx)) {
1144 writel((cmd->cmdidx << 24) | flags, &mmc_base->cmd);
1178 !mmc_is_tuning_cmd(cmd->cmdidx)) {
/u-boot/include/
A Dmmc.h136 static inline bool mmc_is_tuning_cmd(uint cmdidx) in mmc_is_tuning_cmd() argument
138 if ((cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200) || in mmc_is_tuning_cmd()
139 (cmdidx == MMC_CMD_SEND_TUNING_BLOCK)) in mmc_is_tuning_cmd()
409 ushort cmdidx; member

Completed in 48 milliseconds

12