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
591 hpriv = host->private_data; in xgene_ahci_irq_intr()
592 mmio = hpriv->mmio; in xgene_ahci_irq_intr()
599 irq_masked = irq_stat & hpriv->port_map; in xgene_ahci_irq_intr()
647 static int xgene_ahci_hw_init(struct ahci_host_priv *hpriv) in xgene_ahci_hw_init() argument
649 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_hw_init()
663 writel(0xffffffff, hpriv->mmio + HOST_IRQ_STAT); in xgene_ahci_hw_init()
664 readl(hpriv->mmio + HOST_IRQ_STAT); /* Force a barrier */ in xgene_ahci_hw_init()
736 struct ahci_host_priv *hpriv; in xgene_ahci_probe() local
745 hpriv = ahci_platform_get_resources(pdev, 0); in xgene_ahci_probe()
746 if (IS_ERR(hpriv)) in xgene_ahci_probe()
747 return PTR_ERR(hpriv); in xgene_ahci_probe()
753 hpriv->plat_data = ctx; in xgene_ahci_probe()
754 ctx->hpriv = hpriv; in xgene_ahci_probe()
817 hpriv->mmio); in xgene_ahci_probe()
831 rc = ahci_platform_enable_clks(hpriv); in xgene_ahci_probe()
834 ahci_platform_disable_clks(hpriv); in xgene_ahci_probe()
836 rc = ahci_platform_enable_resources(hpriv); in xgene_ahci_probe()
841 xgene_ahci_hw_init(hpriv); in xgene_ahci_probe()
846 hpriv->flags = AHCI_HFLAG_NO_NCQ; in xgene_ahci_probe()
849 hpriv->flags |= AHCI_HFLAG_YES_FBS; in xgene_ahci_probe()
850 hpriv->irq_handler = xgene_ahci_irq_intr; in xgene_ahci_probe()
856 rc = ahci_platform_init_host(pdev, hpriv, ppi[version - 1], in xgene_ahci_probe()
865 ahci_platform_disable_resources(hpriv); in xgene_ahci_probe()