Home
last modified time | relevance | path

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

/linux-6.1.9/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-tegra.c1183 static void tegra_cqhci_writel(struct cqhci_host *cq_host, u32 val, int reg) in tegra_cqhci_writel() argument
1185 struct mmc_host *mmc = cq_host->mmc; in tegra_cqhci_writel()
1200 cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT) { in tegra_cqhci_writel()
1203 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1207 ctrl = cqhci_readl(cq_host, CQHCI_CTL); in tegra_cqhci_writel()
1216 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1218 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1236 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_tegra_cqe_enable() local
1246 if (!cq_host->activated) { in sdhci_tegra_cqe_enable()
1247 val = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_tegra_cqe_enable()
[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-pci-gli.c836 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_gl9763e_cqe_pre_enable() local
839 value = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_gl9763e_cqe_pre_enable()
841 cqhci_writel(cq_host, value, CQHCI_CFG); in sdhci_gl9763e_cqe_pre_enable()
868 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_gl9763e_cqe_post_disable() local
871 value = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_gl9763e_cqe_post_disable()
873 cqhci_writel(cq_host, value, CQHCI_CFG); in sdhci_gl9763e_cqe_post_disable()
889 struct cqhci_host *cq_host; in gl9763e_add_host() local
897 cq_host = devm_kzalloc(dev, sizeof(*cq_host), GFP_KERNEL); in gl9763e_add_host()
898 if (!cq_host) { in gl9763e_add_host()
903 cq_host->mmio = host->ioaddr + SDHCI_GLI_9763E_CQE_BASE_ADDR; in gl9763e_add_host()
[all …]
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()
Dsdhci-esdhc-imx.c1364 struct cqhci_host *cq_host = host->mmc->cqe_private; in sdhci_esdhc_imx_hwinit() local
1472 if (cq_host) { in sdhci_esdhc_imx_hwinit()
1473 tmp = cqhci_readl(cq_host, CQHCI_IS); in sdhci_esdhc_imx_hwinit()
1474 cqhci_writel(cq_host, tmp, CQHCI_IS); in sdhci_esdhc_imx_hwinit()
1475 cqhci_writel(cq_host, CQHCI_HALT, CQHCI_CTL); in sdhci_esdhc_imx_hwinit()
1483 struct cqhci_host *cq_host = mmc->cqe_private; in esdhc_cqe_enable() local
1522 cqhci_writel(cq_host, 0, CQHCI_CTL); in esdhc_cqe_enable()
1523 if (cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT) in esdhc_cqe_enable()
1598 struct cqhci_host *cq_host; in sdhci_esdhc_imx_probe() local
1699 cq_host = devm_kzalloc(&pdev->dev, sizeof(*cq_host), GFP_KERNEL); in sdhci_esdhc_imx_probe()
[all …]
Dsdhci-of-arasan.c1528 struct cqhci_host *cq_host; in sdhci_arasan_add_host() local
1539 cq_host = devm_kzalloc(host->mmc->parent, in sdhci_arasan_add_host()
1540 sizeof(*cq_host), GFP_KERNEL); in sdhci_arasan_add_host()
1541 if (!cq_host) { in sdhci_arasan_add_host()
1546 cq_host->mmio = host->ioaddr + SDHCI_ARASAN_CQE_BASE_ADDR; in sdhci_arasan_add_host()
1547 cq_host->ops = &sdhci_arasan_cqhci_ops; in sdhci_arasan_add_host()
1551 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_arasan_add_host()
1553 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_arasan_add_host()
Dsdhci-msm.c1862 struct cqhci_host *cq_host) in sdhci_msm_ice_init() argument
1868 if (!(cqhci_readl(cq_host, CQHCI_CAP) & CQHCI_CAP_CS)) in sdhci_msm_ice_init()
1970 static int sdhci_msm_program_key(struct cqhci_host *cq_host, in sdhci_msm_program_key() argument
1974 struct device *dev = mmc_dev(cq_host->mmc); in sdhci_msm_program_key()
1987 cap = cq_host->crypto_cap_array[cfg->crypto_cap_idx]; in sdhci_msm_program_key()
2018 struct cqhci_host *cq_host) in sdhci_msm_ice_init() argument
2123 struct cqhci_host *cq_host; in sdhci_msm_cqe_add_host() local
2139 cq_host = cqhci_pltfm_init(pdev); in sdhci_msm_cqe_add_host()
2140 if (IS_ERR(cq_host)) { in sdhci_msm_cqe_add_host()
2141 ret = PTR_ERR(cq_host); in sdhci_msm_cqe_add_host()
[all …]
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);
Dsdhci-pci-core.c952 struct cqhci_host *cq_host; in glk_emmc_add_host() local
960 cq_host = devm_kzalloc(dev, sizeof(*cq_host), GFP_KERNEL); in glk_emmc_add_host()
961 if (!cq_host) { in glk_emmc_add_host()
966 cq_host->mmio = host->ioaddr + 0x200; in glk_emmc_add_host()
967 cq_host->quirks |= CQHCI_QUIRK_SHORT_TXFR_DESC_SZ; in glk_emmc_add_host()
968 cq_host->ops = &glk_cqhci_ops; in glk_emmc_add_host()
972 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in glk_emmc_add_host()
974 ret = cqhci_init(cq_host, host->mmc, dma64); in glk_emmc_add_host()
Dmtk-sd.c474 struct cqhci_host *cq_host; member
2482 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_pre_enable() local
2485 reg = cqhci_readl(cq_host, CQHCI_CFG); in msdc_cqe_pre_enable()
2487 cqhci_writel(cq_host, reg, CQHCI_CFG); in msdc_cqe_pre_enable()
2492 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_post_disable() local
2495 reg = cqhci_readl(cq_host, CQHCI_CFG); in msdc_cqe_post_disable()
2497 cqhci_writel(cq_host, reg, CQHCI_CFG); in msdc_cqe_post_disable()
2767 host->cq_host = devm_kzalloc(mmc->parent, in msdc_drv_probe()
2768 sizeof(*host->cq_host), in msdc_drv_probe()
2770 if (!host->cq_host) { in msdc_drv_probe()
[all …]