Lines Matching refs:cq_host
1170 static void tegra_cqhci_writel(struct cqhci_host *cq_host, u32 val, int reg)
1172 struct mmc_host *mmc = cq_host->mmc;
1187 cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT) {
1190 writel(val, cq_host->mmio + reg);
1194 ctrl = cqhci_readl(cq_host, CQHCI_CTL);
1203 writel(val, cq_host->mmio + reg);
1205 writel(val, cq_host->mmio + reg);
1223 struct cqhci_host *cq_host = mmc->cqe_private;
1233 if (!cq_host->activated) {
1234 val = cqhci_readl(cq_host, CQHCI_CFG);
1236 cqhci_writel(cq_host, (val & ~CQHCI_ENABLE),
1241 cqhci_writel(cq_host, val, CQHCI_CFG);
1251 val = cqhci_readl(cq_host, CQHCI_SSC1);
1253 cqhci_writel(cq_host, val, CQHCI_SSC1);
1304 struct cqhci_host *cq_host = mmc->cqe_private;
1307 reg = cqhci_readl(cq_host, CQHCI_CFG);
1309 cqhci_writel(cq_host, reg, CQHCI_CFG);
1314 struct cqhci_host *cq_host = mmc->cqe_private;
1318 reg = cqhci_readl(cq_host, CQHCI_CFG);
1320 cqhci_writel(cq_host, reg, CQHCI_CFG);
1559 struct cqhci_host *cq_host;
1574 cq_host = devm_kzalloc(host->mmc->parent,
1575 sizeof(*cq_host), GFP_KERNEL);
1576 if (!cq_host) {
1581 cq_host->mmio = host->ioaddr + SDHCI_TEGRA_CQE_BASE_ADDR;
1582 cq_host->ops = &sdhci_tegra_cqhci_ops;
1586 cq_host->caps |= CQHCI_TASK_DESC_SZ_128;
1588 ret = cqhci_init(cq_host, host->mmc, dma64);