Lines Matching refs:hpriv
123 static void ahci_ceva_setup(struct ahci_host_priv *hpriv) in ahci_ceva_setup() argument
125 void __iomem *mmio = hpriv->mmio; in ahci_ceva_setup()
126 struct ceva_ahci_priv *cevapriv = hpriv->plat_data; in ahci_ceva_setup()
196 struct ahci_host_priv *hpriv; in ceva_ahci_probe() local
213 hpriv = ahci_platform_get_resources(pdev, 0); in ceva_ahci_probe()
214 if (IS_ERR(hpriv)) in ceva_ahci_probe()
215 return PTR_ERR(hpriv); in ceva_ahci_probe()
218 rc = ahci_platform_enable_resources(hpriv); in ceva_ahci_probe()
224 rc = ahci_platform_enable_clks(hpriv); in ceva_ahci_probe()
230 for (i = 0; i < hpriv->nports; i++) { in ceva_ahci_probe()
231 rc = phy_init(hpriv->phys[i]); in ceva_ahci_probe()
239 for (i = 0; i < hpriv->nports; i++) { in ceva_ahci_probe()
240 rc = phy_power_on(hpriv->phys[i]); in ceva_ahci_probe()
242 phy_exit(hpriv->phys[i]); in ceva_ahci_probe()
310 hpriv->plat_data = cevapriv; in ceva_ahci_probe()
313 ahci_ceva_setup(hpriv); in ceva_ahci_probe()
315 rc = ahci_platform_init_host(pdev, hpriv, &ahci_ceva_port_info, in ceva_ahci_probe()
323 ahci_platform_disable_resources(hpriv); in ceva_ahci_probe()
335 struct ahci_host_priv *hpriv = host->private_data; in ceva_ahci_resume() local
338 rc = ahci_platform_enable_resources(hpriv); in ceva_ahci_resume()
343 ahci_ceva_setup(hpriv); in ceva_ahci_resume()
357 ahci_platform_disable_resources(hpriv); in ceva_ahci_resume()