Lines Matching defs:mode
88 unsigned int mode;
185 if (!of_property_read_u32(np, "regulator-initial-mode", &pval)) {
187 mode = desc->of_map_mode(pval);
188 if (mode == REGULATOR_MODE_INVALID)
189 pr_err("%pOFn: invalid mode %u\n", np, pval);
191 constraints->initial_mode = mode;
193 pr_warn("%pOFn: mapping for mode %d not defined\n",
210 mode = desc->of_map_mode(pval);
211 if (mode == REGULATOR_MODE_INVALID)
215 constraints->valid_modes_mask |= mode;
221 pr_warn("%pOFn: mode mapping not defined\n", np);
274 if (!of_property_read_u32(suspend_np, "regulator-mode",
277 mode = desc->of_map_mode(pval);
278 if (mode == REGULATOR_MODE_INVALID)
279 pr_err("%pOFn: invalid mode %u\n",
282 suspend_state->mode = mode;
284 pr_warn("%pOFn: mapping for mode %d not defined\n",