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
3979 * demanded by consumers. in regulator_get_optimal_voltage()
3983 * If consumers don't provide any demands, set voltage in regulator_get_optimal_voltage()
4924 * Allow the regulator to go into bypass mode if all other consumers
5016 /* notify regulator consumers and downstream regulator consumers.
5043 struct regulator_bulk_data *consumers, enum regulator_get_type get_type) in _regulator_bulk_get() argument
5049 consumers[i].consumer = NULL; in _regulator_bulk_get()
5052 consumers[i].consumer = _regulator_get(dev, in _regulator_bulk_get()
5053 consumers[i].supply, get_type); in _regulator_bulk_get()
5054 if (IS_ERR(consumers[i].consumer)) { in _regulator_bulk_get()
5055 ret = dev_err_probe(dev, PTR_ERR(consumers[i].consumer), in _regulator_bulk_get()
5057 consumers[i].supply); in _regulator_bulk_get()
5058 consumers[i].consumer = NULL; in _regulator_bulk_get()
5062 if (consumers[i].init_load_uA > 0) { in _regulator_bulk_get()
5063 ret = regulator_set_load(consumers[i].consumer, in _regulator_bulk_get()
5064 consumers[i].init_load_uA); in _regulator_bulk_get()
5076 regulator_put(consumers[i].consumer); in _regulator_bulk_get()
5082 * regulator_bulk_get - get multiple regulator consumers
5085 * @num_consumers: Number of consumers to register
5086 * @consumers: Configuration of consumers; clients are stored here.
5089 * consumers in one operation. If any of the regulators cannot be
5096 struct regulator_bulk_data *consumers) in regulator_bulk_get() argument
5098 return _regulator_bulk_get(dev, num_consumers, consumers, NORMAL_GET); in regulator_bulk_get()
5110 * regulator_bulk_enable - enable multiple regulator consumers
5112 * @num_consumers: Number of consumers
5113 * @consumers: Consumer data; clients are stored here.
5115 * This convenience API allows consumers to enable multiple regulator
5116 * clients in a single API call. If any consumers cannot be enabled
5123 struct regulator_bulk_data *consumers) in regulator_bulk_enable() argument
5131 &consumers[i], &async_domain); in regulator_bulk_enable()
5138 if (consumers[i].ret != 0) { in regulator_bulk_enable()
5139 ret = consumers[i].ret; in regulator_bulk_enable()
5148 if (consumers[i].ret < 0) in regulator_bulk_enable()
5149 pr_err("Failed to enable %s: %pe\n", consumers[i].supply, in regulator_bulk_enable()
5150 ERR_PTR(consumers[i].ret)); in regulator_bulk_enable()
5152 regulator_disable(consumers[i].consumer); in regulator_bulk_enable()
5160 * regulator_bulk_disable - disable multiple regulator consumers
5162 * @num_consumers: Number of consumers
5163 * @consumers: Consumer data; clients are stored here.
5165 * This convenience API allows consumers to disable multiple regulator
5166 * clients in a single API call. If any consumers cannot be disabled
5173 struct regulator_bulk_data *consumers) in regulator_bulk_disable() argument
5179 ret = regulator_disable(consumers[i].consumer); in regulator_bulk_disable()
5187 pr_err("Failed to disable %s: %pe\n", consumers[i].supply, ERR_PTR(ret)); in regulator_bulk_disable()
5189 r = regulator_enable(consumers[i].consumer); in regulator_bulk_disable()
5192 consumers[i].supply, ERR_PTR(r)); in regulator_bulk_disable()
5200 * regulator_bulk_force_disable - force disable multiple regulator consumers
5202 * @num_consumers: Number of consumers
5203 * @consumers: Consumer data; clients are stored here.
5205 * This convenience API allows consumers to forcibly disable multiple regulator
5209 * Although regulator_force_disable function call for some consumers can
5210 * return error numbers, the function is called for all consumers.
5215 struct regulator_bulk_data *consumers) in regulator_bulk_force_disable() argument
5221 consumers[i].ret = in regulator_bulk_force_disable()
5222 regulator_force_disable(consumers[i].consumer); in regulator_bulk_force_disable()
5225 if (consumers[i].ret && !ret) in regulator_bulk_force_disable()
5226 ret = consumers[i].ret; in regulator_bulk_force_disable()
5234 * regulator_bulk_free - free multiple regulator consumers
5236 * @num_consumers: Number of consumers
5237 * @consumers: Consumer data; clients are stored here.
5239 * This convenience API allows consumers to free multiple regulator
5243 struct regulator_bulk_data *consumers) in regulator_bulk_free() argument
5248 regulator_put(consumers[i].consumer); in regulator_bulk_free()
5249 consumers[i].consumer = NULL; in regulator_bulk_free()
5921 /* add consumers devices */ in regulator_register()
6439 /* init early to allow our consumers to complete system booting */
6541 * so consumers might not always be ready yet, this is in regulator_init_complete()