Lines Matching refs:mrq

167 	struct mmc_request	*mrq;		/* Current request */
209 struct mmc_request *mrq = host->mrq;
212 if (mrq) {
213 bcm2835_dumpcmd(host, mrq->sbc, "sbc");
214 bcm2835_dumpcmd(host, mrq->cmd, "cmd");
215 if (mrq->data) {
217 mrq->data->blocks,
218 mrq->data->blksz,
219 mrq->data->error);
221 bcm2835_dumpcmd(host, mrq->stop, "stop");
288 alternate_idle = (host->mrq->data->flags & MMC_DATA_READ) ?
314 host->mrq->data->error = -ETIMEDOUT;
593 struct mmc_request *mrq;
597 mrq = host->mrq;
599 host->mrq = NULL;
615 mmc_request_done(mmc_from_priv(host), mrq);
699 if (host->mrq->stop && (data->error || !host->use_sbc)) {
700 if (bcm2835_send_command(host, host->mrq->stop)) {
795 if (cmd == host->mrq->sbc) {
798 if (bcm2835_send_command(host, host->mrq->cmd)) {
808 } else if (cmd == host->mrq->stop) {
830 if (host->mrq) {
843 host->mrq->cmd->error = -ETIMEDOUT;
867 if (host->mrq->data)
868 host->mrq->data->error = -EILSEQ;
872 if (host->mrq->data)
873 host->mrq->data->error = -ETIMEDOUT;
1152 static void bcm2835_request(struct mmc_host *mmc, struct mmc_request *mrq)
1159 if (mrq->sbc)
1160 mrq->sbc->error = 0;
1161 if (mrq->cmd)
1162 mrq->cmd->error = 0;
1163 if (mrq->data)
1164 mrq->data->error = 0;
1165 if (mrq->stop)
1166 mrq->stop->error = 0;
1168 if (mrq->data && !is_power_of_2(mrq->data->blksz)) {
1170 mrq->data->blksz);
1172 if (mrq->cmd)
1173 mrq->cmd->error = -EINVAL;
1175 mmc_request_done(mmc, mrq);
1181 WARN_ON(host->mrq);
1182 host->mrq = mrq;
1194 if (mrq->cmd)
1195 mrq->cmd->error = -EILSEQ;
1202 if (host->use_dma && mrq->data && (mrq->data->blocks > PIO_THRESHOLD))
1203 bcm2835_prepare_dma(host, mrq->data);
1205 host->use_sbc = !!mrq->sbc && host->mrq->data &&
1206 (host->mrq->data->flags & MMC_DATA_READ);
1208 if (bcm2835_send_command(host, mrq->sbc)) {
1212 } else if (mrq->cmd && bcm2835_send_command(host, mrq->cmd)) {