Home
last modified time | relevance | path

Searched refs:mrq (Results 1 – 25 of 49) sorted by relevance

12

/linux-3.4.99/drivers/memstick/core/
Dmemstick.c226 int memstick_next_req(struct memstick_host *host, struct memstick_request **mrq) in memstick_next_req() argument
230 if ((*mrq) && (*mrq)->error && host->retries) { in memstick_next_req()
231 (*mrq)->error = rc; in memstick_next_req()
237 rc = host->card->next_request(host->card, mrq); in memstick_next_req()
242 *mrq = NULL; in memstick_next_req()
268 void memstick_init_req_sg(struct memstick_request *mrq, unsigned char tpc, in memstick_init_req_sg() argument
271 mrq->tpc = tpc; in memstick_init_req_sg()
273 mrq->data_dir = WRITE; in memstick_init_req_sg()
275 mrq->data_dir = READ; in memstick_init_req_sg()
277 mrq->sg = *sg; in memstick_init_req_sg()
[all …]
Dmspro_block.c161 struct memstick_request **mrq);
528 struct memstick_request **mrq) in h_mspro_block_req_init() argument
532 *mrq = &card->current_mrq; in h_mspro_block_req_init()
538 struct memstick_request **mrq) in h_mspro_block_default() argument
540 return mspro_block_complete_req(card, (*mrq)->error); in h_mspro_block_default()
544 struct memstick_request **mrq) in h_mspro_block_default_bad() argument
550 struct memstick_request **mrq) in h_mspro_block_get_ro() argument
554 if (!(*mrq)->error) { in h_mspro_block_get_ro()
555 if ((*mrq)->data[offsetof(struct ms_status_register, status0)] in h_mspro_block_get_ro()
562 return mspro_block_complete_req(card, (*mrq)->error); in h_mspro_block_get_ro()
[all …]
/linux-3.4.99/drivers/mmc/core/
Dcore.c95 struct mmc_request *mrq) in mmc_should_fail_request() argument
97 struct mmc_command *cmd = mrq->cmd; in mmc_should_fail_request()
98 struct mmc_data *data = mrq->data; in mmc_should_fail_request()
119 struct mmc_request *mrq) in mmc_should_fail_request() argument
133 void mmc_request_done(struct mmc_host *host, struct mmc_request *mrq) in mmc_request_done() argument
135 struct mmc_command *cmd = mrq->cmd; in mmc_request_done()
148 if (mrq->done) in mmc_request_done()
149 mrq->done(mrq); in mmc_request_done()
151 mmc_should_fail_request(host, mrq); in mmc_request_done()
160 if (mrq->data) { in mmc_request_done()
[all …]
Dsd_ops.c71 struct mmc_request mrq = {NULL}; in mmc_wait_for_app_cmd() local
95 memset(&mrq, 0, sizeof(struct mmc_request)); in mmc_wait_for_app_cmd()
100 mrq.cmd = cmd; in mmc_wait_for_app_cmd()
103 mmc_wait_for_req(host, &mrq); in mmc_wait_for_app_cmd()
248 struct mmc_request mrq = {NULL}; in mmc_app_send_scr() local
271 mrq.cmd = &cmd; in mmc_app_send_scr()
272 mrq.data = &data; in mmc_app_send_scr()
288 mmc_wait_for_req(card->host, &mrq); in mmc_app_send_scr()
307 struct mmc_request mrq = {NULL}; in mmc_sd_switch() local
320 mrq.cmd = &cmd; in mmc_sd_switch()
[all …]
Dsdio_ops.c124 struct mmc_request mrq = {NULL}; in mmc_io_rw_extended() local
137 mrq.cmd = &cmd; in mmc_io_rw_extended()
138 mrq.data = &data; in mmc_io_rw_extended()
162 mmc_wait_for_req(card->host, &mrq); in mmc_io_rw_extended()
Dmmc_ops.c237 struct mmc_request mrq = {NULL}; in mmc_send_cxd_data() local
250 mrq.cmd = &cmd; in mmc_send_cxd_data()
251 mrq.data = &data; in mmc_send_cxd_data()
281 mmc_wait_for_req(host, &mrq); in mmc_send_cxd_data()
458 struct mmc_request mrq = {NULL}; in mmc_send_bus_test() local
489 mrq.cmd = &cmd; in mmc_send_bus_test()
490 mrq.data = &data; in mmc_send_bus_test()
511 mmc_wait_for_req(host, &mrq); in mmc_send_bus_test()
/linux-3.4.99/drivers/mmc/host/
Dsh_mmcif.c212 struct mmc_request *mrq; member
256 struct mmc_data *data = host->mrq->data; in mmcif_dma_complete()
278 struct mmc_data *data = host->mrq->data; in sh_mmcif_start_dma_rx()
327 struct mmc_data *data = host->mrq->data; in sh_mmcif_start_dma_tx()
523 struct mmc_data *data = host->mrq->data; in sh_mmcif_next_block()
545 struct mmc_request *mrq) in sh_mmcif_single_read() argument
559 struct mmc_data *data = host->mrq->data; in sh_mmcif_read_block()
579 struct mmc_request *mrq) in sh_mmcif_multi_read() argument
581 struct mmc_data *data = mrq->data; in sh_mmcif_multi_read()
599 struct mmc_data *data = host->mrq->data; in sh_mmcif_mread_block()
[all …]
Dtmio_mmc_pio.c209 struct mmc_request *mrq; in tmio_mmc_reset_work() local
213 mrq = host->mrq; in tmio_mmc_reset_work()
220 if (IS_ERR_OR_NULL(mrq) in tmio_mmc_reset_work()
229 mrq->cmd->opcode); in tmio_mmc_reset_work()
236 mrq->cmd->error = -ETIMEDOUT; in tmio_mmc_reset_work()
247 host->mrq = NULL; in tmio_mmc_reset_work()
250 mmc_request_done(host->mmc, mrq); in tmio_mmc_reset_work()
256 struct mmc_request *mrq; in tmio_mmc_finish_request() local
261 mrq = host->mrq; in tmio_mmc_finish_request()
262 if (IS_ERR_OR_NULL(mrq)) { in tmio_mmc_finish_request()
[all …]
Ddw_mmc.c92 struct mmc_request *mrq; member
109 struct mmc_request *mrq; in dw_mci_req_show() local
116 mrq = slot->mrq; in dw_mci_req_show()
118 if (mrq) { in dw_mci_req_show()
119 cmd = mrq->cmd; in dw_mci_req_show()
120 data = mrq->data; in dw_mci_req_show()
121 stop = mrq->stop; in dw_mci_req_show()
481 struct mmc_request *mrq, in dw_mci_pre_req() argument
485 struct mmc_data *data = mrq->data; in dw_mci_pre_req()
495 if (dw_mci_pre_dma_transfer(slot->host, mrq->data, 1) < 0) in dw_mci_pre_req()
[all …]
Datmel-mci.c172 struct mmc_request *mrq; member
235 struct mmc_request *mrq; member
266 struct mmc_request *mrq; in atmci_req_show() local
273 mrq = slot->mrq; in atmci_req_show()
275 if (mrq) { in atmci_req_show()
276 cmd = mrq->cmd; in atmci_req_show()
277 data = mrq->data; in atmci_req_show()
278 stop = mrq->stop; in atmci_req_show()
970 struct mmc_request *mrq; in atmci_start_request() local
976 mrq = slot->mrq; in atmci_start_request()
[all …]
Dmsm_sdcc.c72 BUG_ON(host->curr.mrq); in msmsdcc_disable_clocks()
166 msmsdcc_request_end(struct msmsdcc_host *host, struct mmc_request *mrq) in msmsdcc_request_end() argument
170 host->curr.mrq = NULL; in msmsdcc_request_end()
173 if (mrq->data) in msmsdcc_request_end()
174 mrq->data->bytes_xfered = host->curr.data_xfered; in msmsdcc_request_end()
175 if (mrq->cmd->error == -ETIMEDOUT) in msmsdcc_request_end()
186 mmc_request_done(host->mmc, mrq); in msmsdcc_request_end()
233 struct mmc_request *mrq; in msmsdcc_dma_complete_tlet() local
240 mrq = host->curr.mrq; in msmsdcc_dma_complete_tlet()
241 BUG_ON(!mrq); in msmsdcc_dma_complete_tlet()
[all …]
Dmvsdio.c38 struct mmc_request *mrq; member
138 static void mvsd_request(struct mmc_host *mmc, struct mmc_request *mrq) in mvsd_request() argument
142 struct mmc_command *cmd = mrq->cmd; in mvsd_request()
146 BUG_ON(host->mrq != NULL); in mvsd_request()
147 host->mrq = mrq; in mvsd_request()
174 if (mrq->data) { in mvsd_request()
175 struct mmc_data *data = mrq->data; in mvsd_request()
450 struct mmc_request *mrq = host->mrq; in mvsd_irq() local
451 struct mmc_command *cmd = mrq->cmd; in mvsd_irq()
455 host->mrq = NULL; in mvsd_irq()
[all …]
Dbfin_sdh.c76 struct mmc_request *mrq; member
233 static void sdh_finish_request(struct sdh_host *host, struct mmc_request *mrq) in sdh_finish_request() argument
236 host->mrq = NULL; in sdh_finish_request()
239 mmc_request_done(host->mmc, mrq); in sdh_finish_request()
277 sdh_finish_request(host, host->mrq); in sdh_cmd_done()
313 if (host->mrq->stop) { in sdh_data_done()
315 sdh_start_cmd(host, host->mrq->stop); in sdh_data_done()
317 sdh_finish_request(host, host->mrq); in sdh_data_done()
323 static void sdh_request(struct mmc_host *mmc, struct mmc_request *mrq) in sdh_request() argument
328 dev_dbg(mmc_dev(host->mmc), "%s enter, mrp:%p, cmd:%p\n", __func__, mrq, mrq->cmd); in sdh_request()
[all …]
Dau1xmmc.c90 struct mmc_request *mrq; member
236 struct mmc_request *mrq = host->mrq; in au1xmmc_finish_request() local
238 host->mrq = NULL; in au1xmmc_finish_request()
250 mmc_request_done(host->mmc, mrq); in au1xmmc_finish_request()
330 struct mmc_request *mrq = host->mrq; in au1xmmc_data_complete() local
336 if (host->mrq == NULL) in au1xmmc_data_complete()
339 data = mrq->cmd->data; in au1xmmc_data_complete()
397 data = host->mrq->data; in au1xmmc_send_pio()
452 data = host->mrq->data; in au1xmmc_receive_pio()
527 struct mmc_request *mrq = host->mrq; in au1xmmc_cmd_complete() local
[all …]
Ds3cmci.c264 if ((!host->mrq) || (!host->mrq->data)) in get_data_buffer()
267 if (host->pio_sgptr >= host->mrq->data->sg_len) { in get_data_buffer()
269 host->pio_sgptr, host->mrq->data->sg_len); in get_data_buffer()
272 sg = &host->mrq->data->sg[host->pio_sgptr]; in get_data_buffer()
280 host->pio_sgptr, host->mrq->data->sg_len); in get_data_buffer()
511 if (host->mrq->data) in pio_tasklet()
512 host->mrq->data->error = -EINVAL; in pio_tasklet()
583 if (!host->mrq) { in s3cmci_irq()
589 cmd = host->cmd_is_stop ? host->mrq->stop : host->mrq->cmd; in s3cmci_irq()
636 if (host->mrq->cmd->flags & MMC_RSP_136) { in s3cmci_irq()
[all …]
Dwbsd.c207 static void wbsd_request_end(struct wbsd_host *host, struct mmc_request *mrq) in wbsd_request_end() argument
226 host->mrq = NULL; in wbsd_request_end()
232 mmc_request_done(host->mmc, mrq); in wbsd_request_end()
419 struct mmc_data *data = host->mrq->cmd->data; in wbsd_empty_fifo()
481 struct mmc_data *data = host->mrq->cmd->data; in wbsd_fill_fifo()
682 WARN_ON(host->mrq == NULL); in wbsd_finish_data()
716 data->bytes_xfered = host->mrq->data->blocks * in wbsd_finish_data()
717 host->mrq->data->blksz - count; in wbsd_finish_data()
745 wbsd_request_end(host, host->mrq); in wbsd_finish_data()
754 static void wbsd_request(struct mmc_host *mmc, struct mmc_request *mrq) in wbsd_request() argument
[all …]
Dpxamci.c65 struct mmc_request *mrq; member
288 static void pxamci_finish_request(struct pxamci_host *host, struct mmc_request *mrq) in pxamci_finish_request() argument
290 host->mrq = NULL; in pxamci_finish_request()
293 mmc_request_done(host->mmc, mrq); in pxamci_finish_request()
345 pxamci_finish_request(host, host->mrq); in pxamci_cmd_done()
381 if (host->mrq->stop) { in pxamci_data_done()
383 pxamci_start_cmd(host, host->mrq->stop, host->cmdat); in pxamci_data_done()
385 pxamci_finish_request(host, host->mrq); in pxamci_data_done()
417 static void pxamci_request(struct mmc_host *mmc, struct mmc_request *mrq) in pxamci_request() argument
422 WARN_ON(host->mrq != NULL); in pxamci_request()
[all …]
Dsdhci.c887 if (!host->mrq->sbc && (host->flags & SDHCI_AUTO_CMD12)) in sdhci_set_transfer_mode()
889 else if (host->mrq->sbc && (host->flags & SDHCI_AUTO_CMD23)) { in sdhci_set_transfer_mode()
891 sdhci_writel(host, host->mrq->sbc->arg, SDHCI_ARGUMENT2); in sdhci_set_transfer_mode()
941 !host->mrq->sbc)) { in sdhci_finish_data()
974 if (host->mrq->data && (cmd == host->mrq->data->stop)) in sdhci_send_command()
1055 if (host->cmd == host->mrq->sbc) { in sdhci_finish_command()
1057 sdhci_send_command(host, host->mrq->cmd); in sdhci_finish_command()
1244 static void sdhci_request(struct mmc_host *mmc, struct mmc_request *mrq) in sdhci_request() argument
1257 WARN_ON(host->mrq != NULL); in sdhci_request()
1267 if (!mrq->sbc && (host->flags & SDHCI_AUTO_CMD12)) { in sdhci_request()
[all …]
Dmmci.c195 mmci_request_end(struct mmci_host *host, struct mmc_request *mrq) in mmci_request_end() argument
201 host->mrq = NULL; in mmci_request_end()
204 mmc_request_done(host->mmc, mrq); in mmci_request_end()
520 static void mmci_pre_request(struct mmc_host *mmc, struct mmc_request *mrq, in mmci_pre_request() argument
524 struct mmc_data *data = mrq->data; in mmci_pre_request()
545 static void mmci_post_request(struct mmc_host *mmc, struct mmc_request *mrq, in mmci_post_request() argument
549 struct mmc_data *data = mrq->data; in mmci_post_request()
572 mrq->data->host_cookie = 0; in mmci_post_request()
766 mmci_request_end(host, data->mrq); in mmci_data_irq()
799 mmci_request_end(host, cmd->mrq); in mmci_cmd_irq()
[all …]
Dvia-sdmmc.c300 struct mmc_request *mrq; member
613 if (cmd == host->mrq->stop) in via_sdc_send_command()
659 static void via_sdc_request(struct mmc_host *mmc, struct mmc_request *mrq) in via_sdc_request() argument
677 WARN_ON(host->mrq != NULL); in via_sdc_request()
678 host->mrq = mrq; in via_sdc_request()
682 host->mrq->cmd->error = -ENOMEDIUM; in via_sdc_request()
685 via_sdc_send_command(host, mrq->cmd); in via_sdc_request()
943 if (sdhost->mrq) { in via_sdc_timeout()
946 sdhost->mrq->cmd->opcode); in via_sdc_timeout()
957 sdhost->mrq->cmd->error = -ETIMEDOUT; in via_sdc_timeout()
[all …]
Dmmc_spi.c445 struct mmc_request *mrq, in mmc_spi_command_send() argument
511 if (cs_on && (mrq->data->flags & MMC_DATA_READ)) { in mmc_spi_command_send()
1055 static void mmc_spi_request(struct mmc_host *mmc, struct mmc_request *mrq) in mmc_spi_request() argument
1068 cmd = mrq->cmd; in mmc_spi_request()
1075 cmd = mrq->stop; in mmc_spi_request()
1084 mmc_request_done(host->mmc, mrq); in mmc_spi_request()
1095 status = mmc_spi_command_send(host, mrq, mrq->cmd, mrq->data != NULL); in mmc_spi_request()
1096 if (status == 0 && mrq->data) { in mmc_spi_request()
1097 mmc_spi_data_do(host, mrq->cmd, mrq->data, mrq->data->blksz); in mmc_spi_request()
1106 if (mrq->data->error == -EILSEQ && crc_retry) { in mmc_spi_request()
[all …]
Dcb710-mmc.c484 static void cb710_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) in cb710_mmc_request() argument
489 WARN_ON(reader->mrq != NULL); in cb710_mmc_request()
491 reader->mrq = mrq; in cb710_mmc_request()
494 if (!cb710_mmc_command(mmc, mrq->cmd) && mrq->stop) in cb710_mmc_request()
495 cb710_mmc_command(mmc, mrq->stop); in cb710_mmc_request()
652 struct mmc_request *mrq = reader->mrq; in cb710_mmc_finish_request_tasklet() local
654 reader->mrq = NULL; in cb710_mmc_finish_request_tasklet()
655 mmc_request_done(mmc, mrq); in cb710_mmc_finish_request_tasklet()
Dmxs-mmc.c143 struct mmc_request *mrq; member
227 struct mmc_request *mrq = host->mrq; in mxs_mmc_request_done() local
253 if (mrq->stop) { in mxs_mmc_request_done()
254 mxs_mmc_start_cmd(host, mrq->stop); in mxs_mmc_request_done()
259 host->mrq = NULL; in mxs_mmc_request_done()
260 mmc_request_done(host->mmc, mrq); in mxs_mmc_request_done()
568 static void mxs_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) in mxs_mmc_request() argument
572 WARN_ON(host->mrq != NULL); in mxs_mmc_request()
573 host->mrq = mrq; in mxs_mmc_request()
574 mxs_mmc_start_cmd(host, mrq->cmd); in mxs_mmc_request()
Dtifm_sd.c621 static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq) in tifm_sd_request() argument
626 struct mmc_data *r_data = mrq->cmd->data; in tifm_sd_request()
630 mrq->cmd->error = -ENOMEDIUM; in tifm_sd_request()
637 mrq->cmd->error = -ETIMEDOUT; in tifm_sd_request()
645 if (mrq->data && !is_power_of_2(mrq->data->blksz)) in tifm_sd_request()
653 if ((r_data->flags & MMC_DATA_WRITE) && !mrq->stop) in tifm_sd_request()
677 mrq->cmd->error = -ENOMEM; in tifm_sd_request()
693 mrq->cmd->error = -ENOMEM; in tifm_sd_request()
722 host->req = mrq; in tifm_sd_request()
726 tifm_sd_exec(host, mrq->cmd); in tifm_sd_request()
[all …]
/linux-3.4.99/drivers/mmc/card/
Dmmc_test.c189 struct mmc_request *mrq, struct scatterlist *sg, unsigned sg_len, in mmc_test_prepare_mrq() argument
192 BUG_ON(!mrq || !mrq->cmd || !mrq->data || !mrq->stop); in mmc_test_prepare_mrq()
195 mrq->cmd->opcode = write ? in mmc_test_prepare_mrq()
198 mrq->cmd->opcode = write ? in mmc_test_prepare_mrq()
202 mrq->cmd->arg = dev_addr; in mmc_test_prepare_mrq()
204 mrq->cmd->arg <<= 9; in mmc_test_prepare_mrq()
206 mrq->cmd->flags = MMC_RSP_R1 | MMC_CMD_ADTC; in mmc_test_prepare_mrq()
209 mrq->stop = NULL; in mmc_test_prepare_mrq()
211 mrq->stop->opcode = MMC_STOP_TRANSMISSION; in mmc_test_prepare_mrq()
212 mrq->stop->arg = 0; in mmc_test_prepare_mrq()
[all …]

12