Lines Matching refs:curcmd

570 	buffer = slot->curcmd->data->data;  in sdhci_read_block_pio()
574 if (slot->curcmd->data->flags & MMC_DATA_BLOCK_SIZE) in sdhci_read_block_pio()
575 left = min(slot->curcmd->data->block_size, in sdhci_read_block_pio()
576 slot->curcmd->data->len - slot->offset); in sdhci_read_block_pio()
579 left = min(512, slot->curcmd->data->len - slot->offset); in sdhci_read_block_pio()
619 buffer = slot->curcmd->data->data; in sdhci_write_block_pio()
623 if (slot->curcmd->data->flags & MMC_DATA_BLOCK_SIZE) { in sdhci_write_block_pio()
624 left = min(slot->curcmd->data->block_size, in sdhci_write_block_pio()
625 slot->curcmd->data->len - slot->offset); in sdhci_write_block_pio()
628 left = min(512, slot->curcmd->data->len - slot->offset); in sdhci_write_block_pio()
663 if (slot->curcmd->data->flags & MMC_DATA_READ) { in sdhci_transfer_pio()
667 if (slot->offset >= slot->curcmd->data->len) in sdhci_transfer_pio()
674 if (slot->offset >= slot->curcmd->data->len) in sdhci_transfer_pio()
1666 if (slot->ccb != NULL && slot->curcmd != NULL) {
1670 slot->curcmd = NULL;
1687 if (slot->req != NULL && slot->curcmd != NULL) {
1691 slot->curcmd = NULL;
1710 if (slot->curcmd != NULL) {
1715 slot->curcmd->error = MMC_ERR_TIMEOUT;
1756 slot->curcmd = cmd;
1877 __func__, slot->curcmd->error, slot->curcmd->flags);
1884 if (__predict_true(slot->curcmd->opcode != MMC_SEND_TUNING_BLOCK &&
1885 slot->curcmd->opcode != MMC_SEND_TUNING_BLOCK_HS200))
1889 if (slot->curcmd->error) {
1890 if (slot->curcmd->error == MMC_ERR_BADCRC)
1898 if (slot->curcmd->flags & MMC_RSP_PRESENT) {
1899 if (slot->curcmd->flags & MMC_RSP_136) {
1906 slot->curcmd->resp[3 - i] = val;
1908 slot->curcmd->resp[3 - i] =
1914 slot->curcmd->resp[0] = RD4(slot, SDHCI_RESPONSE);
1918 slot->curcmd->resp[0], slot->curcmd->resp[1],
1919 slot->curcmd->resp[2], slot->curcmd->resp[3]);
1932 if (data == NULL && (slot->curcmd->flags & MMC_RSP_BUSY) == 0) {
2024 struct mmc_data *data = slot->curcmd->data;
2036 slot->curcmd->data != NULL) {
2049 if (slot->curcmd->error) {
2050 if (slot->curcmd->error == MMC_ERR_BADCRC)
2125 ((slot->curcmd == req->stop &&
2213 if (!slot->curcmd) {
2220 slot->curcmd->error = MMC_ERR_TIMEOUT;
2222 slot->curcmd->error = MMC_ERR_BADCRC;
2224 slot->curcmd->error = MMC_ERR_FIFO;
2236 if (!slot->curcmd) {
2242 if (slot->curcmd->data == NULL &&
2243 (slot->curcmd->flags & MMC_RSP_BUSY) == 0) {
2251 slot->curcmd->error = MMC_ERR_TIMEOUT;
2253 slot->curcmd->error = MMC_ERR_BADCRC;
2254 if (slot->curcmd->data == NULL &&
2260 slot->curcmd->error = MMC_ERR_INVALID;
2262 if (slot->curcmd->error) {
2269 (slot->curcmd->opcode == MMC_SEND_TUNING_BLOCK ||
2270 slot->curcmd->opcode == MMC_SEND_TUNING_BLOCK_HS200))) {
2288 data = slot->curcmd->data;
2334 if (slot->curcmd != NULL && slot->curcmd->error != 0) {
2347 if (!slot->curcmd) {
2378 if (slot->curcmd) {
2379 slot->curcmd->error = MMC_ERR_BADCRC;