edge_port 306 drivers/usb/serial/io_edgeport.c static void handle_new_msr(struct edgeport_port *edge_port, __u8 newMsr); edge_port 307 drivers/usb/serial/io_edgeport.c static void handle_new_lsr(struct edgeport_port *edge_port, __u8 lsrData, edge_port 309 drivers/usb/serial/io_edgeport.c static int send_iosp_ext_cmd(struct edgeport_port *edge_port, __u8 command, edge_port 312 drivers/usb/serial/io_edgeport.c static int send_cmd_write_baud_rate(struct edgeport_port *edge_port, edge_port 315 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port, edge_port 317 drivers/usb/serial/io_edgeport.c static int send_cmd_write_uart_register(struct edgeport_port *edge_port, edge_port 319 drivers/usb/serial/io_edgeport.c static int write_cmd_usb(struct edgeport_port *edge_port, edge_port 322 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port); edge_port 647 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port; edge_port 718 drivers/usb/serial/io_edgeport.c edge_port = usb_get_serial_port_data(port); edge_port 719 drivers/usb/serial/io_edgeport.c if (edge_port && edge_port->open) { edge_port 720 drivers/usb/serial/io_edgeport.c spin_lock_irqsave(&edge_port->ep_lock, edge_port 722 drivers/usb/serial/io_edgeport.c edge_port->txCredits += txCredits; edge_port 723 drivers/usb/serial/io_edgeport.c spin_unlock_irqrestore(&edge_port->ep_lock, edge_port 727 drivers/usb/serial/io_edgeport.c edge_port->txCredits); edge_port 731 drivers/usb/serial/io_edgeport.c tty_port_tty_wakeup(&edge_port->port->port); edge_port 735 drivers/usb/serial/io_edgeport.c edge_port); edge_port 820 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = urb->context; edge_port 829 drivers/usb/serial/io_edgeport.c if (edge_port->open) edge_port 830 drivers/usb/serial/io_edgeport.c tty_port_tty_wakeup(&edge_port->port->port); edge_port 833 drivers/usb/serial/io_edgeport.c edge_port->write_in_progress = false; edge_port 837 drivers/usb/serial/io_edgeport.c (usb_get_serial_data(edge_port->port->serial)), edge_port); edge_port 848 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = urb->context; edge_port 870 drivers/usb/serial/io_edgeport.c if (edge_port->open) edge_port 871 drivers/usb/serial/io_edgeport.c tty_port_tty_wakeup(&edge_port->port->port); edge_port 874 drivers/usb/serial/io_edgeport.c edge_port->commandPending = false; edge_port 875 drivers/usb/serial/io_edgeport.c wake_up(&edge_port->wait_command); edge_port 891 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 897 drivers/usb/serial/io_edgeport.c if (edge_port == NULL) edge_port 953 drivers/usb/serial/io_edgeport.c init_waitqueue_head(&edge_port->wait_open); edge_port 954 drivers/usb/serial/io_edgeport.c init_waitqueue_head(&edge_port->wait_chase); edge_port 955 drivers/usb/serial/io_edgeport.c init_waitqueue_head(&edge_port->wait_command); edge_port 958 drivers/usb/serial/io_edgeport.c edge_port->txCredits = 0; /* Can't send any data yet */ edge_port 960 drivers/usb/serial/io_edgeport.c edge_port->shadowMCR = MCR_MASTER_IE; edge_port 961 drivers/usb/serial/io_edgeport.c edge_port->chaseResponsePending = false; edge_port 964 drivers/usb/serial/io_edgeport.c edge_port->openPending = true; edge_port 965 drivers/usb/serial/io_edgeport.c edge_port->open = false; edge_port 966 drivers/usb/serial/io_edgeport.c response = send_iosp_ext_cmd(edge_port, IOSP_CMD_OPEN_PORT, 0); edge_port 970 drivers/usb/serial/io_edgeport.c edge_port->openPending = false; edge_port 975 drivers/usb/serial/io_edgeport.c wait_event_timeout(edge_port->wait_open, !edge_port->openPending, edge_port 978 drivers/usb/serial/io_edgeport.c if (!edge_port->open) { edge_port 981 drivers/usb/serial/io_edgeport.c edge_port->openPending = false; edge_port 986 drivers/usb/serial/io_edgeport.c edge_port->txfifo.head = 0; edge_port 987 drivers/usb/serial/io_edgeport.c edge_port->txfifo.tail = 0; edge_port 988 drivers/usb/serial/io_edgeport.c edge_port->txfifo.count = 0; edge_port 989 drivers/usb/serial/io_edgeport.c edge_port->txfifo.size = edge_port->maxTxCredits; edge_port 990 drivers/usb/serial/io_edgeport.c edge_port->txfifo.fifo = kmalloc(edge_port->maxTxCredits, GFP_KERNEL); edge_port 992 drivers/usb/serial/io_edgeport.c if (!edge_port->txfifo.fifo) { edge_port 998 drivers/usb/serial/io_edgeport.c edge_port->write_urb = usb_alloc_urb(0, GFP_KERNEL); edge_port 999 drivers/usb/serial/io_edgeport.c edge_port->write_in_progress = false; edge_port 1001 drivers/usb/serial/io_edgeport.c if (!edge_port->write_urb) { edge_port 1007 drivers/usb/serial/io_edgeport.c __func__, edge_port->maxTxCredits); edge_port 1023 drivers/usb/serial/io_edgeport.c static void block_until_chase_response(struct edgeport_port *edge_port) edge_port 1025 drivers/usb/serial/io_edgeport.c struct device *dev = &edge_port->port->dev; edge_port 1033 drivers/usb/serial/io_edgeport.c lastCredits = edge_port->txCredits; edge_port 1036 drivers/usb/serial/io_edgeport.c if (!edge_port->chaseResponsePending) { edge_port 1040 drivers/usb/serial/io_edgeport.c if (edge_port->txCredits == edge_port->maxTxCredits) { edge_port 1047 drivers/usb/serial/io_edgeport.c prepare_to_wait(&edge_port->wait_chase, &wait, edge_port 1050 drivers/usb/serial/io_edgeport.c finish_wait(&edge_port->wait_chase, &wait); edge_port 1052 drivers/usb/serial/io_edgeport.c if (lastCredits == edge_port->txCredits) { edge_port 1056 drivers/usb/serial/io_edgeport.c edge_port->chaseResponsePending = false; edge_port 1063 drivers/usb/serial/io_edgeport.c lastCredits, edge_port->txCredits); edge_port 1080 drivers/usb/serial/io_edgeport.c static void block_until_tx_empty(struct edgeport_port *edge_port) edge_port 1082 drivers/usb/serial/io_edgeport.c struct device *dev = &edge_port->port->dev; edge_port 1084 drivers/usb/serial/io_edgeport.c struct TxFifo *fifo = &edge_port->txfifo; edge_port 1100 drivers/usb/serial/io_edgeport.c prepare_to_wait(&edge_port->wait_chase, &wait, edge_port 1103 drivers/usb/serial/io_edgeport.c finish_wait(&edge_port->wait_chase, &wait); edge_port 1129 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port; edge_port 1133 drivers/usb/serial/io_edgeport.c edge_port = usb_get_serial_port_data(port); edge_port 1134 drivers/usb/serial/io_edgeport.c if (edge_serial == NULL || edge_port == NULL) edge_port 1138 drivers/usb/serial/io_edgeport.c block_until_tx_empty(edge_port); edge_port 1140 drivers/usb/serial/io_edgeport.c edge_port->closePending = true; edge_port 1145 drivers/usb/serial/io_edgeport.c edge_port->chaseResponsePending = true; edge_port 1148 drivers/usb/serial/io_edgeport.c status = send_iosp_ext_cmd(edge_port, IOSP_CMD_CHASE_PORT, 0); edge_port 1151 drivers/usb/serial/io_edgeport.c block_until_chase_response(edge_port); edge_port 1153 drivers/usb/serial/io_edgeport.c edge_port->chaseResponsePending = false; edge_port 1160 drivers/usb/serial/io_edgeport.c send_iosp_ext_cmd(edge_port, IOSP_CMD_CLOSE_PORT, 0); edge_port 1164 drivers/usb/serial/io_edgeport.c edge_port->closePending = false; edge_port 1165 drivers/usb/serial/io_edgeport.c edge_port->open = false; edge_port 1166 drivers/usb/serial/io_edgeport.c edge_port->openPending = false; edge_port 1168 drivers/usb/serial/io_edgeport.c usb_kill_urb(edge_port->write_urb); edge_port 1170 drivers/usb/serial/io_edgeport.c if (edge_port->write_urb) { edge_port 1173 drivers/usb/serial/io_edgeport.c kfree(edge_port->write_urb->transfer_buffer); edge_port 1174 drivers/usb/serial/io_edgeport.c usb_free_urb(edge_port->write_urb); edge_port 1175 drivers/usb/serial/io_edgeport.c edge_port->write_urb = NULL; edge_port 1177 drivers/usb/serial/io_edgeport.c kfree(edge_port->txfifo.fifo); edge_port 1178 drivers/usb/serial/io_edgeport.c edge_port->txfifo.fifo = NULL; edge_port 1191 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 1199 drivers/usb/serial/io_edgeport.c if (edge_port == NULL) edge_port 1203 drivers/usb/serial/io_edgeport.c fifo = &edge_port->txfifo; edge_port 1205 drivers/usb/serial/io_edgeport.c spin_lock_irqsave(&edge_port->ep_lock, flags); edge_port 1209 drivers/usb/serial/io_edgeport.c (edge_port->txCredits - fifo->count)); edge_port 1212 drivers/usb/serial/io_edgeport.c __func__, count, edge_port->txCredits - fifo->count, copySize); edge_port 1260 drivers/usb/serial/io_edgeport.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 1263 drivers/usb/serial/io_edgeport.c usb_get_serial_data(port->serial), edge_port); edge_port 1266 drivers/usb/serial/io_edgeport.c __func__, copySize, edge_port->txCredits, fifo->count); edge_port 1286 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port) edge_port 1288 drivers/usb/serial/io_edgeport.c struct TxFifo *fifo = &edge_port->txfifo; edge_port 1289 drivers/usb/serial/io_edgeport.c struct device *dev = &edge_port->port->dev; edge_port 1299 drivers/usb/serial/io_edgeport.c spin_lock_irqsave(&edge_port->ep_lock, flags); edge_port 1301 drivers/usb/serial/io_edgeport.c if (edge_port->write_in_progress || edge_port 1302 drivers/usb/serial/io_edgeport.c !edge_port->open || edge_port 1305 drivers/usb/serial/io_edgeport.c __func__, fifo->count, edge_port->write_in_progress); edge_port 1316 drivers/usb/serial/io_edgeport.c if (edge_port->txCredits < EDGE_FW_GET_TX_CREDITS_SEND_THRESHOLD(edge_port->maxTxCredits, EDGE_FW_BULK_MAX_PACKET_SIZE)) { edge_port 1318 drivers/usb/serial/io_edgeport.c __func__, fifo->count, edge_port->txCredits); edge_port 1323 drivers/usb/serial/io_edgeport.c edge_port->write_in_progress = true; edge_port 1326 drivers/usb/serial/io_edgeport.c urb = edge_port->write_urb; edge_port 1337 drivers/usb/serial/io_edgeport.c edge_port->write_in_progress = false; edge_port 1340 drivers/usb/serial/io_edgeport.c buffer[0] = IOSP_BUILD_DATA_HDR1(edge_port->port->port_number, count); edge_port 1341 drivers/usb/serial/io_edgeport.c buffer[1] = IOSP_BUILD_DATA_HDR2(edge_port->port->port_number, count); edge_port 1361 drivers/usb/serial/io_edgeport.c usb_serial_debug_data(&edge_port->port->dev, __func__, count, &buffer[2]); edge_port 1368 drivers/usb/serial/io_edgeport.c edge_bulk_out_data_callback, edge_port); edge_port 1371 drivers/usb/serial/io_edgeport.c edge_port->txCredits -= count; edge_port 1372 drivers/usb/serial/io_edgeport.c edge_port->port->icount.tx += count; edge_port 1377 drivers/usb/serial/io_edgeport.c dev_err_console(edge_port->port, edge_port 1380 drivers/usb/serial/io_edgeport.c edge_port->write_in_progress = false; edge_port 1383 drivers/usb/serial/io_edgeport.c edge_port->txCredits += count; edge_port 1384 drivers/usb/serial/io_edgeport.c edge_port->port->icount.tx -= count; edge_port 1387 drivers/usb/serial/io_edgeport.c __func__, count, edge_port->txCredits, fifo->count); edge_port 1390 drivers/usb/serial/io_edgeport.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 1404 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 1408 drivers/usb/serial/io_edgeport.c if (edge_port == NULL) edge_port 1410 drivers/usb/serial/io_edgeport.c if (edge_port->closePending) edge_port 1413 drivers/usb/serial/io_edgeport.c if (!edge_port->open) { edge_port 1419 drivers/usb/serial/io_edgeport.c spin_lock_irqsave(&edge_port->ep_lock, flags); edge_port 1420 drivers/usb/serial/io_edgeport.c room = edge_port->txCredits - edge_port->txfifo.count; edge_port 1421 drivers/usb/serial/io_edgeport.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 1440 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 1444 drivers/usb/serial/io_edgeport.c if (edge_port == NULL) edge_port 1446 drivers/usb/serial/io_edgeport.c if (edge_port->closePending) edge_port 1449 drivers/usb/serial/io_edgeport.c if (!edge_port->open) { edge_port 1454 drivers/usb/serial/io_edgeport.c spin_lock_irqsave(&edge_port->ep_lock, flags); edge_port 1455 drivers/usb/serial/io_edgeport.c num_chars = edge_port->maxTxCredits - edge_port->txCredits + edge_port 1456 drivers/usb/serial/io_edgeport.c edge_port->txfifo.count; edge_port 1457 drivers/usb/serial/io_edgeport.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 1474 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 1477 drivers/usb/serial/io_edgeport.c if (edge_port == NULL) edge_port 1480 drivers/usb/serial/io_edgeport.c if (!edge_port->open) { edge_port 1495 drivers/usb/serial/io_edgeport.c edge_port->shadowMCR &= ~MCR_RTS; edge_port 1496 drivers/usb/serial/io_edgeport.c status = send_cmd_write_uart_register(edge_port, MCR, edge_port 1497 drivers/usb/serial/io_edgeport.c edge_port->shadowMCR); edge_port 1512 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 1515 drivers/usb/serial/io_edgeport.c if (edge_port == NULL) edge_port 1518 drivers/usb/serial/io_edgeport.c if (!edge_port->open) { edge_port 1532 drivers/usb/serial/io_edgeport.c edge_port->shadowMCR |= MCR_RTS; edge_port 1533 drivers/usb/serial/io_edgeport.c send_cmd_write_uart_register(edge_port, MCR, edge_port 1534 drivers/usb/serial/io_edgeport.c edge_port->shadowMCR); edge_port 1547 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 1549 drivers/usb/serial/io_edgeport.c if (edge_port == NULL) edge_port 1552 drivers/usb/serial/io_edgeport.c if (!edge_port->open) { edge_port 1558 drivers/usb/serial/io_edgeport.c change_port_settings(tty, edge_port, old_termios); edge_port 1572 drivers/usb/serial/io_edgeport.c static int get_lsr_info(struct edgeport_port *edge_port, edge_port 1578 drivers/usb/serial/io_edgeport.c spin_lock_irqsave(&edge_port->ep_lock, flags); edge_port 1579 drivers/usb/serial/io_edgeport.c if (edge_port->maxTxCredits == edge_port->txCredits && edge_port 1580 drivers/usb/serial/io_edgeport.c edge_port->txfifo.count == 0) { edge_port 1581 drivers/usb/serial/io_edgeport.c dev_dbg(&edge_port->port->dev, "%s -- Empty\n", __func__); edge_port 1584 drivers/usb/serial/io_edgeport.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 1595 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 1598 drivers/usb/serial/io_edgeport.c mcr = edge_port->shadowMCR; edge_port 1613 drivers/usb/serial/io_edgeport.c edge_port->shadowMCR = mcr; edge_port 1615 drivers/usb/serial/io_edgeport.c send_cmd_write_uart_register(edge_port, MCR, edge_port->shadowMCR); edge_port 1623 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 1628 drivers/usb/serial/io_edgeport.c msr = edge_port->shadowMSR; edge_port 1629 drivers/usb/serial/io_edgeport.c mcr = edge_port->shadowMCR; edge_port 1644 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 1647 drivers/usb/serial/io_edgeport.c ss->line = edge_port->port->minor; edge_port 1648 drivers/usb/serial/io_edgeport.c ss->port = edge_port->port->port_number; edge_port 1650 drivers/usb/serial/io_edgeport.c ss->xmit_fifo_size = edge_port->maxTxCredits; edge_port 1666 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 1671 drivers/usb/serial/io_edgeport.c return get_lsr_info(edge_port, (unsigned int __user *) arg); edge_port 1684 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 1691 drivers/usb/serial/io_edgeport.c edge_port->chaseResponsePending = true; edge_port 1694 drivers/usb/serial/io_edgeport.c status = send_iosp_ext_cmd(edge_port, IOSP_CMD_CHASE_PORT, 0); edge_port 1697 drivers/usb/serial/io_edgeport.c block_until_chase_response(edge_port); edge_port 1699 drivers/usb/serial/io_edgeport.c edge_port->chaseResponsePending = false; edge_port 1707 drivers/usb/serial/io_edgeport.c status = send_iosp_ext_cmd(edge_port, edge_port 1711 drivers/usb/serial/io_edgeport.c status = send_iosp_ext_cmd(edge_port, edge_port 1731 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port; edge_port 1827 drivers/usb/serial/io_edgeport.c edge_port = usb_get_serial_port_data(port); edge_port 1828 drivers/usb/serial/io_edgeport.c if (edge_port && edge_port->open) { edge_port 1832 drivers/usb/serial/io_edgeport.c edge_tty_recv(edge_port->port, buffer, edge_port 1834 drivers/usb/serial/io_edgeport.c edge_port->port->icount.rx += rxLen; edge_port 1866 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port; edge_port 1875 drivers/usb/serial/io_edgeport.c edge_port = usb_get_serial_port_data(port); edge_port 1876 drivers/usb/serial/io_edgeport.c if (edge_port == NULL) { edge_port 1900 drivers/usb/serial/io_edgeport.c edge_port->chaseResponsePending = false; edge_port 1901 drivers/usb/serial/io_edgeport.c wake_up(&edge_port->wait_chase); edge_port 1913 drivers/usb/serial/io_edgeport.c edge_port->txCredits = GET_TX_BUFFER_SIZE(byte3); edge_port 1914 drivers/usb/serial/io_edgeport.c edge_port->maxTxCredits = edge_port->txCredits; edge_port 1916 drivers/usb/serial/io_edgeport.c __func__, edge_serial->rxPort, byte2, edge_port->txCredits); edge_port 1917 drivers/usb/serial/io_edgeport.c handle_new_msr(edge_port, byte2); edge_port 1921 drivers/usb/serial/io_edgeport.c tty = tty_port_tty_get(&edge_port->port->port); edge_port 1924 drivers/usb/serial/io_edgeport.c edge_port, &tty->termios); edge_port 1929 drivers/usb/serial/io_edgeport.c edge_port->openPending = false; edge_port 1930 drivers/usb/serial/io_edgeport.c edge_port->open = true; edge_port 1931 drivers/usb/serial/io_edgeport.c wake_up(&edge_port->wait_open); edge_port 1939 drivers/usb/serial/io_edgeport.c if (!edge_port->open || edge_port->closePending) edge_port 1947 drivers/usb/serial/io_edgeport.c handle_new_lsr(edge_port, false, byte2, 0); edge_port 1955 drivers/usb/serial/io_edgeport.c handle_new_lsr(edge_port, true, byte2, byte3); edge_port 1971 drivers/usb/serial/io_edgeport.c handle_new_msr(edge_port, byte2); edge_port 2006 drivers/usb/serial/io_edgeport.c static void handle_new_msr(struct edgeport_port *edge_port, __u8 newMsr) edge_port 2012 drivers/usb/serial/io_edgeport.c icount = &edge_port->port->icount; edge_port 2023 drivers/usb/serial/io_edgeport.c wake_up_interruptible(&edge_port->port->port.delta_msr_wait); edge_port 2027 drivers/usb/serial/io_edgeport.c edge_port->shadowMSR = newMsr & 0xf0; edge_port 2035 drivers/usb/serial/io_edgeport.c static void handle_new_lsr(struct edgeport_port *edge_port, __u8 lsrData, edge_port 2042 drivers/usb/serial/io_edgeport.c edge_port->shadowLSR = lsr; edge_port 2055 drivers/usb/serial/io_edgeport.c edge_tty_recv(edge_port->port, &data, 1); edge_port 2058 drivers/usb/serial/io_edgeport.c icount = &edge_port->port->icount; edge_port 2211 drivers/usb/serial/io_edgeport.c static int send_iosp_ext_cmd(struct edgeport_port *edge_port, edge_port 2225 drivers/usb/serial/io_edgeport.c MAKE_CMD_EXT_CMD(¤tCommand, &length, edge_port->port->port_number, edge_port 2228 drivers/usb/serial/io_edgeport.c status = write_cmd_usb(edge_port, buffer, length); edge_port 2242 drivers/usb/serial/io_edgeport.c static int write_cmd_usb(struct edgeport_port *edge_port, edge_port 2246 drivers/usb/serial/io_edgeport.c usb_get_serial_data(edge_port->port->serial); edge_port 2247 drivers/usb/serial/io_edgeport.c struct device *dev = &edge_port->port->dev; edge_port 2265 drivers/usb/serial/io_edgeport.c buffer, length, edge_bulk_out_cmd_callback, edge_port); edge_port 2267 drivers/usb/serial/io_edgeport.c edge_port->commandPending = true; edge_port 2280 drivers/usb/serial/io_edgeport.c wait_event(&edge_port->wait_command, !edge_port->commandPending); edge_port 2282 drivers/usb/serial/io_edgeport.c if (edge_port->commandPending) { edge_port 2297 drivers/usb/serial/io_edgeport.c static int send_cmd_write_baud_rate(struct edgeport_port *edge_port, edge_port 2301 drivers/usb/serial/io_edgeport.c usb_get_serial_data(edge_port->port->serial); edge_port 2302 drivers/usb/serial/io_edgeport.c struct device *dev = &edge_port->port->dev; edge_port 2308 drivers/usb/serial/io_edgeport.c u32 number = edge_port->port->port_number; edge_port 2341 drivers/usb/serial/io_edgeport.c edge_port->shadowLCR); edge_port 2343 drivers/usb/serial/io_edgeport.c status = write_cmd_usb(edge_port, cmdBuffer, cmdLen); edge_port 2391 drivers/usb/serial/io_edgeport.c static int send_cmd_write_uart_register(struct edgeport_port *edge_port, edge_port 2395 drivers/usb/serial/io_edgeport.c usb_get_serial_data(edge_port->port->serial); edge_port 2396 drivers/usb/serial/io_edgeport.c struct device *dev = &edge_port->port->dev; edge_port 2427 drivers/usb/serial/io_edgeport.c MAKE_CMD_WRITE_REG(&currCmd, &cmdLen, edge_port->port->port_number, edge_port 2430 drivers/usb/serial/io_edgeport.c status = write_cmd_usb(edge_port, cmdBuffer, cmdLen); edge_port 2447 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port, struct ktermios *old_termios) edge_port 2449 drivers/usb/serial/io_edgeport.c struct device *dev = &edge_port->port->dev; edge_port 2451 drivers/usb/serial/io_edgeport.c usb_get_serial_data(edge_port->port->serial); edge_port 2462 drivers/usb/serial/io_edgeport.c if (!edge_port->open && edge_port 2463 drivers/usb/serial/io_edgeport.c !edge_port->openPending) { edge_port 2537 drivers/usb/serial/io_edgeport.c send_iosp_ext_cmd(edge_port, edge_port 2539 drivers/usb/serial/io_edgeport.c send_iosp_ext_cmd(edge_port, edge_port 2565 drivers/usb/serial/io_edgeport.c send_iosp_ext_cmd(edge_port, IOSP_CMD_SET_RX_FLOW, rxFlow); edge_port 2568 drivers/usb/serial/io_edgeport.c send_iosp_ext_cmd(edge_port, IOSP_CMD_SET_TX_FLOW, txFlow); edge_port 2571 drivers/usb/serial/io_edgeport.c edge_port->shadowLCR &= ~(LCR_BITS_MASK | LCR_STOP_MASK | LCR_PAR_MASK); edge_port 2572 drivers/usb/serial/io_edgeport.c edge_port->shadowLCR |= (lData | lParity | lStop); edge_port 2574 drivers/usb/serial/io_edgeport.c edge_port->validDataMask = mask; edge_port 2577 drivers/usb/serial/io_edgeport.c status = send_cmd_write_uart_register(edge_port, LCR, edge_port 2578 drivers/usb/serial/io_edgeport.c edge_port->shadowLCR); edge_port 2583 drivers/usb/serial/io_edgeport.c edge_port->shadowMCR = MCR_MASTER_IE; edge_port 2585 drivers/usb/serial/io_edgeport.c edge_port->shadowMCR |= (MCR_DTR | MCR_RTS); edge_port 2587 drivers/usb/serial/io_edgeport.c status = send_cmd_write_uart_register(edge_port, MCR, edge_port 2588 drivers/usb/serial/io_edgeport.c edge_port->shadowMCR); edge_port 2600 drivers/usb/serial/io_edgeport.c status = send_cmd_write_baud_rate(edge_port, baud); edge_port 3067 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port; edge_port 3069 drivers/usb/serial/io_edgeport.c edge_port = kzalloc(sizeof(*edge_port), GFP_KERNEL); edge_port 3070 drivers/usb/serial/io_edgeport.c if (!edge_port) edge_port 3073 drivers/usb/serial/io_edgeport.c spin_lock_init(&edge_port->ep_lock); edge_port 3074 drivers/usb/serial/io_edgeport.c edge_port->port = port; edge_port 3076 drivers/usb/serial/io_edgeport.c usb_set_serial_port_data(port, edge_port); edge_port 3083 drivers/usb/serial/io_edgeport.c struct edgeport_port *edge_port; edge_port 3085 drivers/usb/serial/io_edgeport.c edge_port = usb_get_serial_port_data(port); edge_port 3086 drivers/usb/serial/io_edgeport.c kfree(edge_port); edge_port 221 drivers/usb/serial/io_ti.c static void stop_read(struct edgeport_port *edge_port); edge_port 222 drivers/usb/serial/io_ti.c static int restart_read(struct edgeport_port *edge_port); edge_port 1555 drivers/usb/serial/io_ti.c static void handle_new_msr(struct edgeport_port *edge_port, __u8 msr) edge_port 1560 drivers/usb/serial/io_ti.c dev_dbg(&edge_port->port->dev, "%s - %02x\n", __func__, msr); edge_port 1564 drivers/usb/serial/io_ti.c icount = &edge_port->port->icount; edge_port 1575 drivers/usb/serial/io_ti.c wake_up_interruptible(&edge_port->port->port.delta_msr_wait); edge_port 1579 drivers/usb/serial/io_ti.c edge_port->shadow_msr = msr & 0xf0; edge_port 1581 drivers/usb/serial/io_ti.c tty = tty_port_tty_get(&edge_port->port->port); edge_port 1590 drivers/usb/serial/io_ti.c static void handle_new_lsr(struct edgeport_port *edge_port, int lsr_data, edge_port 1597 drivers/usb/serial/io_ti.c dev_dbg(&edge_port->port->dev, "%s - %02x\n", __func__, new_lsr); edge_port 1599 drivers/usb/serial/io_ti.c edge_port->shadow_lsr = lsr; edge_port 1610 drivers/usb/serial/io_ti.c edge_tty_recv(edge_port->port, &data, 1); edge_port 1613 drivers/usb/serial/io_ti.c icount = &edge_port->port->icount; edge_port 1628 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port; edge_port 1680 drivers/usb/serial/io_ti.c edge_port = usb_get_serial_port_data(port); edge_port 1681 drivers/usb/serial/io_ti.c if (!edge_port) { edge_port 1694 drivers/usb/serial/io_ti.c edge_port->lsr_event = 1; edge_port 1695 drivers/usb/serial/io_ti.c edge_port->lsr_mask = lsr; edge_port 1699 drivers/usb/serial/io_ti.c handle_new_lsr(edge_port, 0, lsr, 0); edge_port 1708 drivers/usb/serial/io_ti.c handle_new_msr(edge_port, msr); edge_port 1729 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = urb->context; edge_port 1730 drivers/usb/serial/io_ti.c struct device *dev = &edge_port->port->dev; edge_port 1759 drivers/usb/serial/io_ti.c port_number = edge_port->port->port_number; edge_port 1761 drivers/usb/serial/io_ti.c if (urb->actual_length > 0 && edge_port->lsr_event) { edge_port 1762 drivers/usb/serial/io_ti.c edge_port->lsr_event = 0; edge_port 1764 drivers/usb/serial/io_ti.c __func__, port_number, edge_port->lsr_mask, *data); edge_port 1765 drivers/usb/serial/io_ti.c handle_new_lsr(edge_port, 1, edge_port->lsr_mask, *data); edge_port 1773 drivers/usb/serial/io_ti.c if (edge_port->close_pending) edge_port 1777 drivers/usb/serial/io_ti.c edge_tty_recv(edge_port->port, data, edge_port 1779 drivers/usb/serial/io_ti.c edge_port->port->icount.rx += urb->actual_length; edge_port 1784 drivers/usb/serial/io_ti.c spin_lock_irqsave(&edge_port->ep_lock, flags); edge_port 1785 drivers/usb/serial/io_ti.c if (edge_port->ep_read_urb_state == EDGE_READ_URB_RUNNING) edge_port 1787 drivers/usb/serial/io_ti.c else if (edge_port->ep_read_urb_state == EDGE_READ_URB_STOPPING) edge_port 1788 drivers/usb/serial/io_ti.c edge_port->ep_read_urb_state = EDGE_READ_URB_STOPPED; edge_port 1790 drivers/usb/serial/io_ti.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 1810 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 1814 drivers/usb/serial/io_ti.c edge_port->ep_write_urb_in_use = 0; edge_port 1840 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 1849 drivers/usb/serial/io_ti.c if (edge_port == NULL) edge_port 1857 drivers/usb/serial/io_ti.c status = ti_do_config(edge_port, UMPC_SET_CLR_LOOPBACK, 0); edge_port 1874 drivers/usb/serial/io_ti.c edge_port->ump_read_timeout = edge_port 1914 drivers/usb/serial/io_ti.c &edge_port->shadow_msr, 1); edge_port 1921 drivers/usb/serial/io_ti.c dev_dbg(&port->dev, "ShadowMSR 0x%X\n", edge_port->shadow_msr); edge_port 1924 drivers/usb/serial/io_ti.c edge_port->shadow_mcr = MCR_RTS | MCR_DTR; edge_port 1925 drivers/usb/serial/io_ti.c dev_dbg(&port->dev, "ShadowMCR 0x%X\n", edge_port->shadow_mcr); edge_port 1927 drivers/usb/serial/io_ti.c edge_serial = edge_port->edge_serial; edge_port 1952 drivers/usb/serial/io_ti.c edge_port->ep_read_urb_state = EDGE_READ_URB_RUNNING; edge_port 1953 drivers/usb/serial/io_ti.c urb->context = edge_port; edge_port 1967 drivers/usb/serial/io_ti.c if (edge_port->edge_serial->num_ports_open == 0) edge_port 1977 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port; edge_port 1983 drivers/usb/serial/io_ti.c edge_port = usb_get_serial_port_data(port); edge_port 1984 drivers/usb/serial/io_ti.c if (edge_serial == NULL || edge_port == NULL) edge_port 1991 drivers/usb/serial/io_ti.c edge_port->close_pending = 1; edge_port 1995 drivers/usb/serial/io_ti.c edge_port->ep_write_urb_in_use = 0; edge_port 1996 drivers/usb/serial/io_ti.c spin_lock_irqsave(&edge_port->ep_lock, flags); edge_port 1998 drivers/usb/serial/io_ti.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 2006 drivers/usb/serial/io_ti.c --edge_port->edge_serial->num_ports_open; edge_port 2007 drivers/usb/serial/io_ti.c if (edge_port->edge_serial->num_ports_open <= 0) { edge_port 2010 drivers/usb/serial/io_ti.c edge_port->edge_serial->num_ports_open = 0; edge_port 2013 drivers/usb/serial/io_ti.c edge_port->close_pending = 0; edge_port 2019 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 2026 drivers/usb/serial/io_ti.c if (edge_port == NULL) edge_port 2028 drivers/usb/serial/io_ti.c if (edge_port->close_pending == 1) edge_port 2032 drivers/usb/serial/io_ti.c &edge_port->ep_lock); edge_port 2041 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 2044 drivers/usb/serial/io_ti.c spin_lock_irqsave(&edge_port->ep_lock, flags); edge_port 2046 drivers/usb/serial/io_ti.c if (edge_port->ep_write_urb_in_use) { edge_port 2047 drivers/usb/serial/io_ti.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 2056 drivers/usb/serial/io_ti.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 2060 drivers/usb/serial/io_ti.c edge_port->ep_write_urb_in_use = 1; edge_port 2062 drivers/usb/serial/io_ti.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 2075 drivers/usb/serial/io_ti.c edge_port->ep_write_urb_in_use = 0; edge_port 2078 drivers/usb/serial/io_ti.c edge_port->port->icount.tx += count; edge_port 2091 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 2095 drivers/usb/serial/io_ti.c if (edge_port == NULL) edge_port 2097 drivers/usb/serial/io_ti.c if (edge_port->close_pending == 1) edge_port 2100 drivers/usb/serial/io_ti.c spin_lock_irqsave(&edge_port->ep_lock, flags); edge_port 2102 drivers/usb/serial/io_ti.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 2111 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 2114 drivers/usb/serial/io_ti.c if (edge_port == NULL) edge_port 2117 drivers/usb/serial/io_ti.c spin_lock_irqsave(&edge_port->ep_lock, flags); edge_port 2119 drivers/usb/serial/io_ti.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 2127 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 2130 drivers/usb/serial/io_ti.c ret = tx_active(edge_port); edge_port 2140 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 2143 drivers/usb/serial/io_ti.c if (edge_port == NULL) edge_port 2160 drivers/usb/serial/io_ti.c stop_read(edge_port); edge_port 2167 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 2170 drivers/usb/serial/io_ti.c if (edge_port == NULL) edge_port 2186 drivers/usb/serial/io_ti.c status = restart_read(edge_port); edge_port 2195 drivers/usb/serial/io_ti.c static void stop_read(struct edgeport_port *edge_port) edge_port 2199 drivers/usb/serial/io_ti.c spin_lock_irqsave(&edge_port->ep_lock, flags); edge_port 2201 drivers/usb/serial/io_ti.c if (edge_port->ep_read_urb_state == EDGE_READ_URB_RUNNING) edge_port 2202 drivers/usb/serial/io_ti.c edge_port->ep_read_urb_state = EDGE_READ_URB_STOPPING; edge_port 2203 drivers/usb/serial/io_ti.c edge_port->shadow_mcr &= ~MCR_RTS; edge_port 2205 drivers/usb/serial/io_ti.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 2208 drivers/usb/serial/io_ti.c static int restart_read(struct edgeport_port *edge_port) edge_port 2214 drivers/usb/serial/io_ti.c spin_lock_irqsave(&edge_port->ep_lock, flags); edge_port 2216 drivers/usb/serial/io_ti.c if (edge_port->ep_read_urb_state == EDGE_READ_URB_STOPPED) { edge_port 2217 drivers/usb/serial/io_ti.c urb = edge_port->port->read_urb; edge_port 2220 drivers/usb/serial/io_ti.c edge_port->ep_read_urb_state = EDGE_READ_URB_RUNNING; edge_port 2221 drivers/usb/serial/io_ti.c edge_port->shadow_mcr |= MCR_RTS; edge_port 2223 drivers/usb/serial/io_ti.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 2229 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port, struct ktermios *old_termios) edge_port 2231 drivers/usb/serial/io_ti.c struct device *dev = &edge_port->port->dev; edge_port 2236 drivers/usb/serial/io_ti.c int port_number = edge_port->port->port_number; edge_port 2251 drivers/usb/serial/io_ti.c config->bUartMode = (__u8)(edge_port->bUartMode); edge_port 2303 drivers/usb/serial/io_ti.c restart_read(edge_port); edge_port 2342 drivers/usb/serial/io_ti.c edge_port->baud_rate = baud; edge_port 2362 drivers/usb/serial/io_ti.c status = send_cmd(edge_port->port->serial->dev, UMPC_SET_CONFIG, edge_port 2374 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 2376 drivers/usb/serial/io_ti.c if (edge_port == NULL) edge_port 2379 drivers/usb/serial/io_ti.c change_port_settings(tty, edge_port, old_termios); edge_port 2386 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 2390 drivers/usb/serial/io_ti.c spin_lock_irqsave(&edge_port->ep_lock, flags); edge_port 2391 drivers/usb/serial/io_ti.c mcr = edge_port->shadow_mcr; edge_port 2406 drivers/usb/serial/io_ti.c edge_port->shadow_mcr = mcr; edge_port 2407 drivers/usb/serial/io_ti.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 2409 drivers/usb/serial/io_ti.c restore_mcr(edge_port, mcr); edge_port 2416 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 2422 drivers/usb/serial/io_ti.c spin_lock_irqsave(&edge_port->ep_lock, flags); edge_port 2424 drivers/usb/serial/io_ti.c msr = edge_port->shadow_msr; edge_port 2425 drivers/usb/serial/io_ti.c mcr = edge_port->shadow_mcr; edge_port 2435 drivers/usb/serial/io_ti.c spin_unlock_irqrestore(&edge_port->ep_lock, flags); edge_port 2444 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 2447 drivers/usb/serial/io_ti.c cwait = edge_port->port->port.closing_wait; edge_port 2452 drivers/usb/serial/io_ti.c ss->line = edge_port->port->minor; edge_port 2453 drivers/usb/serial/io_ti.c ss->port = edge_port->port->port_number; edge_port 2455 drivers/usb/serial/io_ti.c ss->xmit_fifo_size = edge_port->port->bulk_out_size; edge_port 2465 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 2471 drivers/usb/serial/io_ti.c status = ti_do_config(edge_port, UMPC_SET_CLR_BREAK, bv); edge_port 2584 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port; edge_port 2587 drivers/usb/serial/io_ti.c edge_port = kzalloc(sizeof(*edge_port), GFP_KERNEL); edge_port 2588 drivers/usb/serial/io_ti.c if (!edge_port) edge_port 2591 drivers/usb/serial/io_ti.c spin_lock_init(&edge_port->ep_lock); edge_port 2592 drivers/usb/serial/io_ti.c edge_port->port = port; edge_port 2593 drivers/usb/serial/io_ti.c edge_port->edge_serial = usb_get_serial_data(port->serial); edge_port 2594 drivers/usb/serial/io_ti.c edge_port->bUartMode = default_uart_mode; edge_port 2598 drivers/usb/serial/io_ti.c edge_port->uart_base = UMPMEM_BASE_UART1; edge_port 2599 drivers/usb/serial/io_ti.c edge_port->dma_address = UMPD_OEDB1_ADDRESS; edge_port 2602 drivers/usb/serial/io_ti.c edge_port->uart_base = UMPMEM_BASE_UART2; edge_port 2603 drivers/usb/serial/io_ti.c edge_port->dma_address = UMPD_OEDB2_ADDRESS; edge_port 2613 drivers/usb/serial/io_ti.c __func__, port->port_number, edge_port->uart_base, edge_port 2614 drivers/usb/serial/io_ti.c edge_port->dma_address); edge_port 2616 drivers/usb/serial/io_ti.c usb_set_serial_port_data(port, edge_port); edge_port 2627 drivers/usb/serial/io_ti.c kfree(edge_port); edge_port 2634 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port; edge_port 2636 drivers/usb/serial/io_ti.c edge_port = usb_get_serial_port_data(port); edge_port 2638 drivers/usb/serial/io_ti.c kfree(edge_port); edge_port 2649 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 2651 drivers/usb/serial/io_ti.c return sprintf(buf, "%d\n", edge_port->bUartMode); edge_port 2658 drivers/usb/serial/io_ti.c struct edgeport_port *edge_port = usb_get_serial_port_data(port); edge_port 2664 drivers/usb/serial/io_ti.c edge_port->bUartMode = v;