Lines Matching +full:ch +full:- +full:func
1 // SPDX-License-Identifier: GPL-2.0
16 #include <xen/hvc-console.h>
17 #include <asm/pci-direct.h>
20 #include <linux/usb/xhci-dbgp.h>
34 while ((c = *str++) != '\0' && n-- > 0) { in early_vga_write()
45 current_ypos = max_ypos-1; in early_vga_write()
50 current_xpos--; in early_vga_write()
74 .index = -1,
110 static int early_serial_putc(unsigned char ch) in early_serial_putc() argument
114 while ((serial_in(early_serial_base, LSR) & XMTRDY) == 0 && --timeout) in early_serial_putc()
116 serial_out(early_serial_base, TXR, ch); in early_serial_putc()
117 return timeout ? 0 : -1; in early_serial_putc()
122 while (*s && n-- > 0) { in early_serial_write()
221 u8 bus, slot, func; in early_pci_serial_init() local
252 func = (u8)simple_strtoul(s, &e, 16); in early_pci_serial_init()
262 cmdreg = read_pci_config(bus, slot, func, PCI_COMMAND); in early_pci_serial_init()
263 classcode = read_pci_config(bus, slot, func, PCI_CLASS_REVISION); in early_pci_serial_init()
264 bar0 = read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_0); in early_pci_serial_init()
267 * Verify it is a 16550-UART type device in early_pci_serial_init()
284 write_pci_config(bus, slot, func, PCI_COMMAND, in early_pci_serial_init()
287 /* It is memory mapped - assume 32-bit alignment */ in early_pci_serial_init()
293 write_pci_config(bus, slot, func, PCI_COMMAND, in early_pci_serial_init()
324 .index = -1,
329 if (con->index != -1) { in early_console_register()
331 con->name); in early_console_register()
336 early_console->flags &= ~CON_BOOT; in early_console_register()
338 early_console->flags |= CON_BOOT; in early_console_register()