Lines Matching refs:hpriv

118 static void brcm_sata_alpm_init(struct ahci_host_priv *hpriv)
120 struct brcm_ahci_priv *priv = hpriv->plat_data;
125 host_caps = readl(hpriv->mmio + HOST_CAP);
127 hpriv->flags |= AHCI_HFLAG_YES_ALPM;
138 hpriv->mmio + SATA_PORT_PCTRL6(port_ctrl));
217 static u32 brcm_ahci_get_portmask(struct ahci_host_priv *hpriv,
222 impl = readl(hpriv->mmio + HOST_PORTS_IMPL);
253 struct ahci_host_priv *hpriv = host->private_data;
254 struct brcm_ahci_priv *priv = hpriv->plat_data;
255 void __iomem *mmio = hpriv->mmio;
280 ahci_platform_disable_clks(hpriv);
283 ahci_platform_enable_clks(hpriv);
290 for (i = 0; i < hpriv->nports; i++) {
291 rc = phy_init(hpriv->phys[i]);
295 rc = phy_calibrate(hpriv->phys[i]);
297 phy_exit(hpriv->phys[i]);
314 phy_power_off(hpriv->phys[i]);
315 phy_exit(hpriv->phys[i]);
323 struct ahci_host_priv *hpriv = host->private_data;
325 ahci_platform_disable_resources(hpriv);
345 struct ahci_host_priv *hpriv = host->private_data;
346 struct brcm_ahci_priv *priv = hpriv->plat_data;
365 struct ahci_host_priv *hpriv = host->private_data;
366 struct brcm_ahci_priv *priv = hpriv->plat_data;
377 ret = ahci_platform_enable_clks(hpriv);
381 ret = ahci_platform_enable_regulators(hpriv);
387 brcm_sata_alpm_init(hpriv);
395 ret = ahci_platform_enable_phys(hpriv);
411 ahci_platform_disable_phys(hpriv);
414 ahci_platform_disable_regulators(hpriv);
416 ahci_platform_disable_clks(hpriv);
439 struct ahci_host_priv *hpriv;
469 hpriv = ahci_platform_get_resources(pdev, 0);
470 if (IS_ERR(hpriv))
471 return PTR_ERR(hpriv);
473 hpriv->plat_data = priv;
474 hpriv->flags = AHCI_HFLAG_WAKE_BEFORE_STOP | AHCI_HFLAG_NO_WRITE_TO_RO;
478 hpriv->flags |= AHCI_HFLAG_DELAY_ENGINE;
481 hpriv->flags |= AHCI_HFLAG_NO_NCQ;
495 ret = ahci_platform_enable_clks(hpriv);
499 ret = ahci_platform_enable_regulators(hpriv);
509 priv->port_mask = brcm_ahci_get_portmask(hpriv, priv);
518 brcm_sata_alpm_init(hpriv);
520 ret = ahci_platform_enable_phys(hpriv);
524 ret = ahci_platform_init_host(pdev, hpriv, &ahci_brcm_port_info,
534 ahci_platform_disable_phys(hpriv);
538 ahci_platform_disable_regulators(hpriv);
540 ahci_platform_disable_clks(hpriv);
550 struct ahci_host_priv *hpriv = host->private_data;
551 struct brcm_ahci_priv *priv = hpriv->plat_data;