/drivers/mmc/host/ |
D | usdhi6rol0.c | 160 struct mmc_request *mrq; member 277 int opc = host->mrq ? host->mrq->cmd->opcode : -1; in usdhi6_error_code() 295 err, host->wait, host->mrq ? host->mrq->cmd->opcode : -1); in usdhi6_error_code() 313 struct mmc_data *data = host->mrq->data; in usdhi6_blk_bounce() 317 __func__, host->mrq->cmd->opcode, data->sg_len, in usdhi6_blk_bounce() 340 struct mmc_request *mrq = host->mrq; in usdhi6_sg_prep() local 341 struct mmc_data *data = mrq->data; in usdhi6_sg_prep() 353 struct mmc_data *data = host->mrq->data; in usdhi6_sg_map() 385 sg->offset, host->mrq->cmd->opcode, host->mrq); in usdhi6_sg_map() 393 struct mmc_data *data = host->mrq->data; in usdhi6_sg_unmap() [all …]
|
D | sh_mmcif.c | 229 struct mmc_request *mrq; member 275 struct mmc_request *mrq = host->mrq; in mmcif_dma_complete() local 279 if (WARN(!mrq || !mrq->data, "%s: NULL data in DMA completion!\n", in mmcif_dma_complete() 288 struct mmc_data *data = host->mrq->data; in sh_mmcif_start_dma_rx() 337 struct mmc_data *data = host->mrq->data; in sh_mmcif_start_dma_tx() 567 struct mmc_data *data = host->mrq->data; in sh_mmcif_next_block() 586 struct mmc_request *mrq) in sh_mmcif_single_read() argument 599 struct mmc_data *data = host->mrq->data; in sh_mmcif_read_block() 620 struct mmc_request *mrq) in sh_mmcif_multi_read() argument 622 struct mmc_data *data = mrq->data; in sh_mmcif_multi_read() [all …]
|
D | sunxi-mmc.c | 246 struct mmc_request *mrq; member 419 struct mmc_command *cmd = host->mrq->cmd; in sunxi_mmc_dump_errinfo() 420 struct mmc_data *data = host->mrq->data; in sunxi_mmc_dump_errinfo() 447 struct mmc_request *mrq = host->mrq; in sunxi_mmc_finalize_request() local 448 struct mmc_data *data = mrq->data; in sunxi_mmc_finalize_request() 456 mrq->cmd->error = -ETIMEDOUT; in sunxi_mmc_finalize_request() 460 host->manual_stop_mrq = mrq; in sunxi_mmc_finalize_request() 463 if (mrq->stop) in sunxi_mmc_finalize_request() 464 mrq->stop->error = -ETIMEDOUT; in sunxi_mmc_finalize_request() 466 if (mrq->cmd->flags & MMC_RSP_136) { in sunxi_mmc_finalize_request() [all …]
|
D | tmio_mmc_pio.c | 220 struct mmc_request *mrq; in tmio_mmc_reset_work() local 224 mrq = host->mrq; in tmio_mmc_reset_work() 231 if (IS_ERR_OR_NULL(mrq) in tmio_mmc_reset_work() 240 mrq->cmd->opcode); in tmio_mmc_reset_work() 247 mrq->cmd->error = -ETIMEDOUT; in tmio_mmc_reset_work() 258 host->mrq = NULL; in tmio_mmc_reset_work() 261 mmc_request_done(host->mmc, mrq); in tmio_mmc_reset_work() 270 struct mmc_request *mrq; in tmio_mmc_finish_request() local 275 mrq = host->mrq; in tmio_mmc_finish_request() 276 if (IS_ERR_OR_NULL(mrq)) { in tmio_mmc_finish_request() [all …]
|
D | atmel-mci.c | 188 struct mmc_request *mrq; member 252 struct mmc_request *mrq; member 282 struct mmc_request *mrq; in atmci_req_show() local 289 mrq = slot->mrq; in atmci_req_show() 291 if (mrq) { in atmci_req_show() 292 cmd = mrq->cmd; in atmci_req_show() 293 data = mrq->data; in atmci_req_show() 294 stop = mrq->stop; in atmci_req_show() 590 if (host->mrq->cmd->data) { in atmci_timeout_timer() 591 host->mrq->cmd->data->error = -ETIMEDOUT; in atmci_timeout_timer() [all …]
|
D | msm_sdcc.c | 71 BUG_ON(host->curr.mrq); in msmsdcc_disable_clocks() 165 msmsdcc_request_end(struct msmsdcc_host *host, struct mmc_request *mrq) in msmsdcc_request_end() argument 169 host->curr.mrq = NULL; in msmsdcc_request_end() 172 if (mrq->data) in msmsdcc_request_end() 173 mrq->data->bytes_xfered = host->curr.data_xfered; in msmsdcc_request_end() 174 if (mrq->cmd->error == -ETIMEDOUT) in msmsdcc_request_end() 185 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 …]
|
D | mvsdio.c | 43 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() 464 struct mmc_request *mrq = host->mrq; in mvsd_irq() local 465 struct mmc_command *cmd = mrq->cmd; in mvsd_irq() 469 host->mrq = NULL; in mvsd_irq() [all …]
|
D | dw_mmc.c | 91 struct mmc_request *mrq; in dw_mci_req_show() local 98 mrq = slot->mrq; in dw_mci_req_show() 100 if (mrq) { in dw_mci_req_show() 101 cmd = mrq->cmd; in dw_mci_req_show() 102 data = mrq->data; in dw_mci_req_show() 103 stop = mrq->stop; in dw_mci_req_show() 544 struct mmc_request *mrq, in dw_mci_pre_req() argument 548 struct mmc_data *data = mrq->data; in dw_mci_pre_req() 558 if (dw_mci_pre_dma_transfer(slot->host, mrq->data, 1) < 0) in dw_mci_pre_req() 563 struct mmc_request *mrq, in dw_mci_post_req() argument [all …]
|
D | bfin_sdh.c | 76 struct mmc_request *mrq; member 244 static void sdh_finish_request(struct sdh_host *host, struct mmc_request *mrq) in sdh_finish_request() argument 247 host->mrq = NULL; in sdh_finish_request() 250 mmc_request_done(host->mmc, mrq); in sdh_finish_request() 288 sdh_finish_request(host, host->mrq); in sdh_cmd_done() 323 if (host->mrq->stop) { in sdh_data_done() 325 sdh_start_cmd(host, host->mrq->stop); in sdh_data_done() 327 sdh_finish_request(host, host->mrq); in sdh_data_done() 333 static void sdh_request(struct mmc_host *mmc, struct mmc_request *mrq) in sdh_request() argument 338 dev_dbg(mmc_dev(host->mmc), "%s enter, mrp:%p, cmd:%p\n", __func__, mrq, mrq->cmd); in sdh_request() [all …]
|
D | moxart-mmc.c | 132 struct mmc_request *mrq; member 164 struct mmc_data *data = host->mrq->cmd->data; in moxart_next_sg() 309 struct mmc_data *data = host->mrq->cmd->data; in moxart_transfer_pio() 344 if (data->mrq->cmd->opcode == SD_APP_SEND_SCR) in moxart_transfer_pio() 368 struct mmc_data *data = host->mrq->cmd->data; in moxart_prepare_data() 396 static void moxart_request(struct mmc_host *mmc, struct mmc_request *mrq) in moxart_request() argument 407 host->mrq = mrq; in moxart_request() 410 mrq->cmd->error = -ETIMEDOUT; in moxart_request() 415 moxart_send_command(host, host->mrq->cmd); in moxart_request() 417 if (mrq->cmd->data) { in moxart_request() [all …]
|
D | rtsx_pci_sdmmc.c | 39 struct mmc_request *mrq; member 140 static void sdmmc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq, in sdmmc_pre_req() argument 144 struct mmc_data *data = mrq->data; in sdmmc_pre_req() 157 static void sdmmc_post_req(struct mmc_host *mmc, struct mmc_request *mrq, in sdmmc_post_req() argument 162 struct mmc_data *data = mrq->data; in sdmmc_post_req() 441 static int sd_rw_multi(struct realtek_pci_sdmmc *host, struct mmc_request *mrq) in sd_rw_multi() argument 446 struct mmc_data *data = mrq->data; in sd_rw_multi() 527 struct mmc_request *mrq) in sd_normal_rw() argument 529 struct mmc_command *cmd = mrq->cmd; in sd_normal_rw() 530 struct mmc_data *data = mrq->data; in sd_normal_rw() [all …]
|
D | au1xmmc.c | 91 struct mmc_request *mrq; member 240 struct mmc_request *mrq = host->mrq; in au1xmmc_finish_request() local 242 host->mrq = NULL; in au1xmmc_finish_request() 254 mmc_request_done(host->mmc, mrq); in au1xmmc_finish_request() 334 struct mmc_request *mrq = host->mrq; in au1xmmc_data_complete() local 340 if (host->mrq == NULL) in au1xmmc_data_complete() 343 data = mrq->cmd->data; in au1xmmc_data_complete() 401 data = host->mrq->data; in au1xmmc_send_pio() 456 data = host->mrq->data; in au1xmmc_receive_pio() 531 struct mmc_request *mrq = host->mrq; in au1xmmc_cmd_complete() local [all …]
|
D | s3cmci.c | 326 if ((!host->mrq) || (!host->mrq->data)) in get_data_buffer() 329 if (host->pio_sgptr >= host->mrq->data->sg_len) { in get_data_buffer() 331 host->pio_sgptr, host->mrq->data->sg_len); in get_data_buffer() 334 sg = &host->mrq->data->sg[host->pio_sgptr]; in get_data_buffer() 342 host->pio_sgptr, host->mrq->data->sg_len); in get_data_buffer() 573 if (host->mrq->data) in pio_tasklet() 574 host->mrq->data->error = -EINVAL; in pio_tasklet() 645 if (!host->mrq) { in s3cmci_irq() 651 cmd = host->cmd_is_stop ? host->mrq->stop : host->mrq->cmd; in s3cmci_irq() 698 if (host->mrq->cmd->flags & MMC_RSP_136) { in s3cmci_irq() [all …]
|
D | wbsd.c | 207 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 …]
|
D | android-goldfish.c | 115 struct mmc_request *mrq; member 243 host->mrq = NULL; in goldfish_mmc_xfer_done() 244 mmc_request_done(host->mmc, data->mrq); in goldfish_mmc_xfer_done() 285 host->mrq = NULL; in goldfish_mmc_cmd_done() 286 mmc_request_done(host->mmc, cmd->mrq); in goldfish_mmc_cmd_done() 319 struct mmc_request *mrq = host->mrq; in goldfish_mmc_irq() local 320 mrq->cmd->error = -ETIMEDOUT; in goldfish_mmc_irq() 321 host->mrq = NULL; in goldfish_mmc_irq() 322 mmc_request_done(host->mmc, mrq); in goldfish_mmc_irq() 417 WARN_ON(host->mrq != NULL); in goldfish_mmc_request() [all …]
|
D | pxamci.c | 68 struct mmc_request *mrq; member 291 static void pxamci_finish_request(struct pxamci_host *host, struct mmc_request *mrq) in pxamci_finish_request() argument 293 host->mrq = NULL; in pxamci_finish_request() 296 mmc_request_done(host->mmc, mrq); in pxamci_finish_request() 348 pxamci_finish_request(host, host->mrq); in pxamci_cmd_done() 384 if (host->mrq->stop) { in pxamci_data_done() 386 pxamci_start_cmd(host, host->mrq->stop, host->cmdat); in pxamci_data_done() 388 pxamci_finish_request(host, host->mrq); in pxamci_data_done() 420 static void pxamci_request(struct mmc_host *mmc, struct mmc_request *mrq) in pxamci_request() argument 425 WARN_ON(host->mrq != NULL); in pxamci_request() [all …]
|
D | omap_hsmmc.c | 177 struct mmc_request *mrq; member 857 if (cmd == host->mrq->stop) in omap_hsmmc_start_command() 863 host->mrq->sbc) { in omap_hsmmc_start_command() 865 OMAP_HSMMC_WRITE(host->base, SDMASA, host->mrq->sbc->arg); in omap_hsmmc_start_command() 899 static void omap_hsmmc_request_done(struct omap_hsmmc_host *host, struct mmc_request *mrq) in omap_hsmmc_request_done() argument 911 if (mrq->data && host->use_dma && dma_ch != -1) in omap_hsmmc_request_done() 913 host->mrq = NULL; in omap_hsmmc_request_done() 914 mmc_request_done(host->mmc, mrq); in omap_hsmmc_request_done() 924 struct mmc_request *mrq = host->mrq; in omap_hsmmc_xfer_done() local 933 omap_hsmmc_request_done(host, mrq); in omap_hsmmc_xfer_done() [all …]
|
D | sdhci.c | 919 if (!host->mrq->sbc && (host->flags & SDHCI_AUTO_CMD12)) in sdhci_set_transfer_mode() 921 else if (host->mrq->sbc && (host->flags & SDHCI_AUTO_CMD23)) { in sdhci_set_transfer_mode() 923 sdhci_writel(host, host->mrq->sbc->arg, SDHCI_ARGUMENT2); in sdhci_set_transfer_mode() 973 !host->mrq->sbc)) { in sdhci_finish_data() 1006 if (host->mrq->data && (cmd == host->mrq->data->stop)) in sdhci_send_command() 1094 if (host->cmd == host->mrq->sbc) { in sdhci_finish_command() 1096 sdhci_send_command(host, host->mrq->cmd); in sdhci_finish_command() 1330 static void sdhci_request(struct mmc_host *mmc, struct mmc_request *mrq) in sdhci_request() argument 1345 WARN_ON(host->mrq != NULL); in sdhci_request() 1355 if (!mrq->sbc && (host->flags & SDHCI_AUTO_CMD12)) { in sdhci_request() [all …]
|
D | via-sdmmc.c | 300 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 …]
|
/drivers/mmc/core/ |
D | core.c | 100 struct mmc_request *mrq) in mmc_should_fail_request() argument 102 struct mmc_command *cmd = mrq->cmd; in mmc_should_fail_request() 103 struct mmc_data *data = mrq->data; in mmc_should_fail_request() 124 struct mmc_request *mrq) in mmc_should_fail_request() argument 138 void mmc_request_done(struct mmc_host *host, struct mmc_request *mrq) in mmc_request_done() argument 140 struct mmc_command *cmd = mrq->cmd; in mmc_request_done() 153 if (mrq->done) in mmc_request_done() 154 mrq->done(mrq); in mmc_request_done() 156 mmc_should_fail_request(host, mrq); in mmc_request_done() 165 if (mrq->data) { in mmc_request_done() [all …]
|
D | sd_ops.c | 71 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() 251 struct mmc_request mrq = {NULL}; in mmc_app_send_scr() local 274 mrq.cmd = &cmd; in mmc_app_send_scr() 275 mrq.data = &data; in mmc_app_send_scr() 291 mmc_wait_for_req(card->host, &mrq); in mmc_app_send_scr() 310 struct mmc_request mrq = {NULL}; in mmc_sd_switch() local 323 mrq.cmd = &cmd; in mmc_sd_switch() [all …]
|
/drivers/memstick/core/ |
D | memstick.c | 226 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 …]
|
D | mspro_block.c | 161 struct memstick_request **mrq); 526 struct memstick_request **mrq) in h_mspro_block_req_init() argument 530 *mrq = &card->current_mrq; in h_mspro_block_req_init() 536 struct memstick_request **mrq) in h_mspro_block_default() argument 538 return mspro_block_complete_req(card, (*mrq)->error); in h_mspro_block_default() 542 struct memstick_request **mrq) in h_mspro_block_default_bad() argument 548 struct memstick_request **mrq) in h_mspro_block_get_ro() argument 552 if (!(*mrq)->error) { in h_mspro_block_get_ro() 553 if ((*mrq)->data[offsetof(struct ms_status_register, status0)] in h_mspro_block_get_ro() 560 return mspro_block_complete_req(card, (*mrq)->error); in h_mspro_block_get_ro() [all …]
|
D | ms_block.c | 261 struct memstick_request *mrq = &msb->card->current_mrq; in msb_read_int_reg() local 270 mrq->data[0] = MEMSTICK_INT_CMDNAK; in msb_read_int_reg() 275 mrq->need_card_int && !mrq->error) { in msb_read_int_reg() 276 mrq->data[0] = mrq->int_reg; in msb_read_int_reg() 277 mrq->need_card_int = false; in msb_read_int_reg() 280 memstick_init_req(mrq, MS_TPC_GET_INT, NULL, 1); in msb_read_int_reg() 329 struct memstick_request **mrq) in h_msb_default_bad() argument 343 struct memstick_request *mrq = *out_mrq = &card->current_mrq; in h_msb_read_page() local 347 if (mrq->error) { in h_msb_read_page() 349 return msb_exit_state_machine(msb, mrq->error); in h_msb_read_page() [all …]
|
/drivers/mmc/card/ |
D | mmc_test.c | 189 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 …]
|