Home
last modified time | relevance | path

Searched refs:cq_host (Results 1 - 23 of 23) sorted by relevance

/kernel/linux/linux-6.6/drivers/mmc/host/
H A 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, u argument
60 get_trans_desc(struct cqhci_host *cq_host, u8 tag) get_trans_desc() argument
67 setup_trans_desc(struct cqhci_host *cq_host, u8 tag) setup_trans_desc() argument
97 cqhci_set_irqs(struct cqhci_host *cq_host, u32 set) cqhci_set_irqs() argument
108 cqhci_dumpregs(struct cqhci_host *cq_host) cqhci_dumpregs() argument
169 cqhci_host_alloc_tdl(struct cqhci_host *cq_host) cqhci_host_alloc_tdl() argument
246 __cqhci_enable(struct cqhci_host *cq_host) __cqhci_enable() argument
301 __cqhci_disable(struct cqhci_host *cq_host) __cqhci_disable() argument
316 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_deactivate() local
334 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_enable() local
365 cqhci_read_ctl(struct cqhci_host *cq_host) cqhci_read_ctl() argument
372 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_off() local
399 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_disable() local
422 cqhci_prep_task_desc(struct mmc_request *mrq, struct cqhci_host *cq_host, int tag) cqhci_prep_task_desc() argument
499 cqhci_prep_tran_desc(struct mmc_request *mrq, struct cqhci_host *cq_host, int tag) cqhci_prep_tran_desc() argument
540 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_prep_dcmd_desc() local
596 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_request() local
665 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_recovery_needed() local
693 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_error_irq() local
780 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_finish_mrq() local
817 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_irq() local
869 cqhci_is_idle(struct cqhci_host *cq_host, int *ret) cqhci_is_idle() argument
885 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_wait_for_idle() local
896 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_timeout() local
920 cqhci_tasks_cleared(struct cqhci_host *cq_host) cqhci_tasks_cleared() argument
927 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_clear_all_tasks() local
951 cqhci_halted(struct cqhci_host *cq_host) cqhci_halted() argument
958 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_halt() local
994 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_recovery_start() local
1023 cqhci_recover_mrq(struct cqhci_host *cq_host, unsigned int tag) cqhci_recover_mrq() argument
1047 cqhci_recover_mrqs(struct cqhci_host *cq_host) cqhci_recover_mrqs() argument
1067 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_recovery_finish() local
1135 struct cqhci_host *cq_host; cqhci_pltfm_init() local
1162 cqhci_ver_major(struct cqhci_host *cq_host) cqhci_ver_major() argument
1167 cqhci_ver_minor(struct cqhci_host *cq_host) cqhci_ver_minor() argument
1174 cqhci_init(struct cqhci_host *cq_host, struct mmc_host *mmc, bool dma64) cqhci_init() argument
[all...]
H A 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 in cqhci_crypto_keyslot_program() local
108 cqhci_crypto_clear_keyslot(struct cqhci_host *cq_host, int slot) cqhci_crypto_clear_keyslot() argument
123 struct cqhci_host *cq_host = cqhci_host_from_crypto_profile(profile); cqhci_crypto_keyslot_evict() local
168 cqhci_crypto_init(struct cqhci_host *cq_host) cqhci_crypto_init() argument
[all...]
H A 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_CF in sdhci_tegra_cqe_enable()
1318 struct cqhci_host *cq_host = mmc->cqe_private; sdhci_tegra_cqe_pre_enable() local
1328 struct cqhci_host *cq_host = mmc->cqe_private; sdhci_tegra_cqe_post_disable() local
1593 struct cqhci_host *cq_host; sdhci_tegra_add_host() local
[all...]
H 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()
H A 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()
H A 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 in sdhci_esdhc_imx_probe()
[all...]
H A 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()
[all...]
H A 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()
H A Dsdhci-msm.c1811 struct cqhci_host *cq_host) in sdhci_msm_ice_init()
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()
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()
1810 sdhci_msm_ice_init(struct sdhci_msm_host *msm_host, struct cqhci_host *cq_host) sdhci_msm_ice_init() argument
1888 sdhci_msm_ice_init(struct sdhci_msm_host *msm_host, struct cqhci_host *cq_host) sdhci_msm_ice_init() argument
[all...]
H A 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_CF in msdc_cqe_post_disable()
[all...]
H A 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);
H 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()
/kernel/linux/linux-5.10/drivers/mmc/host/
H A 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 in get_trans_desc_dma()
54 get_trans_desc(struct cqhci_host *cq_host, u8 tag) get_trans_desc() argument
60 setup_trans_desc(struct cqhci_host *cq_host, u8 tag) setup_trans_desc() argument
90 cqhci_set_irqs(struct cqhci_host *cq_host, u32 set) cqhci_set_irqs() argument
101 cqhci_dumpregs(struct cqhci_host *cq_host) cqhci_dumpregs() argument
162 cqhci_host_alloc_tdl(struct cqhci_host *cq_host) cqhci_host_alloc_tdl() argument
240 __cqhci_enable(struct cqhci_host *cq_host) __cqhci_enable() argument
292 __cqhci_disable(struct cqhci_host *cq_host) __cqhci_disable() argument
307 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_deactivate() local
325 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_enable() local
356 cqhci_read_ctl(struct cqhci_host *cq_host) cqhci_read_ctl() argument
363 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_off() local
390 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_disable() local
477 cqhci_prep_tran_desc(struct mmc_request *mrq, struct cqhci_host *cq_host, int tag) cqhci_prep_tran_desc() argument
518 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_prep_dcmd_desc() local
576 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_request() local
646 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_recovery_needed() local
674 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_error_irq() local
736 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_finish_mrq() local
773 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_irq() local
817 cqhci_is_idle(struct cqhci_host *cq_host, int *ret) cqhci_is_idle() argument
833 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_wait_for_idle() local
844 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_timeout() local
868 cqhci_tasks_cleared(struct cqhci_host *cq_host) cqhci_tasks_cleared() argument
875 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_clear_all_tasks() local
899 cqhci_halted(struct cqhci_host *cq_host) cqhci_halted() argument
906 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_halt() local
942 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_recovery_start() local
971 cqhci_recover_mrq(struct cqhci_host *cq_host, unsigned int tag) cqhci_recover_mrq() argument
995 cqhci_recover_mrqs(struct cqhci_host *cq_host) cqhci_recover_mrqs() argument
1015 struct cqhci_host *cq_host = mmc->cqe_private; cqhci_recovery_finish() local
1083 struct cqhci_host *cq_host; cqhci_pltfm_init() local
1110 cqhci_ver_major(struct cqhci_host *cq_host) cqhci_ver_major() argument
1115 cqhci_ver_minor(struct cqhci_host *cq_host) cqhci_ver_minor() argument
1122 cqhci_init(struct cqhci_host *cq_host, struct mmc_host *mmc, bool dma64) cqhci_init() argument
[all...]
H A 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()
H A Dsdhci-pci-gli.c661 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_gl9763e_cqe_pre_enable() local
664 value = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_gl9763e_cqe_pre_enable()
666 cqhci_writel(cq_host, value, CQHCI_CFG); in sdhci_gl9763e_cqe_pre_enable()
693 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_gl9763e_cqe_post_disable() local
696 value = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_gl9763e_cqe_post_disable()
698 cqhci_writel(cq_host, value, CQHCI_CFG); in sdhci_gl9763e_cqe_post_disable()
714 struct cqhci_host *cq_host; in gl9763e_add_host() local
722 cq_host = devm_kzalloc(dev, sizeof(*cq_host), GFP_KERNEL); in gl9763e_add_host()
723 if (!cq_host) { in gl9763e_add_host()
[all...]
H A Dsdhci-tegra.c1170 static void tegra_cqhci_writel(struct cqhci_host *cq_host, u32 val, int reg) in tegra_cqhci_writel() argument
1172 struct mmc_host *mmc = cq_host->mmc; in tegra_cqhci_writel()
1187 cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT) { in tegra_cqhci_writel()
1190 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1194 ctrl = cqhci_readl(cq_host, CQHCI_CTL); in tegra_cqhci_writel()
1203 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1205 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel()
1223 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_tegra_cqe_enable() local
1233 if (!cq_host->activated) { in sdhci_tegra_cqe_enable()
1234 val = cqhci_readl(cq_host, CQHCI_CF in sdhci_tegra_cqe_enable()
1304 struct cqhci_host *cq_host = mmc->cqe_private; sdhci_tegra_cqe_pre_enable() local
1314 struct cqhci_host *cq_host = mmc->cqe_private; sdhci_tegra_cqe_post_disable() local
1559 struct cqhci_host *cq_host; sdhci_tegra_add_host() local
[all...]
H A Dsdhci_am654.c555 struct cqhci_host *cq_host; in sdhci_am654_cqe_add_host() local
558 cq_host = devm_kzalloc(host->mmc->parent, 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()
H A Dsdhci-esdhc-imx.c1304 struct cqhci_host *cq_host = host->mmc->cqe_private; in sdhci_esdhc_imx_hwinit() local
1410 if (cq_host) { in sdhci_esdhc_imx_hwinit()
1411 tmp = cqhci_readl(cq_host, CQHCI_IS); in sdhci_esdhc_imx_hwinit()
1412 cqhci_writel(cq_host, tmp, CQHCI_IS); in sdhci_esdhc_imx_hwinit()
1413 cqhci_writel(cq_host, CQHCI_HALT, CQHCI_CTL); in sdhci_esdhc_imx_hwinit()
1421 struct cqhci_host *cq_host = mmc->cqe_private; in esdhc_cqe_enable() local
1460 cqhci_writel(cq_host, 0, CQHCI_CTL); in esdhc_cqe_enable()
1461 if (cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT) in esdhc_cqe_enable()
1548 struct cqhci_host *cq_host; in sdhci_esdhc_imx_probe() local
1649 cq_host in sdhci_esdhc_imx_probe()
[all...]
H A Dsdhci-of-arasan.c1493 struct cqhci_host *cq_host; in sdhci_arasan_add_host() local
1504 cq_host = devm_kzalloc(host->mmc->parent, in sdhci_arasan_add_host()
1505 sizeof(*cq_host), GFP_KERNEL); in sdhci_arasan_add_host()
1506 if (!cq_host) { in sdhci_arasan_add_host()
1511 cq_host->mmio = host->ioaddr + SDHCI_ARASAN_CQE_BASE_ADDR; in sdhci_arasan_add_host()
1512 cq_host->ops = &sdhci_arasan_cqhci_ops; in sdhci_arasan_add_host()
1516 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_arasan_add_host()
1518 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_arasan_add_host()
H A Dsdhci-pci-core.c1005 struct cqhci_host *cq_host; in glk_emmc_add_host() local
1013 cq_host = devm_kzalloc(dev, sizeof(*cq_host), GFP_KERNEL); in glk_emmc_add_host()
1014 if (!cq_host) { in glk_emmc_add_host()
1019 cq_host->mmio = host->ioaddr + 0x200; in glk_emmc_add_host()
1020 cq_host->quirks |= CQHCI_QUIRK_SHORT_TXFR_DESC_SZ; in glk_emmc_add_host()
1021 cq_host->ops = &glk_cqhci_ops; in glk_emmc_add_host()
1025 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in glk_emmc_add_host()
1027 ret = cqhci_init(cq_host, host->mmc, dma64); in glk_emmc_add_host()
H A Dmtk-sd.c445 struct cqhci_host *cq_host; member
2311 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_pre_enable() local
2314 reg = cqhci_readl(cq_host, CQHCI_CFG); in msdc_cqe_pre_enable()
2316 cqhci_writel(cq_host, reg, CQHCI_CFG); in msdc_cqe_pre_enable()
2321 struct cqhci_host *cq_host = mmc->cqe_private; in msdc_cqe_post_disable() local
2324 reg = cqhci_readl(cq_host, CQHCI_CFG); in msdc_cqe_post_disable()
2326 cqhci_writel(cq_host, reg, CQHCI_CFG); in msdc_cqe_post_disable()
2534 host->cq_host = devm_kzalloc(mmc->parent, in msdc_drv_probe()
2535 sizeof(*host->cq_host), in msdc_drv_probe()
2537 if (!host->cq_host) { in msdc_drv_probe()
[all...]
H A Dsdhci-msm.c1865 struct cqhci_host *cq_host; in sdhci_msm_cqe_add_host() local
1881 cq_host = cqhci_pltfm_init(pdev); in sdhci_msm_cqe_add_host()
1882 if (IS_ERR(cq_host)) { in sdhci_msm_cqe_add_host()
1883 ret = PTR_ERR(cq_host); in sdhci_msm_cqe_add_host()
1889 cq_host->ops = &sdhci_msm_cqhci_ops; in sdhci_msm_cqe_add_host()
1893 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_msm_cqe_add_host()
1901 cqcfg = cqhci_readl(cq_host, CQHCI_VENDOR_CFG1); in sdhci_msm_cqe_add_host()
1903 cqhci_writel(cq_host, cqcfg, CQHCI_VENDOR_CFG1); in sdhci_msm_cqe_add_host()
H A Dcqhci.h233 int cqhci_init(struct cqhci_host *cq_host, struct mmc_host *mmc, bool dma64);

Completed in 42 milliseconds