• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/arch/powerpc/kernel/

Lines Matching refs:index

57 	int index;
67 /* If we have a location index, then try to use it */
69 index = want_index;
71 index = legacy_serial_count;
73 /* if our index is still out of range, that mean that
77 if (index >= MAX_LEGACY_SERIAL_PORTS)
79 if (index >= legacy_serial_count)
80 legacy_serial_count = index + 1;
83 if (legacy_serial_infos[index].np != 0) {
87 index, legacy_serial_count);
89 legacy_serial_ports[index];
91 legacy_serial_infos[index];
94 printk(KERN_DEBUG "Replacing legacy port %d\n", index);
99 memset(&legacy_serial_ports[index], 0,
102 legacy_serial_ports[index].iobase = base;
104 legacy_serial_ports[index].mapbase = base;
105 legacy_serial_ports[index].iotype = iotype;
106 legacy_serial_ports[index].uartclk = clock;
107 legacy_serial_ports[index].irq = irq;
108 legacy_serial_ports[index].flags = flags;
109 legacy_serial_infos[index].taddr = taddr;
110 legacy_serial_infos[index].np = of_node_get(np);
111 legacy_serial_infos[index].clock = clock;
112 legacy_serial_infos[index].speed = spd ? *spd : 0;
113 legacy_serial_infos[index].irq_check_parent = irq_check_parent;
116 index, np->full_name);
120 legacy_serial_ports[index].uartclk,
121 legacy_serial_infos[index].speed);
123 return index;
173 int index = -1;
192 /* If we have a location index, then use it */
194 index = simple_strtol(typep+1, NULL, 0) - 1;
205 return add_legacy_port(np, index, UPIO_PORT, reg[1], taddr,
217 int iotype, index = -1, lindex = 0;
250 /* Try to guess an index... If we have subdevices of the pci dev,
256 index = lindex = *reg;
259 /* Local index means it's the Nth port in the PCI chip. Unfortunately
278 return add_legacy_port(np, index, iotype, base, addr, NO_IRQ,
313 int index;
333 index = add_legacy_soc_port(np, np);
334 if (index >= 0 && np == stdout)
335 legacy_serial_console = index;
344 index = add_legacy_isa_port(np, isa);
345 if (index >= 0 && np == stdout)
346 legacy_serial_console = index;
376 index = add_legacy_pci_port(np, pci);
377 if (index >= 0 && np == stdout)
378 legacy_serial_console = index;
397 static void __init fixup_port_irq(int index,
403 DBG("fixup_port_irq(%d)\n", index);
406 if (virq == NO_IRQ && legacy_serial_infos[index].irq_check_parent) {
419 static void __init fixup_port_pio(int index,
426 DBG("fixup_port_pio(%d)\n", index);
437 index, port->iobase, port->iobase + offset);
443 static void __init fixup_port_mmio(int index,
447 DBG("fixup_port_mmio(%d)\n", index);