Lines Matching refs:consumers
4804 struct regulator_bulk_data *consumers) in regulator_bulk_get() argument
4810 consumers[i].consumer = NULL; in regulator_bulk_get()
4813 consumers[i].consumer = regulator_get(dev, in regulator_bulk_get()
4814 consumers[i].supply); in regulator_bulk_get()
4815 if (IS_ERR(consumers[i].consumer)) { in regulator_bulk_get()
4816 ret = dev_err_probe(dev, PTR_ERR(consumers[i].consumer), in regulator_bulk_get()
4818 consumers[i].supply); in regulator_bulk_get()
4819 consumers[i].consumer = NULL; in regulator_bulk_get()
4823 if (consumers[i].init_load_uA > 0) { in regulator_bulk_get()
4824 ret = regulator_set_load(consumers[i].consumer, in regulator_bulk_get()
4825 consumers[i].init_load_uA); in regulator_bulk_get()
4837 regulator_put(consumers[i].consumer); in regulator_bulk_get()
4863 struct regulator_bulk_data *consumers) in regulator_bulk_enable() argument
4871 &consumers[i], &async_domain); in regulator_bulk_enable()
4878 if (consumers[i].ret != 0) { in regulator_bulk_enable()
4879 ret = consumers[i].ret; in regulator_bulk_enable()
4888 if (consumers[i].ret < 0) in regulator_bulk_enable()
4889 pr_err("Failed to enable %s: %pe\n", consumers[i].supply, in regulator_bulk_enable()
4890 ERR_PTR(consumers[i].ret)); in regulator_bulk_enable()
4892 regulator_disable(consumers[i].consumer); in regulator_bulk_enable()
4912 struct regulator_bulk_data *consumers) in regulator_bulk_disable() argument
4918 ret = regulator_disable(consumers[i].consumer); in regulator_bulk_disable()
4926 pr_err("Failed to disable %s: %pe\n", consumers[i].supply, ERR_PTR(ret)); in regulator_bulk_disable()
4928 r = regulator_enable(consumers[i].consumer); in regulator_bulk_disable()
4931 consumers[i].supply, ERR_PTR(r)); in regulator_bulk_disable()
4953 struct regulator_bulk_data *consumers) in regulator_bulk_force_disable() argument
4959 consumers[i].ret = in regulator_bulk_force_disable()
4960 regulator_force_disable(consumers[i].consumer); in regulator_bulk_force_disable()
4963 if (consumers[i].ret && !ret) in regulator_bulk_force_disable()
4964 ret = consumers[i].ret; in regulator_bulk_force_disable()
4981 struct regulator_bulk_data *consumers) in regulator_bulk_free() argument
4986 regulator_put(consumers[i].consumer); in regulator_bulk_free()
4987 consumers[i].consumer = NULL; in regulator_bulk_free()