Lines Matching defs:regulators

316 	if (!opp_table->regulators)
349 reg = opp_table->regulators[i];
968 struct regulator **regulators, unsigned int count)
970 struct regulator *reg = regulators[0];
975 dev_err(dev, "multiple regulators are not supported\n");
985 * some boot-enabled regulators.
1154 if (opp_table->regulators)
1155 regulator_disable(opp_table->regulators[0]);
1209 opp_table->regulators,
1229 opp_table->regulators,
1826 if (!opp_table->regulators)
1830 reg = opp_table->regulators[i];
1930 /* Should we compare voltages for all regulators here ? */
1988 dev_warn(dev, "%s: OPP not supported by regulators (%lu)\n",
2154 * @count: Number of regulators.
2157 * device's regulators, as the core would be required to switch voltages as
2169 /* Count number of regulators */
2176 /* Another CPU that shares the OPP table has set the regulators ? */
2177 if (opp_table->regulators)
2180 opp_table->regulators = kmalloc_array(count,
2181 sizeof(*opp_table->regulators),
2183 if (!opp_table->regulators)
2195 opp_table->regulators[i] = reg;
2200 /* Set generic config_regulators() for single regulators here */
2208 regulator_put(opp_table->regulators[--i]);
2210 kfree(opp_table->regulators);
2211 opp_table->regulators = NULL;
2225 if (!opp_table->regulators)
2230 regulator_disable(opp_table->regulators[i]);
2234 regulator_put(opp_table->regulators[i]);
2236 kfree(opp_table->regulators);
2237 opp_table->regulators = NULL;
2360 * This is useful to support platforms with multiple regulators per device.
3139 * dev_pm_opp_sync_regulators() - Sync state of voltage regulators
3142 * Sync voltage state of the OPP table regulators.
3158 if (unlikely(!opp_table->regulators))
3166 reg = opp_table->regulators[i];