Lines Matching refs:cq_host
1183 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()
1249 cqhci_writel(cq_host, (val & ~CQHCI_ENABLE), in sdhci_tegra_cqe_enable()
1254 cqhci_writel(cq_host, val, CQHCI_CFG); in sdhci_tegra_cqe_enable()
1264 val = cqhci_readl(cq_host, CQHCI_SSC1); in sdhci_tegra_cqe_enable()
1266 cqhci_writel(cq_host, val, CQHCI_SSC1); in sdhci_tegra_cqe_enable()
1317 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_tegra_cqe_pre_enable() local
1320 reg = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_tegra_cqe_pre_enable()
1322 cqhci_writel(cq_host, reg, CQHCI_CFG); in sdhci_tegra_cqe_pre_enable()
1327 struct cqhci_host *cq_host = mmc->cqe_private; in sdhci_tegra_cqe_post_disable() local
1331 reg = cqhci_readl(cq_host, CQHCI_CFG); in sdhci_tegra_cqe_post_disable()
1333 cqhci_writel(cq_host, reg, CQHCI_CFG); in sdhci_tegra_cqe_post_disable()
1577 struct cqhci_host *cq_host; in sdhci_tegra_add_host() local
1592 cq_host = devm_kzalloc(mmc_dev(host->mmc), in sdhci_tegra_add_host()
1593 sizeof(*cq_host), GFP_KERNEL); in sdhci_tegra_add_host()
1594 if (!cq_host) { in sdhci_tegra_add_host()
1599 cq_host->mmio = host->ioaddr + SDHCI_TEGRA_CQE_BASE_ADDR; in sdhci_tegra_add_host()
1600 cq_host->ops = &sdhci_tegra_cqhci_ops; in sdhci_tegra_add_host()
1604 cq_host->caps |= CQHCI_TASK_DESC_SZ_128; in sdhci_tegra_add_host()
1606 ret = cqhci_init(cq_host, host->mmc, dma64); in sdhci_tegra_add_host()