Lines Matching refs:np
50 extern int of_get_named_gpio_flags(struct device_node *np,
53 extern int of_mm_gpiochip_add(struct device_node *np,
66 static inline int of_get_named_gpio_flags(struct device_node *np, in of_get_named_gpio_flags() argument
104 static inline int of_gpio_named_count(struct device_node *np, const char* propname) in of_gpio_named_count() argument
106 return of_count_phandle_with_args(np, propname, "#gpio-cells"); in of_gpio_named_count()
115 static inline int of_gpio_count(struct device_node *np) in of_gpio_count() argument
117 return of_gpio_named_count(np, "gpios"); in of_gpio_count()
120 static inline int of_get_gpio_flags(struct device_node *np, int index, in of_get_gpio_flags() argument
123 return of_get_named_gpio_flags(np, "gpios", index, flags); in of_get_gpio_flags()
135 static inline int of_get_named_gpio(struct device_node *np, in of_get_named_gpio() argument
138 return of_get_named_gpio_flags(np, propname, index, NULL); in of_get_named_gpio()
149 static inline int of_get_gpio(struct device_node *np, int index) in of_get_gpio() argument
151 return of_get_gpio_flags(np, index, NULL); in of_get_gpio()