Lines Matching refs:serport

13 struct serport {  struct
29 struct serport *serport = serdev_controller_get_drvdata(ctrl); in ttyport_receive_buf() argument
32 if (!test_bit(SERPORT_ACTIVE, &serport->flags)) in ttyport_receive_buf()
51 struct serport *serport = serdev_controller_get_drvdata(ctrl); in ttyport_write_wakeup() local
59 test_bit(SERPORT_ACTIVE, &serport->flags)) in ttyport_write_wakeup()
79 struct serport *serport = serdev_controller_get_drvdata(ctrl); in ttyport_write_buf() local
80 struct tty_struct *tty = serport->tty; in ttyport_write_buf()
82 if (!test_bit(SERPORT_ACTIVE, &serport->flags)) in ttyport_write_buf()
86 return tty->ops->write(serport->tty, data, len); in ttyport_write_buf()
91 struct serport *serport = serdev_controller_get_drvdata(ctrl); in ttyport_write_flush() local
92 struct tty_struct *tty = serport->tty; in ttyport_write_flush()
99 struct serport *serport = serdev_controller_get_drvdata(ctrl); in ttyport_write_room() local
100 struct tty_struct *tty = serport->tty; in ttyport_write_room()
107 struct serport *serport = serdev_controller_get_drvdata(ctrl); in ttyport_open() local
112 tty = tty_init_dev(serport->tty_drv, serport->tty_idx); in ttyport_open()
115 serport->tty = tty; in ttyport_open()
122 ret = tty->ops->open(serport->tty, NULL); in ttyport_open()
126 tty_unlock(serport->tty); in ttyport_open()
141 set_bit(SERPORT_ACTIVE, &serport->flags); in ttyport_open()
149 tty_release_struct(tty, serport->tty_idx); in ttyport_open()
156 struct serport *serport = serdev_controller_get_drvdata(ctrl); in ttyport_close() local
157 struct tty_struct *tty = serport->tty; in ttyport_close()
159 clear_bit(SERPORT_ACTIVE, &serport->flags); in ttyport_close()
166 tty_release_struct(tty, serport->tty_idx); in ttyport_close()
171 struct serport *serport = serdev_controller_get_drvdata(ctrl); in ttyport_set_baudrate() local
172 struct tty_struct *tty = serport->tty; in ttyport_set_baudrate()
185 struct serport *serport = serdev_controller_get_drvdata(ctrl); in ttyport_set_flow_control() local
186 struct tty_struct *tty = serport->tty; in ttyport_set_flow_control()
200 struct serport *serport = serdev_controller_get_drvdata(ctrl); in ttyport_set_parity() local
201 struct tty_struct *tty = serport->tty; in ttyport_set_parity()
222 struct serport *serport = serdev_controller_get_drvdata(ctrl); in ttyport_wait_until_sent() local
223 struct tty_struct *tty = serport->tty; in ttyport_wait_until_sent()
230 struct serport *serport = serdev_controller_get_drvdata(ctrl); in ttyport_get_tiocm() local
231 struct tty_struct *tty = serport->tty; in ttyport_get_tiocm()
241 struct serport *serport = serdev_controller_get_drvdata(ctrl); in ttyport_set_tiocm() local
242 struct tty_struct *tty = serport->tty; in ttyport_set_tiocm()
252 struct serport *serport = serdev_controller_get_drvdata(ctrl); in ttyport_break_ctl() local
253 struct tty_struct *tty = serport->tty; in ttyport_break_ctl()
281 struct serport *serport; in serdev_tty_port_register() local
287 ctrl = serdev_controller_alloc(parent, sizeof(struct serport)); in serdev_tty_port_register()
290 serport = serdev_controller_get_drvdata(ctrl); in serdev_tty_port_register()
292 serport->port = port; in serdev_tty_port_register()
293 serport->tty_idx = idx; in serdev_tty_port_register()
294 serport->tty_drv = drv; in serdev_tty_port_register()
319 struct serport *serport = serdev_controller_get_drvdata(ctrl); in serdev_tty_port_unregister() local
321 if (!serport) in serdev_tty_port_unregister()