Lines Matching refs:proplen
141 int proplen, gpio, i; in of_get_gpio_regulator_config() local
181 proplen = of_property_count_u32_elems(np, "gpios-states"); in of_get_gpio_regulator_config()
183 if (proplen < 0) in of_get_gpio_regulator_config()
184 proplen = 0; in of_get_gpio_regulator_config()
186 if (proplen > 0 && proplen != config->nr_gpios) { in of_get_gpio_regulator_config()
188 proplen = 0; in of_get_gpio_regulator_config()
196 if (proplen > 0) { in of_get_gpio_regulator_config()
207 proplen = of_property_count_u32_elems(np, "states"); in of_get_gpio_regulator_config()
208 if (proplen < 0) { in of_get_gpio_regulator_config()
215 * (proplen / 2), in of_get_gpio_regulator_config()
220 for (i = 0; i < proplen / 2; i++) { in of_get_gpio_regulator_config()