Searched refs:cq_host (Results 1 – 6 of 6) sorted by relevance
/drivers/mmc/host/ |
D | cqhci.c | 34 static inline u8 *get_desc(struct cqhci_host *cq_host, u8 tag) in get_desc() argument 36 return cq_host->desc_base + (tag * cq_host->slot_sz); in get_desc() 39 static inline u8 *get_link_desc(struct cqhci_host *cq_host, u8 tag) in get_link_desc() argument 41 u8 *desc = get_desc(cq_host, tag); in get_link_desc() 43 return desc + cq_host->task_desc_len; in get_link_desc() 46 static inline dma_addr_t get_trans_desc_dma(struct cqhci_host *cq_host, u8 tag) in get_trans_desc_dma() argument 48 return cq_host->trans_desc_dma_base + in get_trans_desc_dma() 49 (cq_host->mmc->max_segs * tag * in get_trans_desc_dma() 50 cq_host->trans_desc_len); in get_trans_desc_dma() 53 static inline u8 *get_trans_desc(struct cqhci_host *cq_host, u8 tag) in get_trans_desc() argument [all …]
|
D | sdhci-tegra.c | 1130 static void tegra_cqhci_writel(struct cqhci_host *cq_host, u32 val, int reg) in tegra_cqhci_writel() argument 1132 struct mmc_host *mmc = cq_host->mmc; in tegra_cqhci_writel() 1146 cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT) { in tegra_cqhci_writel() 1148 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel() 1152 ctrl = cqhci_readl(cq_host, CQHCI_CTL); in tegra_cqhci_writel() 1161 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel() 1163 writel(val, cq_host->mmio + reg); in tegra_cqhci_writel() 1181 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_tegra_cqe_enable() local 1190 if (!cq_host->activated) { in sdhci_tegra_cqe_enable() 1191 val = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_tegra_cqe_enable() [all …]
|
D | sdhci-of-arasan.c | 692 struct cqhci_host *cq_host; in sdhci_arasan_add_host() local 703 cq_host = devm_kzalloc(host->mmc->parent, in sdhci_arasan_add_host() 704 sizeof(*cq_host), GFP_KERNEL); in sdhci_arasan_add_host() 705 if (!cq_host) { in sdhci_arasan_add_host() 710 cq_host->mmio = host->ioaddr + SDHCI_ARASAN_CQE_BASE_ADDR; in sdhci_arasan_add_host() 711 cq_host->ops = &sdhci_arasan_cqhci_ops; in sdhci_arasan_add_host() 715 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_arasan_add_host() 717 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_arasan_add_host()
|
D | sdhci-esdhc-imx.c | 1249 struct cqhci_host *cq_host = mmc->cqe_private; in esdhc_cqe_enable() local 1288 cqhci_writel(cq_host, 0, CQHCI_CTL); in esdhc_cqe_enable() 1289 if (cqhci_readl(cq_host, CQHCI_CTL) && CQHCI_HALT) in esdhc_cqe_enable() 1439 struct cqhci_host *cq_host; in sdhci_esdhc_imx_probe() local 1536 cq_host = devm_kzalloc(&pdev->dev, sizeof(*cq_host), GFP_KERNEL); in sdhci_esdhc_imx_probe() 1537 if (!cq_host) { in sdhci_esdhc_imx_probe() 1542 cq_host->mmio = host->ioaddr + ESDHC_CQHCI_ADDR_OFFSET; in sdhci_esdhc_imx_probe() 1543 cq_host->ops = &esdhc_cqhci_ops; in sdhci_esdhc_imx_probe() 1545 err = cqhci_init(cq_host, host->mmc, false); in sdhci_esdhc_imx_probe()
|
D | sdhci-pci-core.c | 820 struct cqhci_host *cq_host; in glk_emmc_add_host() local 828 cq_host = devm_kzalloc(dev, sizeof(*cq_host), GFP_KERNEL); in glk_emmc_add_host() 829 if (!cq_host) { in glk_emmc_add_host() 834 cq_host->mmio = host->ioaddr + 0x200; in glk_emmc_add_host() 835 cq_host->quirks |= CQHCI_QUIRK_SHORT_TXFR_DESC_SZ; in glk_emmc_add_host() 836 cq_host->ops = &glk_cqhci_ops; in glk_emmc_add_host() 840 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in glk_emmc_add_host() 842 ret = cqhci_init(cq_host, host->mmc, dma64); in glk_emmc_add_host()
|
D | cqhci.h | 231 int cqhci_init(struct cqhci_host *cq_host, struct mmc_host *mmc, bool dma64);
|