Lines Matching full:consumers
461 * regulator consumers
473 * Assume consumers that didn't say anything are OK in regulator_check_consumers()
2040 * or IS_ERR() condition containing errno. Other consumers will be
2045 * This is intended for use by consumers which cannot tolerate shared
2069 * This is intended for use by consumers for devices which can have
2552 * regulator enabled. Explained in example with two consumers of the same
3651 * demanded by consumers. in regulator_get_optimal_voltage()
3655 * If consumers don't provide any demands, set voltage in regulator_get_optimal_voltage()
4448 * Allow the regulator to go into bypass mode if all other consumers
4533 /* notify regulator consumers and downstream regulator consumers.
4544 * regulator_bulk_get - get multiple regulator consumers
4547 * @num_consumers: Number of consumers to register
4548 * @consumers: Configuration of consumers; clients are stored here.
4553 * consumers in one operation. If any of the regulators cannot be
4558 struct regulator_bulk_data *consumers) in regulator_bulk_get() argument
4564 consumers[i].consumer = NULL; in regulator_bulk_get()
4567 consumers[i].consumer = regulator_get(dev, in regulator_bulk_get()
4568 consumers[i].supply); in regulator_bulk_get()
4569 if (IS_ERR(consumers[i].consumer)) { in regulator_bulk_get()
4570 ret = PTR_ERR(consumers[i].consumer); in regulator_bulk_get()
4571 consumers[i].consumer = NULL; in regulator_bulk_get()
4581 consumers[i].supply, ERR_PTR(ret)); in regulator_bulk_get()
4584 consumers[i].supply); in regulator_bulk_get()
4587 regulator_put(consumers[i].consumer); in regulator_bulk_get()
4601 * regulator_bulk_enable - enable multiple regulator consumers
4603 * @num_consumers: Number of consumers
4604 * @consumers: Consumer data; clients are stored here.
4607 * This convenience API allows consumers to enable multiple regulator
4608 * clients in a single API call. If any consumers cannot be enabled
4613 struct regulator_bulk_data *consumers) in regulator_bulk_enable() argument
4621 &consumers[i], &async_domain); in regulator_bulk_enable()
4628 if (consumers[i].ret != 0) { in regulator_bulk_enable()
4629 ret = consumers[i].ret; in regulator_bulk_enable()
4638 if (consumers[i].ret < 0) in regulator_bulk_enable()
4639 pr_err("Failed to enable %s: %pe\n", consumers[i].supply, in regulator_bulk_enable()
4640 ERR_PTR(consumers[i].ret)); in regulator_bulk_enable()
4642 regulator_disable(consumers[i].consumer); in regulator_bulk_enable()
4650 * regulator_bulk_disable - disable multiple regulator consumers
4652 * @num_consumers: Number of consumers
4653 * @consumers: Consumer data; clients are stored here.
4656 * This convenience API allows consumers to disable multiple regulator
4657 * clients in a single API call. If any consumers cannot be disabled
4662 struct regulator_bulk_data *consumers) in regulator_bulk_disable() argument
4668 ret = regulator_disable(consumers[i].consumer); in regulator_bulk_disable()
4676 pr_err("Failed to disable %s: %pe\n", consumers[i].supply, ERR_PTR(ret)); in regulator_bulk_disable()
4678 r = regulator_enable(consumers[i].consumer); in regulator_bulk_disable()
4681 consumers[i].supply, ERR_PTR(r)); in regulator_bulk_disable()
4689 * regulator_bulk_force_disable - force disable multiple regulator consumers
4691 * @num_consumers: Number of consumers
4692 * @consumers: Consumer data; clients are stored here.
4695 * This convenience API allows consumers to forcibly disable multiple regulator
4699 * Although regulator_force_disable function call for some consumers can
4700 * return error numbers, the function is called for all consumers.
4703 struct regulator_bulk_data *consumers) in regulator_bulk_force_disable() argument
4709 consumers[i].ret = in regulator_bulk_force_disable()
4710 regulator_force_disable(consumers[i].consumer); in regulator_bulk_force_disable()
4713 if (consumers[i].ret && !ret) in regulator_bulk_force_disable()
4714 ret = consumers[i].ret; in regulator_bulk_force_disable()
4722 * regulator_bulk_free - free multiple regulator consumers
4724 * @num_consumers: Number of consumers
4725 * @consumers: Consumer data; clients are stored here.
4727 * This convenience API allows consumers to free multiple regulator
4731 struct regulator_bulk_data *consumers) in regulator_bulk_free() argument
4736 regulator_put(consumers[i].consumer); in regulator_bulk_free()
4737 consumers[i].consumer = NULL; in regulator_bulk_free()
5322 /* add consumers devices */ in regulator_register()
5831 /* init early to allow our consumers to complete system booting */
5922 * so consumers might not always be ready yet, this is in regulator_init_complete()