Lines Matching refs:np
51 extern int of_get_named_gpio_flags(struct device_node *np,
54 extern int of_mm_gpiochip_add(struct device_node *np,
67 static inline int of_get_named_gpio_flags(struct device_node *np, in of_get_named_gpio_flags() argument
105 static inline int of_gpio_named_count(struct device_node *np, const char* propname) in of_gpio_named_count() argument
107 return of_count_phandle_with_args(np, propname, "#gpio-cells"); in of_gpio_named_count()
116 static inline int of_gpio_count(struct device_node *np) in of_gpio_count() argument
118 return of_gpio_named_count(np, "gpios"); in of_gpio_count()
121 static inline int of_get_gpio_flags(struct device_node *np, int index, in of_get_gpio_flags() argument
124 return of_get_named_gpio_flags(np, "gpios", index, flags); in of_get_gpio_flags()
136 static inline int of_get_named_gpio(struct device_node *np, in of_get_named_gpio() argument
139 return of_get_named_gpio_flags(np, propname, index, NULL); in of_get_named_gpio()
150 static inline int of_get_gpio(struct device_node *np, int index) in of_get_gpio() argument
152 return of_get_gpio_flags(np, index, NULL); in of_get_gpio()