Lines Matching refs:pval
38 u32 pval; in of_get_regulator_prot_limits() local
68 found = !of_property_read_u32(np, prop, &pval); in of_get_regulator_prot_limits()
70 fill_limit(l[j], pval); in of_get_regulator_prot_limits()
91 u32 pval; in of_get_regulation_constraints() local
99 if (!of_property_read_u32(np, "regulator-min-microvolt", &pval)) in of_get_regulation_constraints()
100 constraints->min_uV = pval; in of_get_regulation_constraints()
102 if (!of_property_read_u32(np, "regulator-max-microvolt", &pval)) in of_get_regulation_constraints()
103 constraints->max_uV = pval; in of_get_regulation_constraints()
113 if (!of_property_read_u32(np, "regulator-microvolt-offset", &pval)) in of_get_regulation_constraints()
114 constraints->uV_offset = pval; in of_get_regulation_constraints()
115 if (!of_property_read_u32(np, "regulator-min-microamp", &pval)) in of_get_regulation_constraints()
116 constraints->min_uA = pval; in of_get_regulation_constraints()
117 if (!of_property_read_u32(np, "regulator-max-microamp", &pval)) in of_get_regulation_constraints()
118 constraints->max_uA = pval; in of_get_regulation_constraints()
121 &pval)) in of_get_regulation_constraints()
122 constraints->ilim_uA = pval; in of_get_regulation_constraints()
141 ret = of_property_read_u32(np, "regulator-ramp-delay", &pval); in of_get_regulation_constraints()
143 if (pval) in of_get_regulation_constraints()
144 constraints->ramp_delay = pval; in of_get_regulation_constraints()
149 ret = of_property_read_u32(np, "regulator-settling-time-us", &pval); in of_get_regulation_constraints()
151 constraints->settling_time = pval; in of_get_regulation_constraints()
153 ret = of_property_read_u32(np, "regulator-settling-time-up-us", &pval); in of_get_regulation_constraints()
155 constraints->settling_time_up = pval; in of_get_regulation_constraints()
163 &pval); in of_get_regulation_constraints()
165 constraints->settling_time_down = pval; in of_get_regulation_constraints()
172 ret = of_property_read_u32(np, "regulator-enable-ramp-delay", &pval); in of_get_regulation_constraints()
174 constraints->enable_time = pval; in of_get_regulation_constraints()
178 ret = of_property_read_u32(np, "regulator-active-discharge", &pval); in of_get_regulation_constraints()
181 (pval) ? REGULATOR_ACTIVE_DISCHARGE_ENABLE : in of_get_regulation_constraints()
185 if (!of_property_read_u32(np, "regulator-initial-mode", &pval)) { in of_get_regulation_constraints()
187 mode = desc->of_map_mode(pval); in of_get_regulation_constraints()
189 pr_err("%pOFn: invalid mode %u\n", np, pval); in of_get_regulation_constraints()
194 np, pval); in of_get_regulation_constraints()
204 "regulator-allowed-modes", i, &pval); in of_get_regulation_constraints()
210 mode = desc->of_map_mode(pval); in of_get_regulation_constraints()
213 np, pval); in of_get_regulation_constraints()
225 if (!of_property_read_u32(np, "regulator-system-load", &pval)) in of_get_regulation_constraints()
226 constraints->system_load = pval; in of_get_regulation_constraints()
241 &pval)) in of_get_regulation_constraints()
242 constraints->max_uV_step = pval; in of_get_regulation_constraints()
275 &pval)) { in of_get_regulation_constraints()
277 mode = desc->of_map_mode(pval); in of_get_regulation_constraints()
280 np, pval); in of_get_regulation_constraints()
285 np, pval); in of_get_regulation_constraints()
297 "regulator-suspend-min-microvolt", &pval)) in of_get_regulation_constraints()
298 suspend_state->min_uV = pval; in of_get_regulation_constraints()
301 "regulator-suspend-max-microvolt", &pval)) in of_get_regulation_constraints()
302 suspend_state->max_uV = pval; in of_get_regulation_constraints()
305 "regulator-suspend-microvolt", &pval)) in of_get_regulation_constraints()
306 suspend_state->uV = pval; in of_get_regulation_constraints()