Lines Matching defs:index
34 unsigned long index; /* index into the vcc_table */
119 * Return: index of the port in the VCC table on success,
144 * @index: Index into the VCC table
146 static void vcc_table_remove(unsigned long index)
150 if (WARN_ON(index >= VCC_MAX_PORTS))
154 vcc_table[index] = NULL;
160 * @index: Index into the VCC table
166 static struct vcc_port *vcc_get(unsigned long index, bool excl)
174 port = vcc_table[index];
241 * @index: Index into the VCC table
248 static struct vcc_port *vcc_get_ne(unsigned long index)
252 port = vcc_get(index, false);
609 port->index = vcc_table_add(port);
610 if (port->index == -1) {
616 /* Register the device using VCC table index as TTY index */
617 dev = tty_register_device(vcc_tty_driver, port->index, &vdev->dev);
668 tty_unregister_device(vcc_tty_driver, port->index);
670 vcc_table_remove(port->index);
710 port = vcc_get(port->index, true);
715 tty_unregister_device(vcc_tty_driver, port->index);
725 vcc_table_remove(port->index);
762 port = vcc_get_ne(tty->index);
829 port = vcc_get_ne(tty->index);
863 port = vcc_get_ne(tty->index);
928 port = vcc_get_ne(tty->index);
951 port = vcc_get_ne(tty->index);
974 port = vcc_get_ne(tty->index);
1009 if (tty->index >= VCC_MAX_PORTS)
1020 port_vcc = vcc_get(tty->index, true);
1048 port = vcc_get(tty->index, true);
1053 vcc_table_remove(tty->index);