Lines Matching refs:mrq

180 static void mmc_blk_hsq_req_done(struct mmc_request *mrq);
404 #define MMC_BLK_IOC_DROP BIT(0) /* drop this mrq */
405 #define MMC_BLK_IOC_SBC BIT(1) /* use mrq.sbc */
476 struct mmc_request mrq = {};
532 mrq.data = &data;
535 mrq.cmd = &cmd;
558 mrq.sbc = &sbc;
571 mmc_wait_for_req(card->host, &mrq);
951 struct mmc_request mrq = {};
972 mrq.cmd = &cmd;
973 mrq.data = &data;
981 mmc_wait_for_req(card->host, &mrq);
1356 oor_with_open_end = val & R1_OUT_OF_RANGE && !brq->mrq.sbc;
1385 brq->mrq.data = &brq->data;
1386 brq->mrq.tag = req->tag;
1502 struct mmc_request *mrq = &mqrq->brq.mrq;
1510 mmc_cqe_post_req(host, mrq);
1512 if (mrq->cmd && mrq->cmd->error)
1513 err = mrq->cmd->error;
1514 else if (mrq->data && mrq->data->error)
1515 err = mrq->data->error;
1524 } else if (mrq->data) {
1525 if (blk_update_request(req, BLK_STS_OK, mrq->data->bytes_xfered))
1568 static void mmc_blk_cqe_req_done(struct mmc_request *mrq)
1570 struct mmc_queue_req *mqrq = container_of(mrq, struct mmc_queue_req,
1571 brq.mrq);
1586 static int mmc_blk_cqe_start_req(struct mmc_host *host, struct mmc_request *mrq)
1588 mrq->done = mmc_blk_cqe_req_done;
1589 mrq->recovery_notifier = mmc_cqe_recovery_notifier;
1591 return mmc_cqe_start_req(host, mrq);
1601 brq->mrq.cmd = &brq->cmd;
1602 brq->mrq.tag = req->tag;
1604 return &brq->mrq;
1610 struct mmc_request *mrq = mmc_blk_cqe_prep_dcmd(mqrq, req);
1612 mrq->cmd->opcode = MMC_SWITCH;
1613 mrq->cmd->arg = (MMC_SWITCH_MODE_WRITE_BYTE << 24) |
1617 mrq->cmd->flags = MMC_CMD_AC | MMC_RSP_R1B;
1619 return mmc_blk_cqe_start_req(mq->card->host, mrq);
1629 mqrq->brq.mrq.done = mmc_blk_hsq_req_done;
1630 mmc_pre_req(host, &mqrq->brq.mrq);
1632 err = mmc_cqe_start_req(host, &mqrq->brq.mrq);
1634 mmc_post_req(host, &mqrq->brq.mrq, err);
1649 return mmc_blk_cqe_start_req(mq->card->host, &mqrq->brq.mrq);
1665 brq->mrq.cmd = &brq->cmd;
1678 brq->mrq.stop = &brq->stop;
1682 brq->mrq.stop = NULL;
1714 brq->mrq.sbc = &brq->sbc;
1758 struct mmc_request *mrq = &mqrq->brq.mrq;
1772 mmc_wait_for_req(host, mrq);
1785 if (!mrq->cmd->error)
1789 if (mrq->cmd->error ||
1790 mrq->data->error ||
1792 (mrq->cmd->resp[0] & CMD_ERRORS || status & CMD_ERRORS)))
1802 mrq->data->bytes_xfered = 0;
1811 return !!brq->mrq.sbc;
2084 static void mmc_blk_hsq_req_done(struct mmc_request *mrq)
2087 container_of(mrq, struct mmc_queue_req, brq.mrq);
2169 struct mmc_request *mrq = &mqrq->brq.mrq;
2172 mmc_post_req(host, mrq, 0);
2241 static void mmc_blk_mq_req_done(struct mmc_request *mrq)
2243 struct mmc_queue_req *mqrq = container_of(mrq, struct mmc_queue_req,
2244 brq.mrq);
2345 mqrq->brq.mrq.done = mmc_blk_mq_req_done;
2347 mmc_pre_req(host, &mqrq->brq.mrq);
2355 err = mmc_start_request(host, &mqrq->brq.mrq);
2369 mmc_post_req(host, &mqrq->brq.mrq, err);