Lines Matching refs:target_pwrs
167 if (!hpriv->target_pwrs[i]) in ahci_platform_enable_regulators()
170 rc = regulator_enable(hpriv->target_pwrs[i]); in ahci_platform_enable_regulators()
179 if (hpriv->target_pwrs[i]) in ahci_platform_enable_regulators()
180 regulator_disable(hpriv->target_pwrs[i]); in ahci_platform_enable_regulators()
201 if (!hpriv->target_pwrs[i]) in ahci_platform_disable_regulators()
203 regulator_disable(hpriv->target_pwrs[i]); in ahci_platform_disable_regulators()
303 if (hpriv->target_pwrs && hpriv->target_pwrs[c]) in ahci_platform_put_resources()
304 regulator_put(hpriv->target_pwrs[c]); in ahci_platform_put_resources()
306 kfree(hpriv->target_pwrs); in ahci_platform_put_resources()
359 hpriv->target_pwrs[port] = target_pwr; in ahci_platform_get_regulator()
476 hpriv->target_pwrs = kcalloc(hpriv->nports, sizeof(*hpriv->target_pwrs), GFP_KERNEL); in ahci_platform_get_resources()
477 if (!hpriv->target_pwrs) { in ahci_platform_get_resources()