Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/mmc/host/
A Dcqhci-core.c38 return cq_host->desc_base + (tag * cq_host->slot_sz); in get_desc()
199 cq_host->slot_sz = cq_host->task_desc_len + cq_host->link_desc_len; in cqhci_host_alloc_tdl()
201 cq_host->desc_size = cq_host->slot_sz * cq_host->num_slots; in cqhci_host_alloc_tdl()
203 cq_host->data_size = get_trans_desc_offset(cq_host, cq_host->mmc->cqe_qdepth); in cqhci_host_alloc_tdl()
206 mmc_hostname(cq_host->mmc), cq_host->desc_size, cq_host->data_size, in cqhci_host_alloc_tdl()
236 mmc_hostname(cq_host->mmc), cq_host->desc_base, cq_host->trans_desc_base, in cqhci_host_alloc_tdl()
277 cqhci_writel(cq_host, cq_host->rca, CQHCI_SSC2); in __cqhci_enable()
318 if (cq_host->enabled && cq_host->activated) in cqhci_deactivate()
851 if (cq_host->waiting_for_idle && !cq_host->qcnt) { in cqhci_irq()
875 is_idle = !cq_host->qcnt || cq_host->recovery_halt; in cqhci_is_idle()
[all …]
A Dcqhci-crypto.c41 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()
68 cq_host->crypto_cap_array; in cqhci_crypto_keyslot_program()
170 struct mmc_host *mmc = cq_host->mmc; in cqhci_crypto_init()
183 cq_host->crypto_capabilities.reg_val = in cqhci_crypto_init()
186 cq_host->crypto_cfg_register = in cqhci_crypto_init()
189 cq_host->crypto_cap_array = in cqhci_crypto_init()
192 if (!cq_host->crypto_cap_array) { in cqhci_crypto_init()
220 cpu_to_le32(cqhci_readl(cq_host, in cqhci_crypto_init()
224 cq_host->crypto_cap_array[cap_idx]); in cqhci_crypto_init()
[all …]
A Dsdhci-tegra.c1187 struct mmc_host *mmc = cq_host->mmc; in tegra_cqhci_writel()
1205 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1218 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1220 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1248 if (!cq_host->activated) { in sdhci_tegra_cqe_enable()
1322 reg = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_tegra_cqe_pre_enable()
1324 cqhci_writel(cq_host, reg, CQHCI_CFG); in sdhci_tegra_cqe_pre_enable()
1333 reg = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_tegra_cqe_post_disable()
1594 struct cqhci_host *cq_host; in sdhci_tegra_add_host() local
1610 sizeof(*cq_host), GFP_KERNEL); in sdhci_tegra_add_host()
[all …]
A 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()
A Dsdhci-pci-gli.c837 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_gl9763e_cqe_pre_enable() local
840 value = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_gl9763e_cqe_pre_enable()
842 cqhci_writel(cq_host, value, CQHCI_CFG); in sdhci_gl9763e_cqe_pre_enable()
872 value = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_gl9763e_cqe_post_disable()
874 cqhci_writel(cq_host, value, CQHCI_CFG); in sdhci_gl9763e_cqe_post_disable()
890 struct cqhci_host *cq_host; in gl9763e_add_host() local
898 cq_host = devm_kzalloc(dev, sizeof(*cq_host), GFP_KERNEL); in gl9763e_add_host()
899 if (!cq_host) { in gl9763e_add_host()
905 cq_host->ops = &sdhci_gl9763e_cqhci_ops; in gl9763e_add_host()
909 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in gl9763e_add_host()
[all …]
A Dsdhci_am654.c557 struct cqhci_host *cq_host; in sdhci_am654_cqe_add_host() local
559 cq_host = devm_kzalloc(mmc_dev(host->mmc), sizeof(struct cqhci_host), in sdhci_am654_cqe_add_host()
561 if (!cq_host) in sdhci_am654_cqe_add_host()
564 cq_host->mmio = host->ioaddr + SDHCI_AM654_CQE_BASE_ADDR; in sdhci_am654_cqe_add_host()
565 cq_host->quirks |= CQHCI_QUIRK_SHORT_TXFR_DESC_SZ; in sdhci_am654_cqe_add_host()
566 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_am654_cqe_add_host()
567 cq_host->ops = &sdhci_am654_cqhci_ops; in sdhci_am654_cqe_add_host()
571 return cqhci_init(cq_host, host->mmc, 1); in sdhci_am654_cqe_add_host()
A Dsdhci-esdhc-imx.c1521 if (cq_host) { in sdhci_esdhc_imx_hwinit()
1522 tmp = cqhci_readl(cq_host, CQHCI_IS); in sdhci_esdhc_imx_hwinit()
1523 cqhci_writel(cq_host, tmp, CQHCI_IS); in sdhci_esdhc_imx_hwinit()
1524 cqhci_writel(cq_host, CQHCI_HALT, CQHCI_CTL); in sdhci_esdhc_imx_hwinit()
1532 struct cqhci_host *cq_host = mmc->cqe_private; in esdhc_cqe_enable() local
1571 cqhci_writel(cq_host, 0, CQHCI_CTL); in esdhc_cqe_enable()
1647 struct cqhci_host *cq_host; in sdhci_esdhc_imx_probe() local
1754 cq_host = devm_kzalloc(&pdev->dev, sizeof(*cq_host), GFP_KERNEL); in sdhci_esdhc_imx_probe()
1755 if (!cq_host) { in sdhci_esdhc_imx_probe()
1761 cq_host->ops = &esdhc_cqhci_ops; in sdhci_esdhc_imx_probe()
[all …]
A Dsdhci-of-arasan.c1588 struct cqhci_host *cq_host; in sdhci_arasan_add_host() local
1599 cq_host = devm_kzalloc(host->mmc->parent, in sdhci_arasan_add_host()
1600 sizeof(*cq_host), GFP_KERNEL); in sdhci_arasan_add_host()
1601 if (!cq_host) { in sdhci_arasan_add_host()
1606 cq_host->mmio = host->ioaddr + SDHCI_ARASAN_CQE_BASE_ADDR; in sdhci_arasan_add_host()
1607 cq_host->ops = &sdhci_arasan_cqhci_ops; in sdhci_arasan_add_host()
1611 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_arasan_add_host()
1613 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_arasan_add_host()
A Dsdhci-msm.c1863 struct cqhci_host *cq_host) in sdhci_msm_ice_init() argument
1975 struct device *dev = mmc_dev(cq_host->mmc); in sdhci_msm_program_key()
2019 struct cqhci_host *cq_host) in sdhci_msm_ice_init() argument
2124 struct cqhci_host *cq_host; in sdhci_msm_cqe_add_host() local
2140 cq_host = cqhci_pltfm_init(pdev); in sdhci_msm_cqe_add_host()
2141 if (IS_ERR(cq_host)) { in sdhci_msm_cqe_add_host()
2142 ret = PTR_ERR(cq_host); in sdhci_msm_cqe_add_host()
2148 cq_host->ops = &sdhci_msm_cqhci_ops; in sdhci_msm_cqe_add_host()
2152 ret = sdhci_msm_ice_init(msm_host, cq_host); in sdhci_msm_cqe_add_host()
2156 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_msm_cqe_add_host()
[all …]
A Dcqhci.h290 int (*program_key)(struct cqhci_host *cq_host,
315 int cqhci_init(struct cqhci_host *cq_host, struct mmc_host *mmc, bool dma64);
A 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()
A Dmtk-sd.c475 struct cqhci_host *cq_host; member
2498 reg = cqhci_readl(cq_host, CQHCI_CFG); in msdc_cqe_pre_enable()
2500 cqhci_writel(cq_host, reg, CQHCI_CFG); in msdc_cqe_pre_enable()
2508 reg = cqhci_readl(cq_host, CQHCI_CFG); in msdc_cqe_post_disable()
2510 cqhci_writel(cq_host, reg, CQHCI_CFG); in msdc_cqe_post_disable()
2789 host->cq_host = devm_kzalloc(mmc->parent, in msdc_drv_probe()
2790 sizeof(*host->cq_host), in msdc_drv_probe()
2792 if (!host->cq_host) { in msdc_drv_probe()
2797 host->cq_host->mmio = host->base + 0x800; in msdc_drv_probe()
2798 host->cq_host->ops = &msdc_cmdq_ops; in msdc_drv_probe()
[all …]

Completed in 52 milliseconds