Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/regulator/
Duserspace-consumer.c28 int num_supplies; member
74 ret = regulator_bulk_enable(data->num_supplies, in reg_set_state()
77 ret = regulator_bulk_disable(data->num_supplies, in reg_set_state()
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()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/linux/regulator/
Dfixed.h48 struct regulator_consumer_supply *supplies, int num_supplies, int uv);
51 struct regulator_consumer_supply *supplies, int num_supplies, int uv) in regulator_register_always_on() argument
Duserspace-consumer.h20 int num_supplies; member
Dconsumer.h298 unsigned int num_supplies);
634 unsigned int num_supplies) in regulator_bulk_set_supply_names() argument
/kernel/linux/linux-5.10/drivers/ata/
Dahci_tegra.c159 u32 num_supplies; member
238 ret = regulator_bulk_enable(tegra->soc->num_supplies, in tegra_ahci_power_on()
267 regulator_bulk_disable(tegra->soc->num_supplies, tegra->supplies); in tegra_ahci_power_on()
285 regulator_bulk_disable(tegra->soc->num_supplies, tegra->supplies); in tegra_ahci_power_off()
454 .num_supplies = ARRAY_SIZE(tegra124_supply_names),
540 tegra->soc->num_supplies, in tegra_ahci_probe()
547 tegra->soc->num_supplies); in tegra_ahci_probe()
550 tegra->soc->num_supplies, in tegra_ahci_probe()
/kernel/linux/linux-5.10/drivers/gpu/drm/panfrost/
Dpanfrost_device.c94 pfdev->regulators = devm_kcalloc(pfdev->dev, pfdev->comp->num_supplies, in panfrost_regulator_init()
100 for (i = 0; i < pfdev->comp->num_supplies; i++) in panfrost_regulator_init()
104 pfdev->comp->num_supplies, in panfrost_regulator_init()
113 ret = regulator_bulk_enable(pfdev->comp->num_supplies, in panfrost_regulator_init()
128 regulator_bulk_disable(pfdev->comp->num_supplies, pfdev->regulators); in panfrost_regulator_fini()
Dpanfrost_device.h64 int num_supplies; member
Dpanfrost_devfreq.c101 pfdev->comp->num_supplies); in panfrost_devfreq_init()
/kernel/linux/linux-5.10/drivers/pci/controller/
Dpci-tegra.c369 unsigned int num_supplies; member
1187 err = regulator_bulk_disable(pcie->num_supplies, pcie->supplies); in tegra_pcie_power_off()
1206 err = regulator_bulk_enable(pcie->num_supplies, pcie->supplies); in tegra_pcie_power_on()
1256 regulator_bulk_disable(pcie->num_supplies, pcie->supplies); in tegra_pcie_power_on()
1916 unsigned int num_supplies) in of_regulator_bulk_available() argument
1921 for (i = 0; i < num_supplies; i++) { in of_regulator_bulk_available()
1944 pcie->num_supplies = 3; in tegra_pcie_get_legacy_regulators()
1946 pcie->num_supplies = 2; in tegra_pcie_get_legacy_regulators()
1948 if (pcie->num_supplies == 0) { in tegra_pcie_get_legacy_regulators()
1953 pcie->supplies = devm_kcalloc(dev, pcie->num_supplies, in tegra_pcie_get_legacy_regulators()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dsgtl5000.c146 int num_supplies; member
1305 vddd = (sgtl5000->num_supplies > VDDD) in sgtl5000_set_power_regs()
1440 sgtl5000->num_supplies = ARRAY_SIZE(sgtl5000->supplies) in sgtl5000_enable_regulators()
1442 ret = regulator_bulk_get(&client->dev, sgtl5000->num_supplies, in sgtl5000_enable_regulators()
1447 ret = regulator_bulk_enable(sgtl5000->num_supplies, in sgtl5000_enable_regulators()
1452 regulator_bulk_free(sgtl5000->num_supplies, in sgtl5000_enable_regulators()
1693 if (sgtl5000->num_supplies <= VDDD) { in sgtl5000_i2c_probe()
1790 regulator_bulk_disable(sgtl5000->num_supplies, sgtl5000->supplies); in sgtl5000_i2c_probe()
1791 regulator_bulk_free(sgtl5000->num_supplies, sgtl5000->supplies); in sgtl5000_i2c_probe()
1805 regulator_bulk_disable(sgtl5000->num_supplies, sgtl5000->supplies); in sgtl5000_i2c_remove()
[all …]
Dcs35l36.c53 int num_supplies; member
1728 cs35l36->num_supplies = ARRAY_SIZE(cs35l36_supplies); in cs35l36_i2c_probe()
1732 ret = devm_regulator_bulk_get(dev, cs35l36->num_supplies, in cs35l36_i2c_probe()
1757 ret = regulator_bulk_enable(cs35l36->num_supplies, cs35l36->supplies); in cs35l36_i2c_probe()
1911 regulator_bulk_disable(cs35l36->num_supplies, cs35l36->supplies); in cs35l36_i2c_probe()
1928 regulator_bulk_disable(cs35l36->num_supplies, cs35l36->supplies); in cs35l36_i2c_remove()
Dcs35l35.h280 int num_supplies; member
Dcs35l35.c1497 cs35l35->num_supplies = ARRAY_SIZE(cs35l35_supplies); in cs35l35_i2c_probe()
1499 ret = devm_regulator_bulk_get(dev, cs35l35->num_supplies, in cs35l35_i2c_probe()
1522 ret = regulator_bulk_enable(cs35l35->num_supplies, in cs35l35_i2c_probe()
1627 regulator_bulk_disable(cs35l35->num_supplies, in cs35l35_i2c_probe()
1638 regulator_bulk_disable(cs35l35->num_supplies, cs35l35->supplies); in cs35l35_i2c_remove()
/kernel/linux/linux-5.10/arch/arm/mach-sa1100/
Dgeneric.h57 struct regulator_consumer_supply *supplies, unsigned num_supplies,
Dgeneric.c338 struct regulator_consumer_supply *supplies, unsigned num_supplies, in sa11x0_register_fixed_regulator() argument
355 id->num_consumer_supplies = num_supplies; in sa11x0_register_fixed_regulator()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/adv7511/
Dadv7511_drv.c1012 adv->num_supplies = ARRAY_SIZE(adv7511_supply_names); in adv7511_init_regulators()
1015 adv->num_supplies = ARRAY_SIZE(adv7533_supply_names); in adv7511_init_regulators()
1018 adv->supplies = devm_kcalloc(dev, adv->num_supplies, in adv7511_init_regulators()
1023 for (i = 0; i < adv->num_supplies; i++) in adv7511_init_regulators()
1026 ret = devm_regulator_bulk_get(dev, adv->num_supplies, adv->supplies); in adv7511_init_regulators()
1030 return regulator_bulk_enable(adv->num_supplies, adv->supplies); in adv7511_init_regulators()
1035 regulator_bulk_disable(adv->num_supplies, adv->supplies); in adv7511_uninit_regulators()
/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci-tegra.c193 unsigned int num_supplies; member
826 regulator_bulk_disable(tegra->soc->num_supplies, tegra->supplies); in tegra_xusb_runtime_suspend()
843 err = regulator_bulk_enable(tegra->soc->num_supplies, tegra->supplies); in tegra_xusb_runtime_resume()
1460 tegra->supplies = devm_kcalloc(&pdev->dev, tegra->soc->num_supplies, in tegra_xusb_probe()
1469 tegra->soc->num_supplies); in tegra_xusb_probe()
1471 err = devm_regulator_bulk_get(&pdev->dev, tegra->soc->num_supplies, in tegra_xusb_probe()
1913 .num_supplies = ARRAY_SIZE(tegra124_supply_names),
1949 .num_supplies = ARRAY_SIZE(tegra210_supply_names),
1990 .num_supplies = ARRAY_SIZE(tegra186_supply_names),
2022 .num_supplies = ARRAY_SIZE(tegra194_supply_names),
/kernel/linux/linux-5.10/include/linux/mfd/wm8994/
Dcore.h76 int num_supplies; member
/kernel/linux/linux-5.10/drivers/phy/tegra/
Dxusb.c1189 padctl->supplies = devm_kcalloc(&pdev->dev, padctl->soc->num_supplies, in tegra_xusb_padctl_probe()
1198 padctl->soc->num_supplies); in tegra_xusb_padctl_probe()
1200 err = devm_regulator_bulk_get(&pdev->dev, padctl->soc->num_supplies, in tegra_xusb_padctl_probe()
1211 err = regulator_bulk_enable(padctl->soc->num_supplies, in tegra_xusb_padctl_probe()
1241 regulator_bulk_disable(padctl->soc->num_supplies, padctl->supplies); in tegra_xusb_padctl_probe()
1258 err = regulator_bulk_disable(padctl->soc->num_supplies, in tegra_xusb_padctl_remove()
/kernel/linux/linux-5.10/drivers/power/supply/
Dpower_supply_core.c49 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by()
175 psy->num_supplies++; in __power_supply_populate_supplied_from()
236 if (psy->supplied_from && psy->num_supplies > 0) in power_supply_check_supplies()
300 psy->num_supplies = nval; in power_supply_check_supplies()

12