Lines Matching refs:mrq

259  * @mrq: The request currently being processed on @cur_slot,
306 * @cur_slot, @mrq and @state. These must always be updated
313 * The @mrq field of struct atmel_mci_slot is also protected by @lock,
342 struct mmc_request *mrq;
387 * @mrq: mmc_request currently being processed or waiting to be
406 struct mmc_request *mrq;
435 struct mmc_request *mrq;
442 mrq = slot->mrq;
444 if (mrq) {
445 cmd = mrq->cmd;
446 data = mrq->data;
447 stop = mrq->stop;
721 if (host->mrq->cmd->data) {
722 host->mrq->cmd->data->error = -ETIMEDOUT;
732 host->mrq->cmd->error = -ETIMEDOUT;
1261 struct mmc_request *mrq;
1267 mrq = slot->mrq;
1269 host->mrq = mrq;
1276 dev_dbg(dev, "start request: cmd %u\n", mrq->cmd->opcode);
1303 data = mrq->data;
1317 cmd = mrq->cmd;
1335 if (mrq->stop) {
1336 host->stop_cmdr = atmci_prepare_command(slot->mmc, mrq->stop);
1353 struct atmel_mci_slot *slot, struct mmc_request *mrq)
1361 slot->mrq = mrq;
1372 static void atmci_request(struct mmc_host *mmc, struct mmc_request *mrq)
1379 WARN_ON(slot->mrq);
1380 dev_dbg(dev, "MRQ: cmd %u\n", mrq->cmd->opcode);
1391 mrq->cmd->error = -ENOMEDIUM;
1392 mmc_request_done(mmc, mrq);
1397 data = mrq->data;
1399 mrq->cmd->error = -EINVAL;
1400 mmc_request_done(mmc, mrq);
1403 atmci_queue_request(host, slot, mrq);
1584 static void atmci_request_end(struct atmel_mci *host, struct mmc_request *mrq)
1607 host->cur_slot->mrq = NULL;
1608 host->mrq = NULL;
1622 mmc_request_done(prev_mmc, mrq);
1643 else if (host->mrq->data && (host->mrq->data->blksz & 3)) {
1677 struct mmc_request *mrq;
1690 mrq = slot->mrq;
1691 if (mrq) {
1692 if (mrq == host->mrq) {
1710 mrq->cmd->error = -ENOMEDIUM;
1711 if (mrq->data)
1715 mrq->data->error = -ENOMEDIUM;
1719 mrq->data->error = -ENOMEDIUM;
1722 mrq->stop->error = -ENOMEDIUM;
1728 atmci_request_end(host, mrq);
1731 mrq->cmd->error = -ENOMEDIUM;
1732 if (mrq->data)
1733 mrq->data->error = -ENOMEDIUM;
1734 if (mrq->stop)
1735 mrq->stop->error = -ENOMEDIUM;
1738 mmc_request_done(slot->mmc, mrq);
1751 struct mmc_request *mrq = host->mrq;
1789 atmci_command_complete(host, mrq->cmd);
1790 if (mrq->data) {
1796 if (mrq->cmd->error) {
1805 } else if ((!mrq->data) && (mrq->cmd->flags & MMC_RSP_BUSY)) {
1842 } else if (host->mrq->stop) {
1874 if (host->mrq->stop) {
1904 atmci_command_complete(host, mrq->stop);
1905 if (mrq->stop->error) {
1936 atmci_request_end(host, host->mrq);