Lines Matching full:vcc

2 /* vcc.c: sun4v virtual channel concentrator
46 /* Microseconds that thread will delay waiting for a vcc port ref */
108 * vcc_table_add() - Add VCC port to the VCC table
109 * @port: pointer to the VCC port
111 * Return: index of the port in the VCC table on success,
135 * vcc_table_remove() - Removes a VCC port from the VCC table
136 * @index: Index into the VCC table
151 * vcc_get() - Gets a reference to VCC port
152 * @index: Index into the VCC table
155 * Return: reference to the VCC port, if found
201 * vcc_put() - Returns a reference to VCC port
202 * @port: pointer to VCC port
232 * vcc_get_ne() - Get a non-exclusive reference to VCC port
233 * @index: Index into the VCC table
235 * Gets a non-exclusive reference to VCC port, if it's not removed
237 * Return: pointer to the VCC port, if found
316 vccdbg("VCC: reset rx q: rv=%d\n", rv); in vcc_ldc_read()
333 vccdbg("VCC: ldc_read()=%d\n", rv); in vcc_ldc_read()
343 pr_err("VCC: unknown msg [%02x:%02x:%04x:%08x]\n", in vcc_ldc_read()
410 vccdbg("VCC: ldc_write()=%d\n", rv); in vcc_tx_timer()
427 * @arg: VCC private data
430 * Handles LDC events for VCC
457 pr_err("VCC: unexpected LDC event(%d)\n", event); in vcc_event()
504 vccdbg("VCC: ldc_write(%ld)=%d\n", sizeof(pkt.tag), rv); in vcc_send_ctl()
549 * vcc_probe() - Initialize VCC port
550 * @vdev: Pointer to VIO device of the new VCC port
553 * Initializes a VCC port to receive serial console data from
570 vccdbg("VCC: name=%s\n", dev_name(&vdev->dev)); in vcc_probe()
573 pr_err("VCC: TTY driver not registered\n"); in vcc_probe()
603 pr_err("VCC: no more TTY indices left for allocation\n"); in vcc_probe()
608 /* Register the device using VCC table index as TTY index */ in vcc_probe()
624 domain = mdesc_get_property(hp, node, "vcc-domain-name", NULL); in vcc_probe()
674 * vcc_remove() - Terminate a VCC port
675 * @vdev: Pointer to VIO device of the VCC port
677 * Terminates a VCC port. Sets up the teardown of TTY and
696 /* Get exclusive reference to VCC, ensures that there are no other in vcc_remove()
721 .type = "vcc-port",
731 .name = "vcc",
743 pr_err("VCC: open: Failed to find VCC port\n"); in vcc_open()
748 pr_err("VCC: open: LDC channel not configured\n"); in vcc_open()
757 pr_err("VCC: open: TTY port not found\n"); in vcc_open()
762 pr_err("VCC: open: TTY ops not defined\n"); in vcc_open()
775 pr_err("VCC: close: TTY port not found\n"); in vcc_close()
800 pr_err("VCC: hangup: Failed to find VCC port\n"); in vcc_hangup()
805 pr_err("VCC: hangup: TTY port not found\n"); in vcc_hangup()
828 pr_err("VCC: write: Failed to find VCC port"); in vcc_write()
855 /* Since we know we have enough room in VCC buffer for tosend in vcc_write()
860 vccdbg("VCC: write: ldc_write(%zu)=%d\n", in vcc_write()
877 vccdbg("VCC: write: total=%zu rv=%d", total_sent, rv); in vcc_write()
889 pr_err("VCC: write_room: Failed to find VCC port\n"); in vcc_write_room()
907 pr_err("VCC: chars_in_buffer: Failed to find VCC port\n"); in vcc_chars_in_buffer()
925 pr_err("VCC: break_ctl: Failed to find VCC port\n"); in vcc_break_ctl()
966 pr_err("VCC: install: Failed to find VCC port\n"); in vcc_install()
1026 pr_err("VCC: TTY driver alloc failed\n"); in vcc_tty_init()
1030 vcc_tty_driver->driver_name = "vcc"; in vcc_tty_init()
1031 vcc_tty_driver->name = "vcc"; in vcc_tty_init()
1041 pr_err("VCC: TTY driver registration failed\n"); in vcc_tty_init()
1047 vccdbg("VCC: TTY driver registered\n"); in vcc_tty_init()
1056 vccdbg("VCC: TTY driver unregistered\n"); in vcc_tty_exit()
1067 pr_err("VCC: TTY init failed\n"); in vcc_init()
1073 pr_err("VCC: VIO driver registration failed\n"); in vcc_init()
1076 vccdbg("VCC: VIO driver registered successfully\n"); in vcc_init()
1085 vccdbg("VCC: VIO driver unregistered\n"); in vcc_exit()
1087 vccdbg("VCC: TTY driver unregistered\n"); in vcc_exit()