Lines Matching refs:hpriv
94 struct ahci_host_priv *hpriv; member
153 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_restart_engine() local
181 hpriv->start_engine(ap); in xgene_ahci_restart_engine()
205 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_qc_issue() local
206 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_qc_issue()
282 void __iomem *mmio = ctx->hpriv->mmio; in xgene_ahci_set_phy_cfg()
368 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_do_hardreset() local
369 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_do_hardreset()
407 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_hardreset() local
435 hpriv->start_engine(ap); in xgene_ahci_hardreset()
445 struct ahci_host_priv *hpriv = host->private_data; in xgene_ahci_host_stop() local
447 ahci_platform_disable_resources(hpriv); in xgene_ahci_host_stop()
513 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_softreset() local
514 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_softreset()
582 static int xgene_ahci_hw_init(struct ahci_host_priv *hpriv) in xgene_ahci_hw_init() argument
584 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_hw_init()
598 writel(0xffffffff, hpriv->mmio + HOST_IRQ_STAT); in xgene_ahci_hw_init()
599 readl(hpriv->mmio + HOST_IRQ_STAT); /* Force a barrier */ in xgene_ahci_hw_init()
671 struct ahci_host_priv *hpriv; in xgene_ahci_probe() local
680 hpriv = ahci_platform_get_resources(pdev); in xgene_ahci_probe()
681 if (IS_ERR(hpriv)) in xgene_ahci_probe()
682 return PTR_ERR(hpriv); in xgene_ahci_probe()
688 hpriv->plat_data = ctx; in xgene_ahci_probe()
689 ctx->hpriv = hpriv; in xgene_ahci_probe()
750 hpriv->mmio); in xgene_ahci_probe()
764 rc = ahci_platform_enable_clks(hpriv); in xgene_ahci_probe()
767 ahci_platform_disable_clks(hpriv); in xgene_ahci_probe()
769 rc = ahci_platform_enable_resources(hpriv); in xgene_ahci_probe()
774 xgene_ahci_hw_init(hpriv); in xgene_ahci_probe()
779 hpriv->flags = AHCI_HFLAG_NO_NCQ; in xgene_ahci_probe()
782 hpriv->flags |= AHCI_HFLAG_YES_FBS | AHCI_HFLAG_EDGE_IRQ; in xgene_ahci_probe()
788 rc = ahci_platform_init_host(pdev, hpriv, ppi[version - 1], in xgene_ahci_probe()
797 ahci_platform_disable_resources(hpriv); in xgene_ahci_probe()