/u-boot/drivers/mmc/ |
A D | mmc_boot.c | 31 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 D | mmc_write.c | 39 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 D | stm32_sdmmc2.c | 258 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 D | mmc_spi.c | 89 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 D | rpmb.c | 83 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 D | mmc.c | 70 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 D | mxsmmc.c | 327 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 D | mvebu_mmc.c | 77 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 D | sh_mmcif.c | 342 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 D | sunxi_mmc.c | 365 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 D | arm_pl180_mmci.c | 56 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 D | sandbox_mmc.c | 44 switch (cmd->cmdidx) { in sandbox_mmc_send_cmd() 116 debug("%s: Unknown command %d\n", __func__, cmd->cmdidx); in sandbox_mmc_send_cmd()
|
A D | ftsdc010_mci.c | 72 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 D | sdhci.c | 227 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 D | fsl_esdhc.c | 119 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 D | octeontx_hsmmc.c | 792 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 D | fsl_esdhc_imx.c | 216 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 D | gen_atmel_mci.c | 194 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 D | tegra_mmc.c | 218 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 D | davinci_mmc.c | 170 cmddata = cmd->cmdidx; 174 if (cmd->cmdidx == MMC_CMD_GO_IDLE_STATE) 303 if (cmd->cmdidx == MMC_CMD_SEND_EXT_CSD)
|
A D | zynq_sdhci.c | 128 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 D | bcm2835_sdhost.c | 439 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 D | tmio-common.c | 103 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 D | omap_hsmmc.c | 801 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 D | mmc.h | 136 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
|