Lines Matching refs:np
60 struct device_node *np, *gpio; in get_gpio() local
67 np = of_find_node_by_name(NULL, name); in get_gpio()
68 if (!np) { in get_gpio()
76 while ((np = of_get_next_child(gpio, np))) { in get_gpio()
77 audio_gpio = of_get_property(np, "audio-gpio", NULL); in get_gpio()
86 if (!np) in get_gpio()
90 reg = of_get_property(np, "reg", NULL); in get_gpio()
102 reg = of_get_property(np, "audio-gpio-active-state", NULL); in get_gpio()
113 return np; in get_gpio()
116 static void get_irq(struct device_node * np, int *irqptr) in get_irq() argument
118 if (np) in get_irq()
119 *irqptr = irq_of_parse_and_map(np, 0); in get_irq()