Lines Matching refs:target_pwrs
154 if (!hpriv->target_pwrs[i]) in ahci_platform_enable_regulators()
157 rc = regulator_enable(hpriv->target_pwrs[i]); in ahci_platform_enable_regulators()
166 if (hpriv->target_pwrs[i]) in ahci_platform_enable_regulators()
167 regulator_disable(hpriv->target_pwrs[i]); in ahci_platform_enable_regulators()
184 if (!hpriv->target_pwrs[i]) in ahci_platform_disable_regulators()
186 regulator_disable(hpriv->target_pwrs[i]); in ahci_platform_disable_regulators()
272 if (hpriv->target_pwrs && hpriv->target_pwrs[c]) in ahci_platform_put_resources()
273 regulator_put(hpriv->target_pwrs[c]); in ahci_platform_put_resources()
275 kfree(hpriv->target_pwrs); in ahci_platform_put_resources()
324 hpriv->target_pwrs[port] = target_pwr; in ahci_platform_get_regulator()
411 sz = hpriv->nports * sizeof(*hpriv->target_pwrs); in ahci_platform_get_resources()
412 hpriv->target_pwrs = kzalloc(sz, GFP_KERNEL); in ahci_platform_get_resources()
413 if (!hpriv->target_pwrs) { in ahci_platform_get_resources()