Lines Matching refs:hpriv

32 	int (*plat_config)(struct ahci_host_priv *hpriv);
36 static void ahci_mvebu_mbus_config(struct ahci_host_priv *hpriv, in ahci_mvebu_mbus_config() argument
42 writel(0, hpriv->mmio + AHCI_WINDOW_CTRL(i)); in ahci_mvebu_mbus_config()
43 writel(0, hpriv->mmio + AHCI_WINDOW_BASE(i)); in ahci_mvebu_mbus_config()
44 writel(0, hpriv->mmio + AHCI_WINDOW_SIZE(i)); in ahci_mvebu_mbus_config()
52 hpriv->mmio + AHCI_WINDOW_CTRL(i)); in ahci_mvebu_mbus_config()
53 writel(cs->base >> 16, hpriv->mmio + AHCI_WINDOW_BASE(i)); in ahci_mvebu_mbus_config()
55 hpriv->mmio + AHCI_WINDOW_SIZE(i)); in ahci_mvebu_mbus_config()
59 static void ahci_mvebu_regret_option(struct ahci_host_priv *hpriv) in ahci_mvebu_regret_option() argument
66 writel(0x4, hpriv->mmio + AHCI_VENDOR_SPECIFIC_0_ADDR); in ahci_mvebu_regret_option()
67 writel(0x80, hpriv->mmio + AHCI_VENDOR_SPECIFIC_0_DATA); in ahci_mvebu_regret_option()
70 static int ahci_mvebu_armada_380_config(struct ahci_host_priv *hpriv) in ahci_mvebu_armada_380_config() argument
77 ahci_mvebu_mbus_config(hpriv, dram); in ahci_mvebu_armada_380_config()
81 ahci_mvebu_regret_option(hpriv); in ahci_mvebu_armada_380_config()
86 static int ahci_mvebu_armada_3700_config(struct ahci_host_priv *hpriv) in ahci_mvebu_armada_3700_config() argument
90 writel(0, hpriv->mmio + AHCI_VENDOR_SPECIFIC_0_ADDR); in ahci_mvebu_armada_3700_config()
92 reg = readl(hpriv->mmio + AHCI_VENDOR_SPECIFIC_0_DATA); in ahci_mvebu_armada_3700_config()
94 writel(reg, hpriv->mmio + AHCI_VENDOR_SPECIFIC_0_DATA); in ahci_mvebu_armada_3700_config()
162 struct ahci_host_priv *hpriv = host->private_data; in ahci_mvebu_resume() local
163 const struct ahci_mvebu_plat_data *pdata = hpriv->plat_data; in ahci_mvebu_resume()
165 pdata->plat_config(hpriv); in ahci_mvebu_resume()
188 struct ahci_host_priv *hpriv; in ahci_mvebu_probe() local
195 hpriv = ahci_platform_get_resources(pdev, 0); in ahci_mvebu_probe()
196 if (IS_ERR(hpriv)) in ahci_mvebu_probe()
197 return PTR_ERR(hpriv); in ahci_mvebu_probe()
199 hpriv->flags |= pdata->flags; in ahci_mvebu_probe()
200 hpriv->plat_data = (void *)pdata; in ahci_mvebu_probe()
202 rc = ahci_platform_enable_resources(hpriv); in ahci_mvebu_probe()
206 hpriv->stop_engine = ahci_mvebu_stop_engine; in ahci_mvebu_probe()
208 rc = pdata->plat_config(hpriv); in ahci_mvebu_probe()
212 rc = ahci_platform_init_host(pdev, hpriv, &ahci_mvebu_port_info, in ahci_mvebu_probe()
220 ahci_platform_disable_resources(hpriv); in ahci_mvebu_probe()