Home
last modified time | relevance | path

Searched refs:supplies (Results 1 – 25 of 38) sorted by relevance

12

/drivers/staging/greybus/
Dpower_supply.c33 struct gb_power_supplies *supplies; member
314 return gbpsy->supplies->connection; in get_conn_from_psy()
860 static void _gb_power_supplies_release(struct gb_power_supplies *supplies) in _gb_power_supplies_release() argument
864 if (!supplies->supply) in _gb_power_supplies_release()
867 mutex_lock(&supplies->supplies_lock); in _gb_power_supplies_release()
868 for (i = 0; i < supplies->supplies_count; i++) in _gb_power_supplies_release()
869 _gb_power_supply_release(&supplies->supply[i]); in _gb_power_supplies_release()
870 kfree(supplies->supply); in _gb_power_supplies_release()
871 mutex_unlock(&supplies->supplies_lock); in _gb_power_supplies_release()
872 kfree(supplies); in _gb_power_supplies_release()
[all …]
/drivers/input/rmi4/
Drmi_i2c.c43 struct regulator_bulk_data supplies[2]; member
228 regulator_bulk_disable(ARRAY_SIZE(rmi_i2c->supplies), in rmi_i2c_regulator_bulk_disable()
229 rmi_i2c->supplies); in rmi_i2c_regulator_bulk_disable()
269 rmi_i2c->supplies[0].supply = "vdd"; in rmi_i2c_probe()
270 rmi_i2c->supplies[1].supply = "vio"; in rmi_i2c_probe()
272 ARRAY_SIZE(rmi_i2c->supplies), in rmi_i2c_probe()
273 rmi_i2c->supplies); in rmi_i2c_probe()
277 retval = regulator_bulk_enable(ARRAY_SIZE(rmi_i2c->supplies), in rmi_i2c_probe()
278 rmi_i2c->supplies); in rmi_i2c_probe()
352 regulator_bulk_disable(ARRAY_SIZE(rmi_i2c->supplies), in rmi_i2c_suspend()
[all …]
/drivers/ata/
Dahci_tegra.c110 struct regulator_bulk_data supplies[5]; member
118 ret = regulator_bulk_enable(ARRAY_SIZE(tegra->supplies), in tegra_ahci_power_on()
119 tegra->supplies); in tegra_ahci_power_on()
147 regulator_bulk_disable(ARRAY_SIZE(tegra->supplies), tegra->supplies); in tegra_ahci_power_on()
165 regulator_bulk_disable(ARRAY_SIZE(tegra->supplies), tegra->supplies); in tegra_ahci_power_off()
346 tegra->supplies[0].supply = "avdd"; in tegra_ahci_probe()
347 tegra->supplies[1].supply = "hvdd"; in tegra_ahci_probe()
348 tegra->supplies[2].supply = "vddio"; in tegra_ahci_probe()
349 tegra->supplies[3].supply = "target-5v"; in tegra_ahci_probe()
350 tegra->supplies[4].supply = "target-12v"; in tegra_ahci_probe()
[all …]
/drivers/input/misc/
Dtwl6040-vibra.c62 struct regulator_bulk_data supplies[TWL6040_NUM_SUPPLIES]; member
93 ret = regulator_bulk_enable(ARRAY_SIZE(info->supplies), info->supplies); in twl6040_vibra_enable()
129 regulator_bulk_disable(ARRAY_SIZE(info->supplies), info->supplies); in twl6040_vibra_disable()
165 volt = regulator_get_voltage(info->supplies[0].consumer) / 1000; in twl6040_vibra_set_effect()
171 volt = regulator_get_voltage(info->supplies[1].consumer) / 1000; in twl6040_vibra_set_effect()
303 info->supplies[0].supply = "vddvibl"; in twl6040_vibra_probe()
304 info->supplies[1].supply = "vddvibr"; in twl6040_vibra_probe()
310 ARRAY_SIZE(info->supplies), in twl6040_vibra_probe()
311 info->supplies); in twl6040_vibra_probe()
318 error = regulator_set_voltage(info->supplies[0].consumer, in twl6040_vibra_probe()
[all …]
/drivers/regulator/
Duserspace-consumer.c34 struct regulator_bulk_data *supplies; member
80 data->supplies); in reg_set_state()
83 data->supplies); in reg_set_state()
126 drvdata->supplies = pdata->supplies; in regulator_userspace_consumer_probe()
131 drvdata->supplies); in regulator_userspace_consumer_probe()
143 drvdata->supplies); in regulator_userspace_consumer_probe()
169 regulator_bulk_disable(data->num_supplies, data->supplies); in regulator_userspace_consumer_remove()
Dfixed-helper.c30 struct regulator_consumer_supply *supplies, int num_supplies, int uv) in regulator_register_always_on() argument
50 data->init_data.consumer_supplies = supplies; in regulator_register_always_on()
/drivers/gpu/drm/panel/
Dpanel-samsung-ld9040.c94 struct regulator_bulk_data supplies[2]; member
202 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in ld9040_power_on()
217 return regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in ld9040_power_off()
332 ctx->supplies[0].supply = "vdd3"; in ld9040_probe()
333 ctx->supplies[1].supply = "vci"; in ld9040_probe()
334 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies), in ld9040_probe()
335 ctx->supplies); in ld9040_probe()
Dpanel-jdi-lt070me05000.c46 struct regulator_bulk_data supplies[ARRAY_SIZE(regulator_names)]; member
214 ret = regulator_bulk_disable(ARRAY_SIZE(jdi->supplies), jdi->supplies); in jdi_panel_unprepare()
238 ret = regulator_bulk_enable(ARRAY_SIZE(jdi->supplies), jdi->supplies); in jdi_panel_prepare()
272 ret = regulator_bulk_disable(ARRAY_SIZE(jdi->supplies), jdi->supplies); in jdi_panel_prepare()
413 for (i = 0; i < ARRAY_SIZE(jdi->supplies); i++) in jdi_panel_add()
414 jdi->supplies[i].supply = regulator_names[i]; in jdi_panel_add()
416 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(jdi->supplies), in jdi_panel_add()
417 jdi->supplies); in jdi_panel_add()
Dpanel-samsung-s6e8aa0.c98 struct regulator_bulk_data supplies[2]; member
861 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in s6e8aa0_power_on()
878 return regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in s6e8aa0_power_off()
1001 ctx->supplies[0].supply = "vdd3"; in s6e8aa0_probe()
1002 ctx->supplies[1].supply = "vci"; in s6e8aa0_probe()
1003 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies), in s6e8aa0_probe()
1004 ctx->supplies); in s6e8aa0_probe()
/drivers/mfd/
Dwm8994-core.c176 wm8994->supplies); in wm8994_suspend()
195 wm8994->supplies); in wm8994_resume()
218 regulator_bulk_disable(wm8994->num_supplies, wm8994->supplies); in wm8994_resume()
371 wm8994->supplies = devm_kzalloc(wm8994->dev, in wm8994_device_init()
374 if (!wm8994->supplies) { in wm8994_device_init()
382 wm8994->supplies[i].supply = wm1811_main_supplies[i]; in wm8994_device_init()
386 wm8994->supplies[i].supply = wm8994_main_supplies[i]; in wm8994_device_init()
390 wm8994->supplies[i].supply = wm8958_main_supplies[i]; in wm8994_device_init()
403 wm8994->supplies); in wm8994_device_init()
410 wm8994->supplies); in wm8994_device_init()
[all …]
Dsi476x-i2c.c293 err = regulator_bulk_enable(ARRAY_SIZE(core->supplies), in si476x_core_set_power_state()
294 core->supplies); in si476x_core_set_power_state()
319 err = regulator_bulk_disable(ARRAY_SIZE(core->supplies), in si476x_core_set_power_state()
320 core->supplies); in si476x_core_set_power_state()
747 core->supplies[0].supply = "vd"; in si476x_core_probe()
748 core->supplies[1].supply = "va"; in si476x_core_probe()
749 core->supplies[2].supply = "vio1"; in si476x_core_probe()
750 core->supplies[3].supply = "vio2"; in si476x_core_probe()
753 ARRAY_SIZE(core->supplies), in si476x_core_probe()
754 core->supplies); in si476x_core_probe()
Dtwl6040.c684 twl6040->supplies[0].supply = "vio"; in twl6040_probe()
685 twl6040->supplies[1].supply = "v2v1"; in twl6040_probe()
687 twl6040->supplies); in twl6040_probe()
693 ret = regulator_bulk_enable(TWL6040_NUM_SUPPLIES, twl6040->supplies); in twl6040_probe()
809 regulator_bulk_disable(TWL6040_NUM_SUPPLIES, twl6040->supplies); in twl6040_probe()
824 regulator_bulk_disable(TWL6040_NUM_SUPPLIES, twl6040->supplies); in twl6040_remove()
/drivers/pci/host/
Dpci-tegra.c300 struct regulator_bulk_data *supplies; member
1070 err = regulator_bulk_disable(pcie->num_supplies, pcie->supplies); in tegra_pcie_power_off()
1088 err = regulator_bulk_enable(pcie->num_supplies, pcie->supplies); in tegra_pcie_power_on()
1664 struct regulator_bulk_data *supplies, in of_regulator_bulk_available() argument
1671 snprintf(property, 32, "%s-supply", supplies[i].supply); in of_regulator_bulk_available()
1703 pcie->supplies = devm_kcalloc(dev, pcie->num_supplies, in tegra_pcie_get_legacy_regulators()
1704 sizeof(*pcie->supplies), in tegra_pcie_get_legacy_regulators()
1706 if (!pcie->supplies) in tegra_pcie_get_legacy_regulators()
1709 pcie->supplies[0].supply = "pex-clk"; in tegra_pcie_get_legacy_regulators()
1710 pcie->supplies[1].supply = "vdd"; in tegra_pcie_get_legacy_regulators()
[all …]
/drivers/power/avs/
Drockchip-io-domain.c76 struct rockchip_iodomain_supply supplies[MAX_SUPPLIES]; member
156 if (!iod->supplies[RK3288_SOC_FLASH_SUPPLY_NUM].reg) in rk3288_iodomain_init()
175 if (!iod->supplies[RK3368_SOC_FLASH_SUPPLY_NUM].reg) in rk3368_iodomain_init()
194 if (!iod->supplies[RK3399_PMUGRF_VSEL_SUPPLY_NUM].reg) in rk3399_pmu_iodomain_init()
370 struct rockchip_iodomain_supply *supply = &iod->supplies[i]; in rockchip_iodomain_probe()
437 struct rockchip_iodomain_supply *io_supply = &iod->supplies[i]; in rockchip_iodomain_probe()
453 struct rockchip_iodomain_supply *io_supply = &iod->supplies[i]; in rockchip_iodomain_remove()
/drivers/media/i2c/
Ds5k6a3.c61 struct regulator_bulk_data supplies[S5K6A3_NUM_SUPPLIES]; member
202 ret = regulator_enable(sensor->supplies[i].consumer); in __s5k6a3_power_on()
211 ret = regulator_enable(sensor->supplies[i].consumer); in __s5k6a3_power_on()
228 regulator_disable(sensor->supplies[i].consumer); in __s5k6a3_power_on()
241 regulator_disable(sensor->supplies[i].consumer); in __s5k6a3_power_off()
318 sensor->supplies[i].supply = s5k6a3_supply_names[i]; in s5k6a3_probe()
321 sensor->supplies); in s5k6a3_probe()
Ds5k4ecgx.c196 struct regulator_bulk_data supplies[S5K4ECGX_NUM_SUPPLIES]; member
476 ret = regulator_bulk_enable(S5K4ECGX_NUM_SUPPLIES, priv->supplies); in __s5k4ecgx_power_on()
501 return regulator_bulk_disable(S5K4ECGX_NUM_SUPPLIES, priv->supplies); in __s5k4ecgx_power_off()
975 priv->supplies[i].supply = s5k4ecgx_supply_names[i]; in s5k4ecgx_probe()
978 priv->supplies); in s5k4ecgx_probe()
/drivers/usb/dwc2/
Dplatform.c287 ret = regulator_bulk_enable(ARRAY_SIZE(hsotg->supplies), in __dwc2_lowlevel_hw_enable()
288 hsotg->supplies); in __dwc2_lowlevel_hw_enable()
347 ret = regulator_bulk_disable(ARRAY_SIZE(hsotg->supplies), in __dwc2_lowlevel_hw_disable()
348 hsotg->supplies); in __dwc2_lowlevel_hw_disable()
452 for (i = 0; i < ARRAY_SIZE(hsotg->supplies); i++) in dwc2_lowlevel_hw_init()
453 hsotg->supplies[i].supply = dwc2_hsotg_supply_names[i]; in dwc2_lowlevel_hw_init()
455 ret = devm_regulator_bulk_get(hsotg->dev, ARRAY_SIZE(hsotg->supplies), in dwc2_lowlevel_hw_init()
456 hsotg->supplies); in dwc2_lowlevel_hw_init()
/drivers/video/backlight/
Dld9040.c52 static struct regulator_bulk_data supplies[] = { variable
65 ret = regulator_bulk_enable(ARRAY_SIZE(supplies), supplies); in ld9040_regulator_enable()
82 ret = regulator_bulk_disable(ARRAY_SIZE(supplies), supplies); in ld9040_regulator_disable()
707 ret = devm_regulator_bulk_get(lcd->dev, ARRAY_SIZE(supplies), supplies); in ld9040_probe()
/drivers/power/supply/
Dwm8350_power.c56 int supplies = 0; in wm8350_get_supplies() local
75 supplies = WM8350_USB_SUPPLY; in wm8350_get_supplies()
80 supplies = WM8350_USB_SUPPLY | WM8350_BATT_SUPPLY; in wm8350_get_supplies()
82 supplies = WM8350_LINE_SUPPLY; in wm8350_get_supplies()
84 supplies = WM8350_BATT_SUPPLY; in wm8350_get_supplies()
86 return supplies; in wm8350_get_supplies()
/drivers/usb/gadget/udc/
Ds3c-hsudc.c149 struct regulator_bulk_data supplies[ARRAY_SIZE(s3c_hsudc_supply_names)]; member
1171 ret = regulator_bulk_enable(ARRAY_SIZE(hsudc->supplies), in s3c_hsudc_start()
1172 hsudc->supplies); in s3c_hsudc_start()
1200 regulator_bulk_disable(ARRAY_SIZE(hsudc->supplies), hsudc->supplies); in s3c_hsudc_start()
1230 regulator_bulk_disable(ARRAY_SIZE(hsudc->supplies), hsudc->supplies); in s3c_hsudc_stop()
1286 for (i = 0; i < ARRAY_SIZE(hsudc->supplies); i++) in s3c_hsudc_probe()
1287 hsudc->supplies[i].supply = s3c_hsudc_supply_names[i]; in s3c_hsudc_probe()
1289 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(hsudc->supplies), in s3c_hsudc_probe()
1290 hsudc->supplies); in s3c_hsudc_probe()
/drivers/media/i2c/m5mols/
Dm5mols_core.c40 static struct regulator_bulk_data supplies[] = { variable
755 ret = regulator_bulk_enable(ARRAY_SIZE(supplies), supplies); in m5mols_sensor_power()
767 ret = regulator_bulk_disable(ARRAY_SIZE(supplies), supplies); in m5mols_sensor_power()
964 ret = devm_regulator_bulk_get(&client->dev, ARRAY_SIZE(supplies), in m5mols_probe()
965 supplies); in m5mols_probe()
/drivers/usb/host/
Dxhci-tegra.c181 struct regulator_bulk_data *supplies; member
1013 tegra->supplies = devm_kcalloc(&pdev->dev, tegra->soc->num_supplies, in tegra_xusb_probe()
1014 sizeof(*tegra->supplies), GFP_KERNEL); in tegra_xusb_probe()
1015 if (!tegra->supplies) { in tegra_xusb_probe()
1021 tegra->supplies[i].supply = tegra->soc->supply_names[i]; in tegra_xusb_probe()
1024 tegra->supplies); in tegra_xusb_probe()
1066 err = regulator_bulk_enable(tegra->soc->num_supplies, tegra->supplies); in tegra_xusb_probe()
1166 regulator_bulk_disable(tegra->soc->num_supplies, tegra->supplies); in tegra_xusb_probe()
1188 regulator_bulk_disable(tegra->soc->num_supplies, tegra->supplies); in tegra_xusb_remove()
/drivers/gpu/drm/exynos/
Dexynos_drm_dsi.c264 struct regulator_bulk_data supplies[2]; member
1773 dsi->supplies[0].supply = "vddcore"; in exynos_dsi_probe()
1774 dsi->supplies[1].supply = "vddio"; in exynos_dsi_probe()
1775 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(dsi->supplies), in exynos_dsi_probe()
1776 dsi->supplies); in exynos_dsi_probe()
1871 ret = regulator_bulk_disable(ARRAY_SIZE(dsi->supplies), dsi->supplies); in exynos_dsi_suspend()
1885 ret = regulator_bulk_enable(ARRAY_SIZE(dsi->supplies), dsi->supplies); in exynos_dsi_resume()
1908 regulator_bulk_disable(ARRAY_SIZE(dsi->supplies), dsi->supplies); in exynos_dsi_resume()
/drivers/media/platform/exynos4-is/
Dmipi-csis.c211 struct regulator_bulk_data supplies[CSIS_NUM_SUPPLIES]; member
815 state->supplies[i].supply = csis_supply_name[i]; in s5pcsis_probe()
818 state->supplies); in s5pcsis_probe()
909 state->supplies); in s5pcsis_pm_suspend()
938 state->supplies); in s5pcsis_pm_resume()
946 state->supplies); in s5pcsis_pm_resume()
/drivers/gpu/drm/msm/dsi/phy/
Ddsi_phy.c164 struct regulator_bulk_data *s = phy->supplies; in dsi_phy_regulator_init()
185 struct regulator_bulk_data *s = phy->supplies; in dsi_phy_regulator_disable()
200 struct regulator_bulk_data *s = phy->supplies; in dsi_phy_regulator_enable()

12