Lines Matching full:vcc
2 /* vcc.c: sun4v virtual channel concentrator
17 #define DRV_MODULE_NAME "vcc"
52 /* Microseconds that thread will delay waiting for a vcc port ref */
62 static const char vcc_driver_name[] = "vcc";
63 static const char vcc_device_node[] = "vcc";
116 * vcc_table_add() - Add VCC port to the VCC table
117 * @port: pointer to the VCC port
119 * Return: index of the port in the VCC table on success,
143 * vcc_table_remove() - Removes a VCC port from the VCC table
144 * @index: Index into the VCC table
159 * vcc_get() - Gets a reference to VCC port
160 * @index: Index into the VCC table
163 * Return: reference to the VCC port, if found
209 * vcc_put() - Returns a reference to VCC port
210 * @port: pointer to VCC port
240 * vcc_get_ne() - Get a non-exclusive reference to VCC port
241 * @index: Index into the VCC table
243 * Gets a non-exclusive reference to VCC port, if it's not removed
245 * Return: pointer to the VCC port, if found
324 vccdbg("VCC: reset rx q: rv=%d\n", rv); in vcc_ldc_read()
341 vccdbg("VCC: ldc_read()=%d\n", rv); in vcc_ldc_read()
351 pr_err("VCC: unknown msg [%02x:%02x:%04x:%08x]\n", in vcc_ldc_read()
418 vccdbg("VCC: ldc_write()=%d\n", rv); in vcc_tx_timer()
435 * @arg: VCC private data
438 * Handles LDC events for VCC
465 pr_err("VCC: unexpected LDC event(%d)\n", event); in vcc_event()
512 vccdbg("VCC: ldc_write(%ld)=%d\n", sizeof(pkt.tag), rv); in vcc_send_ctl()
557 * vcc_probe() - Initialize VCC port
558 * @vdev: Pointer to VIO device of the new VCC port
561 * Initializes a VCC port to receive serial console data from
578 vccdbg("VCC: name=%s\n", dev_name(&vdev->dev)); in vcc_probe()
581 pr_err("VCC: TTY driver not registered\n"); in vcc_probe()
611 pr_err("VCC: no more TTY indices left for allocation\n"); in vcc_probe()
616 /* Register the device using VCC table index as TTY index */ in vcc_probe()
632 domain = mdesc_get_property(hp, node, "vcc-domain-name", NULL); in vcc_probe()
682 * vcc_remove() - Terminate a VCC port
683 * @vdev: Pointer to VIO device of the VCC port
685 * Terminates a VCC port. Sets up the teardown of TTY and
707 /* Get exclusive reference to VCC, ensures that there are no other in vcc_remove()
737 .type = "vcc-port",
747 .name = "vcc",
755 pr_err("VCC: open: Invalid TTY handle\n"); in vcc_open()
764 pr_err("VCC: open: Failed to find VCC port\n"); in vcc_open()
769 pr_err("VCC: open: LDC channel not configured\n"); in vcc_open()
778 pr_err("VCC: open: TTY port not found\n"); in vcc_open()
783 pr_err("VCC: open: TTY ops not defined\n"); in vcc_open()
793 pr_err("VCC: close: Invalid TTY handle\n"); in vcc_close()
801 pr_err("VCC: close: TTY port not found\n"); in vcc_close()
825 pr_err("VCC: hangup: Invalid TTY handle\n"); in vcc_hangup()
831 pr_err("VCC: hangup: Failed to find VCC port\n"); in vcc_hangup()
836 pr_err("VCC: hangup: TTY port not found\n"); in vcc_hangup()
859 pr_err("VCC: write: Invalid TTY handle\n"); in vcc_write()
865 pr_err("VCC: write: Failed to find VCC port"); in vcc_write()
891 /* Since we know we have enough room in VCC buffer for tosend in vcc_write()
896 vccdbg("VCC: write: ldc_write(%d)=%d\n", in vcc_write()
913 vccdbg("VCC: write: total=%d rv=%d", total_sent, rv); in vcc_write()
924 pr_err("VCC: write_room: Invalid TTY handle\n"); in vcc_write_room()
930 pr_err("VCC: write_room: Failed to find VCC port\n"); in vcc_write_room()
947 pr_err("VCC: chars_in_buffer: Invalid TTY handle\n"); in vcc_chars_in_buffer()
953 pr_err("VCC: chars_in_buffer: Failed to find VCC port\n"); in vcc_chars_in_buffer()
970 pr_err("VCC: break_ctl: Invalid TTY handle\n"); in vcc_break_ctl()
976 pr_err("VCC: break_ctl: Failed to find VCC port\n"); in vcc_break_ctl()
1005 pr_err("VCC: install: Invalid TTY handle\n"); in vcc_install()
1022 pr_err("VCC: install: Failed to find VCC port\n"); in vcc_install()
1044 pr_err("VCC: cleanup: Invalid TTY handle\n"); in vcc_cleanup()
1085 pr_info("VCC: %s\n", version); in vcc_tty_init()
1089 pr_err("VCC: TTY driver alloc failed\n"); in vcc_tty_init()
1104 pr_err("VCC: TTY driver registration failed\n"); in vcc_tty_init()
1110 vccdbg("VCC: TTY driver registered\n"); in vcc_tty_init()
1119 vccdbg("VCC: TTY driver unregistered\n"); in vcc_tty_exit()
1130 pr_err("VCC: TTY init failed\n"); in vcc_init()
1136 pr_err("VCC: VIO driver registration failed\n"); in vcc_init()
1139 vccdbg("VCC: VIO driver registered successfully\n"); in vcc_init()
1148 vccdbg("VCC: VIO driver unregistered\n"); in vcc_exit()
1150 vccdbg("VCC: TTY driver unregistered\n"); in vcc_exit()