Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/mmc/host/
Dcqhci.c35 static inline u8 *get_desc(struct cqhci_host *cq_host, u8 tag) in get_desc() argument
37 return cq_host->desc_base + (tag * cq_host->slot_sz); in get_desc()
40 static inline u8 *get_link_desc(struct cqhci_host *cq_host, u8 tag) in get_link_desc() argument
42 u8 *desc = get_desc(cq_host, tag); in get_link_desc()
44 return desc + cq_host->task_desc_len; in get_link_desc()
47 static inline dma_addr_t get_trans_desc_dma(struct cqhci_host *cq_host, u8 tag) in get_trans_desc_dma() argument
49 return cq_host->trans_desc_dma_base + in get_trans_desc_dma()
50 (cq_host->mmc->max_segs * tag * in get_trans_desc_dma()
51 cq_host->trans_desc_len); in get_trans_desc_dma()
54 static inline u8 *get_trans_desc(struct cqhci_host *cq_host, u8 tag) in get_trans_desc() argument
[all …]
Dsdhci-brcmstb.c175 struct cqhci_host *cq_host; in sdhci_brcmstb_add_host() local
188 cq_host = devm_kzalloc(mmc_dev(host->mmc), in sdhci_brcmstb_add_host()
189 sizeof(*cq_host), GFP_KERNEL); in sdhci_brcmstb_add_host()
190 if (!cq_host) { in sdhci_brcmstb_add_host()
195 cq_host->mmio = host->ioaddr + SDHCI_ARASAN_CQE_BASE_ADDR; in sdhci_brcmstb_add_host()
196 cq_host->ops = &sdhci_brcmstb_cqhci_ops; in sdhci_brcmstb_add_host()
201 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_brcmstb_add_host()
202 cq_host->quirks |= CQHCI_QUIRK_SHORT_TXFR_DESC_SZ; in sdhci_brcmstb_add_host()
205 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_brcmstb_add_host()
Dsdhci-pci-gli.c656 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_gl9763e_cqe_pre_enable() local
659 value = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_gl9763e_cqe_pre_enable()
661 cqhci_writel(cq_host, value, CQHCI_CFG); in sdhci_gl9763e_cqe_pre_enable()
688 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_gl9763e_cqe_post_disable() local
691 value = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_gl9763e_cqe_post_disable()
693 cqhci_writel(cq_host, value, CQHCI_CFG); in sdhci_gl9763e_cqe_post_disable()
709 struct cqhci_host *cq_host; in gl9763e_add_host() local
717 cq_host = devm_kzalloc(dev, sizeof(*cq_host), GFP_KERNEL); in gl9763e_add_host()
718 if (!cq_host) { in gl9763e_add_host()
723 cq_host->mmio = host->ioaddr + SDHCI_GLI_9763E_CQE_BASE_ADDR; in gl9763e_add_host()
[all …]
Dsdhci-tegra.c1156 static void tegra_cqhci_writel(struct cqhci_host *cq_host, u32 val, int reg) in tegra_cqhci_writel() argument
1158 struct mmc_host *mmc = cq_host->mmc; in tegra_cqhci_writel()
1172 cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT) { in tegra_cqhci_writel()
1174 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1178 ctrl = cqhci_readl(cq_host, CQHCI_CTL); in tegra_cqhci_writel()
1187 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1189 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1207 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_tegra_cqe_enable() local
1216 if (!cq_host->activated) { in sdhci_tegra_cqe_enable()
1217 val = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_tegra_cqe_enable()
[all …]
Dsdhci_am654.c538 struct cqhci_host *cq_host; in sdhci_am654_cqe_add_host() local
541 cq_host = devm_kzalloc(host->mmc->parent, sizeof(struct cqhci_host), in sdhci_am654_cqe_add_host()
543 if (!cq_host) in sdhci_am654_cqe_add_host()
546 cq_host->mmio = host->ioaddr + SDHCI_AM654_CQE_BASE_ADDR; in sdhci_am654_cqe_add_host()
547 cq_host->quirks |= CQHCI_QUIRK_SHORT_TXFR_DESC_SZ; in sdhci_am654_cqe_add_host()
548 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_am654_cqe_add_host()
549 cq_host->ops = &sdhci_am654_cqhci_ops; in sdhci_am654_cqe_add_host()
553 ret = cqhci_init(cq_host, host->mmc, 1); in sdhci_am654_cqe_add_host()
Dsdhci-esdhc-imx.c1303 struct cqhci_host *cq_host = host->mmc->cqe_private; in sdhci_esdhc_imx_hwinit() local
1402 if (cq_host) { in sdhci_esdhc_imx_hwinit()
1403 tmp = cqhci_readl(cq_host, CQHCI_IS); in sdhci_esdhc_imx_hwinit()
1404 cqhci_writel(cq_host, tmp, CQHCI_IS); in sdhci_esdhc_imx_hwinit()
1405 cqhci_writel(cq_host, CQHCI_HALT, CQHCI_CTL); in sdhci_esdhc_imx_hwinit()
1413 struct cqhci_host *cq_host = mmc->cqe_private; in esdhc_cqe_enable() local
1452 cqhci_writel(cq_host, 0, CQHCI_CTL); in esdhc_cqe_enable()
1453 if (cqhci_readl(cq_host, CQHCI_CTL) && CQHCI_HALT) in esdhc_cqe_enable()
1606 struct cqhci_host *cq_host; in sdhci_esdhc_imx_probe() local
1702 cq_host = devm_kzalloc(&pdev->dev, sizeof(*cq_host), GFP_KERNEL); in sdhci_esdhc_imx_probe()
[all …]
Dsdhci-of-arasan.c1464 struct cqhci_host *cq_host; in sdhci_arasan_add_host() local
1475 cq_host = devm_kzalloc(host->mmc->parent, in sdhci_arasan_add_host()
1476 sizeof(*cq_host), GFP_KERNEL); in sdhci_arasan_add_host()
1477 if (!cq_host) { in sdhci_arasan_add_host()
1482 cq_host->mmio = host->ioaddr + SDHCI_ARASAN_CQE_BASE_ADDR; in sdhci_arasan_add_host()
1483 cq_host->ops = &sdhci_arasan_cqhci_ops; in sdhci_arasan_add_host()
1487 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_arasan_add_host()
1489 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_arasan_add_host()
Dmtk-sd.c444 struct cqhci_host *cq_host; member
2301 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_pre_enable() local
2304 reg = cqhci_readl(cq_host, CQHCI_CFG); in msdc_cqe_pre_enable()
2306 cqhci_writel(cq_host, reg, CQHCI_CFG); in msdc_cqe_pre_enable()
2311 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_post_disable() local
2314 reg = cqhci_readl(cq_host, CQHCI_CFG); in msdc_cqe_post_disable()
2316 cqhci_writel(cq_host, reg, CQHCI_CFG); in msdc_cqe_post_disable()
2505 host->cq_host = devm_kzalloc(mmc->parent, in msdc_drv_probe()
2506 sizeof(*host->cq_host), in msdc_drv_probe()
2508 if (!host->cq_host) { in msdc_drv_probe()
[all …]
Dsdhci-pci-core.c980 struct cqhci_host *cq_host; in glk_emmc_add_host() local
988 cq_host = devm_kzalloc(dev, sizeof(*cq_host), GFP_KERNEL); in glk_emmc_add_host()
989 if (!cq_host) { in glk_emmc_add_host()
994 cq_host->mmio = host->ioaddr + 0x200; in glk_emmc_add_host()
995 cq_host->quirks |= CQHCI_QUIRK_SHORT_TXFR_DESC_SZ; in glk_emmc_add_host()
996 cq_host->ops = &glk_cqhci_ops; in glk_emmc_add_host()
1000 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in glk_emmc_add_host()
1002 ret = cqhci_init(cq_host, host->mmc, dma64); in glk_emmc_add_host()
Dsdhci-msm.c1847 struct cqhci_host *cq_host; in sdhci_msm_cqe_add_host() local
1863 cq_host = cqhci_pltfm_init(pdev); in sdhci_msm_cqe_add_host()
1864 if (IS_ERR(cq_host)) { in sdhci_msm_cqe_add_host()
1865 ret = PTR_ERR(cq_host); in sdhci_msm_cqe_add_host()
1871 cq_host->ops = &sdhci_msm_cqhci_ops; in sdhci_msm_cqe_add_host()
1875 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_msm_cqe_add_host()
1883 cqcfg = cqhci_readl(cq_host, CQHCI_VENDOR_CFG1); in sdhci_msm_cqe_add_host()
1885 cqhci_writel(cq_host, cqcfg, CQHCI_VENDOR_CFG1); in sdhci_msm_cqe_add_host()
Dcqhci.h233 int cqhci_init(struct cqhci_host *cq_host, struct mmc_host *mmc, bool dma64);