Lines Matching full:vcc

2 /* vcc.c: sun4v virtual channel concentrator
45 /* Microseconds that thread will delay waiting for a vcc port ref */
107 * vcc_table_add() - Add VCC port to the VCC table
108 * @port: pointer to the VCC port
110 * Return: index of the port in the VCC table on success,
134 * vcc_table_remove() - Removes a VCC port from the VCC table
135 * @index: Index into the VCC table
150 * vcc_get() - Gets a reference to VCC port
151 * @index: Index into the VCC table
154 * Return: reference to the VCC port, if found
200 * vcc_put() - Returns a reference to VCC port
201 * @port: pointer to VCC port
231 * vcc_get_ne() - Get a non-exclusive reference to VCC port
232 * @index: Index into the VCC table
234 * Gets a non-exclusive reference to VCC port, if it's not removed
236 * Return: pointer to the VCC port, if found
315 vccdbg("VCC: reset rx q: rv=%d\n", rv); in vcc_ldc_read()
332 vccdbg("VCC: ldc_read()=%d\n", rv); in vcc_ldc_read()
342 pr_err("VCC: unknown msg [%02x:%02x:%04x:%08x]\n", in vcc_ldc_read()
409 vccdbg("VCC: ldc_write()=%d\n", rv); in vcc_tx_timer()
426 * @arg: VCC private data
429 * Handles LDC events for VCC
456 pr_err("VCC: unexpected LDC event(%d)\n", event); in vcc_event()
503 vccdbg("VCC: ldc_write(%ld)=%d\n", sizeof(pkt.tag), rv); in vcc_send_ctl()
548 * vcc_probe() - Initialize VCC port
549 * @vdev: Pointer to VIO device of the new VCC port
552 * Initializes a VCC port to receive serial console data from
569 vccdbg("VCC: name=%s\n", dev_name(&vdev->dev)); in vcc_probe()
572 pr_err("VCC: TTY driver not registered\n"); in vcc_probe()
598 pr_err("VCC: no more TTY indices left for allocation\n"); in vcc_probe()
603 /* Register the device using VCC table index as TTY index */ in vcc_probe()
619 domain = mdesc_get_property(hp, node, "vcc-domain-name", NULL); in vcc_probe()
663 * vcc_remove() - Terminate a VCC port
664 * @vdev: Pointer to VIO device of the VCC port
666 * Terminates a VCC port. Sets up the teardown of TTY and
685 /* Get exclusive reference to VCC, ensures that there are no other in vcc_remove()
710 .type = "vcc-port",
720 .name = "vcc",
732 pr_err("VCC: open: Failed to find VCC port\n"); in vcc_open()
737 pr_err("VCC: open: LDC channel not configured\n"); in vcc_open()
746 pr_err("VCC: open: TTY port not found\n"); in vcc_open()
751 pr_err("VCC: open: TTY ops not defined\n"); in vcc_open()
764 pr_err("VCC: close: TTY port not found\n"); in vcc_close()
789 pr_err("VCC: hangup: Failed to find VCC port\n"); in vcc_hangup()
794 pr_err("VCC: hangup: TTY port not found\n"); in vcc_hangup()
818 pr_err("VCC: write: Failed to find VCC port"); in vcc_write()
844 /* Since we know we have enough room in VCC buffer for tosend in vcc_write()
849 vccdbg("VCC: write: ldc_write(%d)=%d\n", in vcc_write()
866 vccdbg("VCC: write: total=%d rv=%d", total_sent, rv); in vcc_write()
878 pr_err("VCC: write_room: Failed to find VCC port\n"); in vcc_write_room()
896 pr_err("VCC: chars_in_buffer: Failed to find VCC port\n"); in vcc_chars_in_buffer()
914 pr_err("VCC: break_ctl: Failed to find VCC port\n"); in vcc_break_ctl()
955 pr_err("VCC: install: Failed to find VCC port\n"); in vcc_install()
1015 pr_err("VCC: TTY driver alloc failed\n"); in vcc_tty_init()
1019 vcc_tty_driver->driver_name = "vcc"; in vcc_tty_init()
1020 vcc_tty_driver->name = "vcc"; in vcc_tty_init()
1030 pr_err("VCC: TTY driver registration failed\n"); in vcc_tty_init()
1036 vccdbg("VCC: TTY driver registered\n"); in vcc_tty_init()
1045 vccdbg("VCC: TTY driver unregistered\n"); in vcc_tty_exit()
1056 pr_err("VCC: TTY init failed\n"); in vcc_init()
1062 pr_err("VCC: VIO driver registration failed\n"); in vcc_init()
1065 vccdbg("VCC: VIO driver registered successfully\n"); in vcc_init()
1074 vccdbg("VCC: VIO driver unregistered\n"); in vcc_exit()
1076 vccdbg("VCC: TTY driver unregistered\n"); in vcc_exit()