Lines Matching defs:index
110 * @index: index of the tty
112 * Provide the tty layer with a link from a tty (specified by @index) to a
118 struct tty_driver *driver, unsigned index)
120 if (WARN_ON(index >= driver->num))
122 driver->ports[index] = port;
130 * @index: index of the tty
134 * to a concrete tty specified by @index. Use this or tty_port_install() (or
138 struct tty_driver *driver, unsigned index,
141 return tty_port_register_device_attr(port, driver, index, device, NULL, NULL);
149 * @index: index of the tty
155 * linked to a concrete tty specified by @index. Use this or tty_port_install()
159 struct tty_driver *driver, unsigned index,
163 tty_port_link_device(port, driver, index);
164 return tty_register_device_attr(driver, index, device, drvdata,
173 * @index: index of the tty
182 struct tty_driver *driver, unsigned index,
188 tty_port_link_device(port, driver, index);
190 dev = serdev_tty_port_register(port, device, driver, index);
196 return tty_register_device_attr(driver, index, device, drvdata,
205 * @index: index of the tty
212 struct tty_driver *driver, unsigned index,
215 return tty_port_register_device_attr_serdev(port, driver, index,
224 * @index: index of the tty
231 struct tty_driver *driver, unsigned index)
239 tty_unregister_device(driver, index);