Home
last modified time | relevance | path

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

1234

/linux/include/trace/events/
A Dmmc.h48 __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 Dcore.c211 mrq->done(mrq); in mmc_request_done()
270 mrq->sbc->arg, mrq->sbc->flags); in mmc_mrq_pr_debug()
276 mrq->cmd->opcode, mrq->cmd->arg, mrq->cmd->flags); in mmc_mrq_pr_debug()
294 mrq->stop->arg, mrq->stop->flags); in mmc_mrq_pr_debug()
305 mrq->cmd->mrq = mrq; in mmc_mrq_prep()
306 mrq->cmd->data = mrq->data; in mmc_mrq_prep()
310 mrq->sbc->mrq = mrq; in mmc_mrq_prep()
324 mrq->data->mrq = mrq; in mmc_mrq_prep()
326 mrq->data->stop = mrq->stop; in mmc_mrq_prep()
328 mrq->stop->mrq = mrq; in mmc_mrq_prep()
[all …]
A Dmmc_test.c213 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()
2384 mrq = &rq->mrq; in mmc_test_ongoing_transfer()
[all …]
A Dcore.h114 void mmc_wait_for_req_done(struct mmc_host *host, struct mmc_request *mrq);
115 bool mmc_is_req_done(struct mmc_host *host, struct mmc_request *mrq);
117 int mmc_start_request(struct mmc_host *host, struct mmc_request *mrq);
151 int mmc_cqe_start_req(struct mmc_host *host, struct mmc_request *mrq);
152 void mmc_cqe_post_req(struct mmc_host *host, struct mmc_request *mrq);
164 static inline void mmc_pre_req(struct mmc_host *host, struct mmc_request *mrq) in mmc_pre_req() argument
167 host->ops->pre_req(host, mrq); in mmc_pre_req()
179 static inline void mmc_post_req(struct mmc_host *host, struct mmc_request *mrq, in mmc_post_req() argument
183 host->ops->post_req(host, mrq, err); in mmc_post_req()
A Dsd_ops.c69 struct mmc_request mrq = {}; in mmc_wait_for_app_cmd() local
92 mrq.cmd = cmd; in mmc_wait_for_app_cmd()
95 mmc_wait_for_req(host, &mrq); in mmc_wait_for_app_cmd()
288 struct mmc_request mrq = {}; in mmc_app_send_scr() local
307 mrq.cmd = &cmd; in mmc_app_send_scr()
308 mrq.data = &data; in mmc_app_send_scr()
324 mmc_wait_for_req(card->host, &mrq); in mmc_app_send_scr()
359 struct mmc_request mrq = {}; in mmc_app_sd_status() local
370 mrq.cmd = &cmd; in mmc_app_sd_status()
371 mrq.data = &data; in mmc_app_sd_status()
[all …]
A Dcrypto.c32 struct mmc_request *mrq = &mqrq->brq.mrq; in mmc_crypto_prepare_req() local
38 mrq->crypto_ctx = req->crypt_ctx; in mmc_crypto_prepare_req()
42 mrq->crypto_key_slot = blk_crypto_keyslot_index(keyslot); in mmc_crypto_prepare_req()
/linux/drivers/mmc/host/
A Dmmc_hsq.c21 mmc->ops->request(mmc, hsq->mrq); in mmc_hsq_retry_handler()
27 struct mmc_request *mrq; in mmc_hsq_modify_threshold() local
32 mrq = hsq->slot[tag].mrq; in mmc_hsq_modify_threshold()
33 if (mrq && mrq->data && in mmc_hsq_modify_threshold()
34 (mrq->data->blksz * mrq->data->blocks == 4096) && in mmc_hsq_modify_threshold()
67 hsq->mrq = slot->mrq; in mmc_hsq_pump_requests()
75 mmc->ops->request(mmc, hsq->mrq); in mmc_hsq_pump_requests()
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()
[all …]
A Dusdhi6rol0.c344 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 Dcqhci-core.c455 mmc_hostname(mrq->host), mrq->tag, desc1, desc0); in cqhci_prep_task_desc()
458 mmc_hostname(mrq->host), mrq->tag, desc0); in cqhci_prep_task_desc()
516 sg_count = cqhci_dma_map(mrq->host, mrq); in cqhci_prep_tran_desc()
599 return mrq->cmd ? DCMD_SLOT : mrq->tag; in cqhci_tag()
653 cq_host->slot[tag].mrq = mrq; in cqhci_request()
682 mrq->recovery_notifier(mrq); in cqhci_recovery_needed()
792 struct mmc_request *mrq = slot->mrq; in cqhci_finish_mrq() local
795 if (!mrq) { in cqhci_finish_mrq()
913 timed_out = slot->mrq == mrq; in cqhci_timeout()
1031 struct mmc_request *mrq = slot->mrq; in cqhci_recover_mrq() local
[all …]
A Dsh_mmcif.c272 struct mmc_request *mrq = host->mrq; in sh_mmcif_dma_complete() local
277 if (WARN(!mrq || !mrq->data, "%s: NULL data in DMA completion!\n", in sh_mmcif_dma_complete()
963 if (mrq->data) { in sh_mmcif_start_cmd()
1026 host->mrq = mrq; in sh_mmcif_request()
1231 mrq = host->mrq; in sh_mmcif_irqt()
1232 if (!mrq) { in sh_mmcif_irqt()
1301 if (mrq->stop && !mrq->cmd->error && (!data || !data->error)) { in sh_mmcif_irqt()
1313 host->mrq = NULL; in sh_mmcif_irqt()
1344 if (!host->mrq) in sh_mmcif_intr()
1361 struct mmc_request *mrq = host->mrq; in sh_mmcif_timeout_work() local
[all …]
A Dtmio_mmc_core.c238 mrq = host->mrq; in tmio_mmc_reset_work()
273 host->mrq = NULL; in tmio_mmc_reset_work()
494 host->mrq); in tmio_mmc_do_data_irq()
497 host->mrq); in tmio_mmc_do_data_irq()
771 if (mrq->sbc && host->cmd != mrq->sbc) { in tmio_process_mrq()
772 cmd = mrq->sbc; in tmio_process_mrq()
774 cmd = mrq->cmd; in tmio_process_mrq()
816 host->mrq = mrq; in tmio_mmc_request()
832 mrq = host->mrq; in tmio_mmc_finish_request()
849 if (mrq->cmd->error || (mrq->data && mrq->data->error)) { in tmio_mmc_finish_request()
[all …]
A Dcqhci-crypto.h23 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 Dbcm2835.c209 struct mmc_request *mrq = host->mrq; in bcm2835_dumpregs() local
212 if (mrq) { in bcm2835_dumpregs()
597 mrq = host->mrq; in bcm2835_finish_request()
1159 if (mrq->sbc) in bcm2835_request()
1161 if (mrq->cmd) in bcm2835_request()
1163 if (mrq->data) in bcm2835_request()
1165 if (mrq->stop) in bcm2835_request()
1168 if (mrq->data && !is_power_of_2(mrq->data->blksz)) { in bcm2835_request()
1172 if (mrq->cmd) in bcm2835_request()
1182 host->mrq = mrq; in bcm2835_request()
[all …]
A Dcavium.c657 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 Dsunxi-mmc.c295 struct mmc_request *mrq; member
513 struct mmc_request *mrq = host->mrq; in sunxi_mmc_finalize_request() local
529 if (mrq->stop) in sunxi_mmc_finalize_request()
561 host->mrq = NULL; in sunxi_mmc_finalize_request()
571 struct mmc_request *mrq; in sunxi_mmc_irq() local
585 mrq = host->mrq; in sunxi_mmc_irq()
586 if (mrq) { in sunxi_mmc_irq()
628 struct mmc_request *mrq; in sunxi_mmc_handle_manual_stop() local
635 if (!mrq) { in sunxi_mmc_handle_manual_stop()
1073 mrq->data ? mrq->data->blksz * mrq->data->blocks : 0); in sunxi_mmc_request()
[all …]
A Dmvsdio.c36 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 Datmel-mci.c443 mrq = slot->mrq; in atmci_req_show()
445 if (mrq) { in atmci_req_show()
446 cmd = mrq->cmd; in atmci_req_show()
1268 mrq = slot->mrq; in atmci_start_request()
1270 host->mrq = mrq; in atmci_start_request()
1362 slot->mrq = mrq; in atmci_queue_request()
1644 else if (host->mrq->data && (host->mrq->data->blksz & 3)) { in atmci_command_complete()
1691 mrq = slot->mrq; in atmci_detect_change()
1692 if (mrq) { in atmci_detect_change()
1693 if (mrq == host->mrq) { in atmci_detect_change()
[all …]
A Dmeson-mx-sdio.c120 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 Drtsx_pci_sdmmc.c30 struct mmc_request *mrq; member
429 struct mmc_request *mrq) in sd_read_long_data() argument
804 struct mmc_request *mrq = host->mrq; in sd_request() local
833 host->mrq = mrq; in sd_request()
836 if (mrq->data) in sd_request()
852 if (mrq->data) { in sd_request()
868 host->mrq = NULL; in sd_request()
880 host->mrq = mrq; in sdmmc_request()
883 if (sd_rw_cmd(mrq->cmd) || sdio_extblock_cmd(mrq->cmd, data)) in sdmmc_request()
1555 if (host->mrq) { in rtsx_pci_sdmmc_drv_remove()
[all …]
A Dsdhci.c1494 ((mrq->cmd && mrq->cmd->error) || in sdhci_needs_reset()
1495 (mrq->sbc && mrq->sbc->error) || in sdhci_needs_reset()
1496 (mrq->data && mrq->data->stop && mrq->data->stop->error) || in sdhci_needs_reset()
1523 if (host->cmd && host->cmd->mrq == mrq) in __sdhci_finish_mrq()
1526 if (host->data_cmd && host->data_cmd->mrq == mrq) in __sdhci_finish_mrq()
1532 if (host->data && host->data->mrq == mrq) in __sdhci_finish_mrq()
2193 cmd = sdhci_manual_cmd23(host, mrq) ? mrq->sbc : mrq->cmd; in sdhci_request()
2222 cmd = sdhci_manual_cmd23(host, mrq) ? mrq->sbc : mrq->cmd; in sdhci_request_atomic()
2785 cmd.mrq = &mrq; in sdhci_send_tuning()
3251 struct mmc_request *mrq = host->data_cmd->mrq; in sdhci_cmd_irq() local
[all …]
A Dau1xmmc.c240 struct mmc_request *mrq = host->mrq; in au1xmmc_finish_request() local
242 host->mrq = NULL; in au1xmmc_finish_request()
318 struct mmc_request *mrq = host->mrq; in au1xmmc_data_complete() local
518 struct mmc_request *mrq = host->mrq; in au1xmmc_cmd_complete() local
523 if (!host->mrq) in au1xmmc_cmd_complete()
526 cmd = mrq->cmd; in au1xmmc_cmd_complete()
612 if (host->mrq->stop) in au1xmmc_prepare_data()
683 host->mrq = mrq; in au1xmmc_request()
693 if (mrq->data) { in au1xmmc_request()
699 ret = au1xmmc_send_command(host, mrq->cmd, mrq->data); in au1xmmc_request()
[all …]
/linux/drivers/memstick/core/
A Dmemstick.c225 if ((*mrq) && (*mrq)->error && host->retries) { in memstick_next_req()
237 *mrq = NULL; in memstick_next_req()
266 mrq->tpc = tpc; in memstick_init_req_sg()
272 mrq->sg = *sg; in memstick_init_req_sg()
273 mrq->long_data = 1; in memstick_init_req_sg()
296 mrq->tpc = tpc; in memstick_init_req()
302 mrq->data_len = length > sizeof(mrq->data) ? sizeof(mrq->data) : length; in memstick_init_req()
304 memcpy(mrq->data, buf, mrq->data_len); in memstick_init_req()
306 mrq->long_data = 0; in memstick_init_req()
327 if (!(*mrq)) { in h_memstick_read_dev_id()
[all …]
/linux/include/soc/tegra/
A Dbpmp.h61 typedef void (*tegra_bpmp_mrq_handler_t)(unsigned int mrq,
67 unsigned int mrq; member
112 unsigned int mrq; member
138 int tegra_bpmp_request_mrq(struct tegra_bpmp *bpmp, unsigned int mrq,
140 void tegra_bpmp_free_mrq(struct tegra_bpmp *bpmp, unsigned int mrq,
142 bool tegra_bpmp_mrq_is_supported(struct tegra_bpmp *bpmp, unsigned int mrq);
168 unsigned int mrq, in tegra_bpmp_request_mrq() argument
175 unsigned int mrq, void *data) in tegra_bpmp_free_mrq() argument
180 unsigned int mrq) in tegra_bpmp_mrq_is_supported() argument
/linux/drivers/firmware/tegra/
A Dbpmp.c396 unsigned int mrq) in tegra_bpmp_find_mrq() argument
401 if (entry->mrq == mrq) in tegra_bpmp_find_mrq()
445 unsigned int mrq, in tegra_bpmp_handle_mrq() argument
453 entry = tegra_bpmp_find_mrq(bpmp, mrq); in tegra_bpmp_handle_mrq()
480 entry->mrq = mrq; in tegra_bpmp_request_mrq()
498 entry = tegra_bpmp_find_mrq(bpmp, mrq); in tegra_bpmp_free_mrq()
512 struct mrq_query_abi_request req = { .mrq = mrq }; in tegra_bpmp_mrq_is_supported()
515 .mrq = MRQ_QUERY_ABI, in tegra_bpmp_mrq_is_supported()
565 msg.mrq = MRQ_PING; in tegra_bpmp_ping()
609 msg.mrq = MRQ_QUERY_TAG; in tegra_bpmp_get_firmware_tag_old()
[all …]
/linux/drivers/staging/greybus/
A Dsdio.c23 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 …]

Completed in 83 milliseconds

1234