/linux/drivers/staging/greybus/ |
H A D | power_supply.c | 31 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/security/ipe/ |
H A D | eval.c | 30 * @ctx: Supplies a pointer to the context to be populated. 31 * @file: Supplies the file struct of the file triggered IPE event. 41 * @ctx: Supplies a pointer to the context to be populated. 42 * @ino: Supplies the inode struct of the file triggered IPE event. 71 * @ctx: Supplies a pointer to the context to be populated. 72 * @ino: Supplies the inode struct of the file triggered IPE event. 87 * @ctx: Supplies a pointer to the context to be populated. 88 * @file: Supplies a pointer to the file to associated with the evaluation. 89 * @op: Supplies the IPE policy operation associated with the evaluation. 90 * @hook: Supplies the LSM hook associated with the evaluation. [all …]
|
H A D | policy_fs.c | 34 * @f: Supplies a file structure representing the securityfs node. 35 * @data: Supplies a buffer passed to the write syscall. 36 * @len: Supplies the length of @data. 78 * @f: Supplies a file structure representing the securityfs node. 79 * @data: Supplies a buffer passed to the write syscall. 80 * @len: Supplies the length of @data. 116 * @f: Supplies a file structure representing the securityfs node. 117 * @data: Supplies a buffer passed to the write syscall. 118 * @len: Supplies the length of @data. 154 * @f: Supplies a file structure representing the securityfs node. [all …]
|
H A D | fs.c | 20 * @f: Supplies a file structure representing the securityfs node. 21 * @data: Supplies a buffer passed to the write syscall. 22 * @len: Supplies the length of @data. 49 * @f: Supplies a file structure representing the securityfs node. 50 * @data: Supplies a buffer passed to the read syscall. 51 * @len: Supplies the length of @data. 68 * @f: Supplies a file structure representing the securityfs node. 69 * @data: Supplies a buffer passed to the write syscall. 70 * @len: Supplies the length of @data. 101 * @f: Supplies a file structure representing the securityfs node. [all …]
|
H A D | audit.c | 68 * @ab: Supplies a pointer to the audit_buffer to append to. 69 * @rh: Supplies a pointer to the digest structure. 79 * @ab: Supplies a pointer to the audit_buffer to append to. 80 * @d: Supplies a pointer to the digest structure. 90 * @ab: Supplies a pointer to the audit_buffer to append to. 91 * @r: Supplies a pointer to the ipe_rule to approximate a string form for. 120 * @ctx: Supplies a pointer to the evaluation context that was used in the 122 * @match_type: Supplies the scope of the match: rule, operation default, 124 * @act: Supplies the IPE's evaluation decision, deny or allow. 125 * @r: Supplies [all...] |
H A D | policy.c | 43 * @p: Supplies the policy to free. 77 * @root: Supplies a pointer to the securityfs inode saved the policy. 78 * @text: Supplies a pointer to the plain text policy. 79 * @textlen: Supplies the length of @text. 80 * @pkcs7: Supplies a pointer to a buffer containing a pkcs7 message. 81 * @pkcs7len: Supplies the length of @pkcs7len. 143 * @text: Supplies a pointer to the plain-text policy to parse. 144 * @textlen: Supplies the length of @text. 145 * @pkcs7: Supplies a pointer to a pkcs7-signed IPE policy. 146 * @pkcs7len: Supplies the length of @pkcs7. [all …]
|
H A D | policy_parser.c | 52 * @line: Supplies a policy line string for preprocessing. 65 * @line: Supplies a policy line string for preprocessing. 84 * @ver: Supplies a version string to be parsed. 85 * @p: Supplies the partial parsed policy. 133 * @line: Supplies header line to be parsed. 134 * @p: Supplies the partial parsed policy. 198 * @token: Supplies the token string to be compared. 211 * @r: Supplies the ipe_rule struct to be freed. 245 * @t: Supplies the token string to be parsed. 264 * @t: Supplies the token string to be parsed. [all …]
|
H A D | digest.c | 10 * @valstr: Supplies the string parsed from the policy. 76 * @expected: Supplies the policy-provided digest value. 77 * @digest: Supplies the digest to compare against the policy digest value. 93 * @info: Supplies a pointer the policy-provided digest to free. 107 * @ab: Supplies the audit_buffer to append the formatted result. 108 * @info: Supplies a pointer to source the audit record from.
|
H A D | hooks.c | 20 * @bprm: Supplies a pointer to a linux_binprm structure to source the file 100 * @file: Supplies a pointer to the file structure being read in from disk. 101 * @id: Supplies the enumeration identifying the purpose of the read. 146 * @id: Supplies the enumeration identifying the purpose of the load. 200 * @bdev: Supplies a pointer to a block_device that contains the structure 227 * @bdev: Supplies a pointer to a block_device that contains the LSM blob. 228 * @type: Supplies the integrity type. 229 * @value: Supplies the value to store. 291 * @type: Supplies the integrity type.
|
/linux/sound/soc/codecs/ |
H A D | wm8782.c | 33 struct regulator_bulk_data supplies[ARRAY_SIZE(supply_names)]; member 78 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in wm8782_soc_probe() 84 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in wm8782_soc_remove() 91 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in wm8782_soc_suspend() 98 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in wm8782_soc_resume() 133 priv->supplies[i].supply = supply_names[i]; in wm8782_probe() 135 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(priv->supplies), in wm8782_probe() 136 priv->supplies); in wm8782_probe()
|
H A D | ak5386.c | 26 struct regulator_bulk_data supplies[ARRAY_SIZE(supply_names)]; member 42 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_probe() 48 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_remove() 55 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_suspend() 62 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_resume() 173 priv->supplies[i].supply = supply_names[i]; in ak5386_probe() 175 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(priv->supplies), in ak5386_probe() 176 priv->supplies); in ak5386_probe()
|
H A D | bd28623.c | 25 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()
|
H A D | tas2552.c | 67 struct regulator_bulk_data supplies[TAS2552_NUM_SUPPLIES]; member 577 ret = regulator_bulk_enable(ARRAY_SIZE(tas2552->supplies), in tas2552_component_probe() 578 tas2552->supplies); in tas2552_component_probe() 581 dev_err(component->dev, "Failed to enable supplies: %d\n", in tas2552_component_probe() 613 regulator_bulk_disable(ARRAY_SIZE(tas2552->supplies), in tas2552_component_probe() 614 tas2552->supplies); in tas2552_component_probe() 633 ret = regulator_bulk_disable(ARRAY_SIZE(tas2552->supplies), in tas2552_suspend() 634 tas2552->supplies); in tas2552_suspend() 637 dev_err(component->dev, "Failed to disable supplies: %d\n", in tas2552_suspend() 647 ret = regulator_bulk_enable(ARRAY_SIZE(tas2552->supplies), in tas2552_resume() [all …]
|
/linux/drivers/input/rmi4/ |
H A D | rmi_i2c.c | 28 * @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() 230 rmi_i2c->supplies[0].supply = "vdd"; in rmi_i2c_probe() 231 rmi_i2c->supplies[1].supply = "vio"; in rmi_i2c_probe() 233 ARRAY_SIZE(rmi_i2c->supplies), in rmi_i2c_probe() 234 rmi_i2c->supplies); in rmi_i2c_probe() 238 error = regulator_bulk_enable(ARRAY_SIZE(rmi_i2c->supplies), in rmi_i2c_probe() 239 rmi_i2c->supplies); in rmi_i2c_probe() [all …]
|
/linux/drivers/pci/controller/dwc/ |
H A D | pci-exynos.c | 59 struct regulator_bulk_data supplies[2]; member 307 ep->supplies[0].supply = "vdd18"; in exynos_pcie_probe() 308 ep->supplies[1].supply = "vdd10"; in exynos_pcie_probe() 309 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ep->supplies), in exynos_pcie_probe() 310 ep->supplies); in exynos_pcie_probe() 314 ret = regulator_bulk_enable(ARRAY_SIZE(ep->supplies), ep->supplies); in exynos_pcie_probe() 328 regulator_bulk_disable(ARRAY_SIZE(ep->supplies), ep->supplies); in exynos_pcie_probe() 341 regulator_bulk_disable(ARRAY_SIZE(ep->supplies), ep->supplies); in exynos_pcie_remove() 351 regulator_bulk_disable(ARRAY_SIZE(ep->supplies), ep->supplies); in exynos_pcie_suspend_noirq() 363 ret = regulator_bulk_enable(ARRAY_SIZE(ep->supplies), ep->supplies); in exynos_pcie_resume_noirq()
|
/linux/drivers/mfd/ |
H A D | wm8994-core.c | 74 * Supplies for the main bulk of CODEC; the LDO supplies are ignored 168 wm8994->supplies); in wm8994_suspend() 170 dev_err(dev, "Failed to disable supplies: %d\n", ret); in wm8994_suspend() 187 wm8994->supplies); in wm8994_resume() 189 dev_err(dev, "Failed to enable supplies: %d\n", ret); in wm8994_resume() 210 regulator_bulk_disable(wm8994->num_supplies, wm8994->supplies); in wm8994_resume() 347 wm8994->supplies = devm_kcalloc(wm8994->dev, in wm8994_device_init() 351 if (!wm8994->supplies) { in wm8994_device_init() 359 wm8994->supplies[i].supply = wm1811_main_supplies[i]; in wm8994_device_init() 363 wm8994->supplies[i].supply = wm8994_main_supplies[i]; in wm8994_device_init() [all …]
|
H A D | wcd934x.c | 234 ddata->supplies[0].supply = "vdd-buck"; in wcd934x_slim_probe() 235 ddata->supplies[1].supply = "vdd-buck-sido"; in wcd934x_slim_probe() 236 ddata->supplies[2].supply = "vdd-tx"; in wcd934x_slim_probe() 237 ddata->supplies[3].supply = "vdd-rx"; in wcd934x_slim_probe() 238 ddata->supplies[4].supply = "vdd-io"; in wcd934x_slim_probe() 240 ret = regulator_bulk_get(dev, WCD934X_MAX_SUPPLY, ddata->supplies); in wcd934x_slim_probe() 242 return dev_err_probe(dev, ret, "Failed to get supplies\n"); in wcd934x_slim_probe() 244 ret = regulator_bulk_enable(WCD934X_MAX_SUPPLY, ddata->supplies); in wcd934x_slim_probe() 246 return dev_err_probe(dev, ret, "Failed to enable supplies\n"); in wcd934x_slim_probe() 270 regulator_bulk_disable(WCD934X_MAX_SUPPLY, ddata->supplies); in wcd934x_slim_probe() [all …]
|
/linux/tools/testing/selftests/power_supply/ |
H A D | test_power_supply_properties.sh | 9 # By default all power supplies available are tested. Optionally the name of a 18 SUPPLIES=$1 25 for i in $SUPPLIES; do 37 supplies=$(ls "$SYSFS_SUPPLIES") 39 supplies=$1 42 ktap_set_plan "$(count_tests "$supplies")" 44 for DEVNAME in $supplies; do
|
/linux/drivers/pci/pwrctrl/ |
H A D | slot.c | 18 struct regulator_bulk_data *supplies; member 26 regulator_bulk_disable(slot->num_supplies, slot->supplies); in devm_pci_pwrctrl_slot_power_off() 27 regulator_bulk_free(slot->num_supplies, slot->supplies); in devm_pci_pwrctrl_slot_power_off() 42 &slot->supplies); in pci_pwrctrl_slot_probe() 49 ret = regulator_bulk_enable(slot->num_supplies, slot->supplies); in pci_pwrctrl_slot_probe() 75 regulator_bulk_disable(slot->num_supplies, slot->supplies); in pci_pwrctrl_slot_probe() 77 regulator_bulk_free(slot->num_supplies, slot->supplies); in pci_pwrctrl_slot_probe()
|
/linux/drivers/gpu/drm/panel/ |
H A D | panel-lg-sw43408.c | 29 struct regulator_bulk_data supplies[NUM_SUPPLIES]; member 55 ret = regulator_bulk_disable(ARRAY_SIZE(sw43408->supplies), sw43408->supplies); in sw43408_unprepare() 127 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in sw43408_prepare() 148 regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in sw43408_prepare() 227 ctx->supplies[0].supply = "vddi"; /* 1.88 V */ in sw43408_add() 228 ctx->supplies[0].init_load_uA = 62000; in sw43408_add() 229 ctx->supplies[1].supply = "vpnl"; /* 3.0 V */ in sw43408_add() 230 ctx->supplies[1].init_load_uA = 857000; in sw43408_add() 232 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies), in sw43408_add() 233 ctx->supplies); in sw43408_add()
|
H A D | panel-startek-kd070fhfid015.c | 44 struct regulator_bulk_data supplies[2]; member 111 regulator_bulk_disable(ARRAY_SIZE(stk->supplies), stk->supplies); in stk_panel_unprepare() 125 ret = regulator_enable(stk->supplies[IOVCC].consumer); in stk_panel_prepare() 130 ret = regulator_enable(stk->supplies[POWER].consumer); in stk_panel_prepare() 150 regulator_disable(stk->supplies[POWER].consumer); in stk_panel_prepare() 152 regulator_disable(stk->supplies[IOVCC].consumer); in stk_panel_prepare() 260 stk->supplies[IOVCC].supply = "iovcc"; in stk_panel_add() 261 stk->supplies[POWER].supply = "power"; in stk_panel_add() 262 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(stk->supplies), stk->supplies); in stk_panel_add()
|
/linux/drivers/input/misc/ |
H A D | twl6040-vibra.c | 48 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() 284 info->supplies[0].supply = "vddvibl"; in twl6040_vibra_probe() 285 info->supplies[1].supply = "vddvibr"; in twl6040_vibra_probe() 291 ARRAY_SIZE(info->supplies), in twl6040_vibra_probe() 292 info->supplies); in twl6040_vibra_probe() 299 error = regulator_set_voltage(info->supplies[0].consumer, in twl6040_vibra_probe() [all …]
|
/linux/drivers/pci/controller/ |
H A D | pci-tegra.c | 350 struct regulator_bulk_data *supplies; member 1169 err = regulator_bulk_disable(pcie->num_supplies, pcie->supplies); in tegra_pcie_power_off() 1188 err = regulator_bulk_enable(pcie->num_supplies, pcie->supplies); in tegra_pcie_power_on() 1238 regulator_bulk_disable(pcie->num_supplies, pcie->supplies); in tegra_pcie_power_on() 1902 * Check whether a given set of supplies is available in a device tree node. 1907 struct regulator_bulk_data *supplies, in of_regulator_bulk_available() argument 1914 snprintf(property, 32, "%s-supply", supplies[i].supply); in of_regulator_bulk_available() 1925 * supplies that didn't match the hardware inputs. This happened to work for a 1928 * set of supplies. 1945 pcie->supplies = devm_kcalloc(dev, pcie->num_supplies, in tegra_pcie_get_legacy_regulators() [all …]
|
/linux/drivers/input/touchscreen/ |
H A D | zet6223.c | 29 struct regulator_bulk_data supplies[2]; member 100 regulator_bulk_disable(ARRAY_SIZE(ts->supplies), ts->supplies); in zet6223_power_off() 108 ts->supplies[0].supply = "vio"; in zet6223_power_on() 109 ts->supplies[1].supply = "vcc"; in zet6223_power_on() 111 error = devm_regulator_bulk_get(dev, ARRAY_SIZE(ts->supplies), in zet6223_power_on() 112 ts->supplies); in zet6223_power_on() 116 error = regulator_bulk_enable(ARRAY_SIZE(ts->supplies), ts->supplies); in zet6223_power_on()
|
/linux/include/linux/regulator/ |
H A D | userspace-consumer.h | 12 * @num_supplies: Number of supplies feeding the line 13 * @supplies: Supplies configuration. 21 struct regulator_bulk_data *supplies; member
|