Home
last modified time | relevance | path

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

123

/linux/include/trace/events/
H A Dmmc.h15 TP_PROTO(struct mmc_host *host, struct mmc_request *mrq),
17 TP_ARGS(host, mrq),
43 __field(struct mmc_request *, mrq)
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;
51 __entry->cmd_retries = mrq
[all...]
/linux/drivers/mmc/host/
H 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()
35 (mrq->data->flags & MMC_DATA_WRITE) && in mmc_hsq_modify_threshold()
53 if (hsq->mrq || hsq->recovery_halt) { in mmc_hsq_pump_requests()
67 hsq->mrq = slot->mrq; in mmc_hsq_pump_requests()
73 ret = mmc->ops->request_atomic(mmc, hsq->mrq); in mmc_hsq_pump_requests()
75 mmc->ops->request(mmc, hsq->mrq); in mmc_hsq_pump_requests()
[all …]
H A Dcqhci-core.c27 struct mmc_request *mrq; member
427 static void cqhci_prep_task_desc(struct mmc_request *mrq, in cqhci_prep_task_desc() argument
431 u32 req_flags = mrq->data->flags; in cqhci_prep_task_desc()
444 CQHCI_BLK_COUNT(mrq->data->blocks) | in cqhci_prep_task_desc()
445 CQHCI_BLK_ADDR((u64)mrq->data->blk_addr); in cqhci_prep_task_desc()
450 u64 desc1 = cqhci_crypto_prep_task_desc(mrq); in cqhci_prep_task_desc()
455 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()
462 static int cqhci_dma_map(struct mmc_host *host, struct mmc_request *mrq) in cqhci_dma_map() argument
465 struct mmc_data *data = mrq->data; in cqhci_dma_map()
[all …]
H A Dtmio_mmc_core.c234 struct mmc_request *mrq; in tmio_mmc_reset_work() local
238 mrq = host->mrq; in tmio_mmc_reset_work()
245 if (IS_ERR_OR_NULL(mrq) || in tmio_mmc_reset_work()
254 mrq->cmd->opcode); in tmio_mmc_reset_work()
261 mrq->cmd->error = -ETIMEDOUT; in tmio_mmc_reset_work()
264 host->mrq = ERR_PTR(-EBUSY); in tmio_mmc_reset_work()
273 host->mrq = NULL; in tmio_mmc_reset_work()
274 mmc_request_done(host->mmc, mrq); in tmio_mmc_reset_work()
328 (cmd->opcode == SD_IO_RW_EXTENDED || host->mrq->sbc)) in tmio_mmc_start_command()
494 host->mrq); in tmio_mmc_do_data_irq()
[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 Dcavium.c625 static u64 prepare_ext_dma(struct mmc_host *mmc, struct mmc_request *mrq) in prepare_ext_dma() argument
634 (mrq->data->flags & MMC_DATA_WRITE) ? 1 : 0) | in prepare_ext_dma()
635 FIELD_PREP(MIO_EMM_DMA_BLOCK_CNT, mrq->data->blocks) | in prepare_ext_dma()
636 FIELD_PREP(MIO_EMM_DMA_CARD_ADDR, mrq->cmd->arg); in prepare_ext_dma()
645 mrq->data->blocks, (emm_dma & MIO_EMM_DMA_MULTI) ? 1 : 0); in prepare_ext_dma()
650 struct mmc_request *mrq) in cvm_mmc_dma_request() argument
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()
[all …]
H A Dmvsdio.c36 struct mmc_request *mrq; member
136 static void mvsd_request(struct mmc_host *mmc, struct mmc_request *mrq) in mvsd_request() argument
140 struct mmc_command *cmd = mrq->cmd; in mvsd_request()
145 BUG_ON(host->mrq != NULL); in mvsd_request()
146 host->mrq = mrq; in mvsd_request()
173 if (mrq->data) { in mvsd_request()
174 struct mmc_data *data = mrq->data; in mvsd_request()
463 struct mmc_request *mrq = host->mrq; in mvsd_irq() local
464 struct mmc_command *cmd = mrq->cmd; in mvsd_irq()
468 host->mrq = NULL; in mvsd_irq()
[all …]
H A Dmtk-sd.c451 struct mmc_request *mrq; member
736 struct mmc_request *mrq, struct mmc_command *cmd);
1123 struct mmc_request *mrq, struct mmc_command *cmd) in msdc_cmd_prepare_raw_cmd() argument
1152 if (mmc_card_mmc(mmc->card) && mrq->sbc && in msdc_cmd_prepare_raw_cmd()
1153 !(mrq->sbc->arg & 0xFFFF0000)) in msdc_cmd_prepare_raw_cmd()
1255 static void msdc_request_done(struct msdc_host *host, struct mmc_request *mrq) in msdc_request_done() argument
1281 hsq_req_done = host->hsq_en ? mmc_hsq_finalize_request(mmc, mrq) : false; in msdc_request_done()
1289 host->mrq = NULL; in msdc_request_done()
1292 msdc_track_cmd_data(host, mrq->cmd); in msdc_request_done()
1293 if (mrq->data) in msdc_request_done()
[all …]
H A Dtoshsd.c145 struct mmc_request *mrq = host->mrq; in toshsd_finish_request() local
148 host->mrq = NULL; in toshsd_finish_request()
153 mmc_request_done(host->mmc, mrq); in toshsd_finish_request()
496 static void toshsd_request(struct mmc_host *mmc, struct mmc_request *mrq) in toshsd_request() argument
503 mrq->cmd->error = -ENOMEDIUM; in toshsd_request()
504 mmc_request_done(mmc, mrq); in toshsd_request()
510 WARN_ON(host->mrq != NULL); in toshsd_request()
512 host->mrq = mrq; in toshsd_request()
514 if (mrq->data) in toshsd_request()
515 toshsd_start_data(host, mrq->data); in toshsd_request()
[all …]
H A Dmmc_hsq.h20 struct mmc_request *mrq; member
25 struct mmc_request *mrq; member
45 bool mmc_hsq_finalize_request(struct mmc_host *mmc, struct mmc_request *mrq);
H A Dvia-sdmmc.c298 struct mmc_request *mrq; member
616 if (cmd == host->mrq->stop) in via_sdc_send_command()
662 static void via_sdc_request(struct mmc_host *mmc, struct mmc_request *mrq) in via_sdc_request() argument
680 WARN_ON(host->mrq != NULL); in via_sdc_request()
681 host->mrq = mrq; in via_sdc_request()
685 host->mrq->cmd->error = -ENOMEDIUM; in via_sdc_request()
688 via_sdc_send_command(host, mrq->cmd); in via_sdc_request()
944 if (sdhost->mrq) { in via_sdc_timeout()
947 sdhost->mrq->cmd->opcode); in via_sdc_timeout()
958 sdhost->mrq->cmd->error = -ETIMEDOUT; in via_sdc_timeout()
[all …]
H A Ddw_mmc.c111 struct mmc_request *mrq; in dw_mci_req_show() local
118 mrq = slot->mrq; in dw_mci_req_show()
120 if (mrq) { in dw_mci_req_show()
121 cmd = mrq->cmd; in dw_mci_req_show()
122 data = mrq->data; in dw_mci_req_show()
123 stop = mrq->stop; in dw_mci_req_show()
914 struct mmc_request *mrq) in dw_mci_pre_req() argument
917 struct mmc_data *data = mrq->data; in dw_mci_pre_req()
925 if (dw_mci_pre_dma_transfer(slot->host, mrq->data, in dw_mci_pre_req()
931 struct mmc_request *mrq, in dw_mci_post_req() argument
[all …]
H A Dtifm_sd.c613 static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq) in tifm_sd_request() argument
618 struct mmc_data *r_data = mrq->cmd->data; in tifm_sd_request()
622 mrq->cmd->error = -ENOMEDIUM; in tifm_sd_request()
629 mrq->cmd->error = -ETIMEDOUT; in tifm_sd_request()
637 if (mrq->data && !is_power_of_2(mrq->data->blksz)) in tifm_sd_request()
645 if ((r_data->flags & MMC_DATA_WRITE) && !mrq->stop) in tifm_sd_request()
669 mrq->cmd->error = -ENOMEM; in tifm_sd_request()
685 mrq->cmd->error = -ENOMEM; in tifm_sd_request()
714 host->req = mrq; in tifm_sd_request()
718 tifm_sd_exec(host, mrq->cmd); in tifm_sd_request()
[all …]
H A Dsdhci-pxav2.c123 static void pxav1_request_done(struct sdhci_host *host, struct mmc_request *mrq) in pxav1_request_done() argument
129 if (!mrq->cmd->error && in pxav1_request_done()
130 (mrq->cmd->opcode == SD_IO_RW_DIRECT || in pxav1_request_done()
131 mrq->cmd->opcode == SD_IO_RW_EXTENDED)) { in pxav1_request_done()
139 pxav2_host->sdio_mrq = mrq; in pxav1_request_done()
154 mmc_request_done(host->mmc, mrq); in pxav1_request_done()
H A Dmmci.c632 mmci_request_end(struct mmci_host *host, struct mmc_request *mrq) in mmci_request_end() argument
638 host->mrq = NULL; in mmci_request_end()
641 mmc_request_done(host->mmc, mrq); in mmci_request_end()
1208 static void mmci_pre_request(struct mmc_host *mmc, struct mmc_request *mrq) in mmci_pre_request() argument
1211 struct mmc_data *data = mrq->data; in mmci_pre_request()
1224 static void mmci_post_request(struct mmc_host *mmc, struct mmc_request *mrq, in mmci_post_request() argument
1228 struct mmc_data *data = mrq->data; in mmci_post_request()
1460 mmci_request_end(host, data->mrq); in mmci_data_irq()
1461 } else if (host->mrq->sbc && !data->error) { in mmci_data_irq()
1462 mmci_request_end(host, data->mrq); in mmci_data_irq()
[all …]
/linux/drivers/mmc/core/
H A Dmmc_test.c190 struct mmc_request *mrq, unsigned int blocks) in mmc_test_prepare_sbc() argument
194 if (!mrq->sbc || !mmc_host_cmd23(card->host) || in mmc_test_prepare_sbc()
195 !mmc_test_card_cmd23(card) || !mmc_op_multi(mrq->cmd->opcode) || in mmc_test_prepare_sbc()
197 mrq->sbc = NULL; in mmc_test_prepare_sbc()
201 mrq->sbc->opcode = MMC_SET_BLOCK_COUNT; in mmc_test_prepare_sbc()
202 mrq->sbc->arg = blocks; in mmc_test_prepare_sbc()
203 mrq->sbc->flags = MMC_RSP_R1 | MMC_CMD_AC; in mmc_test_prepare_sbc()
210 struct mmc_request *mrq, struct scatterlist *sg, unsigned sg_len, in mmc_test_prepare_mrq() argument
213 if (WARN_ON(!mrq || !mrq->cmd || !mrq->data || !mrq->stop)) in mmc_test_prepare_mrq()
217 mrq->cmd->opcode = write ? in mmc_test_prepare_mrq()
[all …]
H A Dsd_ops.c79 struct mmc_request mrq = {}; in mmc_wait_for_app_cmd() local
97 memset(&mrq, 0, sizeof(struct mmc_request)); in mmc_wait_for_app_cmd()
102 mrq.cmd = cmd; in mmc_wait_for_app_cmd()
105 mmc_wait_for_req(host, &mrq); in mmc_wait_for_app_cmd()
312 struct mmc_request mrq = {}; in mmc_app_send_scr() local
331 mrq.cmd = &cmd; in mmc_app_send_scr()
332 mrq.data = &data; in mmc_app_send_scr()
348 mmc_wait_for_req(card->host, &mrq); in mmc_app_send_scr()
383 struct mmc_request mrq = {}; in mmc_app_sd_status() local
394 mrq.cmd = &cmd; in mmc_app_sd_status()
[all …]
H A Dblock.c227 static void mmc_blk_hsq_req_done(struct mmc_request *mrq);
523 struct mmc_request mrq = {}; in __mmc_blk_ioctl_cmd() local
579 mrq.data = &data; in __mmc_blk_ioctl_cmd()
582 mrq.cmd = &cmd; in __mmc_blk_ioctl_cmd()
605 mrq.sbc = &sbc; in __mmc_blk_ioctl_cmd()
618 mmc_wait_for_req(card->host, &mrq); in __mmc_blk_ioctl_cmd()
1000 struct mmc_request mrq = {}; in mmc_sd_num_wr_blocks() local
1020 mrq.cmd = &cmd; in mmc_sd_num_wr_blocks()
1021 mrq.data = &data; in mmc_sd_num_wr_blocks()
1031 mmc_wait_for_req(card->host, &mrq); in mmc_sd_num_wr_blocks()
[all …]
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 Dsdio_ops.c117 struct mmc_request mrq = {}; in mmc_io_rw_extended() local
132 mrq.cmd = &cmd; in mmc_io_rw_extended()
133 mrq.data = &data; in mmc_io_rw_extended()
174 mmc_pre_req(card->host, &mrq); in mmc_io_rw_extended()
176 mmc_wait_for_req(card->host, &mrq); in mmc_io_rw_extended()
194 mmc_post_req(card->host, &mrq, err); in mmc_io_rw_extended()
H A Dqueue.c81 void mmc_cqe_recovery_notifier(struct mmc_request *mrq) in mmc_cqe_recovery_notifier() argument
83 struct mmc_queue_req *mqrq = container_of(mrq, struct mmc_queue_req, in mmc_cqe_recovery_notifier()
84 brq.mrq); in mmc_cqe_recovery_notifier()
98 struct mmc_request *mrq = &mqrq->brq.mrq; in mmc_cqe_timed_out() local
107 if (host->cqe_ops->cqe_timeout(host, mrq, &recovery_needed)) { in mmc_cqe_timed_out()
109 mmc_cqe_recovery_notifier(mrq); in mmc_cqe_timed_out()
/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
/linux/drivers/firmware/tegra/
H A Dbpmp.c234 unsigned int mrq, unsigned long flags, in __tegra_bpmp_channel_write() argument
237 tegra_bpmp_mb_write_field(&channel->ob, code, mrq); in __tegra_bpmp_channel_write()
247 tegra_bpmp_write_threaded(struct tegra_bpmp *bpmp, unsigned int mrq, in tegra_bpmp_write_threaded() argument
278 err = __tegra_bpmp_channel_write(channel, mrq, MSG_ACK | MSG_RING, in tegra_bpmp_write_threaded()
298 unsigned int mrq, unsigned long flags, in tegra_bpmp_channel_write() argument
307 return __tegra_bpmp_channel_write(channel, mrq, flags, data, size); in tegra_bpmp_channel_write()
336 err = tegra_bpmp_channel_write(channel, msg->mrq, MSG_ACK, in tegra_bpmp_transfer_atomic()
379 channel = tegra_bpmp_write_threaded(bpmp, msg->mrq, msg->tx.data, in tegra_bpmp_transfer()
400 unsigned int mrq) in tegra_bpmp_find_mrq() argument
405 if (entry->mrq == mrq) in tegra_bpmp_find_mrq()
[all …]
/linux/drivers/staging/greybus/
H A Dsdio.c23 struct mmc_request *mrq; member
367 if (single_op(data->mrq->cmd) && data->blocks > 1) { in gb_sdio_transfer()
411 struct mmc_data *data = host->mrq->data; in gb_sdio_command()
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()
518 mrq->cmd->error = -ESHUTDOWN; in gb_sdio_mrq_work()
522 if (mrq->sbc) { in gb_sdio_mrq_work()
523 ret = gb_sdio_command(host, mrq->sbc); in gb_sdio_mrq_work()
528 ret = gb_sdio_command(host, mrq->cmd); in gb_sdio_mrq_work()
[all …]
/linux/include/linux/mmc/
H A Dcore.h112 struct mmc_request *mrq; /* associated request */ member
142 struct mmc_request *mrq; /* associated request */ member
182 void mmc_wait_for_req(struct mmc_host *host, struct mmc_request *mrq);

123