/linux/include/trace/events/ |
A D | mmc.h | 48 __entry->cmd_opcode = mrq->cmd ? mrq->cmd->opcode : 0; 49 __entry->cmd_arg = mrq->cmd ? mrq->cmd->arg : 0; 50 __entry->cmd_flags = mrq->cmd ? mrq->cmd->flags : 0; 53 __entry->stop_arg = mrq->stop ? mrq->stop->arg : 0; 57 __entry->sbc_arg = mrq->sbc ? mrq->sbc->arg : 0; 58 __entry->sbc_flags = mrq->sbc ? mrq->sbc->flags : 0; 60 __entry->blksz = mrq->data ? mrq->data->blksz : 0; 61 __entry->blocks = mrq->data ? mrq->data->blocks : 0; 72 __entry->mrq = mrq; 130 __entry->cmd_err = mrq->cmd ? mrq->cmd->error : 0; [all …]
|
/linux/drivers/mmc/core/ |
A D | core.c | 212 mrq->done(mrq); in mmc_request_done() 271 mrq->sbc->arg, mrq->sbc->flags); in mmc_mrq_pr_debug() 277 mrq->cmd->opcode, mrq->cmd->arg, mrq->cmd->flags); in mmc_mrq_pr_debug() 295 mrq->stop->arg, mrq->stop->flags); in mmc_mrq_pr_debug() 306 mrq->cmd->mrq = mrq; in mmc_mrq_prep() 307 mrq->cmd->data = mrq->data; in mmc_mrq_prep() 311 mrq->sbc->mrq = mrq; in mmc_mrq_prep() 325 mrq->data->mrq = mrq; in mmc_mrq_prep() 327 mrq->data->stop = mrq->stop; in mmc_mrq_prep() 329 mrq->stop->mrq = mrq; in mmc_mrq_prep() [all …]
|
A D | mmc_test.c | 213 if (WARN_ON(!mrq || !mrq->cmd || !mrq->data || !mrq->stop)) in mmc_test_prepare_mrq() 675 if (WARN_ON(!mrq || !mrq->cmd || !mrq->data)) in mmc_test_prepare_broken_mrq() 696 if (WARN_ON(!mrq || !mrq->cmd || !mrq->data)) in mmc_test_check_result() 701 if (mrq->sbc && mrq->sbc->error) in mmc_test_check_result() 707 if (!ret && mrq->stop && mrq->stop->error) in mmc_test_check_result() 710 mrq->data->blocks * mrq->data->blksz) in mmc_test_check_result() 727 if (WARN_ON(!mrq || !mrq->cmd || !mrq->data)) in mmc_test_check_broken_result() 738 if (!ret && mrq->stop && mrq->stop->error) in mmc_test_check_broken_result() 844 mrq = &rq1->mrq; in mmc_test_nonblock_transfer() 2377 mrq = &rq->mrq; in mmc_test_ongoing_transfer() [all …]
|
A D | sd_ops.c | 55 struct mmc_request mrq = {}; in mmc_wait_for_app_cmd() local 78 mrq.cmd = cmd; in mmc_wait_for_app_cmd() 81 mmc_wait_for_req(host, &mrq); in mmc_wait_for_app_cmd() 259 struct mmc_request mrq = {}; in mmc_app_send_scr() local 278 mrq.cmd = &cmd; in mmc_app_send_scr() 279 mrq.data = &data; in mmc_app_send_scr() 295 mmc_wait_for_req(card->host, &mrq); in mmc_app_send_scr() 330 struct mmc_request mrq = {}; in mmc_app_sd_status() local 341 mrq.cmd = &cmd; in mmc_app_sd_status() 342 mrq.data = &data; in mmc_app_sd_status() [all …]
|
A D | core.h | 99 void mmc_wait_for_req_done(struct mmc_host *host, struct mmc_request *mrq); 100 bool mmc_is_req_done(struct mmc_host *host, struct mmc_request *mrq); 102 int mmc_start_request(struct mmc_host *host, struct mmc_request *mrq); 136 int mmc_cqe_start_req(struct mmc_host *host, struct mmc_request *mrq); 137 void mmc_cqe_post_req(struct mmc_host *host, struct mmc_request *mrq); 149 static inline void mmc_pre_req(struct mmc_host *host, struct mmc_request *mrq) in mmc_pre_req() argument 152 host->ops->pre_req(host, mrq); in mmc_pre_req() 164 static inline void mmc_post_req(struct mmc_host *host, struct mmc_request *mrq, in mmc_post_req() argument 168 host->ops->post_req(host, mrq, err); in mmc_post_req()
|
A D | block.c | 531 mrq.cmd = &cmd; in __mmc_blk_ioctl_cmd() 552 mrq.sbc = &sbc; in __mmc_blk_ioctl_cmd() 937 mrq.cmd = &cmd; in mmc_sd_num_wr_blocks() 938 mrq.data = &data; in mmc_sd_num_wr_blocks() 1426 struct mmc_request *mrq = &mqrq->brq.mrq; in mmc_blk_cqe_complete_rq() local 1436 if (mrq->cmd && mrq->cmd->error) in mmc_blk_cqe_complete_rq() 1438 else if (mrq->data && mrq->data->error) in mmc_blk_cqe_complete_rq() 1494 brq.mrq); in mmc_blk_cqe_req_done() 1681 struct mmc_request *mrq = &mqrq->brq.mrq; in mmc_blk_read_single() local 1977 container_of(mrq, struct mmc_queue_req, brq.mrq); in mmc_blk_hsq_req_done() [all …]
|
/linux/drivers/mmc/host/ |
A D | usdhi6rol0.c | 344 struct mmc_request *mrq = host->mrq; in usdhi6_sg_prep() local 512 host->mrq->cmd->opcode, host->mrq); in usdhi6_sg_advance() 553 struct mmc_request *mrq = host->mrq; in usdhi6_dma_complete() local 874 struct mmc_request *mrq = host->mrq; in usdhi6_timeout_set() local 903 struct mmc_request *mrq = host->mrq; in usdhi6_request_done() local 916 (mrq->stop && mrq->stop->error)) in usdhi6_request_done() 922 mrq->stop ? mrq->stop->error : 1); in usdhi6_request_done() 934 struct mmc_request *mrq = host->mrq; in usdhi6_cmd_flags() local 987 struct mmc_request *mrq = host->mrq; in usdhi6_rq_start() local 1098 host->mrq = mrq; in usdhi6_request() [all …]
|
A D | cqhci-core.c | 450 mmc_hostname(mrq->host), mrq->tag, desc1, desc0); in cqhci_prep_task_desc() 453 mmc_hostname(mrq->host), mrq->tag, desc0); in cqhci_prep_task_desc() 510 sg_count = cqhci_dma_map(mrq->host, mrq); in cqhci_prep_tran_desc() 589 return mrq->cmd ? DCMD_SLOT : mrq->tag; in cqhci_tag() 643 cq_host->slot[tag].mrq = mrq; in cqhci_request() 672 mrq->recovery_notifier(mrq); in cqhci_recovery_needed() 782 struct mmc_request *mrq = slot->mrq; in cqhci_finish_mrq() local 785 if (!mrq) { in cqhci_finish_mrq() 896 timed_out = slot->mrq == mrq; in cqhci_timeout() 1019 struct mmc_request *mrq = slot->mrq; in cqhci_recover_mrq() local [all …]
|
A D | mmc_hsq.c | 24 mmc->ops->request(mmc, hsq->mrq); in mmc_hsq_retry_handler() 37 if (hsq->mrq) { in mmc_hsq_pump_requests() 49 hsq->mrq = slot->mrq; in mmc_hsq_pump_requests() 57 mmc->ops->request(mmc, hsq->mrq); in mmc_hsq_pump_requests() 94 if (slot->mrq) in mmc_hsq_update_next_tag() 101 if (slot->mrq) in mmc_hsq_update_next_tag() 119 hsq->mrq = NULL; in mmc_hsq_post_request() 160 if (!hsq->enabled || !hsq->mrq || hsq->mrq != mrq) { in mmc_hsq_finalize_request() 215 int tag = mrq->tag; in mmc_hsq_request() 230 hsq->slot[tag].mrq = mrq; in mmc_hsq_request() [all …]
|
A D | sh_mmcif.c | 275 struct mmc_request *mrq = host->mrq; in sh_mmcif_dma_complete() local 280 if (WARN(!mrq || !mrq->data, "%s: NULL data in DMA completion!\n", in sh_mmcif_dma_complete() 924 if (mrq->data) { in sh_mmcif_start_cmd() 987 host->mrq = mrq; in sh_mmcif_request() 1192 mrq = host->mrq; in sh_mmcif_irqt() 1193 if (!mrq) { in sh_mmcif_irqt() 1262 if (mrq->stop && !mrq->cmd->error && (!data || !data->error)) { in sh_mmcif_irqt() 1274 host->mrq = NULL; in sh_mmcif_irqt() 1305 if (!host->mrq) in sh_mmcif_intr() 1322 struct mmc_request *mrq = host->mrq; in sh_mmcif_timeout_work() local [all …]
|
A D | tmio_mmc_core.c | 221 mrq = host->mrq; in tmio_mmc_reset_work() 254 host->mrq = NULL; in tmio_mmc_reset_work() 476 host->mrq); in tmio_mmc_do_data_irq() 479 host->mrq); in tmio_mmc_do_data_irq() 750 if (mrq->sbc && host->cmd != mrq->sbc) { in tmio_process_mrq() 751 cmd = mrq->sbc; in tmio_process_mrq() 753 cmd = mrq->cmd; in tmio_process_mrq() 795 host->mrq = mrq; in tmio_mmc_request() 811 mrq = host->mrq; in tmio_mmc_finish_request() 828 if (mrq->cmd->error || (mrq->data && mrq->data->error)) { in tmio_mmc_finish_request() [all …]
|
A D | bcm2835.c | 209 struct mmc_request *mrq = host->mrq; in bcm2835_dumpregs() local 212 if (mrq) { in bcm2835_dumpregs() 602 mrq = host->mrq; in bcm2835_finish_request() 1167 if (mrq->sbc) in bcm2835_request() 1169 if (mrq->cmd) in bcm2835_request() 1171 if (mrq->data) in bcm2835_request() 1173 if (mrq->stop) in bcm2835_request() 1176 if (mrq->data && !is_power_of_2(mrq->data->blksz)) { in bcm2835_request() 1180 if (mrq->cmd) in bcm2835_request() 1190 host->mrq = mrq; in bcm2835_request() [all …]
|
A D | cqhci-crypto.h | 23 static inline u64 cqhci_crypto_prep_task_desc(struct mmc_request *mrq) in cqhci_crypto_prep_task_desc() argument 25 if (!mrq->crypto_ctx) in cqhci_crypto_prep_task_desc() 29 WARN_ON_ONCE(mrq->crypto_ctx->bc_dun[0] > U32_MAX); in cqhci_crypto_prep_task_desc() 32 CQHCI_CRYPTO_KEYSLOT(mrq->crypto_key_slot) | in cqhci_crypto_prep_task_desc() 33 mrq->crypto_ctx->bc_dun[0]; in cqhci_crypto_prep_task_desc() 43 static inline u64 cqhci_crypto_prep_task_desc(struct mmc_request *mrq) in cqhci_crypto_prep_task_desc() argument
|
A D | cavium.c | 657 if (!mrq->data || !mrq->data->sg || !mrq->data->sg_len || in cvm_mmc_dma_request() 658 !mrq->stop || mrq->stop->opcode != MMC_STOP_TRANSMISSION) { in cvm_mmc_dma_request() 665 data = mrq->data; in cvm_mmc_dma_request() 672 host->current_req = mrq; in cvm_mmc_dma_request() 701 mrq->cmd->error = -EINVAL; in cvm_mmc_dma_request() 702 if (mrq->done) in cvm_mmc_dma_request() 703 mrq->done(mrq); in cvm_mmc_dma_request() 709 sg_miter_start(&host->smi, mrq->data->sg, mrq->data->sg_len, in do_read_request() 715 unsigned int data_len = mrq->data->blocks * mrq->data->blksz; in do_write_request() 722 sg_miter_start(smi, mrq->data->sg, mrq->data->sg_len, SG_MITER_FROM_SG); in do_write_request() [all …]
|
A D | sunxi-mmc.c | 295 struct mmc_request *mrq; member 512 struct mmc_request *mrq = host->mrq; in sunxi_mmc_finalize_request() local 528 if (mrq->stop) in sunxi_mmc_finalize_request() 560 host->mrq = NULL; in sunxi_mmc_finalize_request() 570 struct mmc_request *mrq; in sunxi_mmc_irq() local 584 mrq = host->mrq; in sunxi_mmc_irq() 585 if (mrq) { in sunxi_mmc_irq() 627 struct mmc_request *mrq; in sunxi_mmc_handle_manual_stop() local 634 if (!mrq) { in sunxi_mmc_handle_manual_stop() 1072 mrq->data ? mrq->data->blksz * mrq->data->blocks : 0); in sunxi_mmc_request() [all …]
|
A D | atmel-mci.c | 419 mrq = slot->mrq; in atmci_req_show() 421 if (mrq) { in atmci_req_show() 422 cmd = mrq->cmd; in atmci_req_show() 1242 mrq = slot->mrq; in atmci_start_request() 1244 host->mrq = mrq; in atmci_start_request() 1334 slot->mrq = mrq; in atmci_queue_request() 1616 else if (host->mrq->data && (host->mrq->data->blksz & 3)) { in atmci_command_complete() 1664 mrq = slot->mrq; in atmci_detect_change() 1665 if (mrq) { in atmci_detect_change() 1666 if (mrq == host->mrq) { in atmci_detect_change() [all …]
|
A D | mvsdio.c | 36 struct mmc_request *mrq; member 146 host->mrq = mrq; in mvsd_request() 173 if (mrq->data) { in mvsd_request() 463 struct mmc_request *mrq = host->mrq; in mvsd_irq() local 468 host->mrq = NULL; in mvsd_irq() 484 if (mrq->data) in mvsd_irq() 518 mrq = host->mrq; in mvsd_timeout_timer() 519 if (mrq) { in mvsd_timeout_timer() 526 host->mrq = NULL; in mvsd_timeout_timer() 540 if (mrq->data) { in mvsd_timeout_timer() [all …]
|
A D | rtsx_pci_sdmmc.c | 29 struct mmc_request *mrq; member 431 struct mmc_request *mrq) in sd_read_long_data() argument 806 struct mmc_request *mrq = host->mrq; in sd_request() local 835 host->mrq = mrq; in sd_request() 838 if (mrq->data) in sd_request() 854 if (mrq->data) { in sd_request() 870 host->mrq = NULL; in sd_request() 882 host->mrq = mrq; in sdmmc_request() 885 if (sd_rw_cmd(mrq->cmd) || sdio_extblock_cmd(mrq->cmd, data)) in sdmmc_request() 1532 if (host->mrq) { in rtsx_pci_sdmmc_drv_remove() [all …]
|
A D | meson-mx-sdio.c | 120 struct mmc_request *mrq; member 147 return cmd->mrq->cmd; in meson_mx_mmc_get_next_cmd() 150 return cmd->mrq->stop; in meson_mx_mmc_get_next_cmd() 245 struct mmc_request *mrq; in meson_mx_mmc_request_done() local 247 mrq = host->mrq; in meson_mx_mmc_request_done() 252 host->mrq = NULL; in meson_mx_mmc_request_done() 255 mmc_request_done(host->mmc, mrq); in meson_mx_mmc_request_done() 347 mmc_request_done(mmc, mrq); in meson_mx_mmc_request() 351 host->mrq = mrq; in meson_mx_mmc_request() 353 if (mrq->data) in meson_mx_mmc_request() [all …]
|
A D | sdhci.c | 1467 ((mrq->cmd && mrq->cmd->error) || in sdhci_needs_reset() 1468 (mrq->sbc && mrq->sbc->error) || in sdhci_needs_reset() 1469 (mrq->data && mrq->data->stop && mrq->data->stop->error) || in sdhci_needs_reset() 1496 if (host->cmd && host->cmd->mrq == mrq) in __sdhci_finish_mrq() 1499 if (host->data_cmd && host->data_cmd->mrq == mrq) in __sdhci_finish_mrq() 1505 if (host->data && host->data->mrq == mrq) in __sdhci_finish_mrq() 2163 cmd = sdhci_manual_cmd23(host, mrq) ? mrq->sbc : mrq->cmd; in sdhci_request() 2192 cmd = sdhci_manual_cmd23(host, mrq) ? mrq->sbc : mrq->cmd; in sdhci_request_atomic() 2745 cmd.mrq = &mrq; in sdhci_send_tuning() 3214 struct mmc_request *mrq = host->data_cmd->mrq; in sdhci_cmd_irq() local [all …]
|
A D | s3cmci.c | 319 if ((!host->mrq) || (!host->mrq->data)) in get_data_buffer() 635 if (!host->mrq) { in s3cmci_irq() 641 cmd = host->cmd_is_stop ? host->mrq->stop : host->mrq->cmd; in s3cmci_irq() 823 struct mmc_request *mrq = host->mrq; in finalize_request() local 830 if (!mrq) in finalize_request() 832 cmd = host->cmd_is_stop ? mrq->stop : mrq->cmd; in finalize_request() 875 if (!mrq->data) in finalize_request() 881 (mrq->data->blocks * mrq->data->blksz); in finalize_request() 910 host->mrq = NULL; in finalize_request() 1100 struct mmc_request *mrq = host->mrq; in s3cmci_send_request() local [all …]
|
/linux/drivers/memstick/core/ |
A D | memstick.c | 226 if ((*mrq) && (*mrq)->error && host->retries) { in memstick_next_req() 238 *mrq = NULL; in memstick_next_req() 267 mrq->tpc = tpc; in memstick_init_req_sg() 273 mrq->sg = *sg; in memstick_init_req_sg() 274 mrq->long_data = 1; in memstick_init_req_sg() 297 mrq->tpc = tpc; in memstick_init_req() 303 mrq->data_len = length > sizeof(mrq->data) ? sizeof(mrq->data) : length; in memstick_init_req() 305 memcpy(mrq->data, buf, mrq->data_len); in memstick_init_req() 307 mrq->long_data = 0; in memstick_init_req() 328 if (!(*mrq)) { in h_memstick_read_dev_id() [all …]
|
/linux/include/soc/tegra/ |
A D | bpmp.h | 48 typedef void (*tegra_bpmp_mrq_handler_t)(unsigned int mrq, 54 unsigned int mrq; member 95 unsigned int mrq; member 119 int tegra_bpmp_request_mrq(struct tegra_bpmp *bpmp, unsigned int mrq, 121 void tegra_bpmp_free_mrq(struct tegra_bpmp *bpmp, unsigned int mrq, 123 bool tegra_bpmp_mrq_is_supported(struct tegra_bpmp *bpmp, unsigned int mrq); 149 unsigned int mrq, in tegra_bpmp_request_mrq() argument 156 unsigned int mrq, void *data) in tegra_bpmp_free_mrq() argument 161 unsigned int mrq) in tegra_bpmp_mrq_is_supported() argument
|
/linux/drivers/firmware/tegra/ |
A D | bpmp.c | 244 channel->ob->code = mrq; in __tegra_bpmp_channel_write() 389 unsigned int mrq) in tegra_bpmp_find_mrq() argument 394 if (entry->mrq == mrq) in tegra_bpmp_find_mrq() 438 unsigned int mrq, in tegra_bpmp_handle_mrq() argument 446 entry = tegra_bpmp_find_mrq(bpmp, mrq); in tegra_bpmp_handle_mrq() 473 entry->mrq = mrq; in tegra_bpmp_request_mrq() 505 struct mrq_query_abi_request req = { .mrq = cpu_to_le32(mrq) }; in tegra_bpmp_mrq_is_supported() 508 .mrq = MRQ_QUERY_ABI, in tegra_bpmp_mrq_is_supported() 558 msg.mrq = MRQ_PING; in tegra_bpmp_ping() 602 msg.mrq = MRQ_QUERY_TAG; in tegra_bpmp_get_firmware_tag_old() [all …]
|
/linux/drivers/staging/greybus/ |
A D | sdio.c | 23 struct mmc_request *mrq; member 499 struct mmc_request *mrq; in gb_sdio_mrq_work() local 509 mrq = host->mrq; in gb_sdio_mrq_work() 510 if (!mrq) { in gb_sdio_mrq_work() 522 if (mrq->sbc) { in gb_sdio_mrq_work() 532 if (mrq->data) { in gb_sdio_mrq_work() 538 if (mrq->stop) { in gb_sdio_mrq_work() 545 host->mrq = NULL; in gb_sdio_mrq_work() 565 WARN_ON(host->mrq); in gb_mmc_request() 566 host->mrq = mrq; in gb_mmc_request() [all …]
|