Lines Matching full:consumers

469  * regulator consumers
481 * Assume consumers that didn't say anything are OK in regulator_check_consumers()
2493 * Other consumers will be unable to obtain this regulator while this
2497 * This is intended for use by consumers which cannot tolerate shared
2521 * This is intended for use by consumers for devices which can have
2978 * regulator enabled. Explained in example with two consumers of the same
4169 * demanded by consumers. in regulator_get_optimal_voltage()
4173 * If consumers don't provide any demands, set voltage in regulator_get_optimal_voltage()
5114 * Allow the regulator to go into bypass mode if all other consumers
5206 /* notify regulator consumers and downstream regulator consumers.
5233 struct regulator_bulk_data *consumers, enum regulator_get_type get_type) in _regulator_bulk_get() argument
5239 consumers[i].consumer = NULL; in _regulator_bulk_get()
5242 consumers[i].consumer = _regulator_get(dev, in _regulator_bulk_get()
5243 consumers[i].supply, get_type); in _regulator_bulk_get()
5244 if (IS_ERR(consumers[i].consumer)) { in _regulator_bulk_get()
5245 ret = dev_err_probe(dev, PTR_ERR(consumers[i].consumer), in _regulator_bulk_get()
5247 consumers[i].supply); in _regulator_bulk_get()
5248 consumers[i].consumer = NULL; in _regulator_bulk_get()
5252 if (consumers[i].init_load_uA > 0) { in _regulator_bulk_get()
5253 ret = regulator_set_load(consumers[i].consumer, in _regulator_bulk_get()
5254 consumers[i].init_load_uA); in _regulator_bulk_get()
5266 regulator_put(consumers[i].consumer); in _regulator_bulk_get()
5272 * regulator_bulk_get - get multiple regulator consumers
5275 * @num_consumers: Number of consumers to register
5276 * @consumers: Configuration of consumers; clients are stored here.
5279 * consumers in one operation. If any of the regulators cannot be
5286 struct regulator_bulk_data *consumers) in regulator_bulk_get() argument
5288 return _regulator_bulk_get(dev, num_consumers, consumers, NORMAL_GET); in regulator_bulk_get()
5300 * regulator_bulk_enable - enable multiple regulator consumers
5302 * @num_consumers: Number of consumers
5303 * @consumers: Consumer data; clients are stored here.
5305 * This convenience API allows consumers to enable multiple regulator
5306 * clients in a single API call. If any consumers cannot be enabled
5313 struct regulator_bulk_data *consumers) in regulator_bulk_enable() argument
5321 &consumers[i], &async_domain); in regulator_bulk_enable()
5328 if (consumers[i].ret != 0) { in regulator_bulk_enable()
5329 ret = consumers[i].ret; in regulator_bulk_enable()
5338 if (consumers[i].ret < 0) in regulator_bulk_enable()
5339 pr_err("Failed to enable %s: %pe\n", consumers[i].supply, in regulator_bulk_enable()
5340 ERR_PTR(consumers[i].ret)); in regulator_bulk_enable()
5342 regulator_disable(consumers[i].consumer); in regulator_bulk_enable()
5350 * regulator_bulk_disable - disable multiple regulator consumers
5352 * @num_consumers: Number of consumers
5353 * @consumers: Consumer data; clients are stored here.
5355 * This convenience API allows consumers to disable multiple regulator
5356 * clients in a single API call. If any consumers cannot be disabled
5363 struct regulator_bulk_data *consumers) in regulator_bulk_disable() argument
5369 ret = regulator_disable(consumers[i].consumer); in regulator_bulk_disable()
5377 pr_err("Failed to disable %s: %pe\n", consumers[i].supply, ERR_PTR(ret)); in regulator_bulk_disable()
5379 r = regulator_enable(consumers[i].consumer); in regulator_bulk_disable()
5382 consumers[i].supply, ERR_PTR(r)); in regulator_bulk_disable()
5390 * regulator_bulk_force_disable - force disable multiple regulator consumers
5392 * @num_consumers: Number of consumers
5393 * @consumers: Consumer data; clients are stored here.
5395 * This convenience API allows consumers to forcibly disable multiple regulator
5399 * Although regulator_force_disable function call for some consumers can
5400 * return error numbers, the function is called for all consumers.
5405 struct regulator_bulk_data *consumers) in regulator_bulk_force_disable() argument
5411 consumers[i].ret = in regulator_bulk_force_disable()
5412 regulator_force_disable(consumers[i].consumer); in regulator_bulk_force_disable()
5415 if (consumers[i].ret && !ret) in regulator_bulk_force_disable()
5416 ret = consumers[i].ret; in regulator_bulk_force_disable()
5424 * regulator_bulk_free - free multiple regulator consumers
5426 * @num_consumers: Number of consumers
5427 * @consumers: Consumer data; clients are stored here.
5429 * This convenience API allows consumers to free multiple regulator
5433 struct regulator_bulk_data *consumers) in regulator_bulk_free() argument
5438 regulator_put(consumers[i].consumer); in regulator_bulk_free()
5439 consumers[i].consumer = NULL; in regulator_bulk_free()
6112 /* add consumers devices */ in regulator_register()
6633 /* init early to allow our consumers to complete system booting */
6735 * so consumers might not always be ready yet, this is in regulator_init_complete()