Lines Matching refs:unit
98 int unit, error; in lpc_device_parse() local
152 for (unit = 0; unit < LPC_UART_NUM; unit++) { in lpc_device_parse()
153 if (strcasecmp(lpcdev, lpc_uart_names[unit]) == 0) { in lpc_device_parse()
155 lpc_uart_names[unit]); in lpc_device_parse()
276 int unit, error; in lpc_init() local
279 for (unit = 0; unit < LPC_UART_NUM; unit++) { in lpc_init()
280 sc = &lpc_uart_softc[unit]; in lpc_init()
281 name = lpc_uart_names[unit]; in lpc_init()
283 if (uart_legacy_alloc(unit, &sc->iobase, &sc->irq) != 0) { in lpc_init()
425 int unit; in pci_lpc_uart_dsdt() local
427 for (unit = 0; unit < LPC_UART_NUM; unit++) { in pci_lpc_uart_dsdt()
428 sc = &lpc_uart_softc[unit]; in pci_lpc_uart_dsdt()
432 dsdt_line("Device (%s)", lpc_uart_acpi_names[unit]); in pci_lpc_uart_dsdt()
435 dsdt_line(" Name (_UID, %d)", unit + 1); in pci_lpc_uart_dsdt()