Lines Matching defs:consumers
474 * regulator consumers
486 * Assume consumers that didn't say anything are OK
2593 * Other consumers will be unable to obtain this regulator while this
2597 * This is intended for use by consumers which cannot tolerate shared
2621 * This is intended for use by consumers for devices which can have
3078 * regulator enabled. Explained in example with two consumers of the same
4269 * demanded by consumers.
4273 * If consumers don't provide any demands, set voltage
5215 * Allow the regulator to go into bypass mode if all other consumers
5307 /* notify regulator consumers and downstream regulator consumers.
5334 struct regulator_bulk_data *consumers, enum regulator_get_type get_type)
5340 consumers[i].consumer = NULL;
5343 consumers[i].consumer = _regulator_get(dev,
5344 consumers[i].supply, get_type);
5345 if (IS_ERR(consumers[i].consumer)) {
5346 ret = dev_err_probe(dev, PTR_ERR(consumers[i].consumer),
5348 consumers[i].supply);
5349 consumers[i].consumer = NULL;
5353 if (consumers[i].init_load_uA > 0) {
5354 ret = regulator_set_load(consumers[i].consumer,
5355 consumers[i].init_load_uA);
5367 regulator_put(consumers[i].consumer);
5373 * regulator_bulk_get - get multiple regulator consumers
5376 * @num_consumers: Number of consumers to register
5377 * @consumers: Configuration of consumers; clients are stored here.
5380 * consumers in one operation. If any of the regulators cannot be
5387 struct regulator_bulk_data *consumers)
5389 return _regulator_bulk_get(dev, num_consumers, consumers, NORMAL_GET);
5401 * regulator_bulk_enable - enable multiple regulator consumers
5403 * @num_consumers: Number of consumers
5404 * @consumers: Consumer data; clients are stored here.
5406 * This convenience API allows consumers to enable multiple regulator
5407 * clients in a single API call. If any consumers cannot be enabled
5414 struct regulator_bulk_data *consumers)
5422 &consumers[i], &async_domain);
5429 if (consumers[i].ret != 0) {
5430 ret = consumers[i].ret;
5439 if (consumers[i].ret < 0)
5440 pr_err("Failed to enable %s: %pe\n", consumers[i].supply,
5441 ERR_PTR(consumers[i].ret));
5443 regulator_disable(consumers[i].consumer);
5451 * regulator_bulk_disable - disable multiple regulator consumers
5453 * @num_consumers: Number of consumers
5454 * @consumers: Consumer data; clients are stored here.
5456 * This convenience API allows consumers to disable multiple regulator
5457 * clients in a single API call. If any consumers cannot be disabled
5464 struct regulator_bulk_data *consumers)
5470 ret = regulator_disable(consumers[i].consumer);
5478 pr_err("Failed to disable %s: %pe\n", consumers[i].supply, ERR_PTR(ret));
5480 r = regulator_enable(consumers[i].consumer);
5483 consumers[i].supply, ERR_PTR(r));
5491 * regulator_bulk_force_disable - force disable multiple regulator consumers
5493 * @num_consumers: Number of consumers
5494 * @consumers: Consumer data; clients are stored here.
5496 * This convenience API allows consumers to forcibly disable multiple regulator
5500 * Although regulator_force_disable function call for some consumers can
5501 * return error numbers, the function is called for all consumers.
5506 struct regulator_bulk_data *consumers)
5512 consumers[i].ret =
5513 regulator_force_disable(consumers[i].consumer);
5516 if (consumers[i].ret && !ret)
5517 ret = consumers[i].ret;
5525 * regulator_bulk_free - free multiple regulator consumers
5527 * @num_consumers: Number of consumers
5528 * @consumers: Consumer data; clients are stored here.
5530 * This convenience API allows consumers to free multiple regulator
5534 struct regulator_bulk_data *consumers)
5539 regulator_put(consumers[i].consumer);
5540 consumers[i].consumer = NULL;
6200 /* add consumers devices */
6240 * triggers (re)probe of consumers if successful.
6811 /* init early to allow our consumers to complete system booting */
6903 * so consumers might not always be ready yet, this is