Lines Matching refs:esp_cmd
1090 struct sdmmc_command esp_cmd = { in sdhc_esp32_request() local
1096 esp_cmd.data = data->data; in sdhc_esp32_request()
1097 esp_cmd.blklen = data->block_size; in sdhc_esp32_request()
1098 esp_cmd.datalen = (data->blocks * data->block_size); in sdhc_esp32_request()
1099 esp_cmd.buflen = esp_cmd.datalen; in sdhc_esp32_request()
1107 esp_cmd.timeout_ms = SDMMC_TIMEOUT_MAX; in sdhc_esp32_request()
1109 esp_cmd.timeout_ms = timeout_cfg; in sdhc_esp32_request()
1117 esp_cmd.flags = SCF_CMD_BC | SCF_RSP_R0; in sdhc_esp32_request()
1123 esp_cmd.flags = SCF_CMD_AC | SCF_RSP_R1; in sdhc_esp32_request()
1127 esp_cmd.flags = SCF_CMD_BCR | SCF_RSP_R7; in sdhc_esp32_request()
1131 esp_cmd.flags = SCF_CMD_BCR | SCF_RSP_R3; in sdhc_esp32_request()
1132 esp_cmd.arg = SD_OCR_SDHC_CAP | SD_OCR_VOL_MASK; in sdhc_esp32_request()
1136 esp_cmd.flags = SCF_CMD_AC | SCF_RSP_R5; in sdhc_esp32_request()
1140 esp_cmd.flags = SCF_CMD_BCR | SCF_RSP_R4; in sdhc_esp32_request()
1144 esp_cmd.flags = SCF_CMD_BCR | SCF_RSP_R2; in sdhc_esp32_request()
1148 esp_cmd.flags = SCF_CMD_BCR | SCF_RSP_R6; in sdhc_esp32_request()
1152 esp_cmd.flags = SCF_CMD_AC | SCF_RSP_R2; in sdhc_esp32_request()
1153 esp_cmd.datalen = 0; in sdhc_esp32_request()
1158 esp_cmd.flags = SCF_CMD_AC | (cmd->arg > 0 ? SCF_RSP_R1 : 0); in sdhc_esp32_request()
1166 esp_cmd.flags = SCF_CMD_ADTC | SCF_CMD_READ | SCF_RSP_R1; in sdhc_esp32_request()
1171 esp_cmd.flags = SCF_CMD_ADTC | SCF_RSP_R1; in sdhc_esp32_request()
1181 ret_esp = sdmmc_host_do_transaction(dev, cfg->slot, &esp_cmd); in sdhc_esp32_request()
1190 if ((ret_esp != 0) || esp_cmd.error) { in sdhc_esp32_request()
1192 cmd->opcode, cmd->arg, ret_esp, esp_cmd.error); in sdhc_esp32_request()
1194 ret_esp = (ret_esp > 0) ? ret_esp : esp_cmd.error; in sdhc_esp32_request()
1199 memcpy(cmd->response, esp_cmd.response, sizeof(cmd->response)); in sdhc_esp32_request()
1201 int state = MMC_R1_CURRENT_STATE(esp_cmd.response); in sdhc_esp32_request()
1204 esp_cmd.opcode, esp_cmd.arg, esp_cmd.response[0], esp_cmd.response[1], in sdhc_esp32_request()
1205 esp_cmd.response[2], esp_cmd.response[3], esp_cmd.error, state); in sdhc_esp32_request()
1209 data->bytes_xfered = esp_cmd.datalen; in sdhc_esp32_request()