Lines Matching refs:mrq
318 struct mmc_request *mrq; member
382 struct mmc_request *mrq; member
412 struct mmc_request *mrq; in atmci_req_show() local
419 mrq = slot->mrq; in atmci_req_show()
421 if (mrq) { in atmci_req_show()
422 cmd = mrq->cmd; in atmci_req_show()
423 data = mrq->data; in atmci_req_show()
424 stop = mrq->stop; in atmci_req_show()
698 if (host->mrq->cmd->data) { in atmci_timeout_timer()
699 host->mrq->cmd->data->error = -ETIMEDOUT; in atmci_timeout_timer()
709 host->mrq->cmd->error = -ETIMEDOUT; in atmci_timeout_timer()
1236 struct mmc_request *mrq; in atmci_start_request() local
1242 mrq = slot->mrq; in atmci_start_request()
1244 host->mrq = mrq; in atmci_start_request()
1251 dev_dbg(&host->pdev->dev, "start request: cmd %u\n", mrq->cmd->opcode); in atmci_start_request()
1278 data = mrq->data; in atmci_start_request()
1292 cmd = mrq->cmd; in atmci_start_request()
1310 if (mrq->stop) { in atmci_start_request()
1311 host->stop_cmdr = atmci_prepare_command(slot->mmc, mrq->stop); in atmci_start_request()
1328 struct atmel_mci_slot *slot, struct mmc_request *mrq) in atmci_queue_request() argument
1334 slot->mrq = mrq; in atmci_queue_request()
1345 static void atmci_request(struct mmc_host *mmc, struct mmc_request *mrq) in atmci_request() argument
1351 WARN_ON(slot->mrq); in atmci_request()
1352 dev_dbg(&host->pdev->dev, "MRQ: cmd %u\n", mrq->cmd->opcode); in atmci_request()
1363 mrq->cmd->error = -ENOMEDIUM; in atmci_request()
1364 mmc_request_done(mmc, mrq); in atmci_request()
1369 data = mrq->data; in atmci_request()
1371 mrq->cmd->error = -EINVAL; in atmci_request()
1372 mmc_request_done(mmc, mrq); in atmci_request()
1375 atmci_queue_request(host, slot, mrq); in atmci_request()
1557 static void atmci_request_end(struct atmel_mci *host, struct mmc_request *mrq) in atmci_request_end() argument
1579 host->cur_slot->mrq = NULL; in atmci_request_end()
1580 host->mrq = NULL; in atmci_request_end()
1595 mmc_request_done(prev_mmc, mrq); in atmci_request_end()
1616 else if (host->mrq->data && (host->mrq->data->blksz & 3)) { in atmci_command_complete()
1651 struct mmc_request *mrq; in atmci_detect_change() local
1664 mrq = slot->mrq; in atmci_detect_change()
1665 if (mrq) { in atmci_detect_change()
1666 if (mrq == host->mrq) { in atmci_detect_change()
1684 mrq->cmd->error = -ENOMEDIUM; in atmci_detect_change()
1685 if (mrq->data) in atmci_detect_change()
1689 mrq->data->error = -ENOMEDIUM; in atmci_detect_change()
1693 mrq->data->error = -ENOMEDIUM; in atmci_detect_change()
1696 mrq->stop->error = -ENOMEDIUM; in atmci_detect_change()
1702 atmci_request_end(host, mrq); in atmci_detect_change()
1705 mrq->cmd->error = -ENOMEDIUM; in atmci_detect_change()
1706 if (mrq->data) in atmci_detect_change()
1707 mrq->data->error = -ENOMEDIUM; in atmci_detect_change()
1708 if (mrq->stop) in atmci_detect_change()
1709 mrq->stop->error = -ENOMEDIUM; in atmci_detect_change()
1712 mmc_request_done(slot->mmc, mrq); in atmci_detect_change()
1725 struct mmc_request *mrq = host->mrq; in atmci_tasklet_func() local
1763 atmci_command_complete(host, mrq->cmd); in atmci_tasklet_func()
1764 if (mrq->data) { in atmci_tasklet_func()
1771 if (mrq->cmd->error) { in atmci_tasklet_func()
1780 } else if ((!mrq->data) && (mrq->cmd->flags & MMC_RSP_BUSY)) { in atmci_tasklet_func()
1820 } else if (host->mrq->stop) { in atmci_tasklet_func()
1853 if (host->mrq->stop) { in atmci_tasklet_func()
1885 atmci_command_complete(host, mrq->stop); in atmci_tasklet_func()
1886 if (mrq->stop->error) { in atmci_tasklet_func()
1917 atmci_request_end(host, host->mrq); in atmci_tasklet_func()