Lines Matching full:consumers
456 * regulator consumers
468 * Assume consumers that didn't say anything are OK in regulator_check_consumers()
2300 * Other consumers will be unable to obtain this regulator while this
2304 * This is intended for use by consumers which cannot tolerate shared
2328 * This is intended for use by consumers for devices which can have
2803 * regulator enabled. Explained in example with two consumers of the same
3953 * demanded by consumers. in regulator_get_optimal_voltage()
3957 * If consumers don't provide any demands, set voltage in regulator_get_optimal_voltage()
4817 * Allow the regulator to go into bypass mode if all other consumers
4909 /* notify regulator consumers and downstream regulator consumers.
4936 struct regulator_bulk_data *consumers, enum regulator_get_type get_type) in _regulator_bulk_get() argument
4942 consumers[i].consumer = NULL; in _regulator_bulk_get()
4945 consumers[i].consumer = _regulator_get(dev, in _regulator_bulk_get()
4946 consumers[i].supply, get_type); in _regulator_bulk_get()
4947 if (IS_ERR(consumers[i].consumer)) { in _regulator_bulk_get()
4948 ret = dev_err_probe(dev, PTR_ERR(consumers[i].consumer), in _regulator_bulk_get()
4950 consumers[i].supply); in _regulator_bulk_get()
4951 consumers[i].consumer = NULL; in _regulator_bulk_get()
4955 if (consumers[i].init_load_uA > 0) { in _regulator_bulk_get()
4956 ret = regulator_set_load(consumers[i].consumer, in _regulator_bulk_get()
4957 consumers[i].init_load_uA); in _regulator_bulk_get()
4969 regulator_put(consumers[i].consumer); in _regulator_bulk_get()
4975 * regulator_bulk_get - get multiple regulator consumers
4978 * @num_consumers: Number of consumers to register
4979 * @consumers: Configuration of consumers; clients are stored here.
4982 * consumers in one operation. If any of the regulators cannot be
4989 struct regulator_bulk_data *consumers) in regulator_bulk_get() argument
4991 return _regulator_bulk_get(dev, num_consumers, consumers, NORMAL_GET); in regulator_bulk_get()
5003 * regulator_bulk_enable - enable multiple regulator consumers
5005 * @num_consumers: Number of consumers
5006 * @consumers: Consumer data; clients are stored here.
5008 * This convenience API allows consumers to enable multiple regulator
5009 * clients in a single API call. If any consumers cannot be enabled
5016 struct regulator_bulk_data *consumers) in regulator_bulk_enable() argument
5024 &consumers[i], &async_domain); in regulator_bulk_enable()
5031 if (consumers[i].ret != 0) { in regulator_bulk_enable()
5032 ret = consumers[i].ret; in regulator_bulk_enable()
5041 if (consumers[i].ret < 0) in regulator_bulk_enable()
5042 pr_err("Failed to enable %s: %pe\n", consumers[i].supply, in regulator_bulk_enable()
5043 ERR_PTR(consumers[i].ret)); in regulator_bulk_enable()
5045 regulator_disable(consumers[i].consumer); in regulator_bulk_enable()
5053 * regulator_bulk_disable - disable multiple regulator consumers
5055 * @num_consumers: Number of consumers
5056 * @consumers: Consumer data; clients are stored here.
5058 * This convenience API allows consumers to disable multiple regulator
5059 * clients in a single API call. If any consumers cannot be disabled
5066 struct regulator_bulk_data *consumers) in regulator_bulk_disable() argument
5072 ret = regulator_disable(consumers[i].consumer); in regulator_bulk_disable()
5080 pr_err("Failed to disable %s: %pe\n", consumers[i].supply, ERR_PTR(ret)); in regulator_bulk_disable()
5082 r = regulator_enable(consumers[i].consumer); in regulator_bulk_disable()
5085 consumers[i].supply, ERR_PTR(r)); in regulator_bulk_disable()
5093 * regulator_bulk_force_disable - force disable multiple regulator consumers
5095 * @num_consumers: Number of consumers
5096 * @consumers: Consumer data; clients are stored here.
5098 * This convenience API allows consumers to forcibly disable multiple regulator
5102 * Although regulator_force_disable function call for some consumers can
5103 * return error numbers, the function is called for all consumers.
5108 struct regulator_bulk_data *consumers) in regulator_bulk_force_disable() argument
5114 consumers[i].ret = in regulator_bulk_force_disable()
5115 regulator_force_disable(consumers[i].consumer); in regulator_bulk_force_disable()
5118 if (consumers[i].ret && !ret) in regulator_bulk_force_disable()
5119 ret = consumers[i].ret; in regulator_bulk_force_disable()
5127 * regulator_bulk_free - free multiple regulator consumers
5129 * @num_consumers: Number of consumers
5130 * @consumers: Consumer data; clients are stored here.
5132 * This convenience API allows consumers to free multiple regulator
5136 struct regulator_bulk_data *consumers) in regulator_bulk_free() argument
5141 regulator_put(consumers[i].consumer); in regulator_bulk_free()
5142 consumers[i].consumer = NULL; in regulator_bulk_free()
5805 /* add consumers devices */ in regulator_register()
6323 /* init early to allow our consumers to complete system booting */
6425 * so consumers might not always be ready yet, this is in regulator_init_complete()