• Home
  • Raw
  • Download

Lines Matching refs:mrq

167 	struct mmc_request	*mrq;		/* Current request */  member
209 struct mmc_request *mrq = host->mrq; in bcm2835_dumpregs() local
212 if (mrq) { in bcm2835_dumpregs()
213 bcm2835_dumpcmd(host, mrq->sbc, "sbc"); in bcm2835_dumpregs()
214 bcm2835_dumpcmd(host, mrq->cmd, "cmd"); in bcm2835_dumpregs()
215 if (mrq->data) { in bcm2835_dumpregs()
217 mrq->data->blocks, in bcm2835_dumpregs()
218 mrq->data->blksz, in bcm2835_dumpregs()
219 mrq->data->error); in bcm2835_dumpregs()
221 bcm2835_dumpcmd(host, mrq->stop, "stop"); in bcm2835_dumpregs()
288 alternate_idle = (host->mrq->data->flags & MMC_DATA_READ) ? in bcm2835_wait_transfer_complete()
314 host->mrq->data->error = -ETIMEDOUT; in bcm2835_wait_transfer_complete()
598 struct mmc_request *mrq; in bcm2835_finish_request() local
602 mrq = host->mrq; in bcm2835_finish_request()
604 host->mrq = NULL; in bcm2835_finish_request()
620 mmc_request_done(mmc_from_priv(host), mrq); in bcm2835_finish_request()
704 if (host->mrq->stop && (data->error || !host->use_sbc)) { in bcm2835_transfer_complete()
705 if (bcm2835_send_command(host, host->mrq->stop)) { in bcm2835_transfer_complete()
800 if (cmd == host->mrq->sbc) { in bcm2835_finish_command()
803 if (bcm2835_send_command(host, host->mrq->cmd)) { in bcm2835_finish_command()
813 } else if (cmd == host->mrq->stop) { in bcm2835_finish_command()
835 if (host->mrq) { in bcm2835_timeout()
848 host->mrq->cmd->error = -ETIMEDOUT; in bcm2835_timeout()
872 if (host->mrq->data) in bcm2835_check_cmd_error()
873 host->mrq->data->error = -EILSEQ; in bcm2835_check_cmd_error()
877 if (host->mrq->data) in bcm2835_check_cmd_error()
878 host->mrq->data->error = -ETIMEDOUT; in bcm2835_check_cmd_error()
1160 static void bcm2835_request(struct mmc_host *mmc, struct mmc_request *mrq) in bcm2835_request() argument
1167 if (mrq->sbc) in bcm2835_request()
1168 mrq->sbc->error = 0; in bcm2835_request()
1169 if (mrq->cmd) in bcm2835_request()
1170 mrq->cmd->error = 0; in bcm2835_request()
1171 if (mrq->data) in bcm2835_request()
1172 mrq->data->error = 0; in bcm2835_request()
1173 if (mrq->stop) in bcm2835_request()
1174 mrq->stop->error = 0; in bcm2835_request()
1176 if (mrq->data && !is_power_of_2(mrq->data->blksz)) { in bcm2835_request()
1178 mrq->data->blksz); in bcm2835_request()
1180 if (mrq->cmd) in bcm2835_request()
1181 mrq->cmd->error = -EINVAL; in bcm2835_request()
1183 mmc_request_done(mmc, mrq); in bcm2835_request()
1189 WARN_ON(host->mrq); in bcm2835_request()
1190 host->mrq = mrq; in bcm2835_request()
1202 if (mrq->cmd) in bcm2835_request()
1203 mrq->cmd->error = -EILSEQ; in bcm2835_request()
1210 if (host->use_dma && mrq->data && (mrq->data->blocks > PIO_THRESHOLD)) in bcm2835_request()
1211 bcm2835_prepare_dma(host, mrq->data); in bcm2835_request()
1213 host->use_sbc = !!mrq->sbc && host->mrq->data && in bcm2835_request()
1214 (host->mrq->data->flags & MMC_DATA_READ); in bcm2835_request()
1216 if (bcm2835_send_command(host, mrq->sbc)) { in bcm2835_request()
1220 } else if (mrq->cmd && bcm2835_send_command(host, mrq->cmd)) { in bcm2835_request()