Home
last modified time | relevance | path

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

123456789

/Linux-v5.10/drivers/regulator/
Dof_regulator.c29 struct regulation_constraints *constraints = &(*init_data)->constraints; in of_get_regulation_constraints() local
41 constraints->name = of_get_property(np, "regulator-name", NULL); in of_get_regulation_constraints()
44 constraints->min_uV = pval; in of_get_regulation_constraints()
47 constraints->max_uV = pval; in of_get_regulation_constraints()
50 if (constraints->min_uV != constraints->max_uV) in of_get_regulation_constraints()
51 constraints->valid_ops_mask |= REGULATOR_CHANGE_VOLTAGE; in of_get_regulation_constraints()
54 if (constraints->min_uV && constraints->max_uV) in of_get_regulation_constraints()
55 constraints->apply_uV = true; in of_get_regulation_constraints()
58 constraints->uV_offset = pval; in of_get_regulation_constraints()
60 constraints->min_uA = pval; in of_get_regulation_constraints()
[all …]
Dcore.c113 if (rdev->constraints && rdev->constraints->name) in rdev_get_name()
114 return rdev->constraints->name; in rdev_get_name()
128 if (!rdev->constraints) { in regulator_ops_is_valid()
133 if (rdev->constraints->valid_ops_mask & ops) in regulator_ops_is_valid()
440 if (*max_uV > rdev->constraints->max_uV) in regulator_check_voltage()
441 *max_uV = rdev->constraints->max_uV; in regulator_check_voltage()
442 if (*min_uV < rdev->constraints->min_uV) in regulator_check_voltage()
443 *min_uV = rdev->constraints->min_uV; in regulator_check_voltage()
505 if (*max_uA > rdev->constraints->max_uA) in regulator_check_current_limit()
506 *max_uA = rdev->constraints->max_uA; in regulator_check_current_limit()
[all …]
Dab8500-ext.c308 .constraints = {
322 .constraints = {
338 .constraints = {
353 .constraints = {
362 .constraints = {
371 .constraints = {
380 .constraints = {
389 .constraints = {
398 .constraints = {
415 .constraints = {
[all …]
Dfixed.c103 init_data->constraints.apply_uV = 0; in of_get_fixed_voltage_config()
105 config->supply_name = init_data->constraints.name; in of_get_fixed_voltage_config()
106 if (init_data->constraints.min_uV == init_data->constraints.max_uV) { in of_get_fixed_voltage_config()
107 config->microvolts = init_data->constraints.min_uV; in of_get_fixed_voltage_config()
114 if (init_data->constraints.boot_on) in of_get_fixed_voltage_config()
Dvexpress-regulator.c66 init_data->constraints.apply_uV = 0; in vexpress_regulator_probe()
67 if (init_data->constraints.min_uV && init_data->constraints.max_uV) in vexpress_regulator_probe()
Dpwm-regulator.c151 int min_uV = rdev->constraints->min_uV; in pwm_regulator_get_voltage()
152 int max_uV = rdev->constraints->max_uV; in pwm_regulator_get_voltage()
188 int min_uV = rdev->constraints->min_uV; in pwm_regulator_set_voltage()
189 int max_uV = rdev->constraints->max_uV; in pwm_regulator_set_voltage()
365 if (init_data->constraints.boot_on || init_data->constraints.always_on) in pwm_regulator_probe()
Dwm8994-regulator.c107 .constraints = {
113 .constraints = {
165 ldo->init_data.constraints.valid_ops_mask = 0; in wm8994_ldo_probe()
Dlp87565-regulator.c97 rdev->constraints->ramp_delay = lp87565_buck_ramp_delay[reg]; in lp87565_buck_set_ramp_delay()
100 rdev->constraints->ramp_delay = in lp87565_buck_set_ramp_delay()
101 rdev->constraints->ramp_delay * 85 / 100; in lp87565_buck_set_ramp_delay()
Darizona-ldo1.c139 .constraints = {
149 .constraints = {
156 .constraints = {
182 .constraints = {
Dmax77693-regulator.c58 unsigned int chg_min_uA = rdev->constraints->min_uA; in max77693_chg_get_current_limit()
59 unsigned int chg_max_uA = rdev->constraints->max_uA; in max77693_chg_get_current_limit()
87 unsigned int chg_min_uA = rdev->constraints->min_uA; in max77693_chg_set_current_limit()
/Linux-v5.10/arch/arm/mach-s3c/
Dmach-smdk6410.c212 .constraints = {
295 .constraints = {
308 .constraints = {
319 .constraints = {
327 .constraints = {
335 .constraints = {
343 .constraints = {
351 .constraints = {
359 .constraints = {
367 .constraints = {
[all …]
Dmach-crag6410.c342 .constraints = {
406 .constraints = {
424 .constraints = {
437 .constraints = {
444 .constraints = {
457 .constraints = {
467 .constraints = {
475 .constraints = {
483 .constraints = {
491 .constraints = {
[all …]
Dmach-gta02.c252 .constraints = {
261 .constraints = {
270 .constraints = {
279 .constraints = {
288 .constraints = {
297 .constraints = {
305 .constraints = {
313 .constraints = {
322 .constraints = {
331 .constraints = {
[all …]
/Linux-v5.10/arch/arm/mach-pxa/
Dstargate2.c184 .constraints = { /* board default 1.8V */
191 .constraints = { /* board default 2.8V */
198 .constraints = {/* default is 1.8V */
205 .constraints = {
213 .constraints = { /* default 1.8V */
220 .constraints = { /* default 2.8V */
227 .constraints = { /* default 2.8V */
234 .constraints = { /* default 2.8V */
241 .constraints = { /* default 2.8V */
249 .constraints = { /* default 2.8V */
[all …]
Dz2.c635 .constraints = {
645 .constraints = {
652 .constraints = {
659 .constraints = {
666 .constraints = {
/Linux-v5.10/arch/arm/mach-sa1100/
Dgeneric.c348 id->constraints.always_on = 1; in sa11x0_register_fixed_regulator()
349 id->constraints.name = cfg->supply_name; in sa11x0_register_fixed_regulator()
350 id->constraints.min_uV = cfg->microvolts; in sa11x0_register_fixed_regulator()
351 id->constraints.max_uV = cfg->microvolts; in sa11x0_register_fixed_regulator()
352 id->constraints.valid_modes_mask = REGULATOR_MODE_NORMAL; in sa11x0_register_fixed_regulator()
353 id->constraints.valid_ops_mask = REGULATOR_CHANGE_STATUS; in sa11x0_register_fixed_regulator()
/Linux-v5.10/sound/soc/codecs/
Dssm2518.c115 const struct snd_pcm_hw_constraint_list *constraints; member
613 if (ssm2518->constraints) in ssm2518_startup()
615 SNDRV_PCM_HW_PARAM_RATE, ssm2518->constraints); in ssm2518_startup()
669 ssm2518->constraints = NULL; in ssm2518_set_sysclk()
677 ssm2518->constraints = &ssm2518_constraints_2048000; in ssm2518_set_sysclk()
688 ssm2518->constraints = &ssm2518_constraints_2822000; in ssm2518_set_sysclk()
696 ssm2518->constraints = &ssm2518_constraints_3072000; in ssm2518_set_sysclk()
701 ssm2518->constraints = &ssm2518_constraints_12288000; in ssm2518_set_sysclk()
Dwm8731.c48 const struct snd_pcm_hw_constraint_list *constraints; member
401 wm8731->constraints = NULL; in wm8731_set_dai_sysclk()
404 wm8731->constraints = &wm8731_constraints_12000000; in wm8731_set_dai_sysclk()
408 wm8731->constraints = &wm8731_constraints_12288000_18432000; in wm8731_set_dai_sysclk()
412 wm8731->constraints = &wm8731_constraints_11289600_16934400; in wm8731_set_dai_sysclk()
533 if (wm8731->constraints) in wm8731_startup()
536 wm8731->constraints); in wm8731_startup()
/Linux-v5.10/Documentation/ABI/testing/
Dsysfs-class-regulator154 for regulators which support voltage constraints.
169 for regulators which support voltage constraints.
184 microamps, for regulators which support current constraints.
199 microamps, for regulators which support current constraints.
257 implementing suspend voltage configuration constraints.
268 implementing suspend voltage configuration constraints.
279 implementing suspend voltage configuration constraints.
290 configuration constraints.
301 constraints.
312 configuration constraints.
[all …]
/Linux-v5.10/arch/arm/mach-davinci/
Dboard-mityomapl138.c262 .constraints = {
274 .constraints = {
285 .constraints = {
296 .constraints = {
307 .constraints = {
/Linux-v5.10/Documentation/userspace-api/media/v4l/
Dvidioc-g-selection.rst68 requested rectangle. An application may introduce constraints to control
93 1. Satisfy constraints from struct
111 constraints flags have to be violated at then ``ERANGE`` is returned. The
113 constraints.
120 .. kernel-figure:: constraints.svg
121 :alt: constraints.svg
182 ``r`` rectangle to satisfy all constraints given in the ``flags``
/Linux-v5.10/drivers/soc/samsung/
Dexynos-regulator-coupler.c26 struct regulation_constraints *constraints = rdev->constraints; in regulator_get_optimal_voltage() local
68 max_spread = constraints->max_spread[0]; in regulator_get_optimal_voltage()
/Linux-v5.10/drivers/powercap/
Dpowercap_sys.c74 pconst = &power_zone->constraints[id]; \
99 pconst = &power_zone->constraints[id]; \
168 pconst = &power_zone->constraints[id]; in show_constraint_name()
300 pconst = &power_zone->constraints[i]; in create_constraints()
401 kfree(power_zone->constraints); in powercap_release()
536 power_zone->constraints = kcalloc(nr_constraints, in powercap_register_zone()
537 sizeof(*power_zone->constraints), in powercap_register_zone()
539 if (!power_zone->constraints) in powercap_register_zone()
570 kfree(power_zone->constraints); in powercap_register_zone()
/Linux-v5.10/drivers/soc/tegra/
Dregulators-tegra30.c118 max_spread = cpu_rdev->constraints->max_spread[0]; in tegra30_voltage_update()
119 cpu_max_step = cpu_rdev->constraints->max_uV_step; in tegra30_voltage_update()
120 core_max_step = core_rdev->constraints->max_uV_step; in tegra30_voltage_update()
/Linux-v5.10/Documentation/driver-api/
Dregulator.rst84 constraints may not allow the regulator to be disabled there is no
134 time as part of the machine constraints.
140 constraints defining the operations that clients are allowed to perform
149 The constraints may also specify an initial configuration for the
150 regulator in the constraints, which is particularly useful for use with

123456789