Lines Matching refs:hpriv
122 static void ahci_ceva_setup(struct ahci_host_priv *hpriv)
124 void __iomem *mmio = hpriv->mmio;
125 struct ceva_ahci_priv *cevapriv = hpriv->plat_data;
191 static int ceva_ahci_platform_enable_resources(struct ahci_host_priv *hpriv)
195 rc = ahci_platform_enable_regulators(hpriv);
199 rc = ahci_platform_enable_clks(hpriv);
204 rc = ahci_platform_assert_rsts(hpriv);
208 for (i = 0; i < hpriv->nports; i++) {
209 rc = phy_init(hpriv->phys[i]);
215 ahci_platform_deassert_rsts(hpriv);
217 for (i = 0; i < hpriv->nports; i++) {
218 rc = phy_power_on(hpriv->phys[i]);
220 phy_exit(hpriv->phys[i]);
228 ahci_platform_deassert_rsts(hpriv);
232 phy_power_off(hpriv->phys[i]);
233 phy_exit(hpriv->phys[i]);
237 ahci_platform_disable_clks(hpriv);
240 ahci_platform_disable_regulators(hpriv);
249 struct ahci_host_priv *hpriv;
259 hpriv = ahci_platform_get_resources(pdev, 0);
260 if (IS_ERR(hpriv))
261 return PTR_ERR(hpriv);
263 hpriv->rsts = devm_reset_control_get_optional_exclusive(&pdev->dev,
265 if (IS_ERR(hpriv->rsts))
266 return dev_err_probe(&pdev->dev, PTR_ERR(hpriv->rsts),
269 rc = ceva_ahci_platform_enable_resources(hpriv);
343 hpriv->plat_data = cevapriv;
346 ahci_ceva_setup(hpriv);
348 rc = ahci_platform_init_host(pdev, hpriv, &ahci_ceva_port_info,
356 ahci_platform_disable_resources(hpriv);
368 struct ahci_host_priv *hpriv = host->private_data;
371 rc = ceva_ahci_platform_enable_resources(hpriv);
376 ahci_ceva_setup(hpriv);
390 ahci_platform_disable_resources(hpriv);