Lines Matching full:consumers

451  * regulator consumers
463 * Assume consumers that didn't say anything are OK in regulator_check_consumers()
2173 * or IS_ERR() condition containing errno. Other consumers will be
2178 * This is intended for use by consumers which cannot tolerate shared
2202 * This is intended for use by consumers for devices which can have
2672 * regulator enabled. Explained in example with two consumers of the same
3775 * demanded by consumers. in regulator_get_optimal_voltage()
3779 * If consumers don't provide any demands, set voltage in regulator_get_optimal_voltage()
4619 * Allow the regulator to go into bypass mode if all other consumers
4704 /* notify regulator consumers and downstream regulator consumers.
4715 * regulator_bulk_get - get multiple regulator consumers
4718 * @num_consumers: Number of consumers to register
4719 * @consumers: Configuration of consumers; clients are stored here.
4724 * consumers in one operation. If any of the regulators cannot be
4729 struct regulator_bulk_data *consumers) in regulator_bulk_get() argument
4735 consumers[i].consumer = NULL; in regulator_bulk_get()
4738 consumers[i].consumer = regulator_get(dev, in regulator_bulk_get()
4739 consumers[i].supply); in regulator_bulk_get()
4740 if (IS_ERR(consumers[i].consumer)) { in regulator_bulk_get()
4741 ret = PTR_ERR(consumers[i].consumer); in regulator_bulk_get()
4742 consumers[i].consumer = NULL; in regulator_bulk_get()
4752 consumers[i].supply, ERR_PTR(ret)); in regulator_bulk_get()
4755 consumers[i].supply); in regulator_bulk_get()
4758 regulator_put(consumers[i].consumer); in regulator_bulk_get()
4772 * regulator_bulk_enable - enable multiple regulator consumers
4774 * @num_consumers: Number of consumers
4775 * @consumers: Consumer data; clients are stored here.
4778 * This convenience API allows consumers to enable multiple regulator
4779 * clients in a single API call. If any consumers cannot be enabled
4784 struct regulator_bulk_data *consumers) in regulator_bulk_enable() argument
4792 &consumers[i], &async_domain); in regulator_bulk_enable()
4799 if (consumers[i].ret != 0) { in regulator_bulk_enable()
4800 ret = consumers[i].ret; in regulator_bulk_enable()
4809 if (consumers[i].ret < 0) in regulator_bulk_enable()
4810 pr_err("Failed to enable %s: %pe\n", consumers[i].supply, in regulator_bulk_enable()
4811 ERR_PTR(consumers[i].ret)); in regulator_bulk_enable()
4813 regulator_disable(consumers[i].consumer); in regulator_bulk_enable()
4821 * regulator_bulk_disable - disable multiple regulator consumers
4823 * @num_consumers: Number of consumers
4824 * @consumers: Consumer data; clients are stored here.
4827 * This convenience API allows consumers to disable multiple regulator
4828 * clients in a single API call. If any consumers cannot be disabled
4833 struct regulator_bulk_data *consumers) in regulator_bulk_disable() argument
4839 ret = regulator_disable(consumers[i].consumer); in regulator_bulk_disable()
4847 pr_err("Failed to disable %s: %pe\n", consumers[i].supply, ERR_PTR(ret)); in regulator_bulk_disable()
4849 r = regulator_enable(consumers[i].consumer); in regulator_bulk_disable()
4852 consumers[i].supply, ERR_PTR(r)); in regulator_bulk_disable()
4860 * regulator_bulk_force_disable - force disable multiple regulator consumers
4862 * @num_consumers: Number of consumers
4863 * @consumers: Consumer data; clients are stored here.
4866 * This convenience API allows consumers to forcibly disable multiple regulator
4870 * Although regulator_force_disable function call for some consumers can
4871 * return error numbers, the function is called for all consumers.
4874 struct regulator_bulk_data *consumers) in regulator_bulk_force_disable() argument
4880 consumers[i].ret = in regulator_bulk_force_disable()
4881 regulator_force_disable(consumers[i].consumer); in regulator_bulk_force_disable()
4884 if (consumers[i].ret && !ret) in regulator_bulk_force_disable()
4885 ret = consumers[i].ret; in regulator_bulk_force_disable()
4893 * regulator_bulk_free - free multiple regulator consumers
4895 * @num_consumers: Number of consumers
4896 * @consumers: Consumer data; clients are stored here.
4898 * This convenience API allows consumers to free multiple regulator
4902 struct regulator_bulk_data *consumers) in regulator_bulk_free() argument
4907 regulator_put(consumers[i].consumer); in regulator_bulk_free()
4908 consumers[i].consumer = NULL; in regulator_bulk_free()
5498 /* add consumers devices */ in regulator_register()
6007 /* init early to allow our consumers to complete system booting */
6099 * so consumers might not always be ready yet, this is in regulator_init_complete()