Home
last modified time | relevance | path

Searched full:supplies (Results 1 – 25 of 594) sorted by relevance

12345678910>>...24

/Linux-v6.1/drivers/staging/greybus/
Dpower_supply.c31 struct gb_power_supplies *supplies; member
312 return gbpsy->supplies->connection; in get_conn_from_psy()
858 static void _gb_power_supplies_release(struct gb_power_supplies *supplies) in _gb_power_supplies_release() argument
862 if (!supplies->supply) in _gb_power_supplies_release()
865 mutex_lock(&supplies->supplies_lock); in _gb_power_supplies_release()
866 for (i = 0; i < supplies->supplies_count; i++) in _gb_power_supplies_release()
867 _gb_power_supply_release(&supplies->supply[i]); in _gb_power_supplies_release()
868 kfree(supplies->supply); in _gb_power_supplies_release()
869 mutex_unlock(&supplies->supplies_lock); in _gb_power_supplies_release()
870 kfree(supplies); in _gb_power_supplies_release()
[all …]
/Linux-v6.1/sound/soc/codecs/
Dwm8782.c57 struct regulator_bulk_data supplies[ARRAY_SIZE(supply_names)]; member
63 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in wm8782_soc_probe()
69 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in wm8782_soc_remove()
76 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in wm8782_soc_suspend()
83 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in wm8782_soc_resume()
117 priv->supplies[i].supply = supply_names[i]; in wm8782_probe()
119 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(priv->supplies), in wm8782_probe()
120 priv->supplies); in wm8782_probe()
Dak5386.c25 struct regulator_bulk_data supplies[ARRAY_SIZE(supply_names)]; member
41 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_probe()
47 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_remove()
54 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_suspend()
61 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_resume()
175 priv->supplies[i].supply = supply_names[i]; in ak5386_probe()
177 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(priv->supplies), in ak5386_probe()
178 priv->supplies); in ak5386_probe()
Dbd28623.c25 struct regulator_bulk_data supplies[BD28623_NUM_SUPPLIES]; member
51 ret = regulator_bulk_enable(ARRAY_SIZE(bd->supplies), bd->supplies); in bd28623_power_on()
53 dev_err(bd->dev, "Failed to enable supplies: %d\n", ret); in bd28623_power_on()
67 regulator_bulk_disable(ARRAY_SIZE(bd->supplies), bd->supplies); in bd28623_power_off()
191 for (i = 0; i < ARRAY_SIZE(bd->supplies); i++) in bd28623_probe()
192 bd->supplies[i].supply = bd28623_supply_names[i]; in bd28623_probe()
194 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(bd->supplies), in bd28623_probe()
195 bd->supplies); in bd28623_probe()
197 dev_err(dev, "Failed to get supplies: %d\n", ret); in bd28623_probe()
Dwm8523.c40 struct regulator_bulk_data supplies[WM8523_NUM_SUPPLIES]; member
334 ret = regulator_bulk_enable(ARRAY_SIZE(wm8523->supplies), in wm8523_set_bias_level()
335 wm8523->supplies); in wm8523_set_bias_level()
338 "Failed to enable supplies: %d\n", in wm8523_set_bias_level()
365 regulator_bulk_disable(ARRAY_SIZE(wm8523->supplies), in wm8523_set_bias_level()
366 wm8523->supplies); in wm8523_set_bias_level()
463 for (i = 0; i < ARRAY_SIZE(wm8523->supplies); i++) in wm8523_i2c_probe()
464 wm8523->supplies[i].supply = wm8523_supply_names[i]; in wm8523_i2c_probe()
466 ret = devm_regulator_bulk_get(&i2c->dev, ARRAY_SIZE(wm8523->supplies), in wm8523_i2c_probe()
467 wm8523->supplies); in wm8523_i2c_probe()
[all …]
Dwm8737.c42 struct regulator_bulk_data supplies[WM8737_NUM_SUPPLIES]; member
469 ret = regulator_bulk_enable(ARRAY_SIZE(wm8737->supplies), in wm8737_set_bias_level()
470 wm8737->supplies); in wm8737_set_bias_level()
473 "Failed to enable supplies: %d\n", in wm8737_set_bias_level()
506 regulator_bulk_disable(ARRAY_SIZE(wm8737->supplies), in wm8737_set_bias_level()
507 wm8737->supplies); in wm8737_set_bias_level()
542 ret = regulator_bulk_enable(ARRAY_SIZE(wm8737->supplies), in wm8737_probe()
543 wm8737->supplies); in wm8737_probe()
545 dev_err(component->dev, "Failed to enable supplies: %d\n", ret); in wm8737_probe()
563 regulator_bulk_disable(ARRAY_SIZE(wm8737->supplies), wm8737->supplies); in wm8737_probe()
[all …]
Dcs35l32.c44 struct regulator_bulk_data supplies[CS35L32_NUM_SUPPLIES]; member
385 for (i = 0; i < ARRAY_SIZE(cs35l32->supplies); i++) in cs35l32_i2c_probe()
386 cs35l32->supplies[i].supply = cs35l32_supply_names[i]; in cs35l32_i2c_probe()
389 ARRAY_SIZE(cs35l32->supplies), in cs35l32_i2c_probe()
390 cs35l32->supplies); in cs35l32_i2c_probe()
393 "Failed to request supplies: %d\n", ret); in cs35l32_i2c_probe()
397 ret = regulator_bulk_enable(ARRAY_SIZE(cs35l32->supplies), in cs35l32_i2c_probe()
398 cs35l32->supplies); in cs35l32_i2c_probe()
401 "Failed to enable supplies: %d\n", ret); in cs35l32_i2c_probe()
495 regulator_bulk_disable(ARRAY_SIZE(cs35l32->supplies), in cs35l32_i2c_probe()
[all …]
Dwm8741.c40 struct regulator_bulk_data supplies[WM8741_NUM_SUPPLIES]; member
479 ret = regulator_bulk_enable(ARRAY_SIZE(wm8741->supplies), in wm8741_probe()
480 wm8741->supplies); in wm8741_probe()
482 dev_err(component->dev, "Failed to enable supplies: %d\n", ret); in wm8741_probe()
508 regulator_bulk_disable(ARRAY_SIZE(wm8741->supplies), wm8741->supplies); in wm8741_probe()
517 regulator_bulk_disable(ARRAY_SIZE(wm8741->supplies), wm8741->supplies); in wm8741_remove()
577 for (i = 0; i < ARRAY_SIZE(wm8741->supplies); i++) in wm8741_i2c_probe()
578 wm8741->supplies[i].supply = wm8741_supply_names[i]; in wm8741_i2c_probe()
580 ret = devm_regulator_bulk_get(&i2c->dev, ARRAY_SIZE(wm8741->supplies), in wm8741_i2c_probe()
581 wm8741->supplies); in wm8741_i2c_probe()
[all …]
Dtas5720.c48 struct regulator_bulk_data supplies[TAS5720_NUM_SUPPLIES]; member
285 ret = regulator_bulk_enable(ARRAY_SIZE(tas5720->supplies), in tas5720_codec_probe()
286 tas5720->supplies); in tas5720_codec_probe()
288 dev_err(component->dev, "failed to enable supplies: %d\n", ret); in tas5720_codec_probe()
345 regulator_bulk_disable(ARRAY_SIZE(tas5720->supplies), in tas5720_codec_probe()
346 tas5720->supplies); in tas5720_codec_probe()
357 ret = regulator_bulk_disable(ARRAY_SIZE(tas5720->supplies), in tas5720_codec_remove()
358 tas5720->supplies); in tas5720_codec_remove()
360 dev_err(component->dev, "failed to disable supplies: %d\n", ret); in tas5720_codec_remove()
419 ret = regulator_bulk_disable(ARRAY_SIZE(tas5720->supplies), in tas5720_suspend()
[all …]
Dwm8770.c82 struct regulator_bulk_data supplies[WM8770_NUM_SUPPLIES]; member
511 ret = regulator_bulk_enable(ARRAY_SIZE(wm8770->supplies), in wm8770_set_bias_level()
512 wm8770->supplies); in wm8770_set_bias_level()
515 "Failed to enable supplies: %d\n", in wm8770_set_bias_level()
529 regulator_bulk_disable(ARRAY_SIZE(wm8770->supplies), in wm8770_set_bias_level()
530 wm8770->supplies); in wm8770_set_bias_level()
576 ret = regulator_bulk_enable(ARRAY_SIZE(wm8770->supplies), in wm8770_probe()
577 wm8770->supplies); in wm8770_probe()
579 dev_err(component->dev, "Failed to enable supplies: %d\n", ret); in wm8770_probe()
605 regulator_bulk_disable(ARRAY_SIZE(wm8770->supplies), wm8770->supplies); in wm8770_probe()
[all …]
Dtas6424.c42 struct regulator_bulk_data supplies[TAS6424_NUM_SUPPLIES]; member
288 ret = regulator_bulk_disable(ARRAY_SIZE(tas6424->supplies), in tas6424_power_off()
289 tas6424->supplies); in tas6424_power_off()
291 dev_err(component->dev, "failed to disable supplies: %d\n", ret); in tas6424_power_off()
309 ret = regulator_bulk_enable(ARRAY_SIZE(tas6424->supplies), in tas6424_power_on()
310 tas6424->supplies); in tas6424_power_on()
312 dev_err(component->dev, "failed to enable supplies: %d\n", ret); in tas6424_power_on()
737 for (i = 0; i < ARRAY_SIZE(tas6424->supplies); i++) in tas6424_i2c_probe()
738 tas6424->supplies[i].supply = tas6424_supply_names[i]; in tas6424_i2c_probe()
739 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(tas6424->supplies), in tas6424_i2c_probe()
[all …]
/Linux-v6.1/drivers/input/rmi4/
Drmi_i2c.c28 * @supplies: Array of voltage regulators
41 struct regulator_bulk_data supplies[2]; member
190 regulator_bulk_disable(ARRAY_SIZE(rmi_i2c->supplies), in rmi_i2c_regulator_bulk_disable()
191 rmi_i2c->supplies); in rmi_i2c_regulator_bulk_disable()
231 rmi_i2c->supplies[0].supply = "vdd"; in rmi_i2c_probe()
232 rmi_i2c->supplies[1].supply = "vio"; in rmi_i2c_probe()
234 ARRAY_SIZE(rmi_i2c->supplies), in rmi_i2c_probe()
235 rmi_i2c->supplies); in rmi_i2c_probe()
239 error = regulator_bulk_enable(ARRAY_SIZE(rmi_i2c->supplies), in rmi_i2c_probe()
240 rmi_i2c->supplies); in rmi_i2c_probe()
[all …]
/Linux-v6.1/drivers/hid/i2c-hid/
Di2c-hid-of.c38 struct regulator_bulk_data supplies[2]; member
48 ret = regulator_bulk_enable(ARRAY_SIZE(ihid_of->supplies), in i2c_hid_of_power_up()
49 ihid_of->supplies); in i2c_hid_of_power_up()
51 dev_warn(dev, "Failed to enable supplies: %d\n", ret); in i2c_hid_of_power_up()
65 regulator_bulk_disable(ARRAY_SIZE(ihid_of->supplies), in i2c_hid_of_power_down()
66 ihid_of->supplies); in i2c_hid_of_power_down()
102 ihid_of->supplies[0].supply = "vdd"; in i2c_hid_of_probe()
103 ihid_of->supplies[1].supply = "vddl"; in i2c_hid_of_probe()
105 ARRAY_SIZE(ihid_of->supplies), in i2c_hid_of_probe()
106 ihid_of->supplies); in i2c_hid_of_probe()
/Linux-v6.1/drivers/regulator/
Duserspace-consumer.c29 struct regulator_bulk_data *supplies; member
75 data->supplies); in state_store()
78 data->supplies); in state_store()
121 drvdata->supplies = pdata->supplies; in regulator_userspace_consumer_probe()
126 drvdata->supplies); in regulator_userspace_consumer_probe()
128 dev_err(&pdev->dev, "Failed to get supplies: %d\n", ret); in regulator_userspace_consumer_probe()
138 drvdata->supplies); in regulator_userspace_consumer_probe()
164 regulator_bulk_disable(data->num_supplies, data->supplies); in regulator_userspace_consumer_remove()
/Linux-v6.1/drivers/pci/controller/dwc/
Dpci-exynos.c60 struct regulator_bulk_data supplies[2]; member
347 ep->supplies[0].supply = "vdd18"; in exynos_pcie_probe()
348 ep->supplies[1].supply = "vdd10"; in exynos_pcie_probe()
349 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ep->supplies), in exynos_pcie_probe()
350 ep->supplies); in exynos_pcie_probe()
358 ret = regulator_bulk_enable(ARRAY_SIZE(ep->supplies), ep->supplies); in exynos_pcie_probe()
373 regulator_bulk_disable(ARRAY_SIZE(ep->supplies), ep->supplies); in exynos_pcie_probe()
387 regulator_bulk_disable(ARRAY_SIZE(ep->supplies), ep->supplies); in exynos_pcie_remove()
399 regulator_bulk_disable(ARRAY_SIZE(ep->supplies), ep->supplies); in exynos_pcie_suspend_noirq()
411 ret = regulator_bulk_enable(ARRAY_SIZE(ep->supplies), ep->supplies); in exynos_pcie_resume_noirq()
/Linux-v6.1/drivers/mfd/
Dwm8994-core.c75 * Supplies for the main bulk of CODEC; the LDO supplies are ignored
170 wm8994->supplies); in wm8994_suspend()
172 dev_err(dev, "Failed to disable supplies: %d\n", ret); in wm8994_suspend()
189 wm8994->supplies); in wm8994_resume()
191 dev_err(dev, "Failed to enable supplies: %d\n", ret); in wm8994_resume()
212 regulator_bulk_disable(wm8994->num_supplies, wm8994->supplies); in wm8994_resume()
361 wm8994->supplies = devm_kcalloc(wm8994->dev, in wm8994_device_init()
365 if (!wm8994->supplies) { in wm8994_device_init()
373 wm8994->supplies[i].supply = wm1811_main_supplies[i]; in wm8994_device_init()
377 wm8994->supplies[i].supply = wm8994_main_supplies[i]; in wm8994_device_init()
[all …]
Dwcd934x.c230 ddata->supplies[0].supply = "vdd-buck"; in wcd934x_slim_probe()
231 ddata->supplies[1].supply = "vdd-buck-sido"; in wcd934x_slim_probe()
232 ddata->supplies[2].supply = "vdd-tx"; in wcd934x_slim_probe()
233 ddata->supplies[3].supply = "vdd-rx"; in wcd934x_slim_probe()
234 ddata->supplies[4].supply = "vdd-io"; in wcd934x_slim_probe()
236 ret = regulator_bulk_get(dev, WCD934X_MAX_SUPPLY, ddata->supplies); in wcd934x_slim_probe()
238 dev_err(dev, "Failed to get supplies: err = %d\n", ret); in wcd934x_slim_probe()
242 ret = regulator_bulk_enable(WCD934X_MAX_SUPPLY, ddata->supplies); in wcd934x_slim_probe()
244 dev_err(dev, "Failed to enable supplies: err = %d\n", ret); in wcd934x_slim_probe()
273 regulator_bulk_disable(WCD934X_MAX_SUPPLY, ddata->supplies); in wcd934x_slim_remove()
/Linux-v6.1/drivers/gpu/drm/panel/
Dpanel-ebbg-ft8719.c36 struct regulator_bulk_data supplies[ARRAY_SIZE(regulator_names)]; member
121 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in ebbg_ft8719_prepare()
149 ret = regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in ebbg_ft8719_unprepare()
205 for (i = 0; i < ARRAY_SIZE(ctx->supplies); i++) in ebbg_ft8719_probe()
206 ctx->supplies[i].supply = regulator_names[i]; in ebbg_ft8719_probe()
208 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies), in ebbg_ft8719_probe()
209 ctx->supplies); in ebbg_ft8719_probe()
213 for (i = 0; i < ARRAY_SIZE(ctx->supplies); i++) { in ebbg_ft8719_probe()
214 ret = regulator_set_load(ctx->supplies[i].consumer, in ebbg_ft8719_probe()
Dpanel-visionox-rm69299.c20 struct regulator_bulk_data supplies[2]; member
36 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in visionox_rm69299_power_on()
59 return regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in visionox_rm69299_power_off()
207 ctx->supplies[0].supply = "vdda"; in visionox_rm69299_probe()
208 ctx->supplies[1].supply = "vdd3p3"; in visionox_rm69299_probe()
210 ret = devm_regulator_bulk_get(ctx->panel.dev, ARRAY_SIZE(ctx->supplies), in visionox_rm69299_probe()
211 ctx->supplies); in visionox_rm69299_probe()
238 ret = regulator_set_load(ctx->supplies[0].consumer, 32000); in visionox_rm69299_probe()
244 ret = regulator_set_load(ctx->supplies[1].consumer, 13200); in visionox_rm69299_probe()
Dpanel-samsung-s6e88a0-ams452ef01.c19 struct regulator_bulk_data supplies[2]; member
129 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in s6e88a0_ams452ef01_prepare()
141 regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), in s6e88a0_ams452ef01_prepare()
142 ctx->supplies); in s6e88a0_ams452ef01_prepare()
164 regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in s6e88a0_ams452ef01_unprepare()
219 ctx->supplies[0].supply = "vdd3"; in s6e88a0_ams452ef01_probe()
220 ctx->supplies[1].supply = "vci"; in s6e88a0_ams452ef01_probe()
221 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies), in s6e88a0_ams452ef01_probe()
222 ctx->supplies); in s6e88a0_ams452ef01_probe()
Dpanel-asus-z00t-tm5p5-n35596.c17 struct regulator_bulk_data supplies[2]; member
134 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in tm5p5_nt35596_prepare()
146 regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), in tm5p5_nt35596_prepare()
147 ctx->supplies); in tm5p5_nt35596_prepare()
169 regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), in tm5p5_nt35596_unprepare()
170 ctx->supplies); in tm5p5_nt35596_unprepare()
278 ctx->supplies[0].supply = "vdd"; in tm5p5_nt35596_probe()
279 ctx->supplies[1].supply = "vddio"; in tm5p5_nt35596_probe()
280 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies), in tm5p5_nt35596_probe()
281 ctx->supplies); in tm5p5_nt35596_probe()
/Linux-v6.1/drivers/input/misc/
Dtwl6040-vibra.c48 struct regulator_bulk_data supplies[TWL6040_NUM_SUPPLIES]; member
79 ret = regulator_bulk_enable(ARRAY_SIZE(info->supplies), info->supplies); in twl6040_vibra_enable()
115 regulator_bulk_disable(ARRAY_SIZE(info->supplies), info->supplies); in twl6040_vibra_disable()
151 volt = regulator_get_voltage(info->supplies[0].consumer) / 1000; in twl6040_vibra_set_effect()
157 volt = regulator_get_voltage(info->supplies[1].consumer) / 1000; in twl6040_vibra_set_effect()
287 info->supplies[0].supply = "vddvibl"; in twl6040_vibra_probe()
288 info->supplies[1].supply = "vddvibr"; in twl6040_vibra_probe()
294 ARRAY_SIZE(info->supplies), in twl6040_vibra_probe()
295 info->supplies); in twl6040_vibra_probe()
302 error = regulator_set_voltage(info->supplies[0].consumer, in twl6040_vibra_probe()
[all …]
/Linux-v6.1/include/linux/regulator/
Duserspace-consumer.h12 * @num_supplies: Number of supplies feeding the line
13 * @supplies: Supplies configuration.
21 struct regulator_bulk_data *supplies; member
/Linux-v6.1/drivers/input/touchscreen/
Dzet6223.c31 struct regulator_bulk_data supplies[2]; member
102 regulator_bulk_disable(ARRAY_SIZE(ts->supplies), ts->supplies); in zet6223_power_off()
110 ts->supplies[0].supply = "vio"; in zet6223_power_on()
111 ts->supplies[1].supply = "vcc"; in zet6223_power_on()
113 error = devm_regulator_bulk_get(dev, ARRAY_SIZE(ts->supplies), in zet6223_power_on()
114 ts->supplies); in zet6223_power_on()
118 error = regulator_bulk_enable(ARRAY_SIZE(ts->supplies), ts->supplies); in zet6223_power_on()
/Linux-v6.1/drivers/pci/controller/
Dpci-tegra.c349 struct regulator_bulk_data *supplies; member
1168 err = regulator_bulk_disable(pcie->num_supplies, pcie->supplies); in tegra_pcie_power_off()
1187 err = regulator_bulk_enable(pcie->num_supplies, pcie->supplies); in tegra_pcie_power_on()
1237 regulator_bulk_disable(pcie->num_supplies, pcie->supplies); in tegra_pcie_power_on()
1936 * Check whether a given set of supplies is available in a device tree node.
1941 struct regulator_bulk_data *supplies, in of_regulator_bulk_available() argument
1948 snprintf(property, 32, "%s-supply", supplies[i].supply); in of_regulator_bulk_available()
1959 * supplies that didn't match the hardware inputs. This happened to work for a
1962 * set of supplies.
1979 pcie->supplies = devm_kcalloc(dev, pcie->num_supplies, in tegra_pcie_get_legacy_regulators()
[all …]

12345678910>>...24