Lines Matching refs:hpriv
61 static int ahci_dm816_phy_init(struct ahci_host_priv *hpriv, struct device *dev) in ahci_dm816_phy_init() argument
72 if (!hpriv->clks[1]) { in ahci_dm816_phy_init()
77 refclk_rate = clk_get_rate(hpriv->clks[1]); in ahci_dm816_phy_init()
93 writel(val, hpriv->mmio + AHCI_DM816_P0PHYCR_REG); in ahci_dm816_phy_init()
98 writel(val, hpriv->mmio + AHCI_DM816_P1PHYCR_REG); in ahci_dm816_phy_init()
144 struct ahci_host_priv *hpriv; in ahci_dm816_probe() local
147 hpriv = ahci_platform_get_resources(pdev, 0); in ahci_dm816_probe()
148 if (IS_ERR(hpriv)) in ahci_dm816_probe()
149 return PTR_ERR(hpriv); in ahci_dm816_probe()
151 rc = ahci_platform_enable_resources(hpriv); in ahci_dm816_probe()
155 rc = ahci_dm816_phy_init(hpriv, dev); in ahci_dm816_probe()
159 rc = ahci_platform_init_host(pdev, hpriv, in ahci_dm816_probe()
168 ahci_platform_disable_resources(hpriv); in ahci_dm816_probe()