Lines Matching full:consumers

456  * regulator consumers
468 * Assume consumers that didn't say anything are OK in regulator_check_consumers()
2365 * Other consumers will be unable to obtain this regulator while this
2369 * This is intended for use by consumers which cannot tolerate shared
2393 * This is intended for use by consumers for devices which can have
2829 * regulator enabled. Explained in example with two consumers of the same
4020 * demanded by consumers. in regulator_get_optimal_voltage()
4024 * If consumers don't provide any demands, set voltage in regulator_get_optimal_voltage()
4965 * Allow the regulator to go into bypass mode if all other consumers
5057 /* notify regulator consumers and downstream regulator consumers.
5084 struct regulator_bulk_data *consumers, enum regulator_get_type get_type) in _regulator_bulk_get() argument
5090 consumers[i].consumer = NULL; in _regulator_bulk_get()
5093 consumers[i].consumer = _regulator_get(dev, in _regulator_bulk_get()
5094 consumers[i].supply, get_type); in _regulator_bulk_get()
5095 if (IS_ERR(consumers[i].consumer)) { in _regulator_bulk_get()
5096 ret = dev_err_probe(dev, PTR_ERR(consumers[i].consumer), in _regulator_bulk_get()
5098 consumers[i].supply); in _regulator_bulk_get()
5099 consumers[i].consumer = NULL; in _regulator_bulk_get()
5103 if (consumers[i].init_load_uA > 0) { in _regulator_bulk_get()
5104 ret = regulator_set_load(consumers[i].consumer, in _regulator_bulk_get()
5105 consumers[i].init_load_uA); in _regulator_bulk_get()
5117 regulator_put(consumers[i].consumer); in _regulator_bulk_get()
5123 * regulator_bulk_get - get multiple regulator consumers
5126 * @num_consumers: Number of consumers to register
5127 * @consumers: Configuration of consumers; clients are stored here.
5130 * consumers in one operation. If any of the regulators cannot be
5137 struct regulator_bulk_data *consumers) in regulator_bulk_get() argument
5139 return _regulator_bulk_get(dev, num_consumers, consumers, NORMAL_GET); in regulator_bulk_get()
5151 * regulator_bulk_enable - enable multiple regulator consumers
5153 * @num_consumers: Number of consumers
5154 * @consumers: Consumer data; clients are stored here.
5156 * This convenience API allows consumers to enable multiple regulator
5157 * clients in a single API call. If any consumers cannot be enabled
5164 struct regulator_bulk_data *consumers) in regulator_bulk_enable() argument
5172 &consumers[i], &async_domain); in regulator_bulk_enable()
5179 if (consumers[i].ret != 0) { in regulator_bulk_enable()
5180 ret = consumers[i].ret; in regulator_bulk_enable()
5189 if (consumers[i].ret < 0) in regulator_bulk_enable()
5190 pr_err("Failed to enable %s: %pe\n", consumers[i].supply, in regulator_bulk_enable()
5191 ERR_PTR(consumers[i].ret)); in regulator_bulk_enable()
5193 regulator_disable(consumers[i].consumer); in regulator_bulk_enable()
5201 * regulator_bulk_disable - disable multiple regulator consumers
5203 * @num_consumers: Number of consumers
5204 * @consumers: Consumer data; clients are stored here.
5206 * This convenience API allows consumers to disable multiple regulator
5207 * clients in a single API call. If any consumers cannot be disabled
5214 struct regulator_bulk_data *consumers) in regulator_bulk_disable() argument
5220 ret = regulator_disable(consumers[i].consumer); in regulator_bulk_disable()
5228 pr_err("Failed to disable %s: %pe\n", consumers[i].supply, ERR_PTR(ret)); in regulator_bulk_disable()
5230 r = regulator_enable(consumers[i].consumer); in regulator_bulk_disable()
5233 consumers[i].supply, ERR_PTR(r)); in regulator_bulk_disable()
5241 * regulator_bulk_force_disable - force disable multiple regulator consumers
5243 * @num_consumers: Number of consumers
5244 * @consumers: Consumer data; clients are stored here.
5246 * This convenience API allows consumers to forcibly disable multiple regulator
5250 * Although regulator_force_disable function call for some consumers can
5251 * return error numbers, the function is called for all consumers.
5256 struct regulator_bulk_data *consumers) in regulator_bulk_force_disable() argument
5262 consumers[i].ret = in regulator_bulk_force_disable()
5263 regulator_force_disable(consumers[i].consumer); in regulator_bulk_force_disable()
5266 if (consumers[i].ret && !ret) in regulator_bulk_force_disable()
5267 ret = consumers[i].ret; in regulator_bulk_force_disable()
5275 * regulator_bulk_free - free multiple regulator consumers
5277 * @num_consumers: Number of consumers
5278 * @consumers: Consumer data; clients are stored here.
5280 * This convenience API allows consumers to free multiple regulator
5284 struct regulator_bulk_data *consumers) in regulator_bulk_free() argument
5289 regulator_put(consumers[i].consumer); in regulator_bulk_free()
5290 consumers[i].consumer = NULL; in regulator_bulk_free()
5963 /* add consumers devices */ in regulator_register()
6481 /* init early to allow our consumers to complete system booting */
6583 * so consumers might not always be ready yet, this is in regulator_init_complete()