/device/soc/rockchip/common/vendor/drivers/mmc/host/ |
H A D | rk_sdmmc_ops.c | 56 static void rk_emmc_prepare_mrq(struct mmc_request *mrq, struct scatterlist *sg, unsigned sg_len, unsigned dev_addr, in rk_emmc_prepare_mrq() argument 59 BUG_ON(!mrq || !mrq->cmd || !mrq->data || !mrq->stop); in rk_emmc_prepare_mrq() 62 mrq->cmd->opcode = write ? MMC_WRITE_MULTIPLE_BLOCK : MMC_READ_MULTIPLE_BLOCK; in rk_emmc_prepare_mrq() 64 mrq->cmd->opcode = write ? MMC_WRITE_BLOCK : MMC_READ_SINGLE_BLOCK; in rk_emmc_prepare_mrq() 67 mrq->cmd->arg = dev_addr; in rk_emmc_prepare_mrq() 69 mrq->cmd->arg <<= 0x09; in rk_emmc_prepare_mrq() 72 mrq in rk_emmc_prepare_mrq() 137 struct mmc_request mrq = {0}; rk_emmc_transfer() local [all...] |
H A D | rk_sdmmc.h | 276 * @mrq: mmc_request currently being processed or waiting to be 298 struct mmc_request *mrq; member
|
/device/soc/rockchip/rk3588/kernel/drivers/mmc/host/ |
H A D | rk_sdmmc_ops.c | 58 static void rk_emmc_prepare_mrq(struct mmc_request *mrq, struct scatterlist *sg, in rk_emmc_prepare_mrq() argument 61 BUG_ON(!mrq || !mrq->cmd || !mrq->data || !mrq->stop); in rk_emmc_prepare_mrq() 64 mrq->cmd->opcode = write ? in rk_emmc_prepare_mrq() 67 mrq->cmd->opcode = write ? in rk_emmc_prepare_mrq() 71 mrq->cmd->arg = dev_addr; in rk_emmc_prepare_mrq() 73 mrq->cmd->arg <<= 9; in rk_emmc_prepare_mrq() 75 mrq in rk_emmc_prepare_mrq() 139 struct mmc_request mrq = {0}; rk_emmc_transfer() local [all...] |
H A D | cqhci-core.c | 27 struct mmc_request *mrq; member 414 static void cqhci_prep_task_desc(struct mmc_request *mrq, in cqhci_prep_task_desc() argument 418 u32 req_flags = mrq->data->flags; in cqhci_prep_task_desc() 431 CQHCI_BLK_COUNT(mrq->data->blocks) | in cqhci_prep_task_desc() 432 CQHCI_BLK_ADDR((u64)mrq->data->blk_addr); in cqhci_prep_task_desc() 437 u64 desc1 = cqhci_crypto_prep_task_desc(mrq); in cqhci_prep_task_desc() 442 mmc_hostname(mrq->host), mrq->tag, desc1, desc0); in cqhci_prep_task_desc() 445 mmc_hostname(mrq->host), mrq in cqhci_prep_task_desc() 449 cqhci_dma_map(struct mmc_host *host, struct mmc_request *mrq) cqhci_dma_map() argument 491 cqhci_prep_tran_desc(struct mmc_request *mrq, struct cqhci_host *cq_host, int tag) cqhci_prep_tran_desc() argument 524 cqhci_prep_dcmd_desc(struct mmc_host *mmc, struct mmc_request *mrq) cqhci_prep_dcmd_desc() argument 568 cqhci_post_req(struct mmc_host *host, struct mmc_request *mrq) cqhci_post_req() argument 579 cqhci_tag(struct mmc_request *mrq) cqhci_tag() argument 584 cqhci_request(struct mmc_host *mmc, struct mmc_request *mrq) cqhci_request() argument 654 cqhci_recovery_needed(struct mmc_host *mmc, struct mmc_request *mrq, bool notify) cqhci_recovery_needed() argument 774 struct mmc_request *mrq = slot->mrq; cqhci_finish_mrq() local 878 cqhci_timeout(struct mmc_host *mmc, struct mmc_request *mrq, bool *recovery_needed) cqhci_timeout() argument 1011 struct mmc_request *mrq = slot->mrq; cqhci_recover_mrq() local [all...] |
H 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
|
H A D | rk_sdmmc.h | 307 * @mrq: mmc_request currently being processed or waiting to be 329 struct mmc_request *mrq; member
|
/device/soc/rockchip/common/sdk_linux/drivers/mmc/core/ |
H A D | core.h | 101 void mmc_wait_for_req_done(struct mmc_host *host, struct mmc_request *mrq); 102 bool mmc_is_req_done(struct mmc_host *host, struct mmc_request *mrq); 104 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); 140 * @mrq: MMC request to prepare for 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() 156 * @mrq: MMC request to post process for 162 static inline void mmc_post_req(struct mmc_host *host, struct mmc_request *mrq, in argument [all...] |
H A D | block.c | 193 static void mmc_blk_hsq_req_done(struct mmc_request *mrq);
463 struct mmc_request mrq = {};
in mmc_blk_ioctl_cmd_ext() local 519 * mrq.data = NULL;
in mmc_blk_ioctl_cmd_ext() 525 mrq.data = &data;
in mmc_blk_ioctl_cmd_ext() 528 mrq.cmd = &cmd;
in mmc_blk_ioctl_cmd_ext() 551 mrq.sbc = &sbc;
in mmc_blk_ioctl_cmd_ext() 558 mmc_wait_for_req(card->host, &mrq);
in mmc_blk_ioctl_cmd_ext() 877 struct mmc_request mrq = {};
in mmc_sd_num_wr_blocks() local 908 mrq.cmd = &cmd;
in mmc_sd_num_wr_blocks() 909 mrq in mmc_sd_num_wr_blocks() 1394 struct mmc_request *mrq = &mqrq->brq.mrq; mmc_blk_cqe_complete_rq() local 1464 mmc_blk_cqe_req_done(struct mmc_request *mrq) mmc_blk_cqe_req_done() argument 1482 mmc_blk_cqe_start_req(struct mmc_host *host, struct mmc_request *mrq) mmc_blk_cqe_start_req() argument 1505 struct mmc_request *mrq = mmc_blk_cqe_prep_dcmd(mqrq, req); mmc_blk_cqe_issue_flush() local 1651 struct mmc_request *mrq = &mqrq->brq.mrq; mmc_blk_read_single() local 1928 mmc_blk_hsq_req_done(struct mmc_request *mrq) mmc_blk_hsq_req_done() argument 2009 struct mmc_request *mrq = &mqrq->brq.mrq; mmc_blk_mq_post_req() local 2079 mmc_blk_mq_req_done(struct mmc_request *mrq) mmc_blk_mq_req_done() argument [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/mmc/host/ |
H A D | sdhci-of-dwcmshc.c | 90 static void dwcmshc_check_auto_cmd23(struct mmc_host *mmc, struct mmc_request *mrq) in dwcmshc_check_auto_cmd23() argument 99 if (mrq->sbc && (mrq->sbc->arg & SDHCI_DWCMSHC_ARG2_STUFF)) { in dwcmshc_check_auto_cmd23() 106 static void dwcmshc_request(struct mmc_host *mmc, struct mmc_request *mrq) in dwcmshc_request() argument 108 dwcmshc_check_auto_cmd23(mmc, mrq); in dwcmshc_request() 110 sdhci_request(mmc, mrq); in dwcmshc_request()
|
H A D | dw_mmc.h | 60 * @mrq: The request currently being processed on @slot,
127 * @slot, @mrq and @state. These must always be updated
129 * The @mrq field of struct dw_mci_slot is also protected by @lock,
162 struct mmc_request *mrq;
member 495 * @mrq: mmc_request currently being processed or waiting to be
512 struct mmc_request *mrq;
member
|
H A D | rk_sdmmc.h | 276 * @mrq: mmc_request currently being processed or waiting to be 298 struct mmc_request *mrq; member
|
/device/soc/rockchip/common/sdk_linux/include/linux/mmc/ |
H A D | host.h | 183 int (*cqe_request)(struct mmc_host *host, struct mmc_request *mrq); 185 void (*cqe_post_req)(struct mmc_host *host, struct mmc_request *mrq); 202 bool (*cqe_timeout)(struct mmc_host *host, struct mmc_request *mrq, bool *recovery_needed); 219 struct mmc_request *mrq; member 497 void mmc_command_done(struct mmc_host *host, struct mmc_request *mrq); 499 void mmc_cqe_request_done(struct mmc_host *host, struct mmc_request *mrq);
|
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/ |
H A D | oal_sdio_host.c | 1491 struct mmc_request mrq = { 0 }; in oal_mmc_io_rw_scat_extended() local 1531 mrq.cmd = &cmd; in oal_mmc_io_rw_scat_extended() 1532 mrq.data = &data; in oal_mmc_io_rw_scat_extended() 1559 mmc_wait_for_req(card->host, &mrq); in oal_mmc_io_rw_scat_extended()
|