/drivers/regulator/ |
D | userspace-consumer.c | 28 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()
|
D | fixed-helper.c | 31 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()
|
D | helpers.c | 884 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/ |
D | wm8994-core.c | 169 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/ |
D | panel-innolux-p079zca.c | 43 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()
|
D | panel-sitronix-st7701.c | 95 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()
|
D | panel-raydium-rm67191.c | 204 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/ |
D | ahci_tegra.c | 162 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/ |
D | pci-tegra.c | 350 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/ |
D | panfrost_device.c | 88 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()
|
D | panfrost_devfreq.c | 95 if (pfdev->comp->num_supplies > 1) { in panfrost_devfreq_init() 105 pfdev->comp->num_supplies); in panfrost_devfreq_init()
|
D | panfrost_drv.c | 629 .num_supplies = ARRAY_SIZE(default_supplies), 636 .num_supplies = ARRAY_SIZE(default_supplies), 644 .num_supplies = ARRAY_SIZE(mediatek_mt8183_supplies),
|
D | panfrost_device.h | 65 int num_supplies; member
|
/drivers/gpu/drm/bridge/adv7511/ |
D | adv7511_drv.c | 1017 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()
|
D | adv7511.h | 365 unsigned int num_supplies; member
|
/drivers/usb/host/ |
D | xhci-tegra.c | 195 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/ |
D | xusb.c | 1199 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()
|
D | xusb.h | 431 unsigned int num_supplies; member
|
D | xusb-tegra186.c | 1554 .num_supplies = ARRAY_SIZE(tegra186_xusb_padctl_supply_names), 1613 .num_supplies = ARRAY_SIZE(tegra194_xusb_padctl_supply_names),
|
D | xusb-tegra124.c | 1752 .num_supplies = ARRAY_SIZE(tegra124_xusb_padctl_supply_names),
|
D | xusb-tegra210.c | 3289 .num_supplies = ARRAY_SIZE(tegra210_xusb_padctl_supply_names),
|
/drivers/power/supply/ |
D | power_supply_core.c | 56 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/ |
D | tegra-xudc.c | 547 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()
|