Lines Matching full:consumers

452  * regulator consumers
464 * Assume consumers that didn't say anything are OK in regulator_check_consumers()
2239 * or IS_ERR() condition containing errno. Other consumers will be
2244 * This is intended for use by consumers which cannot tolerate shared
2268 * This is intended for use by consumers for devices which can have
2738 * regulator enabled. Explained in example with two consumers of the same
3839 * demanded by consumers. in regulator_get_optimal_voltage()
3843 * If consumers don't provide any demands, set voltage in regulator_get_optimal_voltage()
4686 * Allow the regulator to go into bypass mode if all other consumers
4771 /* notify regulator consumers and downstream regulator consumers.
4782 * regulator_bulk_get - get multiple regulator consumers
4785 * @num_consumers: Number of consumers to register
4786 * @consumers: Configuration of consumers; clients are stored here.
4791 * consumers in one operation. If any of the regulators cannot be
4796 struct regulator_bulk_data *consumers) in regulator_bulk_get() argument
4802 consumers[i].consumer = NULL; in regulator_bulk_get()
4805 consumers[i].consumer = regulator_get(dev, in regulator_bulk_get()
4806 consumers[i].supply); in regulator_bulk_get()
4807 if (IS_ERR(consumers[i].consumer)) { in regulator_bulk_get()
4808 ret = dev_err_probe(dev, PTR_ERR(consumers[i].consumer), in regulator_bulk_get()
4810 consumers[i].supply); in regulator_bulk_get()
4811 consumers[i].consumer = NULL; in regulator_bulk_get()
4815 if (consumers[i].init_load_uA > 0) { in regulator_bulk_get()
4816 ret = regulator_set_load(consumers[i].consumer, in regulator_bulk_get()
4817 consumers[i].init_load_uA); in regulator_bulk_get()
4829 regulator_put(consumers[i].consumer); in regulator_bulk_get()
4843 * regulator_bulk_enable - enable multiple regulator consumers
4845 * @num_consumers: Number of consumers
4846 * @consumers: Consumer data; clients are stored here.
4849 * This convenience API allows consumers to enable multiple regulator
4850 * clients in a single API call. If any consumers cannot be enabled
4855 struct regulator_bulk_data *consumers) in regulator_bulk_enable() argument
4863 &consumers[i], &async_domain); in regulator_bulk_enable()
4870 if (consumers[i].ret != 0) { in regulator_bulk_enable()
4871 ret = consumers[i].ret; in regulator_bulk_enable()
4880 if (consumers[i].ret < 0) in regulator_bulk_enable()
4881 pr_err("Failed to enable %s: %pe\n", consumers[i].supply, in regulator_bulk_enable()
4882 ERR_PTR(consumers[i].ret)); in regulator_bulk_enable()
4884 regulator_disable(consumers[i].consumer); in regulator_bulk_enable()
4892 * regulator_bulk_disable - disable multiple regulator consumers
4894 * @num_consumers: Number of consumers
4895 * @consumers: Consumer data; clients are stored here.
4898 * This convenience API allows consumers to disable multiple regulator
4899 * clients in a single API call. If any consumers cannot be disabled
4904 struct regulator_bulk_data *consumers) in regulator_bulk_disable() argument
4910 ret = regulator_disable(consumers[i].consumer); in regulator_bulk_disable()
4918 pr_err("Failed to disable %s: %pe\n", consumers[i].supply, ERR_PTR(ret)); in regulator_bulk_disable()
4920 r = regulator_enable(consumers[i].consumer); in regulator_bulk_disable()
4923 consumers[i].supply, ERR_PTR(r)); in regulator_bulk_disable()
4931 * regulator_bulk_force_disable - force disable multiple regulator consumers
4933 * @num_consumers: Number of consumers
4934 * @consumers: Consumer data; clients are stored here.
4937 * This convenience API allows consumers to forcibly disable multiple regulator
4941 * Although regulator_force_disable function call for some consumers can
4942 * return error numbers, the function is called for all consumers.
4945 struct regulator_bulk_data *consumers) in regulator_bulk_force_disable() argument
4951 consumers[i].ret = in regulator_bulk_force_disable()
4952 regulator_force_disable(consumers[i].consumer); in regulator_bulk_force_disable()
4955 if (consumers[i].ret && !ret) in regulator_bulk_force_disable()
4956 ret = consumers[i].ret; in regulator_bulk_force_disable()
4964 * regulator_bulk_free - free multiple regulator consumers
4966 * @num_consumers: Number of consumers
4967 * @consumers: Consumer data; clients are stored here.
4969 * This convenience API allows consumers to free multiple regulator
4973 struct regulator_bulk_data *consumers) in regulator_bulk_free() argument
4978 regulator_put(consumers[i].consumer); in regulator_bulk_free()
4979 consumers[i].consumer = NULL; in regulator_bulk_free()
5602 /* add consumers devices */ in regulator_register()
6114 /* init early to allow our consumers to complete system booting */
6199 * so consumers might not always be ready yet, this is in regulator_init_complete()