Home
last modified time | relevance | path

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

/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.c1172 static void tegra_cqhci_writel(struct cqhci_host *cq_host, u32 val, int reg) in tegra_cqhci_writel() argument
1174 struct mmc_host *mmc = cq_host->mmc; in tegra_cqhci_writel()
1189 cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT) { in tegra_cqhci_writel()
1192 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1196 ctrl = cqhci_readl(cq_host, CQHCI_CTL); in tegra_cqhci_writel()
1205 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1207 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1225 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_tegra_cqe_enable() local
1235 if (!cq_host->activated) { in sdhci_tegra_cqe_enable()
1236 val = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_tegra_cqe_enable()
[all …]
Dsdhci-brcmstb.c203 struct cqhci_host *cq_host; in sdhci_brcmstb_add_host() local
216 cq_host = devm_kzalloc(mmc_dev(host->mmc), in sdhci_brcmstb_add_host()
217 sizeof(*cq_host), GFP_KERNEL); in sdhci_brcmstb_add_host()
218 if (!cq_host) { in sdhci_brcmstb_add_host()
223 cq_host->mmio = host->ioaddr + SDHCI_ARASAN_CQE_BASE_ADDR; in sdhci_brcmstb_add_host()
224 cq_host->ops = &sdhci_brcmstb_cqhci_ops; in sdhci_brcmstb_add_host()
229 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_brcmstb_add_host()
232 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_brcmstb_add_host()
Dsdhci-pci-gli.c766 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_gl9763e_cqe_pre_enable() local
769 value = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_gl9763e_cqe_pre_enable()
771 cqhci_writel(cq_host, value, CQHCI_CFG); in sdhci_gl9763e_cqe_pre_enable()
798 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_gl9763e_cqe_post_disable() local
801 value = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_gl9763e_cqe_post_disable()
803 cqhci_writel(cq_host, value, CQHCI_CFG); in sdhci_gl9763e_cqe_post_disable()
819 struct cqhci_host *cq_host; in gl9763e_add_host() local
827 cq_host = devm_kzalloc(dev, sizeof(*cq_host), GFP_KERNEL); in gl9763e_add_host()
828 if (!cq_host) { in gl9763e_add_host()
833 cq_host->mmio = host->ioaddr + SDHCI_GLI_9763E_CQE_BASE_ADDR; in gl9763e_add_host()
[all …]
Dsdhci_am654.c555 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 ret = cqhci_init(cq_host, host->mmc, 1); in sdhci_am654_cqe_add_host()
Dsdhci-esdhc-imx.c1350 struct cqhci_host *cq_host = host->mmc->cqe_private; in sdhci_esdhc_imx_hwinit() local
1456 if (cq_host) { in sdhci_esdhc_imx_hwinit()
1457 tmp = cqhci_readl(cq_host, CQHCI_IS); in sdhci_esdhc_imx_hwinit()
1458 cqhci_writel(cq_host, tmp, CQHCI_IS); in sdhci_esdhc_imx_hwinit()
1459 cqhci_writel(cq_host, CQHCI_HALT, CQHCI_CTL); in sdhci_esdhc_imx_hwinit()
1467 struct cqhci_host *cq_host = mmc->cqe_private; in esdhc_cqe_enable() local
1506 cqhci_writel(cq_host, 0, CQHCI_CTL); in esdhc_cqe_enable()
1507 if (cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT) in esdhc_cqe_enable()
1586 struct cqhci_host *cq_host; in sdhci_esdhc_imx_probe() local
1681 cq_host = devm_kzalloc(&pdev->dev, sizeof(*cq_host), GFP_KERNEL); in sdhci_esdhc_imx_probe()
[all …]
Dsdhci-of-arasan.c1502 struct cqhci_host *cq_host; in sdhci_arasan_add_host() local
1513 cq_host = devm_kzalloc(host->mmc->parent, in sdhci_arasan_add_host()
1514 sizeof(*cq_host), GFP_KERNEL); in sdhci_arasan_add_host()
1515 if (!cq_host) { in sdhci_arasan_add_host()
1520 cq_host->mmio = host->ioaddr + SDHCI_ARASAN_CQE_BASE_ADDR; in sdhci_arasan_add_host()
1521 cq_host->ops = &sdhci_arasan_cqhci_ops; in sdhci_arasan_add_host()
1525 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_arasan_add_host()
1527 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);
Dmtk-sd.c470 struct cqhci_host *cq_host; member
2439 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_pre_enable() local
2442 reg = cqhci_readl(cq_host, CQHCI_CFG); in msdc_cqe_pre_enable()
2444 cqhci_writel(cq_host, reg, CQHCI_CFG); in msdc_cqe_pre_enable()
2449 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_post_disable() local
2452 reg = cqhci_readl(cq_host, CQHCI_CFG); in msdc_cqe_post_disable()
2454 cqhci_writel(cq_host, reg, CQHCI_CFG); in msdc_cqe_post_disable()
2697 host->cq_host = devm_kzalloc(mmc->parent, in msdc_drv_probe()
2698 sizeof(*host->cq_host), in msdc_drv_probe()
2700 if (!host->cq_host) { in msdc_drv_probe()
[all …]
Dsdhci-pci-core.c1016 struct cqhci_host *cq_host; in glk_emmc_add_host() local
1024 cq_host = devm_kzalloc(dev, sizeof(*cq_host), GFP_KERNEL); in glk_emmc_add_host()
1025 if (!cq_host) { in glk_emmc_add_host()
1030 cq_host->mmio = host->ioaddr + 0x200; in glk_emmc_add_host()
1031 cq_host->quirks |= CQHCI_QUIRK_SHORT_TXFR_DESC_SZ; in glk_emmc_add_host()
1032 cq_host->ops = &glk_cqhci_ops; in glk_emmc_add_host()
1036 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in glk_emmc_add_host()
1038 ret = cqhci_init(cq_host, host->mmc, dma64); in glk_emmc_add_host()