Lines Matching defs:mode
32 unsigned int mode;
129 if (!of_property_read_u32(np, "regulator-initial-mode", &pval)) {
131 mode = desc->of_map_mode(pval);
132 if (mode == REGULATOR_MODE_INVALID)
133 pr_err("%pOFn: invalid mode %u\n", np, pval);
135 constraints->initial_mode = mode;
137 pr_warn("%pOFn: mapping for mode %d not defined\n",
154 mode = desc->of_map_mode(pval);
155 if (mode == REGULATOR_MODE_INVALID)
159 constraints->valid_modes_mask |= mode;
165 pr_warn("%pOFn: mode mapping not defined\n", np);
216 if (!of_property_read_u32(suspend_np, "regulator-mode",
219 mode = desc->of_map_mode(pval);
220 if (mode == REGULATOR_MODE_INVALID)
221 pr_err("%pOFn: invalid mode %u\n",
224 suspend_state->mode = mode;
226 pr_warn("%pOFn: mapping for mode %d not defined\n",