/linux-6.12.1/drivers/mmc/host/ |
D | cqhci-core.c | 36 static bool cqhci_halted(struct cqhci_host *cq_host) in cqhci_halted() argument 38 return cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT; in cqhci_halted() 41 static inline u8 *get_desc(struct cqhci_host *cq_host, u8 tag) in get_desc() argument 43 return cq_host->desc_base + (tag * cq_host->slot_sz); in get_desc() 46 static inline u8 *get_link_desc(struct cqhci_host *cq_host, u8 tag) in get_link_desc() argument 48 u8 *desc = get_desc(cq_host, tag); in get_link_desc() 50 return desc + cq_host->task_desc_len; in get_link_desc() 53 static inline size_t get_trans_desc_offset(struct cqhci_host *cq_host, u8 tag) in get_trans_desc_offset() argument 55 return cq_host->trans_desc_len * cq_host->mmc->max_segs * tag; in get_trans_desc_offset() 58 static inline dma_addr_t get_trans_desc_dma(struct cqhci_host *cq_host, u8 tag) in get_trans_desc_dma() argument [all …]
|
D | cqhci-crypto.c | 34 static int cqhci_crypto_program_key(struct cqhci_host *cq_host, in cqhci_crypto_program_key() argument 38 u32 slot_offset = cq_host->crypto_cfg_register + slot * sizeof(*cfg); in cqhci_crypto_program_key() 41 if (cq_host->ops->program_key) in cqhci_crypto_program_key() 42 return cq_host->ops->program_key(cq_host, cfg, slot); in cqhci_crypto_program_key() 45 cqhci_writel(cq_host, 0, slot_offset + 16 * sizeof(cfg->reg_val[0])); in cqhci_crypto_program_key() 49 cqhci_writel(cq_host, le32_to_cpu(cfg->reg_val[i]), in cqhci_crypto_program_key() 53 cqhci_writel(cq_host, le32_to_cpu(cfg->reg_val[17]), in cqhci_crypto_program_key() 56 cqhci_writel(cq_host, le32_to_cpu(cfg->reg_val[16]), in cqhci_crypto_program_key() 66 struct cqhci_host *cq_host = cqhci_host_from_crypto_profile(profile); in cqhci_crypto_keyslot_program() local 68 cq_host->crypto_cap_array; in cqhci_crypto_keyslot_program() [all …]
|
D | sdhci-tegra.c | 1184 static void tegra_cqhci_writel(struct cqhci_host *cq_host, u32 val, int reg) in tegra_cqhci_writel() argument 1186 struct mmc_host *mmc = cq_host->mmc; in tegra_cqhci_writel() 1201 cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT) { in tegra_cqhci_writel() 1204 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel() 1208 ctrl = cqhci_readl(cq_host, CQHCI_CTL); in tegra_cqhci_writel() 1217 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel() 1219 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel() 1237 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_tegra_cqe_enable() local 1247 if (!cq_host->activated) { in sdhci_tegra_cqe_enable() 1248 val = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_tegra_cqe_enable() [all …]
|
D | sdhci-brcmstb.c | 322 struct cqhci_host *cq_host; in sdhci_brcmstb_add_host() local 335 cq_host = devm_kzalloc(mmc_dev(host->mmc), in sdhci_brcmstb_add_host() 336 sizeof(*cq_host), GFP_KERNEL); in sdhci_brcmstb_add_host() 337 if (!cq_host) { in sdhci_brcmstb_add_host() 342 cq_host->mmio = host->ioaddr + SDHCI_ARASAN_CQE_BASE_ADDR; in sdhci_brcmstb_add_host() 343 cq_host->ops = &sdhci_brcmstb_cqhci_ops; in sdhci_brcmstb_add_host() 348 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_brcmstb_add_host() 351 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_brcmstb_add_host()
|
D | sdhci-pci-gli.c | 1244 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_gl9763e_cqe_pre_enable() local 1247 value = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_gl9763e_cqe_pre_enable() 1249 cqhci_writel(cq_host, value, CQHCI_CFG); in sdhci_gl9763e_cqe_pre_enable() 1276 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_gl9763e_cqe_post_disable() local 1279 value = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_gl9763e_cqe_post_disable() 1281 cqhci_writel(cq_host, value, CQHCI_CFG); in sdhci_gl9763e_cqe_post_disable() 1297 struct cqhci_host *cq_host; in gl9763e_add_host() local 1305 cq_host = devm_kzalloc(dev, sizeof(*cq_host), GFP_KERNEL); in gl9763e_add_host() 1306 if (!cq_host) { in gl9763e_add_host() 1311 cq_host->mmio = host->ioaddr + SDHCI_GLI_9763E_CQE_BASE_ADDR; in gl9763e_add_host() [all …]
|
D | sdhci-esdhc-imx.c | 1437 struct cqhci_host *cq_host = host->mmc->cqe_private; in sdhci_esdhc_imx_hwinit() local 1545 if (cq_host) { in sdhci_esdhc_imx_hwinit() 1546 tmp = cqhci_readl(cq_host, CQHCI_IS); in sdhci_esdhc_imx_hwinit() 1547 cqhci_writel(cq_host, tmp, CQHCI_IS); in sdhci_esdhc_imx_hwinit() 1548 cqhci_writel(cq_host, CQHCI_HALT, CQHCI_CTL); in sdhci_esdhc_imx_hwinit() 1556 struct cqhci_host *cq_host = mmc->cqe_private; in esdhc_cqe_enable() local 1595 cqhci_writel(cq_host, 0, CQHCI_CTL); in esdhc_cqe_enable() 1596 if (cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT) in esdhc_cqe_enable() 1675 struct cqhci_host *cq_host; in sdhci_esdhc_imx_probe() local 1783 cq_host = devm_kzalloc(&pdev->dev, sizeof(*cq_host), GFP_KERNEL); in sdhci_esdhc_imx_probe() [all …]
|
D | cqhci.h | 293 int (*program_key)(struct cqhci_host *cq_host, 296 void (*set_tran_desc)(struct cqhci_host *cq_host, u8 **desc, 321 int cqhci_init(struct cqhci_host *cq_host, struct mmc_host *mmc, bool dma64);
|
D | sdhci_am654.c | 674 struct cqhci_host *cq_host; in sdhci_am654_cqe_add_host() local 676 cq_host = devm_kzalloc(mmc_dev(host->mmc), sizeof(struct cqhci_host), in sdhci_am654_cqe_add_host() 678 if (!cq_host) in sdhci_am654_cqe_add_host() 681 cq_host->mmio = host->ioaddr + SDHCI_AM654_CQE_BASE_ADDR; in sdhci_am654_cqe_add_host() 682 cq_host->quirks |= CQHCI_QUIRK_SHORT_TXFR_DESC_SZ; in sdhci_am654_cqe_add_host() 683 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_am654_cqe_add_host() 684 cq_host->ops = &sdhci_am654_cqhci_ops; in sdhci_am654_cqe_add_host() 688 return cqhci_init(cq_host, host->mmc, 1); in sdhci_am654_cqe_add_host()
|
D | sdhci-of-dwcmshc.c | 580 static void dwcmshc_set_tran_desc(struct cqhci_host *cq_host, u8 **desc, in dwcmshc_set_tran_desc() argument 596 *desc += cq_host->trans_desc_len; in dwcmshc_set_tran_desc() 1256 struct cqhci_host *cq_host; in dwcmshc_cqhci_init() local 1264 cq_host = devm_kzalloc(&pdev->dev, sizeof(*cq_host), GFP_KERNEL); in dwcmshc_cqhci_init() 1265 if (!cq_host) { in dwcmshc_cqhci_init() 1283 cq_host->mmio = host->ioaddr + priv->vendor_specific_area2; in dwcmshc_cqhci_init() 1284 cq_host->ops = &dwcmshc_cqhci_ops; in dwcmshc_cqhci_init() 1290 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in dwcmshc_cqhci_init() 1292 err = cqhci_init(cq_host, host->mmc, dma64); in dwcmshc_cqhci_init() 1308 devm_kfree(&pdev->dev, cq_host); in dwcmshc_cqhci_init()
|
D | sdhci-msm.c | 1811 struct cqhci_host *cq_host) in sdhci_msm_ice_init() argument 1817 if (!(cqhci_readl(cq_host, CQHCI_CAP) & CQHCI_CAP_CS)) in sdhci_msm_ice_init() 1861 static int sdhci_msm_program_key(struct cqhci_host *cq_host, in sdhci_msm_program_key() argument 1865 struct sdhci_host *host = mmc_priv(cq_host->mmc); in sdhci_msm_program_key() 1871 cap = cq_host->crypto_cap_array[cfg->crypto_cap_idx]; in sdhci_msm_program_key() 1889 struct cqhci_host *cq_host) in sdhci_msm_ice_init() argument 2000 struct cqhci_host *cq_host; in sdhci_msm_cqe_add_host() local 2016 cq_host = cqhci_pltfm_init(pdev); in sdhci_msm_cqe_add_host() 2017 if (IS_ERR(cq_host)) { in sdhci_msm_cqe_add_host() 2018 ret = PTR_ERR(cq_host); in sdhci_msm_cqe_add_host() [all …]
|
D | sdhci-of-arasan.c | 1794 struct cqhci_host *cq_host; in sdhci_arasan_add_host() local 1805 cq_host = devm_kzalloc(host->mmc->parent, in sdhci_arasan_add_host() 1806 sizeof(*cq_host), GFP_KERNEL); in sdhci_arasan_add_host() 1807 if (!cq_host) { in sdhci_arasan_add_host() 1812 cq_host->mmio = host->ioaddr + SDHCI_ARASAN_CQE_BASE_ADDR; in sdhci_arasan_add_host() 1813 cq_host->ops = &sdhci_arasan_cqhci_ops; in sdhci_arasan_add_host() 1817 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_arasan_add_host() 1819 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_arasan_add_host()
|
D | mtk-sd.c | 479 struct cqhci_host *cq_host; member 2507 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_cit_cal() local 2517 itcfmul = CQHCI_ITCFMUL(cqhci_readl(cq_host, CQHCI_CAP)); in msdc_cqe_cit_cal() 2546 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_enable() local 2558 cqhci_writel(cq_host, host->cq_ssc1_time, CQHCI_SSC1); in msdc_cqe_enable() 2589 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_pre_enable() local 2592 reg = cqhci_readl(cq_host, CQHCI_CFG); in msdc_cqe_pre_enable() 2594 cqhci_writel(cq_host, reg, CQHCI_CFG); in msdc_cqe_pre_enable() 2599 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_post_disable() local 2602 reg = cqhci_readl(cq_host, CQHCI_CFG); in msdc_cqe_post_disable() [all …]
|
D | sdhci-pci-core.c | 948 struct cqhci_host *cq_host; in glk_emmc_add_host() local 956 cq_host = devm_kzalloc(dev, sizeof(*cq_host), GFP_KERNEL); in glk_emmc_add_host() 957 if (!cq_host) { in glk_emmc_add_host() 962 cq_host->mmio = host->ioaddr + 0x200; in glk_emmc_add_host() 963 cq_host->quirks |= CQHCI_QUIRK_SHORT_TXFR_DESC_SZ; in glk_emmc_add_host() 964 cq_host->ops = &glk_cqhci_ops; in glk_emmc_add_host() 968 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in glk_emmc_add_host() 970 ret = cqhci_init(cq_host, host->mmc, dma64); in glk_emmc_add_host()
|