Home
last modified time | relevance | path

Searched refs:cq_host (Results 1 – 12 of 12) sorted by relevance

/linux-6.6.21/drivers/mmc/host/
Dcqhci-core.c36 static inline u8 *get_desc(struct cqhci_host *cq_host, u8 tag) in get_desc() argument
38 return cq_host->desc_base + (tag * cq_host->slot_sz); in get_desc()
41 static inline u8 *get_link_desc(struct cqhci_host *cq_host, u8 tag) in get_link_desc() argument
43 u8 *desc = get_desc(cq_host, tag); in get_link_desc()
45 return desc + cq_host->task_desc_len; in get_link_desc()
48 static inline size_t get_trans_desc_offset(struct cqhci_host *cq_host, u8 tag) in get_trans_desc_offset() argument
50 return cq_host->trans_desc_len * cq_host->mmc->max_segs * tag; in get_trans_desc_offset()
53 static inline dma_addr_t get_trans_desc_dma(struct cqhci_host *cq_host, u8 tag) in get_trans_desc_dma() argument
55 size_t offset = get_trans_desc_offset(cq_host, tag); in get_trans_desc_dma()
57 return cq_host->trans_desc_dma_base + offset; in get_trans_desc_dma()
[all …]
Dcqhci-crypto.c34 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 …]
Dsdhci-brcmstb.c205 struct cqhci_host *cq_host; in sdhci_brcmstb_add_host() local
218 cq_host = devm_kzalloc(mmc_dev(host->mmc), in sdhci_brcmstb_add_host()
219 sizeof(*cq_host), GFP_KERNEL); in sdhci_brcmstb_add_host()
220 if (!cq_host) { in sdhci_brcmstb_add_host()
225 cq_host->mmio = host->ioaddr + SDHCI_ARASAN_CQE_BASE_ADDR; in sdhci_brcmstb_add_host()
226 cq_host->ops = &sdhci_brcmstb_cqhci_ops; in sdhci_brcmstb_add_host()
231 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_brcmstb_add_host()
234 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_brcmstb_add_host()
Dsdhci-tegra.c1184 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 …]
Dsdhci-pci-gli.c1244 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 …]
Dsdhci-esdhc-imx.c1414 struct cqhci_host *cq_host = host->mmc->cqe_private; in sdhci_esdhc_imx_hwinit() local
1522 if (cq_host) { in sdhci_esdhc_imx_hwinit()
1523 tmp = cqhci_readl(cq_host, CQHCI_IS); in sdhci_esdhc_imx_hwinit()
1524 cqhci_writel(cq_host, tmp, CQHCI_IS); in sdhci_esdhc_imx_hwinit()
1525 cqhci_writel(cq_host, CQHCI_HALT, CQHCI_CTL); in sdhci_esdhc_imx_hwinit()
1533 struct cqhci_host *cq_host = mmc->cqe_private; in esdhc_cqe_enable() local
1572 cqhci_writel(cq_host, 0, CQHCI_CTL); in esdhc_cqe_enable()
1573 if (cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT) in esdhc_cqe_enable()
1652 struct cqhci_host *cq_host; in sdhci_esdhc_imx_probe() local
1753 cq_host = devm_kzalloc(&pdev->dev, sizeof(*cq_host), GFP_KERNEL); in sdhci_esdhc_imx_probe()
[all …]
Dsdhci_am654.c556 struct cqhci_host *cq_host; in sdhci_am654_cqe_add_host() local
558 cq_host = devm_kzalloc(mmc_dev(host->mmc), sizeof(struct cqhci_host), in sdhci_am654_cqe_add_host()
560 if (!cq_host) in sdhci_am654_cqe_add_host()
563 cq_host->mmio = host->ioaddr + SDHCI_AM654_CQE_BASE_ADDR; in sdhci_am654_cqe_add_host()
564 cq_host->quirks |= CQHCI_QUIRK_SHORT_TXFR_DESC_SZ; in sdhci_am654_cqe_add_host()
565 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_am654_cqe_add_host()
566 cq_host->ops = &sdhci_am654_cqhci_ops; in sdhci_am654_cqe_add_host()
570 return cqhci_init(cq_host, host->mmc, 1); in sdhci_am654_cqe_add_host()
Dsdhci-msm.c1811 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 …]
Dcqhci.h293 int (*program_key)(struct cqhci_host *cq_host,
318 int cqhci_init(struct cqhci_host *cq_host, struct mmc_host *mmc, bool dma64);
Dsdhci-of-arasan.c1794 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()
Dmtk-sd.c473 struct cqhci_host *cq_host; member
2455 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_cit_cal() local
2465 itcfmul = CQHCI_ITCFMUL(cqhci_readl(cq_host, CQHCI_CAP)); in msdc_cqe_cit_cal()
2494 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_enable() local
2506 cqhci_writel(cq_host, host->cq_ssc1_time, CQHCI_SSC1); in msdc_cqe_enable()
2537 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_pre_enable() local
2540 reg = cqhci_readl(cq_host, CQHCI_CFG); in msdc_cqe_pre_enable()
2542 cqhci_writel(cq_host, reg, CQHCI_CFG); in msdc_cqe_pre_enable()
2547 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_post_disable() local
2550 reg = cqhci_readl(cq_host, CQHCI_CFG); in msdc_cqe_post_disable()
[all …]
Dsdhci-pci-core.c947 struct cqhci_host *cq_host; in glk_emmc_add_host() local
955 cq_host = devm_kzalloc(dev, sizeof(*cq_host), GFP_KERNEL); in glk_emmc_add_host()
956 if (!cq_host) { in glk_emmc_add_host()
961 cq_host->mmio = host->ioaddr + 0x200; in glk_emmc_add_host()
962 cq_host->quirks |= CQHCI_QUIRK_SHORT_TXFR_DESC_SZ; in glk_emmc_add_host()
963 cq_host->ops = &glk_cqhci_ops; in glk_emmc_add_host()
967 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in glk_emmc_add_host()
969 ret = cqhci_init(cq_host, host->mmc, dma64); in glk_emmc_add_host()