Home
last modified time | relevance | path

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

1234

/openbmc/linux/include/trace/events/
H 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 …]
/openbmc/linux/drivers/mmc/core/
H 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 …]
H 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()
2371 mrq = &rq->mrq; in mmc_test_ongoing_transfer()
[all …]
H A Dsd_ops.c55 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()
331 struct mmc_request mrq = {}; in mmc_app_sd_status() local
342 mrq.cmd = &cmd; in mmc_app_sd_status()
343 mrq.data = &data; in mmc_app_sd_status()
[all …]
H 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()
H 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()
H A Dblock.c535 mrq.cmd = &cmd; in __mmc_blk_ioctl_cmd()
558 mrq.sbc = &sbc; in __mmc_blk_ioctl_cmd()
972 mrq.cmd = &cmd; in mmc_sd_num_wr_blocks()
973 mrq.data = &data; in mmc_sd_num_wr_blocks()
1502 struct mmc_request *mrq = &mqrq->brq.mrq; in mmc_blk_cqe_complete_rq() local
1512 if (mrq->cmd && mrq->cmd->error) in mmc_blk_cqe_complete_rq()
1514 else if (mrq->data && mrq->data->error) in mmc_blk_cqe_complete_rq()
1571 brq.mrq); in mmc_blk_cqe_req_done()
1758 struct mmc_request *mrq = &mqrq->brq.mrq; in mmc_blk_read_single() local
2087 container_of(mrq, struct mmc_queue_req, brq.mrq); in mmc_blk_hsq_req_done()
[all …]
/openbmc/linux/drivers/mmc/host/
H 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 …]
H A Dcqhci-core.c450 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()
903 timed_out = slot->mrq == mrq; in cqhci_timeout()
1026 struct mmc_request *mrq = slot->mrq; in cqhci_recover_mrq() local
[all …]
H A Dmmc_hsq.c21 mmc->ops->request(mmc, hsq->mrq); in mmc_hsq_retry_handler()
34 if (hsq->mrq || hsq->recovery_halt) { in mmc_hsq_pump_requests()
46 hsq->mrq = slot->mrq; in mmc_hsq_pump_requests()
54 mmc->ops->request(mmc, hsq->mrq); in mmc_hsq_pump_requests()
98 hsq->mrq = NULL; in mmc_hsq_post_request()
139 if (!hsq->enabled || !hsq->mrq || hsq->mrq != mrq) { in mmc_hsq_finalize_request()
147 hsq->slot[hsq->next_tag].mrq = NULL; in mmc_hsq_finalize_request()
151 mmc_cqe_request_done(mmc, hsq->mrq); in mmc_hsq_finalize_request()
194 int tag = mrq->tag; in mmc_hsq_request()
209 hsq->slot[tag].mrq = mrq; in mmc_hsq_request()
[all …]
H 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
H A Dsh_mmcif.c274 struct mmc_request *mrq = host->mrq; in sh_mmcif_dma_complete() local
279 if (WARN(!mrq || !mrq->data, "%s: NULL data in DMA completion!\n", in sh_mmcif_dma_complete()
925 if (mrq->data) { in sh_mmcif_start_cmd()
988 host->mrq = mrq; in sh_mmcif_request()
1193 mrq = host->mrq; in sh_mmcif_irqt()
1194 if (!mrq) { in sh_mmcif_irqt()
1263 if (mrq->stop && !mrq->cmd->error && (!data || !data->error)) { in sh_mmcif_irqt()
1275 host->mrq = NULL; in sh_mmcif_irqt()
1306 if (!host->mrq) in sh_mmcif_intr()
1323 struct mmc_request *mrq = host->mrq; in sh_mmcif_timeout_work() local
[all …]
H A Dtmio_mmc_core.c237 mrq = host->mrq; in tmio_mmc_reset_work()
272 host->mrq = NULL; in tmio_mmc_reset_work()
493 host->mrq); in tmio_mmc_do_data_irq()
496 host->mrq); in tmio_mmc_do_data_irq()
770 if (mrq->sbc && host->cmd != mrq->sbc) { in tmio_process_mrq()
771 cmd = mrq->sbc; in tmio_process_mrq()
773 cmd = mrq->cmd; in tmio_process_mrq()
815 host->mrq = mrq; in tmio_mmc_request()
831 mrq = host->mrq; in tmio_mmc_finish_request()
848 if (mrq->cmd->error || (mrq->data && mrq->data->error)) { in tmio_mmc_finish_request()
[all …]
H 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 …]
H 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 …]
H 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 …]
H 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 …]
H A Datmel-mci.c451 mrq = slot->mrq; in atmci_req_show()
453 if (mrq) { in atmci_req_show()
454 cmd = mrq->cmd; in atmci_req_show()
1285 mrq = slot->mrq; in atmci_start_request()
1287 host->mrq = mrq; in atmci_start_request()
1377 slot->mrq = mrq; in atmci_queue_request()
1658 else if (host->mrq->data && (host->mrq->data->blksz & 3)) { in atmci_command_complete()
1705 mrq = slot->mrq; in atmci_detect_change()
1706 if (mrq) { in atmci_detect_change()
1707 if (mrq == host->mrq) { in atmci_detect_change()
[all …]
H 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 …]
H A Drtsx_pci_sdmmc.c29 struct mmc_request *mrq; member
428 struct mmc_request *mrq) in sd_read_long_data() argument
803 struct mmc_request *mrq = host->mrq; in sd_request() local
832 host->mrq = mrq; in sd_request()
835 if (mrq->data) in sd_request()
851 if (mrq->data) { in sd_request()
867 host->mrq = NULL; in sd_request()
879 host->mrq = mrq; in sdmmc_request()
882 if (sd_rw_cmd(mrq->cmd) || sdio_extblock_cmd(mrq->cmd, data)) in sdmmc_request()
1540 if (host->mrq) { in rtsx_pci_sdmmc_drv_remove()
[all …]
H 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()
2801 cmd.mrq = &mrq; in sdhci_send_tuning()
3266 struct mmc_request *mrq = host->data_cmd->mrq; in sdhci_cmd_irq() local
[all …]
/openbmc/linux/drivers/memstick/core/
H A Dmemstick.c226 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 …]
/openbmc/linux/include/soc/tegra/
H 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
/openbmc/linux/drivers/firmware/tegra/
H A Dbpmp.c406 unsigned int mrq) in tegra_bpmp_find_mrq() argument
411 if (entry->mrq == mrq) in tegra_bpmp_find_mrq()
455 unsigned int mrq, in tegra_bpmp_handle_mrq() argument
463 entry = tegra_bpmp_find_mrq(bpmp, mrq); in tegra_bpmp_handle_mrq()
490 entry->mrq = mrq; in tegra_bpmp_request_mrq()
508 entry = tegra_bpmp_find_mrq(bpmp, mrq); in tegra_bpmp_free_mrq()
522 struct mrq_query_abi_request req = { .mrq = mrq }; in tegra_bpmp_mrq_is_supported()
525 .mrq = MRQ_QUERY_ABI, in tegra_bpmp_mrq_is_supported()
575 msg.mrq = MRQ_PING; in tegra_bpmp_ping()
619 msg.mrq = MRQ_QUERY_TAG; in tegra_bpmp_get_firmware_tag_old()
[all …]
/openbmc/linux/drivers/staging/greybus/
H 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 …]

1234