Lines Matching refs:np
117 static int i2sbus_get_and_fixup_rsrc(struct device_node *np, int index, in i2sbus_get_and_fixup_rsrc() argument
134 return of_address_to_resource(np, index, res); in i2sbus_get_and_fixup_rsrc()
136 parent = of_get_parent(np); in i2sbus_get_and_fixup_rsrc()
141 reg = of_get_property(np, "reg", NULL); in i2sbus_get_and_fixup_rsrc()
156 struct device_node *np) in i2sbus_add_dev() argument
171 if (strlen(np->name) != 5) in i2sbus_add_dev()
173 if (strncmp(np->name, "i2s-", 4)) in i2sbus_add_dev()
181 while ((child = of_get_next_child(np, child))) { in i2sbus_add_dev()
224 dev->sound.ofdev.dev.of_node = np; in i2sbus_add_dev()
233 dev->bus_number = np->name[4] - 'a'; in i2sbus_add_dev()
239 rnames[i], np->name); in i2sbus_add_dev()
242 int irq = irq_of_parse_and_map(np, i); in i2sbus_add_dev()
256 if (i2sbus_get_and_fixup_rsrc(np,i,layout,&dev->resources[i])) in i2sbus_add_dev()
335 struct device_node *np = NULL; in i2sbus_probe() local
347 while ((np = of_get_next_child(dev->ofdev.dev.of_node, np))) { in i2sbus_probe()
348 if (of_device_is_compatible(np, "i2sbus") || in i2sbus_probe()
349 of_device_is_compatible(np, "i2s-modem")) { in i2sbus_probe()
350 got += i2sbus_add_dev(dev, control, np); in i2sbus_probe()