Lines Matching refs:mrq

180 static void mmc_blk_hsq_req_done(struct mmc_request *mrq);
469 struct mmc_request mrq = {}; in __mmc_blk_ioctl_cmd() local
528 mrq.data = &data; in __mmc_blk_ioctl_cmd()
531 mrq.cmd = &cmd; in __mmc_blk_ioctl_cmd()
552 mrq.sbc = &sbc; in __mmc_blk_ioctl_cmd()
559 mmc_wait_for_req(card->host, &mrq); in __mmc_blk_ioctl_cmd()
908 struct mmc_request mrq = {}; in mmc_sd_num_wr_blocks() local
937 mrq.cmd = &cmd; in mmc_sd_num_wr_blocks()
938 mrq.data = &data; in mmc_sd_num_wr_blocks()
946 mmc_wait_for_req(card->host, &mrq); in mmc_sd_num_wr_blocks()
1280 oor_with_open_end = val & R1_OUT_OF_RANGE && !brq->mrq.sbc; in mmc_blk_eval_resp_error()
1309 brq->mrq.data = &brq->data; in mmc_blk_data_prep()
1310 brq->mrq.tag = req->tag; in mmc_blk_data_prep()
1426 struct mmc_request *mrq = &mqrq->brq.mrq; in mmc_blk_cqe_complete_rq() local
1434 mmc_cqe_post_req(host, mrq); in mmc_blk_cqe_complete_rq()
1436 if (mrq->cmd && mrq->cmd->error) in mmc_blk_cqe_complete_rq()
1437 err = mrq->cmd->error; in mmc_blk_cqe_complete_rq()
1438 else if (mrq->data && mrq->data->error) in mmc_blk_cqe_complete_rq()
1439 err = mrq->data->error; in mmc_blk_cqe_complete_rq()
1448 } else if (mrq->data) { in mmc_blk_cqe_complete_rq()
1449 if (blk_update_request(req, BLK_STS_OK, mrq->data->bytes_xfered)) in mmc_blk_cqe_complete_rq()
1491 static void mmc_blk_cqe_req_done(struct mmc_request *mrq) in mmc_blk_cqe_req_done() argument
1493 struct mmc_queue_req *mqrq = container_of(mrq, struct mmc_queue_req, in mmc_blk_cqe_req_done()
1494 brq.mrq); in mmc_blk_cqe_req_done()
1509 static int mmc_blk_cqe_start_req(struct mmc_host *host, struct mmc_request *mrq) in mmc_blk_cqe_start_req() argument
1511 mrq->done = mmc_blk_cqe_req_done; in mmc_blk_cqe_start_req()
1512 mrq->recovery_notifier = mmc_cqe_recovery_notifier; in mmc_blk_cqe_start_req()
1514 return mmc_cqe_start_req(host, mrq); in mmc_blk_cqe_start_req()
1524 brq->mrq.cmd = &brq->cmd; in mmc_blk_cqe_prep_dcmd()
1525 brq->mrq.tag = req->tag; in mmc_blk_cqe_prep_dcmd()
1527 return &brq->mrq; in mmc_blk_cqe_prep_dcmd()
1533 struct mmc_request *mrq = mmc_blk_cqe_prep_dcmd(mqrq, req); in mmc_blk_cqe_issue_flush() local
1535 mrq->cmd->opcode = MMC_SWITCH; in mmc_blk_cqe_issue_flush()
1536 mrq->cmd->arg = (MMC_SWITCH_MODE_WRITE_BYTE << 24) | in mmc_blk_cqe_issue_flush()
1540 mrq->cmd->flags = MMC_CMD_AC | MMC_RSP_R1B; in mmc_blk_cqe_issue_flush()
1542 return mmc_blk_cqe_start_req(mq->card->host, mrq); in mmc_blk_cqe_issue_flush()
1552 mqrq->brq.mrq.done = mmc_blk_hsq_req_done; in mmc_blk_hsq_issue_rw_rq()
1553 mmc_pre_req(host, &mqrq->brq.mrq); in mmc_blk_hsq_issue_rw_rq()
1555 err = mmc_cqe_start_req(host, &mqrq->brq.mrq); in mmc_blk_hsq_issue_rw_rq()
1557 mmc_post_req(host, &mqrq->brq.mrq, err); in mmc_blk_hsq_issue_rw_rq()
1572 return mmc_blk_cqe_start_req(mq->card->host, &mqrq->brq.mrq); in mmc_blk_cqe_issue_rw_rq()
1588 brq->mrq.cmd = &brq->cmd; in mmc_blk_rw_rq_prep()
1601 brq->mrq.stop = &brq->stop; in mmc_blk_rw_rq_prep()
1605 brq->mrq.stop = NULL; in mmc_blk_rw_rq_prep()
1637 brq->mrq.sbc = &brq->sbc; in mmc_blk_rw_rq_prep()
1681 struct mmc_request *mrq = &mqrq->brq.mrq; in mmc_blk_read_single() local
1693 mmc_wait_for_req(host, mrq); in mmc_blk_read_single()
1706 if (mrq->cmd->error && retries++ < MMC_READ_SINGLE_RETRIES) in mmc_blk_read_single()
1711 if (mrq->cmd->error || in mmc_blk_read_single()
1712 mrq->data->error || in mmc_blk_read_single()
1714 (mrq->cmd->resp[0] & CMD_ERRORS || status & CMD_ERRORS))) in mmc_blk_read_single()
1724 mrq->data->bytes_xfered = 0; in mmc_blk_read_single()
1733 return !!brq->mrq.sbc; in mmc_blk_oor_valid()
1974 static void mmc_blk_hsq_req_done(struct mmc_request *mrq) in mmc_blk_hsq_req_done() argument
1977 container_of(mrq, struct mmc_queue_req, brq.mrq); in mmc_blk_hsq_req_done()
2057 struct mmc_request *mrq = &mqrq->brq.mrq; in mmc_blk_mq_post_req() local
2060 mmc_post_req(host, mrq, 0); in mmc_blk_mq_post_req()
2125 static void mmc_blk_mq_req_done(struct mmc_request *mrq) in mmc_blk_mq_req_done() argument
2127 struct mmc_queue_req *mqrq = container_of(mrq, struct mmc_queue_req, in mmc_blk_mq_req_done()
2128 brq.mrq); in mmc_blk_mq_req_done()
2228 mqrq->brq.mrq.done = mmc_blk_mq_req_done; in mmc_blk_mq_issue_rw_rq()
2230 mmc_pre_req(host, &mqrq->brq.mrq); in mmc_blk_mq_issue_rw_rq()
2238 err = mmc_start_request(host, &mqrq->brq.mrq); in mmc_blk_mq_issue_rw_rq()
2252 mmc_post_req(host, &mqrq->brq.mrq, err); in mmc_blk_mq_issue_rw_rq()