Lines Matching refs:cq_host
1184 static void tegra_cqhci_writel(struct cqhci_host *cq_host, u32 val, int reg)
1186 struct mmc_host *mmc = cq_host->mmc;
1201 cqhci_readl(cq_host, CQHCI_CTL) & CQHCI_HALT) {
1204 writel(val, cq_host->mmio + reg);
1208 ctrl = cqhci_readl(cq_host, CQHCI_CTL);
1217 writel(val, cq_host->mmio + reg);
1219 writel(val, cq_host->mmio + reg);
1237 struct cqhci_host *cq_host = mmc->cqe_private;
1247 if (!cq_host->activated) {
1248 val = cqhci_readl(cq_host, CQHCI_CFG);
1250 cqhci_writel(cq_host, (val & ~CQHCI_ENABLE),
1255 cqhci_writel(cq_host, val, CQHCI_CFG);
1265 val = cqhci_readl(cq_host, CQHCI_SSC1);
1267 cqhci_writel(cq_host, val, CQHCI_SSC1);
1318 struct cqhci_host *cq_host = mmc->cqe_private;
1321 reg = cqhci_readl(cq_host, CQHCI_CFG);
1323 cqhci_writel(cq_host, reg, CQHCI_CFG);
1328 struct cqhci_host *cq_host = mmc->cqe_private;
1332 reg = cqhci_readl(cq_host, CQHCI_CFG);
1334 cqhci_writel(cq_host, reg, CQHCI_CFG);
1593 struct cqhci_host *cq_host;
1608 cq_host = devm_kzalloc(mmc_dev(host->mmc),
1609 sizeof(*cq_host), GFP_KERNEL);
1610 if (!cq_host) {
1615 cq_host->mmio = host->ioaddr + SDHCI_TEGRA_CQE_BASE_ADDR;
1616 cq_host->ops = &sdhci_tegra_cqhci_ops;
1620 cq_host->caps |= CQHCI_TASK_DESC_SZ_128;
1622 ret = cqhci_init(cq_host, host->mmc, dma64);