Home
last modified time | relevance | path

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

12

/linux-2.6.39/drivers/memstick/core/
Dmemstick.c225 int memstick_next_req(struct memstick_host *host, struct memstick_request **mrq) in memstick_next_req() argument
229 if ((*mrq) && (*mrq)->error && host->retries) { in memstick_next_req()
230 (*mrq)->error = rc; in memstick_next_req()
236 rc = host->card->next_request(host->card, mrq); in memstick_next_req()
241 *mrq = NULL; in memstick_next_req()
267 void memstick_init_req_sg(struct memstick_request *mrq, unsigned char tpc, in memstick_init_req_sg() argument
270 mrq->tpc = tpc; in memstick_init_req_sg()
272 mrq->data_dir = WRITE; in memstick_init_req_sg()
274 mrq->data_dir = READ; in memstick_init_req_sg()
276 mrq->sg = *sg; in memstick_init_req_sg()
[all …]
Dmspro_block.c160 struct memstick_request **mrq);
527 struct memstick_request **mrq) in h_mspro_block_req_init() argument
531 *mrq = &card->current_mrq; in h_mspro_block_req_init()
537 struct memstick_request **mrq) in h_mspro_block_default() argument
539 return mspro_block_complete_req(card, (*mrq)->error); in h_mspro_block_default()
543 struct memstick_request **mrq) in h_mspro_block_default_bad() argument
549 struct memstick_request **mrq) in h_mspro_block_get_ro() argument
553 if (!(*mrq)->error) { in h_mspro_block_get_ro()
554 if ((*mrq)->data[offsetof(struct ms_status_register, status0)] in h_mspro_block_get_ro()
561 return mspro_block_complete_req(card, (*mrq)->error); in h_mspro_block_get_ro()
[all …]
/linux-2.6.39/drivers/mmc/core/
Dcore.c93 void mmc_request_done(struct mmc_host *host, struct mmc_request *mrq) in mmc_request_done() argument
95 struct mmc_command *cmd = mrq->cmd; in mmc_request_done()
109 host->ops->request(host, mrq); in mmc_request_done()
118 if (mrq->data) { in mmc_request_done()
121 mrq->data->bytes_xfered, mrq->data->error); in mmc_request_done()
124 if (mrq->stop) { in mmc_request_done()
126 mmc_hostname(host), mrq->stop->opcode, in mmc_request_done()
127 mrq->stop->error, in mmc_request_done()
128 mrq->stop->resp[0], mrq->stop->resp[1], in mmc_request_done()
129 mrq->stop->resp[2], mrq->stop->resp[3]); in mmc_request_done()
[all …]
Dsd_ops.c69 struct mmc_request mrq; in mmc_wait_for_app_cmd() local
93 memset(&mrq, 0, sizeof(struct mmc_request)); in mmc_wait_for_app_cmd()
98 mrq.cmd = cmd; in mmc_wait_for_app_cmd()
101 mmc_wait_for_req(host, &mrq); in mmc_wait_for_app_cmd()
252 struct mmc_request mrq; in mmc_app_send_scr() local
275 memset(&mrq, 0, sizeof(struct mmc_request)); in mmc_app_send_scr()
279 mrq.cmd = &cmd; in mmc_app_send_scr()
280 mrq.data = &data; in mmc_app_send_scr()
296 mmc_wait_for_req(card->host, &mrq); in mmc_app_send_scr()
315 struct mmc_request mrq; in mmc_sd_switch() local
[all …]
Dsdio_ops.c128 struct mmc_request mrq; in mmc_io_rw_extended() local
143 memset(&mrq, 0, sizeof(struct mmc_request)); in mmc_io_rw_extended()
147 mrq.cmd = &cmd; in mmc_io_rw_extended()
148 mrq.data = &data; in mmc_io_rw_extended()
171 mmc_wait_for_req(card->host, &mrq); in mmc_io_rw_extended()
Dmmc_ops.c250 struct mmc_request mrq; in mmc_send_cxd_data() local
263 memset(&mrq, 0, sizeof(struct mmc_request)); in mmc_send_cxd_data()
267 mrq.cmd = &cmd; in mmc_send_cxd_data()
268 mrq.data = &data; in mmc_send_cxd_data()
298 mmc_wait_for_req(host, &mrq); in mmc_send_cxd_data()
469 struct mmc_request mrq; in mmc_send_bus_test() local
500 memset(&mrq, 0, sizeof(struct mmc_request)); in mmc_send_bus_test()
504 mrq.cmd = &cmd; in mmc_send_bus_test()
505 mrq.data = &data; in mmc_send_bus_test()
526 mmc_wait_for_req(host, &mrq); in mmc_send_bus_test()
/linux-2.6.39/drivers/mmc/card/
Dmmc_test.c167 struct mmc_request *mrq, struct scatterlist *sg, unsigned sg_len, in mmc_test_prepare_mrq() argument
170 BUG_ON(!mrq || !mrq->cmd || !mrq->data || !mrq->stop); in mmc_test_prepare_mrq()
173 mrq->cmd->opcode = write ? in mmc_test_prepare_mrq()
176 mrq->cmd->opcode = write ? in mmc_test_prepare_mrq()
180 mrq->cmd->arg = dev_addr; in mmc_test_prepare_mrq()
182 mrq->cmd->arg <<= 9; in mmc_test_prepare_mrq()
184 mrq->cmd->flags = MMC_RSP_R1 | MMC_CMD_ADTC; in mmc_test_prepare_mrq()
187 mrq->stop = NULL; in mmc_test_prepare_mrq()
189 mrq->stop->opcode = MMC_STOP_TRANSMISSION; in mmc_test_prepare_mrq()
190 mrq->stop->arg = 0; in mmc_test_prepare_mrq()
[all …]
Dblock.c169 struct mmc_request mrq; member
181 struct mmc_request mrq; in mmc_sd_num_wr_blocks() local
226 memset(&mrq, 0, sizeof(struct mmc_request)); in mmc_sd_num_wr_blocks()
228 mrq.cmd = &cmd; in mmc_sd_num_wr_blocks()
229 mrq.data = &data; in mmc_sd_num_wr_blocks()
237 mmc_wait_for_req(card->host, &mrq); in mmc_sd_num_wr_blocks()
348 brq.mrq.cmd = &brq.cmd; in mmc_blk_issue_rw_rq()
349 brq.mrq.data = &brq.data; in mmc_blk_issue_rw_rq()
383 brq.mrq.stop = &brq.stop; in mmc_blk_issue_rw_rq()
387 brq.mrq.stop = NULL; in mmc_blk_issue_rw_rq()
[all …]
/linux-2.6.39/drivers/mmc/host/
Dsh_mmcif.c442 struct mmc_request *mrq) in sh_mmcif_single_read() argument
444 struct mmc_data *data = mrq->data; in sh_mmcif_single_read()
471 struct mmc_request *mrq) in sh_mmcif_multi_read() argument
473 struct mmc_data *data = mrq->data; in sh_mmcif_multi_read()
501 struct mmc_request *mrq) in sh_mmcif_single_write() argument
503 struct mmc_data *data = mrq->data; in sh_mmcif_single_write()
532 struct mmc_request *mrq) in sh_mmcif_multi_write() argument
534 struct mmc_data *data = mrq->data; in sh_mmcif_multi_write()
581 struct mmc_request *mrq, struct mmc_command *cmd, u32 opc) in sh_mmcif_set_cmd() argument
638 mrq->data->blocks << 16); in sh_mmcif_set_cmd()
[all …]
Datmel-mci.c143 struct mmc_request *mrq; member
198 struct mmc_request *mrq; member
253 struct mmc_request *mrq; in atmci_req_show() local
260 mrq = slot->mrq; in atmci_req_show()
262 if (mrq) { in atmci_req_show()
263 cmd = mrq->cmd; in atmci_req_show()
264 data = mrq->data; in atmci_req_show()
265 stop = mrq->stop; in atmci_req_show()
779 struct mmc_request *mrq; in atmci_start_request() local
785 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()
232 struct mmc_request *mrq; in msmsdcc_dma_complete_tlet() local
239 mrq = host->curr.mrq; in msmsdcc_dma_complete_tlet()
240 BUG_ON(!mrq); in msmsdcc_dma_complete_tlet()
[all …]
Ddw_mmc.c92 struct mmc_request *mrq; member
107 struct mmc_request *mrq; in dw_mci_req_show() local
114 mrq = slot->mrq; in dw_mci_req_show()
116 if (mrq) { in dw_mci_req_show()
117 cmd = mrq->cmd; in dw_mci_req_show()
118 data = mrq->data; in dw_mci_req_show()
119 stop = mrq->stop; in dw_mci_req_show()
583 struct mmc_request *mrq; in dw_mci_start_request() local
588 mrq = slot->mrq; in dw_mci_start_request()
596 host->mrq = mrq; in dw_mci_start_request()
[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 …]
Dtmio_mmc_pio.c240 struct mmc_request *mrq; in tmio_mmc_reset_work() local
244 mrq = host->mrq; in tmio_mmc_reset_work()
247 if (!mrq in tmio_mmc_reset_work()
256 mrq->cmd->opcode); in tmio_mmc_reset_work()
263 mrq->cmd->error = -ETIMEDOUT; in tmio_mmc_reset_work()
267 host->mrq = NULL; in tmio_mmc_reset_work()
274 mmc_request_done(host->mmc, mrq); in tmio_mmc_reset_work()
279 struct mmc_request *mrq = host->mrq; in tmio_mmc_finish_request() local
281 if (!mrq) in tmio_mmc_finish_request()
284 host->mrq = NULL; in tmio_mmc_finish_request()
[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.c93 struct mmc_request *mrq; member
227 struct mmc_request *mrq = host->mrq; in au1xmmc_finish_request() local
229 host->mrq = NULL; in au1xmmc_finish_request()
241 mmc_request_done(host->mmc, mrq); in au1xmmc_finish_request()
321 struct mmc_request *mrq = host->mrq; in au1xmmc_data_complete() local
327 if (host->mrq == NULL) in au1xmmc_data_complete()
330 data = mrq->cmd->data; in au1xmmc_data_complete()
390 data = host->mrq->data; in au1xmmc_send_pio()
445 data = host->mrq->data; in au1xmmc_receive_pio()
520 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 …]
Dvia-sdmmc.c299 struct mmc_request *mrq; member
612 if (cmd == host->mrq->stop) in via_sdc_send_command()
658 static void via_sdc_request(struct mmc_host *mmc, struct mmc_request *mrq) in via_sdc_request() argument
676 WARN_ON(host->mrq != NULL); in via_sdc_request()
677 host->mrq = mrq; in via_sdc_request()
681 host->mrq->cmd->error = -ENOMEDIUM; in via_sdc_request()
684 via_sdc_send_command(host, mrq->cmd); in via_sdc_request()
942 if (sdhost->mrq) { in via_sdc_timeout()
945 sdhost->mrq->cmd->opcode); in via_sdc_timeout()
956 sdhost->mrq->cmd->error = -ETIMEDOUT; in via_sdc_timeout()
[all …]
Dsdhci.c903 if (host->mrq->data && (cmd == host->mrq->data->stop)) in sdhci_send_command()
1119 static void sdhci_request(struct mmc_host *mmc, struct mmc_request *mrq) in sdhci_request() argument
1129 WARN_ON(host->mrq != NULL); in sdhci_request()
1135 if (mrq->stop) { in sdhci_request()
1136 mrq->data->stop = NULL; in sdhci_request()
1137 mrq->stop = NULL; in sdhci_request()
1141 host->mrq = mrq; in sdhci_request()
1151 host->mrq->cmd->error = -ENOMEDIUM; in sdhci_request()
1154 sdhci_send_command(host, mrq->cmd); in sdhci_request()
1310 if (host->mrq) { in sdhci_tasklet_card()
[all …]
Dmmc_spi.c444 struct mmc_request *mrq, in mmc_spi_command_send() argument
510 if (cs_on && (mrq->data->flags & MMC_DATA_READ)) { in mmc_spi_command_send()
1054 static void mmc_spi_request(struct mmc_host *mmc, struct mmc_request *mrq) in mmc_spi_request() argument
1067 cmd = mrq->cmd; in mmc_spi_request()
1074 cmd = mrq->stop; in mmc_spi_request()
1083 mmc_request_done(host->mmc, mrq); in mmc_spi_request()
1094 status = mmc_spi_command_send(host, mrq, mrq->cmd, mrq->data != NULL); in mmc_spi_request()
1095 if (status == 0 && mrq->data) { in mmc_spi_request()
1096 mmc_spi_data_do(host, mrq->cmd, mrq->data, mrq->data->blksz); in mmc_spi_request()
1105 if (mrq->data->error == -EILSEQ && crc_retry) { in mmc_spi_request()
[all …]
Dmmci.c144 mmci_request_end(struct mmci_host *host, struct mmc_request *mrq) in mmci_request_end() argument
150 host->mrq = NULL; in mmci_request_end()
158 mmc_request_done(host->mmc, mrq); in mmci_request_end()
592 mmci_request_end(host, data->mrq); in mmci_data_irq()
621 mmci_request_end(host, cmd->mrq); in mmci_cmd_irq()
836 static void mmci_request(struct mmc_host *mmc, struct mmc_request *mrq) in mmci_request() argument
841 WARN_ON(host->mrq != NULL); in mmci_request()
843 if (mrq->data && !is_power_of_2(mrq->data->blksz)) { in mmci_request()
845 mrq->data->blksz); in mmci_request()
846 mrq->cmd->error = -EINVAL; in mmci_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.c142 struct mmc_request *mrq; member
225 struct mmc_request *mrq = host->mrq; in mxs_mmc_request_done() local
251 if (mrq->stop) { in mxs_mmc_request_done()
252 mxs_mmc_start_cmd(host, mrq->stop); in mxs_mmc_request_done()
257 host->mrq = NULL; in mxs_mmc_request_done()
258 mmc_request_done(host->mmc, mrq); in mxs_mmc_request_done()
556 static void mxs_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) in mxs_mmc_request() argument
560 WARN_ON(host->mrq != NULL); in mxs_mmc_request()
561 host->mrq = mrq; in mxs_mmc_request()
562 mxs_mmc_start_cmd(host, mrq->cmd); in mxs_mmc_request()

12