Lines Matching refs:port
81 static int whiteheat_port_probe(struct usb_serial_port *port);
82 static int whiteheat_port_remove(struct usb_serial_port *port);
84 struct usb_serial_port *port);
85 static void whiteheat_close(struct usb_serial_port *port);
89 struct usb_serial_port *port, struct ktermios *old);
157 static int firm_send_command(struct usb_serial_port *port, __u8 command,
159 static int firm_open(struct usb_serial_port *port);
160 static int firm_close(struct usb_serial_port *port);
162 static int firm_set_rts(struct usb_serial_port *port, __u8 onoff);
163 static int firm_set_dtr(struct usb_serial_port *port, __u8 onoff);
164 static int firm_set_break(struct usb_serial_port *port, __u8 onoff);
165 static int firm_purge(struct usb_serial_port *port, __u8 rxtx);
166 static int firm_get_dtr_rts(struct usb_serial_port *port);
167 static int firm_report_tx_done(struct usb_serial_port *port);
230 command_port = serial->port[COMMAND_PORT];
330 /* free up our private data for our command port */
331 command_port = serial->port[COMMAND_PORT];
335 static int whiteheat_port_probe(struct usb_serial_port *port)
343 usb_set_serial_port_data(port, info);
348 static int whiteheat_port_remove(struct usb_serial_port *port)
352 info = usb_get_serial_port_data(port);
358 static int whiteheat_open(struct tty_struct *tty, struct usb_serial_port *port)
362 retval = start_command_port(port->serial);
366 /* send an open port command */
367 retval = firm_open(port);
369 stop_command_port(port->serial);
373 retval = firm_purge(port, WHITEHEAT_PURGE_RX | WHITEHEAT_PURGE_TX);
375 firm_close(port);
376 stop_command_port(port->serial);
384 usb_clear_halt(port->serial->dev, port->read_urb->pipe);
385 usb_clear_halt(port->serial->dev, port->write_urb->pipe);
387 retval = usb_serial_generic_open(tty, port);
389 firm_close(port);
390 stop_command_port(port->serial);
398 static void whiteheat_close(struct usb_serial_port *port)
400 firm_report_tx_done(port);
401 firm_close(port);
403 usb_serial_generic_close(port);
405 stop_command_port(port->serial);
410 struct usb_serial_port *port = tty->driver_data;
411 struct whiteheat_private *info = usb_get_serial_port_data(port);
414 firm_get_dtr_rts(port);
426 struct usb_serial_port *port = tty->driver_data;
427 struct whiteheat_private *info = usb_get_serial_port_data(port);
439 firm_set_dtr(port, info->mcr & UART_MCR_DTR);
440 firm_set_rts(port, info->mcr & UART_MCR_RTS);
448 struct usb_serial_port *port = tty->driver_data;
451 ss->line = port->minor;
452 ss->port = port->port_number;
453 ss->xmit_fifo_size = kfifo_size(&port->write_fifo);
464 struct usb_serial_port *port, struct ktermios *old_termios)
471 struct usb_serial_port *port = tty->driver_data;
472 firm_set_break(port, break_state);
547 static int firm_send_command(struct usb_serial_port *port, __u8 command,
553 struct device *dev = &port->dev;
560 command_port = port->serial->port[COMMAND_PORT];
601 info = usb_get_serial_port_data(port);
612 static int firm_open(struct usb_serial_port *port)
616 open_command.port = port->port_number + 1;
617 return firm_send_command(port, WHITEHEAT_OPEN,
622 static int firm_close(struct usb_serial_port *port)
626 close_command.port = port->port_number + 1;
627 return firm_send_command(port, WHITEHEAT_CLOSE,
634 struct usb_serial_port *port = tty->driver_data;
635 struct device *dev = &port->dev;
640 port_settings.port = port->port_number + 1;
710 firm_send_command(port, WHITEHEAT_SETUP_PORT,
715 static int firm_set_rts(struct usb_serial_port *port, __u8 onoff)
719 rts_command.port = port->port_number + 1;
721 return firm_send_command(port, WHITEHEAT_SET_RTS,
726 static int firm_set_dtr(struct usb_serial_port *port, __u8 onoff)
730 dtr_command.port = port->port_number + 1;
732 return firm_send_command(port, WHITEHEAT_SET_DTR,
737 static int firm_set_break(struct usb_serial_port *port, __u8 onoff)
741 break_command.port = port->port_number + 1;
743 return firm_send_command(port, WHITEHEAT_SET_BREAK,
748 static int firm_purge(struct usb_serial_port *port, __u8 rxtx)
752 purge_command.port = port->port_number + 1;
754 return firm_send_command(port, WHITEHEAT_PURGE,
759 static int firm_get_dtr_rts(struct usb_serial_port *port)
763 get_dr_command.port = port->port_number + 1;
764 return firm_send_command(port, WHITEHEAT_GET_DTR_RTS,
769 static int firm_report_tx_done(struct usb_serial_port *port)
773 close_command.port = port->port_number + 1;
774 return firm_send_command(port, WHITEHEAT_REPORT_TX_DONE,
788 command_port = serial->port[COMMAND_PORT];
816 command_port = serial->port[COMMAND_PORT];