Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/include/trace/events/
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->cmd ? mrq->cmd->retries : 0;
52 __entry->stop_opcode = mrq->stop ? mrq->stop->opcode : 0;
53 __entry->stop_arg = mrq->stop ? mrq->stop->arg : 0;
54 __entry->stop_flags = mrq->stop ? mrq->stop->flags : 0;
[all …]
/kernel/linux/linux-5.10/drivers/mmc/core/
Dcore.c82 struct mmc_request *mrq) in mmc_should_fail_request() argument
84 struct mmc_command *cmd = mrq->cmd; in mmc_should_fail_request()
85 struct mmc_data *data = mrq->data; in mmc_should_fail_request()
106 struct mmc_request *mrq) in mmc_should_fail_request() argument
112 static inline void mmc_complete_cmd(struct mmc_request *mrq) in mmc_complete_cmd() argument
114 if (mrq->cap_cmd_during_tfr && !completion_done(&mrq->cmd_completion)) in mmc_complete_cmd()
115 complete_all(&mrq->cmd_completion); in mmc_complete_cmd()
118 void mmc_command_done(struct mmc_host *host, struct mmc_request *mrq) in mmc_command_done() argument
120 if (!mrq->cap_cmd_during_tfr) in mmc_command_done()
123 mmc_complete_cmd(mrq); in mmc_command_done()
[all …]
Dmmc_test.c191 struct mmc_request *mrq, unsigned int blocks) in mmc_test_prepare_sbc() argument
195 if (!mrq->sbc || !mmc_host_cmd23(card->host) || in mmc_test_prepare_sbc()
196 !mmc_test_card_cmd23(card) || !mmc_op_multi(mrq->cmd->opcode) || in mmc_test_prepare_sbc()
198 mrq->sbc = NULL; in mmc_test_prepare_sbc()
202 mrq->sbc->opcode = MMC_SET_BLOCK_COUNT; in mmc_test_prepare_sbc()
203 mrq->sbc->arg = blocks; in mmc_test_prepare_sbc()
204 mrq->sbc->flags = MMC_RSP_R1 | MMC_CMD_AC; in mmc_test_prepare_sbc()
211 struct mmc_request *mrq, struct scatterlist *sg, unsigned sg_len, in mmc_test_prepare_mrq() argument
214 if (WARN_ON(!mrq || !mrq->cmd || !mrq->data || !mrq->stop)) in mmc_test_prepare_mrq()
218 mrq->cmd->opcode = write ? in mmc_test_prepare_mrq()
[all …]
Dsd_ops.c54 struct mmc_request mrq = {}; in mmc_wait_for_app_cmd() local
72 memset(&mrq, 0, sizeof(struct mmc_request)); in mmc_wait_for_app_cmd()
77 mrq.cmd = cmd; in mmc_wait_for_app_cmd()
80 mmc_wait_for_req(host, &mrq); in mmc_wait_for_app_cmd()
213 struct mmc_request mrq = {}; in mmc_app_send_scr() local
232 mrq.cmd = &cmd; in mmc_app_send_scr()
233 mrq.data = &data; in mmc_app_send_scr()
249 mmc_wait_for_req(card->host, &mrq); in mmc_app_send_scr()
267 struct mmc_request mrq = {}; in mmc_sd_switch() local
277 mrq.cmd = &cmd; in mmc_sd_switch()
[all …]
Dcore.h98 void mmc_wait_for_req_done(struct mmc_host *host, struct mmc_request *mrq);
99 bool mmc_is_req_done(struct mmc_host *host, struct mmc_request *mrq);
101 int mmc_start_request(struct mmc_host *host, struct mmc_request *mrq);
133 int mmc_cqe_start_req(struct mmc_host *host, struct mmc_request *mrq);
134 void mmc_cqe_post_req(struct mmc_host *host, struct mmc_request *mrq);
146 static inline void mmc_pre_req(struct mmc_host *host, struct mmc_request *mrq) in mmc_pre_req() argument
149 host->ops->pre_req(host, mrq); in mmc_pre_req()
161 static inline void mmc_post_req(struct mmc_host *host, struct mmc_request *mrq, in mmc_post_req() argument
165 host->ops->post_req(host, mrq, err); in mmc_post_req()
Dblock.c174 static void mmc_blk_hsq_req_done(struct mmc_request *mrq);
453 struct mmc_request mrq = {}; in __mmc_blk_ioctl_cmd() local
512 mrq.data = &data; in __mmc_blk_ioctl_cmd()
515 mrq.cmd = &cmd; in __mmc_blk_ioctl_cmd()
536 mrq.sbc = &sbc; in __mmc_blk_ioctl_cmd()
543 mmc_wait_for_req(card->host, &mrq); in __mmc_blk_ioctl_cmd()
870 struct mmc_request mrq = {}; in mmc_sd_num_wr_blocks() local
899 mrq.cmd = &cmd; in mmc_sd_num_wr_blocks()
900 mrq.data = &data; in mmc_sd_num_wr_blocks()
908 mmc_wait_for_req(card->host, &mrq); in mmc_sd_num_wr_blocks()
[all …]
/kernel/linux/linux-5.10/drivers/mmc/host/
Dusdhi6rol0.c160 struct mmc_request *mrq; member
281 int opc = host->mrq ? host->mrq->cmd->opcode : -1; in usdhi6_error_code()
299 err, host->wait, host->mrq ? host->mrq->cmd->opcode : -1); in usdhi6_error_code()
317 struct mmc_data *data = host->mrq->data; in usdhi6_blk_bounce()
321 __func__, host->mrq->cmd->opcode, data->sg_len, in usdhi6_blk_bounce()
344 struct mmc_request *mrq = host->mrq; in usdhi6_sg_prep() local
345 struct mmc_data *data = mrq->data; in usdhi6_sg_prep()
357 struct mmc_data *data = host->mrq->data; in usdhi6_sg_map()
389 sg->offset, host->mrq->cmd->opcode, host->mrq); in usdhi6_sg_map()
397 struct mmc_data *data = host->mrq->data; in usdhi6_sg_unmap()
[all …]
Dmmc_hsq.c24 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()
55 ret = mmc->ops->request_atomic(mmc, hsq->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()
153 bool mmc_hsq_finalize_request(struct mmc_host *mmc, struct mmc_request *mrq) in mmc_hsq_finalize_request() argument
160 if (!hsq->enabled || !hsq->mrq || hsq->mrq != mrq) { in mmc_hsq_finalize_request()
[all …]
Dcqhci.c26 struct mmc_request *mrq; member
413 static void cqhci_prep_task_desc(struct mmc_request *mrq, in cqhci_prep_task_desc() argument
416 u32 req_flags = mrq->data->flags; in cqhci_prep_task_desc()
428 CQHCI_BLK_COUNT(mrq->data->blocks) | in cqhci_prep_task_desc()
429 CQHCI_BLK_ADDR((u64)mrq->data->blk_addr); in cqhci_prep_task_desc()
432 mmc_hostname(mrq->host), mrq->tag, (unsigned long long)*data); in cqhci_prep_task_desc()
435 static int cqhci_dma_map(struct mmc_host *host, struct mmc_request *mrq) in cqhci_dma_map() argument
438 struct mmc_data *data = mrq->data; in cqhci_dma_map()
477 static int cqhci_prep_tran_desc(struct mmc_request *mrq, in cqhci_prep_tran_desc() argument
480 struct mmc_data *data = mrq->data; in cqhci_prep_tran_desc()
[all …]
Dsh_mmcif.c222 struct mmc_request *mrq; member
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()
289 struct mmc_data *data = host->mrq->data; in sh_mmcif_start_dma_rx()
339 struct mmc_data *data = host->mrq->data; in sh_mmcif_start_dma_tx()
604 struct mmc_data *data = host->mrq->data; in sh_mmcif_next_block()
623 struct mmc_request *mrq) in sh_mmcif_single_read() argument
637 struct mmc_data *data = host->mrq->data; in sh_mmcif_read_block()
658 struct mmc_request *mrq) in sh_mmcif_multi_read() argument
660 struct mmc_data *data = mrq->data; in sh_mmcif_multi_read()
[all …]
Dtmio_mmc_core.c190 struct mmc_request *mrq; in tmio_mmc_reset_work() local
194 mrq = host->mrq; in tmio_mmc_reset_work()
201 if (IS_ERR_OR_NULL(mrq) || in tmio_mmc_reset_work()
210 mrq->cmd->opcode); in tmio_mmc_reset_work()
217 mrq->cmd->error = -ETIMEDOUT; in tmio_mmc_reset_work()
227 host->mrq = NULL; in tmio_mmc_reset_work()
228 mmc_request_done(host->mmc, mrq); in tmio_mmc_reset_work()
282 (cmd->opcode == SD_IO_RW_EXTENDED || host->mrq->sbc)) in tmio_mmc_start_command()
449 host->mrq); in tmio_mmc_do_data_irq()
452 host->mrq); in tmio_mmc_do_data_irq()
[all …]
Dbcm2835.c167 struct mmc_request *mrq; /* Current request */ member
209 struct mmc_request *mrq = host->mrq; in bcm2835_dumpregs() local
212 if (mrq) { in bcm2835_dumpregs()
213 bcm2835_dumpcmd(host, mrq->sbc, "sbc"); in bcm2835_dumpregs()
214 bcm2835_dumpcmd(host, mrq->cmd, "cmd"); in bcm2835_dumpregs()
215 if (mrq->data) { in bcm2835_dumpregs()
217 mrq->data->blocks, in bcm2835_dumpregs()
218 mrq->data->blksz, in bcm2835_dumpregs()
219 mrq->data->error); in bcm2835_dumpregs()
221 bcm2835_dumpcmd(host, mrq->stop, "stop"); in bcm2835_dumpregs()
[all …]
Dcavium.c626 static u64 prepare_ext_dma(struct mmc_host *mmc, struct mmc_request *mrq) in prepare_ext_dma() argument
635 (mrq->data->flags & MMC_DATA_WRITE) ? 1 : 0) | in prepare_ext_dma()
636 FIELD_PREP(MIO_EMM_DMA_BLOCK_CNT, mrq->data->blocks) | in prepare_ext_dma()
637 FIELD_PREP(MIO_EMM_DMA_CARD_ADDR, mrq->cmd->arg); in prepare_ext_dma()
646 mrq->data->blocks, (emm_dma & MIO_EMM_DMA_MULTI) ? 1 : 0); in prepare_ext_dma()
651 struct mmc_request *mrq) in cvm_mmc_dma_request() argument
658 if (!mrq->data || !mrq->data->sg || !mrq->data->sg_len || in cvm_mmc_dma_request()
659 !mrq->stop || mrq->stop->opcode != MMC_STOP_TRANSMISSION) { in cvm_mmc_dma_request()
667 data = mrq->data; in cvm_mmc_dma_request()
674 host->current_req = mrq; in cvm_mmc_dma_request()
[all …]
Drtsx_pci_sdmmc.c28 struct mmc_request *mrq; member
181 static void sdmmc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq) in sdmmc_pre_req() argument
184 struct mmc_data *data = mrq->data; in sdmmc_pre_req()
197 static void sdmmc_post_req(struct mmc_host *mmc, struct mmc_request *mrq, in sdmmc_post_req() argument
202 struct mmc_data *data = mrq->data; in sdmmc_post_req()
428 struct mmc_request *mrq) in sd_read_long_data() argument
433 struct mmc_command *cmd = mrq->cmd; in sd_read_long_data()
434 struct mmc_data *data = mrq->data; in sd_read_long_data()
486 struct mmc_request *mrq) in sd_write_long_data() argument
491 struct mmc_command *cmd = mrq->cmd; in sd_write_long_data()
[all …]
Dmtk-sd.c404 struct mmc_request *mrq; member
626 struct mmc_request *mrq, struct mmc_command *cmd);
711 static void msdc_prepare_data(struct msdc_host *host, struct mmc_request *mrq) in msdc_prepare_data() argument
713 struct mmc_data *data = mrq->data; in msdc_prepare_data()
722 static void msdc_unprepare_data(struct msdc_host *host, struct mmc_request *mrq) in msdc_unprepare_data() argument
724 struct mmc_data *data = mrq->data; in msdc_unprepare_data()
943 struct mmc_request *mrq, struct mmc_command *cmd) in msdc_cmd_find_resp() argument
971 struct mmc_request *mrq, struct mmc_command *cmd) in msdc_cmd_prepare_raw_cmd() argument
979 u32 resp = msdc_cmd_find_resp(host, mrq, cmd); in msdc_cmd_prepare_raw_cmd()
1000 if (mmc_card_mmc(mmc->card) && mrq->sbc && in msdc_cmd_prepare_raw_cmd()
[all …]
Dsunxi-mmc.c293 struct mmc_request *mrq; member
480 struct mmc_command *cmd = host->mrq->cmd; in sunxi_mmc_dump_errinfo()
481 struct mmc_data *data = host->mrq->data; in sunxi_mmc_dump_errinfo()
508 struct mmc_request *mrq = host->mrq; in sunxi_mmc_finalize_request() local
509 struct mmc_data *data = mrq->data; in sunxi_mmc_finalize_request()
517 mrq->cmd->error = -ETIMEDOUT; in sunxi_mmc_finalize_request()
521 host->manual_stop_mrq = mrq; in sunxi_mmc_finalize_request()
524 if (mrq->stop) in sunxi_mmc_finalize_request()
525 mrq->stop->error = -ETIMEDOUT; in sunxi_mmc_finalize_request()
527 if (mrq->cmd->flags & MMC_RSP_136) { in sunxi_mmc_finalize_request()
[all …]
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 …]
Datmel-mci.c318 struct mmc_request *mrq; member
382 struct mmc_request *mrq; member
412 struct mmc_request *mrq; in atmci_req_show() local
419 mrq = slot->mrq; in atmci_req_show()
421 if (mrq) { in atmci_req_show()
422 cmd = mrq->cmd; in atmci_req_show()
423 data = mrq->data; in atmci_req_show()
424 stop = mrq->stop; in atmci_req_show()
698 if (host->mrq->cmd->data) { in atmci_timeout_timer()
699 host->mrq->cmd->data->error = -ETIMEDOUT; in atmci_timeout_timer()
[all …]
Dmeson-mx-sdio.c120 struct mmc_request *mrq; member
147 return cmd->mrq->cmd; in meson_mx_mmc_get_next_cmd()
149 (!cmd->mrq->sbc || cmd->error || cmd->data->error)) 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()
310 static int meson_mx_mmc_map_dma(struct mmc_host *mmc, struct mmc_request *mrq) in meson_mx_mmc_map_dma() argument
312 struct mmc_data *data = mrq->data; in meson_mx_mmc_map_dma()
[all …]
Dsdhci.c464 static void sdhci_mod_timer(struct sdhci_host *host, struct mmc_request *mrq, in sdhci_mod_timer() argument
467 if (sdhci_data_line_cmd(mrq->cmd)) in sdhci_mod_timer()
473 static void sdhci_del_timer(struct sdhci_host *host, struct mmc_request *mrq) in sdhci_del_timer() argument
475 if (sdhci_data_line_cmd(mrq->cmd)) in sdhci_del_timer()
1370 struct mmc_request *mrq) in sdhci_auto_cmd12() argument
1372 return !mrq->sbc && (host->flags & SDHCI_AUTO_CMD12) && in sdhci_auto_cmd12()
1373 !mrq->cap_cmd_during_tfr; in sdhci_auto_cmd12()
1377 struct mmc_request *mrq) in sdhci_auto_cmd23() argument
1379 return mrq->sbc && (host->flags & SDHCI_AUTO_CMD23); in sdhci_auto_cmd23()
1383 struct mmc_request *mrq) in sdhci_manual_cmd23() argument
[all …]
Ds3cmci.c319 if ((!host->mrq) || (!host->mrq->data)) in get_data_buffer()
322 if (host->pio_sgptr >= host->mrq->data->sg_len) { in get_data_buffer()
324 host->pio_sgptr, host->mrq->data->sg_len); in get_data_buffer()
327 sg = &host->mrq->data->sg[host->pio_sgptr]; in get_data_buffer()
335 host->pio_sgptr, host->mrq->data->sg_len); in get_data_buffer()
563 if (host->mrq->data) in pio_tasklet()
564 host->mrq->data->error = -EINVAL; in pio_tasklet()
635 if (!host->mrq) { in s3cmci_irq()
641 cmd = host->cmd_is_stop ? host->mrq->stop : host->mrq->cmd; in s3cmci_irq()
688 if (host->mrq->cmd->flags & MMC_RSP_136) { in s3cmci_irq()
[all …]
/kernel/linux/linux-5.10/drivers/memstick/core/
Dmemstick.c223 int memstick_next_req(struct memstick_host *host, struct memstick_request **mrq) in memstick_next_req() argument
227 if ((*mrq) && (*mrq)->error && host->retries) { in memstick_next_req()
228 (*mrq)->error = rc; in memstick_next_req()
234 rc = host->card->next_request(host->card, mrq); in memstick_next_req()
239 *mrq = NULL; in memstick_next_req()
265 void memstick_init_req_sg(struct memstick_request *mrq, unsigned char tpc, in memstick_init_req_sg() argument
268 mrq->tpc = tpc; in memstick_init_req_sg()
270 mrq->data_dir = WRITE; in memstick_init_req_sg()
272 mrq->data_dir = READ; in memstick_init_req_sg()
274 mrq->sg = *sg; in memstick_init_req_sg()
[all …]
/kernel/linux/linux-5.10/include/soc/tegra/
Dbpmp.h48 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
/kernel/linux/linux-5.10/drivers/firmware/tegra/
Dbpmp.c241 unsigned int mrq, unsigned long flags, in __tegra_bpmp_channel_write() argument
244 channel->ob->code = mrq; in __tegra_bpmp_channel_write()
254 tegra_bpmp_write_threaded(struct tegra_bpmp *bpmp, unsigned int mrq, in tegra_bpmp_write_threaded() argument
285 err = __tegra_bpmp_channel_write(channel, mrq, MSG_ACK | MSG_RING, in tegra_bpmp_write_threaded()
305 unsigned int mrq, unsigned long flags, in tegra_bpmp_channel_write() argument
314 return __tegra_bpmp_channel_write(channel, mrq, flags, data, size); in tegra_bpmp_channel_write()
333 err = tegra_bpmp_channel_write(channel, msg->mrq, MSG_ACK, in tegra_bpmp_transfer_atomic()
368 channel = tegra_bpmp_write_threaded(bpmp, msg->mrq, msg->tx.data, in tegra_bpmp_transfer()
389 unsigned int mrq) in tegra_bpmp_find_mrq() argument
394 if (entry->mrq == mrq) in tegra_bpmp_find_mrq()
[all …]
/kernel/linux/linux-5.10/drivers/staging/greybus/
Dsdio.c23 struct mmc_request *mrq; member
368 if (single_op(data->mrq->cmd) && data->blocks > 1) { in gb_sdio_transfer()
412 struct mmc_data *data = host->mrq->data; in gb_sdio_command()
500 struct mmc_request *mrq; in gb_sdio_mrq_work() local
510 mrq = host->mrq; in gb_sdio_mrq_work()
511 if (!mrq) { in gb_sdio_mrq_work()
519 mrq->cmd->error = -ESHUTDOWN; in gb_sdio_mrq_work()
523 if (mrq->sbc) { in gb_sdio_mrq_work()
524 ret = gb_sdio_command(host, mrq->sbc); in gb_sdio_mrq_work()
529 ret = gb_sdio_command(host, mrq->cmd); in gb_sdio_mrq_work()
[all …]

1234