Home
last modified time | relevance | path

Searched refs:num_supplies (Results 1 – 23 of 23) sorted by relevance

/drivers/regulator/
Duserspace-consumer.c28 int num_supplies; member
74 ret = regulator_bulk_enable(data->num_supplies, in state_store()
77 ret = regulator_bulk_disable(data->num_supplies, in state_store()
120 drvdata->num_supplies = pdata->num_supplies; in regulator_userspace_consumer_probe()
125 ret = devm_regulator_bulk_get(&pdev->dev, drvdata->num_supplies, in regulator_userspace_consumer_probe()
137 ret = regulator_bulk_enable(drvdata->num_supplies, in regulator_userspace_consumer_probe()
164 regulator_bulk_disable(data->num_supplies, data->supplies); in regulator_userspace_consumer_remove()
Dfixed-helper.c31 struct regulator_consumer_supply *supplies, int num_supplies, int uv) in regulator_register_always_on() argument
51 data->init_data.num_consumer_supplies = num_supplies; in regulator_register_always_on()
Dhelpers.c884 unsigned int num_supplies) in regulator_bulk_set_supply_names() argument
888 for (i = 0; i < num_supplies; i++) in regulator_bulk_set_supply_names()
/drivers/mfd/
Dwm8994-core.c169 ret = regulator_bulk_disable(wm8994->num_supplies, in wm8994_suspend()
188 ret = regulator_bulk_enable(wm8994->num_supplies, in wm8994_resume()
212 regulator_bulk_disable(wm8994->num_supplies, wm8994->supplies); in wm8994_resume()
348 wm8994->num_supplies = ARRAY_SIZE(wm1811_main_supplies); in wm8994_device_init()
351 wm8994->num_supplies = ARRAY_SIZE(wm8994_main_supplies); in wm8994_device_init()
354 wm8994->num_supplies = ARRAY_SIZE(wm8958_main_supplies); in wm8994_device_init()
362 wm8994->num_supplies, in wm8994_device_init()
393 ret = regulator_bulk_get(wm8994->dev, wm8994->num_supplies, in wm8994_device_init()
402 ret = regulator_bulk_enable(wm8994->num_supplies, wm8994->supplies); in wm8994_device_init()
598 regulator_bulk_disable(wm8994->num_supplies, in wm8994_device_init()
[all …]
/drivers/gpu/drm/panel/
Dpanel-innolux-p079zca.c43 unsigned int num_supplies; member
103 err = regulator_bulk_disable(innolux->desc->num_supplies, in innolux_panel_unprepare()
123 err = regulator_bulk_enable(innolux->desc->num_supplies, in innolux_panel_prepare()
188 regulator_bulk_disable(innolux->desc->num_supplies, innolux->supplies); in innolux_panel_prepare()
233 .num_supplies = ARRAY_SIZE(innolux_p079zca_supply_names),
381 .num_supplies = ARRAY_SIZE(innolux_p097pfg_supply_names),
442 innolux->supplies = devm_kcalloc(dev, desc->num_supplies, in innolux_panel_add()
448 for (i = 0; i < desc->num_supplies; i++) in innolux_panel_add()
451 err = devm_regulator_bulk_get(dev, desc->num_supplies, in innolux_panel_add()
Dpanel-sitronix-st7701.c95 unsigned int num_supplies; member
204 ret = regulator_bulk_enable(st7701->desc->num_supplies, in st7701_prepare()
257 regulator_bulk_disable(st7701->desc->num_supplies, st7701->supplies); in st7701_unprepare()
324 .num_supplies = ARRAY_SIZE(ts8550b_supply_names),
343 st7701->supplies = devm_kcalloc(&dsi->dev, desc->num_supplies, in st7701_dsi_probe()
349 for (i = 0; i < desc->num_supplies; i++) in st7701_dsi_probe()
352 ret = devm_regulator_bulk_get(&dsi->dev, desc->num_supplies, in st7701_dsi_probe()
Dpanel-raydium-rm67191.c204 unsigned int num_supplies; member
272 ret = regulator_bulk_enable(rad->num_supplies, rad->supplies); in rad_panel_prepare()
307 ret = regulator_bulk_disable(rad->num_supplies, rad->supplies); in rad_panel_unprepare()
525 rad->num_supplies = ARRAY_SIZE(rad_supply_names); in rad_init_regulators()
526 rad->supplies = devm_kcalloc(dev, rad->num_supplies, in rad_init_regulators()
531 for (i = 0; i < rad->num_supplies; i++) in rad_init_regulators()
534 return devm_regulator_bulk_get(dev, rad->num_supplies, rad->supplies); in rad_init_regulators()
/drivers/ata/
Dahci_tegra.c162 u32 num_supplies; member
243 ret = regulator_bulk_enable(tegra->soc->num_supplies, in tegra_ahci_power_on()
275 regulator_bulk_disable(tegra->soc->num_supplies, tegra->supplies); in tegra_ahci_power_on()
294 regulator_bulk_disable(tegra->soc->num_supplies, tegra->supplies); in tegra_ahci_power_off()
468 .num_supplies = ARRAY_SIZE(tegra124_supply_names),
576 tegra->soc->num_supplies, in tegra_ahci_probe()
583 tegra->soc->num_supplies); in tegra_ahci_probe()
586 tegra->soc->num_supplies, in tegra_ahci_probe()
/drivers/pci/controller/
Dpci-tegra.c350 unsigned int num_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()
1942 unsigned int num_supplies) in of_regulator_bulk_available() argument
1947 for (i = 0; i < num_supplies; i++) { in of_regulator_bulk_available()
1970 pcie->num_supplies = 3; in tegra_pcie_get_legacy_regulators()
1972 pcie->num_supplies = 2; in tegra_pcie_get_legacy_regulators()
1974 if (pcie->num_supplies == 0) { in tegra_pcie_get_legacy_regulators()
1979 pcie->supplies = devm_kcalloc(dev, pcie->num_supplies, in tegra_pcie_get_legacy_regulators()
[all …]
/drivers/gpu/drm/panfrost/
Dpanfrost_device.c88 pfdev->regulators = devm_kcalloc(pfdev->dev, pfdev->comp->num_supplies, in panfrost_regulator_init()
94 for (i = 0; i < pfdev->comp->num_supplies; i++) in panfrost_regulator_init()
98 pfdev->comp->num_supplies, in panfrost_regulator_init()
107 ret = regulator_bulk_enable(pfdev->comp->num_supplies, in panfrost_regulator_init()
122 regulator_bulk_disable(pfdev->comp->num_supplies, pfdev->regulators); in panfrost_regulator_fini()
Dpanfrost_devfreq.c95 if (pfdev->comp->num_supplies > 1) { in panfrost_devfreq_init()
105 pfdev->comp->num_supplies); in panfrost_devfreq_init()
Dpanfrost_drv.c629 .num_supplies = ARRAY_SIZE(default_supplies),
636 .num_supplies = ARRAY_SIZE(default_supplies),
644 .num_supplies = ARRAY_SIZE(mediatek_mt8183_supplies),
Dpanfrost_device.h65 int num_supplies; member
/drivers/gpu/drm/bridge/adv7511/
Dadv7511_drv.c1017 adv->num_supplies = ARRAY_SIZE(adv7511_supply_names); in adv7511_init_regulators()
1020 adv->num_supplies = ARRAY_SIZE(adv7533_supply_names); in adv7511_init_regulators()
1023 adv->supplies = devm_kcalloc(dev, adv->num_supplies, in adv7511_init_regulators()
1028 for (i = 0; i < adv->num_supplies; i++) in adv7511_init_regulators()
1031 ret = devm_regulator_bulk_get(dev, adv->num_supplies, adv->supplies); in adv7511_init_regulators()
1035 return regulator_bulk_enable(adv->num_supplies, adv->supplies); in adv7511_init_regulators()
1040 regulator_bulk_disable(adv->num_supplies, adv->supplies); in adv7511_uninit_regulators()
Dadv7511.h365 unsigned int num_supplies; member
/drivers/usb/host/
Dxhci-tegra.c195 unsigned int num_supplies; member
1557 tegra->supplies = devm_kcalloc(&pdev->dev, tegra->soc->num_supplies, in tegra_xusb_probe()
1566 tegra->soc->num_supplies); in tegra_xusb_probe()
1568 err = devm_regulator_bulk_get(&pdev->dev, tegra->soc->num_supplies, in tegra_xusb_probe()
1632 err = regulator_bulk_enable(tegra->soc->num_supplies, tegra->supplies); in tegra_xusb_probe()
1760 regulator_bulk_disable(tegra->soc->num_supplies, tegra->supplies); in tegra_xusb_probe()
1801 regulator_bulk_disable(tegra->soc->num_supplies, tegra->supplies); in tegra_xusb_remove()
2277 .num_supplies = ARRAY_SIZE(tegra124_supply_names),
2313 .num_supplies = ARRAY_SIZE(tegra210_supply_names),
2354 .num_supplies = ARRAY_SIZE(tegra186_supply_names),
[all …]
/drivers/phy/tegra/
Dxusb.c1199 padctl->supplies = devm_kcalloc(&pdev->dev, padctl->soc->num_supplies, in tegra_xusb_padctl_probe()
1208 padctl->soc->num_supplies); in tegra_xusb_padctl_probe()
1210 err = devm_regulator_bulk_get(&pdev->dev, padctl->soc->num_supplies, in tegra_xusb_padctl_probe()
1221 err = regulator_bulk_enable(padctl->soc->num_supplies, in tegra_xusb_padctl_probe()
1251 regulator_bulk_disable(padctl->soc->num_supplies, padctl->supplies); in tegra_xusb_padctl_probe()
1268 err = regulator_bulk_disable(padctl->soc->num_supplies, in tegra_xusb_padctl_remove()
Dxusb.h431 unsigned int num_supplies; member
Dxusb-tegra186.c1554 .num_supplies = ARRAY_SIZE(tegra186_xusb_padctl_supply_names),
1613 .num_supplies = ARRAY_SIZE(tegra194_xusb_padctl_supply_names),
Dxusb-tegra124.c1752 .num_supplies = ARRAY_SIZE(tegra124_xusb_padctl_supply_names),
Dxusb-tegra210.c3289 .num_supplies = ARRAY_SIZE(tegra210_xusb_padctl_supply_names),
/drivers/power/supply/
Dpower_supply_core.c56 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by()
182 psy->num_supplies++; in __power_supply_populate_supplied_from()
243 if (psy->supplied_from && psy->num_supplies > 0) in power_supply_check_supplies()
307 psy->num_supplies = nval; in power_supply_check_supplies()
/drivers/usb/gadget/udc/
Dtegra-xudc.c547 unsigned int num_supplies; member
3615 .num_supplies = ARRAY_SIZE(tegra210_xudc_supply_names),
3784 xudc->supplies = devm_kcalloc(&pdev->dev, xudc->soc->num_supplies, in tegra_xudc_probe()
3789 for (i = 0; i < xudc->soc->num_supplies; i++) in tegra_xudc_probe()
3792 err = devm_regulator_bulk_get(&pdev->dev, xudc->soc->num_supplies, in tegra_xudc_probe()
3803 err = regulator_bulk_enable(xudc->soc->num_supplies, xudc->supplies); in tegra_xudc_probe()
3865 regulator_bulk_disable(xudc->soc->num_supplies, xudc->supplies); in tegra_xudc_probe()
3889 regulator_bulk_disable(xudc->soc->num_supplies, xudc->supplies); in tegra_xudc_remove()
3923 regulator_bulk_disable(xudc->soc->num_supplies, xudc->supplies); in tegra_xudc_powergate()
3936 err = regulator_bulk_enable(xudc->soc->num_supplies, in tegra_xudc_unpowergate()