Lines Matching refs:hpriv

81 	struct ahci_host_priv *hpriv;  member
140 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_restart_engine() local
155 hpriv->stop_engine(ap); in xgene_ahci_restart_engine()
168 hpriv->start_engine(ap); in xgene_ahci_restart_engine()
192 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_qc_issue() local
193 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_qc_issue()
269 void __iomem *mmio = ctx->hpriv->mmio; in xgene_ahci_set_phy_cfg()
355 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_do_hardreset() local
356 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_do_hardreset()
394 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_hardreset() local
411 hpriv->stop_engine(ap); in xgene_ahci_hardreset()
422 hpriv->start_engine(ap); in xgene_ahci_hardreset()
432 struct ahci_host_priv *hpriv = host->private_data; in xgene_ahci_host_stop() local
434 ahci_platform_disable_resources(hpriv); in xgene_ahci_host_stop()
500 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_softreset() local
501 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_softreset()
565 struct ahci_host_priv *hpriv = host->private_data; in xgene_ahci_handle_broken_edge_irq() local
569 if (!readl(hpriv->mmio + HOST_IRQ_STAT)) { in xgene_ahci_handle_broken_edge_irq()
586 struct ahci_host_priv *hpriv; in xgene_ahci_irq_intr() local
593 hpriv = host->private_data; in xgene_ahci_irq_intr()
594 mmio = hpriv->mmio; in xgene_ahci_irq_intr()
601 irq_masked = irq_stat & hpriv->port_map; in xgene_ahci_irq_intr()
651 static int xgene_ahci_hw_init(struct ahci_host_priv *hpriv) in xgene_ahci_hw_init() argument
653 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_hw_init()
667 writel(0xffffffff, hpriv->mmio + HOST_IRQ_STAT); in xgene_ahci_hw_init()
668 readl(hpriv->mmio + HOST_IRQ_STAT); /* Force a barrier */ in xgene_ahci_hw_init()
740 struct ahci_host_priv *hpriv; in xgene_ahci_probe() local
749 hpriv = ahci_platform_get_resources(pdev, 0); in xgene_ahci_probe()
750 if (IS_ERR(hpriv)) in xgene_ahci_probe()
751 return PTR_ERR(hpriv); in xgene_ahci_probe()
757 hpriv->plat_data = ctx; in xgene_ahci_probe()
758 ctx->hpriv = hpriv; in xgene_ahci_probe()
821 hpriv->mmio); in xgene_ahci_probe()
835 rc = ahci_platform_enable_clks(hpriv); in xgene_ahci_probe()
838 ahci_platform_disable_clks(hpriv); in xgene_ahci_probe()
840 rc = ahci_platform_enable_resources(hpriv); in xgene_ahci_probe()
845 xgene_ahci_hw_init(hpriv); in xgene_ahci_probe()
850 hpriv->flags = AHCI_HFLAG_NO_NCQ; in xgene_ahci_probe()
853 hpriv->flags |= AHCI_HFLAG_YES_FBS; in xgene_ahci_probe()
854 hpriv->irq_handler = xgene_ahci_irq_intr; in xgene_ahci_probe()
860 rc = ahci_platform_init_host(pdev, hpriv, ppi[version - 1], in xgene_ahci_probe()
869 ahci_platform_disable_resources(hpriv); in xgene_ahci_probe()