Home
last modified time | relevance | path

Searched refs:constraints (Results 1 – 25 of 35) sorted by relevance

12

/drivers/regulator/
Dof_regulator.c32 struct regulation_constraints *constraints = &(*init_data)->constraints; in of_get_regulation_constraints() local
38 constraints->name = of_get_property(np, "regulator-name", NULL); in of_get_regulation_constraints()
42 constraints->min_uV = be32_to_cpu(*min_uV); in of_get_regulation_constraints()
45 constraints->max_uV = be32_to_cpu(*max_uV); in of_get_regulation_constraints()
48 if (constraints->min_uV != constraints->max_uV) in of_get_regulation_constraints()
49 constraints->valid_ops_mask |= REGULATOR_CHANGE_VOLTAGE; in of_get_regulation_constraints()
51 if (min_uV && max_uV && constraints->min_uV == constraints->max_uV) in of_get_regulation_constraints()
52 constraints->apply_uV = true; in of_get_regulation_constraints()
55 constraints->uV_offset = pval; in of_get_regulation_constraints()
57 constraints->min_uA = pval; in of_get_regulation_constraints()
[all …]
Dcore.c122 if (rdev->constraints && rdev->constraints->name) in rdev_get_name()
123 return rdev->constraints->name; in rdev_get_name()
203 if (!rdev->constraints) in _regulator_can_change_status()
206 if (rdev->constraints->valid_ops_mask & REGULATOR_CHANGE_STATUS) in _regulator_can_change_status()
218 if (!rdev->constraints) { in regulator_check_voltage()
222 if (!(rdev->constraints->valid_ops_mask & REGULATOR_CHANGE_VOLTAGE)) { in regulator_check_voltage()
227 if (*max_uV > rdev->constraints->max_uV) in regulator_check_voltage()
228 *max_uV = rdev->constraints->max_uV; in regulator_check_voltage()
229 if (*min_uV < rdev->constraints->min_uV) in regulator_check_voltage()
230 *min_uV = rdev->constraints->min_uV; in regulator_check_voltage()
[all …]
Dfixed.c67 init_data->constraints.apply_uV = 0; in of_get_fixed_voltage_config()
69 config->supply_name = init_data->constraints.name; in of_get_fixed_voltage_config()
70 if (init_data->constraints.min_uV == init_data->constraints.max_uV) { in of_get_fixed_voltage_config()
71 config->microvolts = init_data->constraints.min_uV; in of_get_fixed_voltage_config()
78 if (init_data->constraints.boot_on) in of_get_fixed_voltage_config()
Dvexpress.c82 init_data->constraints.apply_uV = 0; in vexpress_regulator_probe()
83 if (init_data->constraints.min_uV && init_data->constraints.max_uV) in vexpress_regulator_probe()
Dwm8994-regulator.c112 .constraints = {
118 .constraints = {
163 ldo->init_data.constraints.valid_ops_mask = 0; in wm8994_ldo_probe()
Dpwm-regulator.c114 int min_uV = rdev->constraints->min_uV; in pwm_voltage_to_duty_cycle_percentage()
115 int max_uV = rdev->constraints->max_uV; in pwm_voltage_to_duty_cycle_percentage()
133 unsigned int ramp_delay = rdev->constraints->ramp_delay; in pwm_regulator_set_voltage()
Dmax77693.c72 unsigned int chg_min_uA = rdev->constraints->min_uA; in max77693_chg_get_current_limit()
73 unsigned int chg_max_uA = rdev->constraints->max_uA; in max77693_chg_get_current_limit()
101 unsigned int chg_min_uA = rdev->constraints->min_uA; in max77693_chg_set_current_limit()
Darizona-ldo1.c161 .constraints = {
171 .constraints = {
178 .constraints = {
Dtps65090-regulator.c292 if (tps_pdata->reg_init_data->constraints.always_on || in tps65090_regulator_disable_ext_control()
293 tps_pdata->reg_init_data->constraints.boot_on) { in tps65090_regulator_disable_ext_control()
310 if (tps_pdata->reg_init_data->constraints.always_on || in tps65090_configure_regulator_config()
311 tps_pdata->reg_init_data->constraints.boot_on) in tps65090_configure_regulator_config()
Darizona-micsupp.c177 .constraints = {
189 .constraints = {
Dwm8350-regulator.c1324 led->isink_init.constraints.min_uA = 0; in wm8350_register_led()
1325 led->isink_init.constraints.max_uA = pdata->max_uA; in wm8350_register_led()
1326 led->isink_init.constraints.valid_ops_mask in wm8350_register_led()
1328 led->isink_init.constraints.valid_modes_mask = REGULATOR_MODE_NORMAL; in wm8350_register_led()
1339 led->dcdc_init.constraints.valid_modes_mask = REGULATOR_MODE_NORMAL; in wm8350_register_led()
1340 led->dcdc_init.constraints.valid_ops_mask = REGULATOR_CHANGE_STATUS; in wm8350_register_led()
Ddummy.c29 .constraints = {
Dfixed-helper.c49 data->init_data.constraints.always_on = 1; in regulator_register_always_on()
Dtps51632-regulator.c245 pdata->base_voltage_uV = pdata->reg_init_data->constraints.min_uV ? : in of_get_tps51632_platform_data()
247 pdata->max_voltage_uV = pdata->reg_init_data->constraints.max_uV ? : in of_get_tps51632_platform_data()
Dfan53555.c378 if (!di->regulator->constraints.ramp_delay) { in fan53555_regulator_probe()
382 di->regulator->constraints.ramp_delay in fan53555_regulator_probe()
Dab8500-ext.c237 struct regulation_constraints *regu_constraints = rdev->constraints; in ab8500_ext_set_voltage()
259 struct regulation_constraints *regu_constraints = rdev->constraints; in ab8500_ext_list_voltage()
Dmax8907-regulator.c329 if (idata && idata->constraints.name) in max8907_regulator_probe()
330 mbatt_rail_name = idata->constraints.name; in max8907_regulator_probe()
Dti-abb-regulator.c515 struct regulation_constraints *c = &rinit_data->constraints; in ti_abb_init_table()
864 c = &initdata->constraints; in ti_abb_probe()
Dmax8973-regulator.c669 if (ridata && (ridata->constraints.always_on || in max8973_probe()
670 ridata->constraints.boot_on)) in max8973_probe()
Dmax8952.c230 if (pdata->reg_data->constraints.boot_on) in max8952_pmic_probe()
/drivers/powercap/
Dpowercap_sys.c86 pconst = &power_zone->constraints[id]; \
111 pconst = &power_zone->constraints[id]; \
180 pconst = &power_zone->constraints[id]; in show_constraint_name()
312 pconst = &power_zone->constraints[i]; in create_constraints()
413 kfree(power_zone->constraints); in powercap_release()
548 power_zone->constraints = kzalloc(sizeof(*power_zone->constraints) * in powercap_register_zone()
550 if (!power_zone->constraints) in powercap_register_zone()
581 kfree(power_zone->constraints); in powercap_register_zone()
/drivers/mfd/
Ddb8500-prcmu.c2847 .constraints = {
2856 .constraints = {
2862 .constraints = {
2868 .constraints = {
2874 .constraints = {
2880 .constraints = {
2888 .constraints = {
2894 .constraints = {
2901 .constraints = {
2909 .constraints = {
[all …]
Dtwl-core.c799 .constraints.valid_modes_mask = in add_children()
802 .constraints.valid_ops_mask = in add_children()
/drivers/crypto/nx/
Dnx-842.h139 struct nx842_constraints *constraints; member
Dnx-842.c265 struct nx842_constraints c = *ctx->driver->constraints; in nx842_crypto_compress()
449 struct nx842_constraints c = *ctx->driver->constraints; in nx842_crypto_decompress()

12