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;
598 struct mmc_request *mrq;
602 mrq = host->mrq;
604 host->mrq = NULL;
620 mmc_request_done(mmc_from_priv(host), mrq);
704 if (host->mrq->stop && (data->error || !host->use_sbc)) {
705 if (bcm2835_send_command(host, host->mrq->stop)) {
800 if (cmd == host->mrq->sbc) {
803 if (bcm2835_send_command(host, host->mrq->cmd)) {
813 } else if (cmd == host->mrq->stop) {
835 if (host->mrq) {
848 host->mrq->cmd->error = -ETIMEDOUT;
872 if (host->mrq->data)
873 host->mrq->data->error = -EILSEQ;
877 if (host->mrq->data)
878 host->mrq->data->error = -ETIMEDOUT;
1160 static void bcm2835_request(struct mmc_host *mmc, struct mmc_request *mrq)
1167 if (mrq->sbc)
1168 mrq->sbc->error = 0;
1169 if (mrq->cmd)
1170 mrq->cmd->error = 0;
1171 if (mrq->data)
1172 mrq->data->error = 0;
1173 if (mrq->stop)
1174 mrq->stop->error = 0;
1176 if (mrq->data && !is_power_of_2(mrq->data->blksz)) {
1178 mrq->data->blksz);
1180 if (mrq->cmd)
1181 mrq->cmd->error = -EINVAL;
1183 mmc_request_done(mmc, mrq);
1189 WARN_ON(host->mrq);
1190 host->mrq = mrq;
1202 if (mrq->cmd)
1203 mrq->cmd->error = -EILSEQ;
1210 if (host->use_dma && mrq->data && (mrq->data->blocks > PIO_THRESHOLD))
1211 bcm2835_prepare_dma(host, mrq->data);
1213 host->use_sbc = !!mrq->sbc && host->mrq->data &&
1214 (host->mrq->data->flags & MMC_DATA_READ);
1216 if (bcm2835_send_command(host, mrq->sbc)) {
1220 } else if (mrq->cmd && bcm2835_send_command(host, mrq->cmd)) {