• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/kernel/

Lines Matching refs:np

28 	struct device_node		*np;
37 static int __init add_legacy_port(struct device_node *np, int want_index,
47 clk = of_get_property(np, "clock-frequency", NULL);
52 spd = of_get_property(np, "current-speed", NULL);
70 if (legacy_serial_infos[index].np != 0) {
97 legacy_serial_infos[index].np = of_node_get(np);
103 index, np->full_name);
113 static int __init add_legacy_soc_port(struct device_node *np,
120 struct device_node *tsi = of_get_parent(np);
125 if (of_get_property(np, "clock-frequency", NULL) == NULL)
129 if (of_get_property(np, "used-by-rtas", NULL) != NULL)
145 return add_legacy_port(np, -1, UPIO_TSI, addr, addr, NO_IRQ, flags, 0);
147 return add_legacy_port(np, -1, UPIO_MEM, addr, addr, NO_IRQ, flags, 0);
150 static int __init add_legacy_isa_port(struct device_node *np,
158 DBG(" -> add_legacy_isa_port(%s)\n", np->full_name);
161 reg = of_get_property(np, "reg", NULL);
172 typep = of_get_property(np, "ibm,aix-loc", NULL);
182 taddr = of_translate_address(np, reg);
187 return add_legacy_port(np, index, UPIO_PORT, reg[1], taddr,
193 static int __init add_legacy_pci_port(struct device_node *np,
201 DBG(" -> add_legacy_pci_port(%s)\n", np->full_name);
210 if (of_get_property(np, "clock-frequency", NULL) == NULL)
235 if (np != pci_dev) {
236 const u32 *reg = of_get_property(np, "reg", NULL);
260 return add_legacy_port(np, index, iotype, base, addr, NO_IRQ,
261 UPF_BOOT_AUTOCONF, np != pci_dev);
293 struct device_node *np, *stdout = NULL;
310 for (np = NULL; (np = of_find_compatible_node(np, "serial", "ns16550")) != NULL;) {
311 struct device_node *soc = of_get_parent(np);
313 index = add_legacy_soc_port(np, np);
314 if (index >= 0 && np == stdout)
321 for (np = NULL; (np = of_find_node_by_type(np, "serial"));) {
322 struct device_node *isa = of_get_parent(np);
324 index = add_legacy_isa_port(np, isa);
325 if (index >= 0 && np == stdout)
332 for (np = NULL; (np = of_find_compatible_node(np, "serial", "ns16550")) != NULL;) {
333 struct device_node *tsi = of_get_parent(np);
335 index = add_legacy_soc_port(np, np);
336 if (index >= 0 && np == stdout)
343 for (np = NULL; (np = of_find_compatible_node(np, "serial", "ns16750")) != NULL;) {
344 struct device_node *opb = of_get_parent(np);
346 index = add_legacy_soc_port(np, np);
347 if (index >= 0 && np == stdout)
355 for (np = NULL; (np = of_find_all_nodes(np));) {
356 struct device_node *pci, *parent = of_get_parent(np);
361 if (strcmp(np->name, "serial") && strcmp(np->type, "serial")) {
368 if (of_device_is_compatible(np, "pciclass,0700") ||
369 of_device_is_compatible(np, "pciclass,070002"))
370 pci = np;
378 index = add_legacy_pci_port(np, pci);
379 if (index >= 0 && np == stdout)
400 struct device_node *np,
407 virq = irq_of_parse_and_map(np, 0);
409 np = of_get_parent(np);
410 if (np == NULL)
412 virq = irq_of_parse_and_map(np, 0);
413 of_node_put(np);
422 struct device_node *np,
430 hose = pci_find_hose_for_OF_device(np);
446 struct device_node *np,
482 struct device_node *np = legacy_serial_infos[i].np;
485 fixup_port_irq(i, np, port);
487 fixup_port_pio(i, np, port);
489 fixup_port_mmio(i, np, port);
561 if (prom_stdout != legacy_serial_infos[i].np)