/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 | policy_fs.c | 29 * @f: Supplies a file structure representing the securityfs node. 30 * @data: Supplies a buffer passed to the write syscall. 31 * @len: Supplies the length of @data. 73 * @f: Supplies a file structure representing the securityfs node. 74 * @data: Supplies a buffer passed to the write syscall. 75 * @len: Supplies the length of @data. 111 * @f: Supplies a file structure representing the securityfs node. 112 * @data: Supplies a buffer passed to the write syscall. 113 * @len: Supplies the length of @data. 149 * @f: Supplies a file structure representing the securityfs node. [all …]
|
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 | fs.c | 23 * @f: Supplies a file structure representing the securityfs node. 24 * @data: Supplies a buffer passed to the write syscall. 25 * @len: Supplies the length of @data. 52 * @f: Supplies a file structure representing the securityfs node. 53 * @data: Supplies a buffer passed to the read syscall. 54 * @len: Supplies the length of @data. 71 * @f: Supplies a file structure representing the securityfs node. 72 * @data: Supplies a buffer passed to the write syscall. 73 * @len: Supplies the length of @data. 104 * @f: Supplies a file structure representing the securityfs node. [all …]
|
H A D | audit.c | 66 * @ab: Supplies a pointer to the audit_buffer to append to. 67 * @rh: Supplies a pointer to the digest structure. 77 * @ab: Supplies a pointer to the audit_buffer to append to. 78 * @d: Supplies a pointer to the digest structure. 88 * @ab: Supplies a pointer to the audit_buffer to append to. 89 * @r: Supplies a pointer to the ipe_rule to approximate a string form for. 118 * @ctx: Supplies a pointer to the evaluation context that was used in the 120 * @match_type: Supplies the scope of the match: rule, operation default, 122 * @act: Supplies the IPE's evaluation decision, deny or allow. 123 * @r: Supplies a pointer to the rule that was matched, if possible. [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. 140 * @text: Supplies a pointer to the plain-text policy to parse. 141 * @textlen: Supplies the length of @text. 142 * @pkcs7: Supplies a pointer to a pkcs7-signed IPE policy. 143 * @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 …]
|
/linux/drivers/regulator/ |
H A D | userspace-consumer.c | 31 struct regulator_bulk_data *supplies; member 77 data->supplies); in state_store() 80 data->supplies); in state_store() 135 pdata->supplies = devm_kzalloc(&pdev->dev, sizeof(*pdata->supplies), GFP_KERNEL); in regulator_userspace_consumer_probe() 136 if (!pdata->supplies) in regulator_userspace_consumer_probe() 138 pdata->supplies[0].supply = "vout"; in regulator_userspace_consumer_probe() 154 drvdata->supplies = pdata->supplies; in regulator_userspace_consumer_probe() 160 drvdata->supplies); in regulator_userspace_consumer_probe() 162 return dev_err_probe(&pdev->dev, ret, "Failed to get supplies\n"); in regulator_userspace_consumer_probe() 172 drvdata->supplies); in regulator_userspace_consumer_probe() [all …]
|
/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 | 24 struct regulator_bulk_data supplies[ARRAY_SIZE(supply_names)]; member 40 return regulator_bulk_enable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_probe() 46 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_remove() 53 regulator_bulk_disable(ARRAY_SIZE(priv->supplies), priv->supplies); in ak5386_soc_suspend() 60 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 | wm8523.c | 40 struct regulator_bulk_data supplies[WM8523_NUM_SUPPLIES]; member 334 ret = regulator_bulk_enable(ARRAY_SIZE(wm8523->supplies), in wm8523_set_bias_level() 335 wm8523->supplies); in wm8523_set_bias_level() 338 "Failed to enable supplies: %d\n", in wm8523_set_bias_level() 365 regulator_bulk_disable(ARRAY_SIZE(wm8523->supplies), in wm8523_set_bias_level() 366 wm8523->supplies); in wm8523_set_bias_level() 463 for (i = 0; i < ARRAY_SIZE(wm8523->supplies); i++) in wm8523_i2c_probe() 464 wm8523->supplies[i].supply = wm8523_supply_names[i]; in wm8523_i2c_probe() 466 ret = devm_regulator_bulk_get(&i2c->dev, ARRAY_SIZE(wm8523->supplies), in wm8523_i2c_probe() 467 wm8523->supplies); in wm8523_i2c_probe() [all …]
|
H A D | wm8737.c | 42 struct regulator_bulk_data supplies[WM8737_NUM_SUPPLIES]; member 469 ret = regulator_bulk_enable(ARRAY_SIZE(wm8737->supplies), in wm8737_set_bias_level() 470 wm8737->supplies); in wm8737_set_bias_level() 473 "Failed to enable supplies: %d\n", in wm8737_set_bias_level() 506 regulator_bulk_disable(ARRAY_SIZE(wm8737->supplies), in wm8737_set_bias_level() 507 wm8737->supplies); in wm8737_set_bias_level() 542 ret = regulator_bulk_enable(ARRAY_SIZE(wm8737->supplies), in wm8737_probe() 543 wm8737->supplies); in wm8737_probe() 545 dev_err(component->dev, "Failed to enable supplies: %d\n", ret); in wm8737_probe() 563 regulator_bulk_disable(ARRAY_SIZE(wm8737->supplies), wm8737->supplies); in wm8737_probe() [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/hid/i2c-hid/ |
H A D | i2c-hid-of.c | 40 struct regulator_bulk_data supplies[2]; member 51 ret = regulator_bulk_enable(ARRAY_SIZE(ihid_of->supplies), in i2c_hid_of_power_up() 52 ihid_of->supplies); in i2c_hid_of_power_up() 54 dev_warn(dev, "Failed to enable supplies: %d\n", ret); in i2c_hid_of_power_up() 73 regulator_bulk_disable(ARRAY_SIZE(ihid_of->supplies), in i2c_hid_of_power_down() 74 ihid_of->supplies); in i2c_hid_of_power_down() 121 ihid_of->supplies[0].supply = "vdd"; in i2c_hid_of_probe() 122 ihid_of->supplies[1].supply = "vddl"; in i2c_hid_of_probe() 123 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ihid_of->supplies), in i2c_hid_of_probe() 124 ihid_of->supplies); in i2c_hid_of_probe()
|
/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/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-visionox-rm69299.c | 20 struct regulator_bulk_data supplies[2]; member 34 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in visionox_rm69299_power_on() 57 return regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in visionox_rm69299_power_off() 199 ctx->supplies[0].supply = "vdda"; in visionox_rm69299_probe() 200 ctx->supplies[0].init_load_uA = 32000; in visionox_rm69299_probe() 201 ctx->supplies[1].supply = "vdd3p3"; in visionox_rm69299_probe() 202 ctx->supplies[1].init_load_uA = 13200; in visionox_rm69299_probe() 204 ret = devm_regulator_bulk_get(ctx->panel.dev, ARRAY_SIZE(ctx->supplies), in visionox_rm69299_probe() 205 ctx->supplies); in visionox_rm69299_probe()
|
H A D | panel-ebbg-ft8719.c | 36 struct regulator_bulk_data supplies[ARRAY_SIZE(regulator_names)]; member 121 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in ebbg_ft8719_prepare() 149 ret = regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in ebbg_ft8719_unprepare() 205 for (i = 0; i < ARRAY_SIZE(ctx->supplies); i++) in ebbg_ft8719_probe() 206 ctx->supplies[i].supply = regulator_names[i]; in ebbg_ft8719_probe() 208 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies), in ebbg_ft8719_probe() 209 ctx->supplies); in ebbg_ft8719_probe() 213 for (i = 0; i < ARRAY_SIZE(ctx->supplies); i++) { in ebbg_ft8719_probe() 214 ret = regulator_set_load(ctx->supplies[i].consumer, in ebbg_ft8719_probe()
|
H A D | panel-sony-td4353-jdi.c | 36 struct regulator_bulk_data supplies[3]; member 152 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in sony_td4353_jdi_prepare() 166 regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in sony_td4353_jdi_prepare() 184 regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in sony_td4353_jdi_unprepare() 245 ctx->supplies[0].supply = "vddio"; in sony_td4353_jdi_probe() 246 ctx->supplies[1].supply = "vsp"; in sony_td4353_jdi_probe() 247 ctx->supplies[2].supply = "vsn"; in sony_td4353_jdi_probe() 248 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies), in sony_td4353_jdi_probe() 249 ctx->supplies); in sony_td4353_jdi_probe()
|
H A D | panel-samsung-s6e88a0-ams452ef01.c | 19 struct regulator_bulk_data supplies[2]; member 116 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in s6e88a0_ams452ef01_prepare() 128 regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), in s6e88a0_ams452ef01_prepare() 129 ctx->supplies); in s6e88a0_ams452ef01_prepare() 147 regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in s6e88a0_ams452ef01_unprepare() 201 ctx->supplies[0].supply = "vdd3"; in s6e88a0_ams452ef01_probe() 202 ctx->supplies[1].supply = "vci"; in s6e88a0_ams452ef01_probe() 203 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies), in s6e88a0_ams452ef01_probe() 204 ctx->supplies); in s6e88a0_ams452ef01_probe()
|
/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() 288 info->supplies[0].supply = "vddvibl"; in twl6040_vibra_probe() 289 info->supplies[1].supply = "vddvibr"; in twl6040_vibra_probe() 295 ARRAY_SIZE(info->supplies), in twl6040_vibra_probe() 296 info->supplies); in twl6040_vibra_probe() 303 error = regulator_set_voltage(info->supplies[0].consumer, in twl6040_vibra_probe() [all …]
|