Lines Matching defs:index
82 * @index: index of the tty
84 * Provide the tty layer with a link from a tty (specified by @index) to a
90 struct tty_driver *driver, unsigned index)
92 if (WARN_ON(index >= driver->num))
94 driver->ports[index] = port;
102 * @index: index of the tty
106 * a concrete tty specified by @index. Use this or tty_port_install (or both).
110 struct tty_driver *driver, unsigned index,
113 return tty_port_register_device_attr(port, driver, index, device, NULL, NULL);
121 * @index: index of the tty
127 * linked to a concrete tty specified by @index. Use this or tty_port_install
131 struct tty_driver *driver, unsigned index,
135 tty_port_link_device(port, driver, index);
136 return tty_register_device_attr(driver, index, device, drvdata,
145 * @index: index of the tty
154 struct tty_driver *driver, unsigned index,
160 tty_port_link_device(port, driver, index);
162 dev = serdev_tty_port_register(port, device, driver, index);
168 return tty_register_device_attr(driver, index, device, drvdata,
177 * @index: index of the tty
184 struct tty_driver *driver, unsigned index,
187 return tty_port_register_device_attr_serdev(port, driver, index,
196 * @index: index of the tty
203 struct tty_driver *driver, unsigned index)
211 tty_unregister_device(driver, index);