Searched refs:constraints (Results 1 – 25 of 35) sorted by relevance
12
32 struct regulation_constraints *constraints = &(*init_data)->constraints; in of_get_regulation_constraints() local38 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 …]
122 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 …]
67 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()
82 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()
112 .constraints = {118 .constraints = {163 ldo->init_data.constraints.valid_ops_mask = 0; in wm8994_ldo_probe()
114 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()
72 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()
161 .constraints = {171 .constraints = {178 .constraints = {
292 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()
177 .constraints = {189 .constraints = {
1324 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()
29 .constraints = {
49 data->init_data.constraints.always_on = 1; in regulator_register_always_on()
245 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()
378 if (!di->regulator->constraints.ramp_delay) { in fan53555_regulator_probe()382 di->regulator->constraints.ramp_delay in fan53555_regulator_probe()
237 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()
329 if (idata && idata->constraints.name) in max8907_regulator_probe()330 mbatt_rail_name = idata->constraints.name; in max8907_regulator_probe()
515 struct regulation_constraints *c = &rinit_data->constraints; in ti_abb_init_table()864 c = &initdata->constraints; in ti_abb_probe()
669 if (ridata && (ridata->constraints.always_on || in max8973_probe()670 ridata->constraints.boot_on)) in max8973_probe()
230 if (pdata->reg_data->constraints.boot_on) in max8952_pmic_probe()
86 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()
2847 .constraints = {2856 .constraints = {2862 .constraints = {2868 .constraints = {2874 .constraints = {2880 .constraints = {2888 .constraints = {2894 .constraints = {2901 .constraints = {2909 .constraints = {[all …]
799 .constraints.valid_modes_mask = in add_children()802 .constraints.valid_ops_mask = in add_children()
139 struct nx842_constraints *constraints; member
265 struct nx842_constraints c = *ctx->driver->constraints; in nx842_crypto_compress()449 struct nx842_constraints c = *ctx->driver->constraints; in nx842_crypto_decompress()