Lines Matching defs:index
28 unsigned long index; /* index into the vcc_table */
111 * Return: index of the port in the VCC table on success,
136 * @index: Index into the VCC table
138 static void vcc_table_remove(unsigned long index)
142 if (WARN_ON(index >= VCC_MAX_PORTS))
146 vcc_table[index] = NULL;
152 * @index: Index into the VCC table
158 static struct vcc_port *vcc_get(unsigned long index, bool excl)
166 port = vcc_table[index];
233 * @index: Index into the VCC table
240 static struct vcc_port *vcc_get_ne(unsigned long index)
244 port = vcc_get(index, false);
601 port->index = vcc_table_add(port);
602 if (port->index == -1) {
608 /* Register the device using VCC table index as TTY index */
609 dev = tty_register_device(vcc_tty_driver, port->index, &vdev->dev);
660 tty_unregister_device(vcc_tty_driver, port->index);
662 vcc_table_remove(port->index);
699 vcc_get(port->index, true);
701 tty_unregister_device(vcc_tty_driver, port->index);
711 vcc_table_remove(port->index);
741 port = vcc_get_ne(tty->index);
798 port = vcc_get_ne(tty->index);
826 port = vcc_get_ne(tty->index);
887 port = vcc_get_ne(tty->index);
905 port = vcc_get_ne(tty->index);
923 port = vcc_get_ne(tty->index);
953 if (tty->index >= VCC_MAX_PORTS)
964 port_vcc = vcc_get(tty->index, true);
987 port = vcc_get(tty->index, true);
992 vcc_table_remove(tty->index);