• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/usb/serial/

Lines Matching defs:mos7720_port

966 	struct moschip_port *mos7720_port;
975 mos7720_port = urb->context;
976 if (!mos7720_port) {
977 dbg("NULL mos7720_port pointer");
981 tty = tty_port_tty_get(&mos7720_port->port->port);
983 if (tty && mos7720_port->open)
1021 struct moschip_port *mos7720_port;
1030 mos7720_port = usb_get_serial_port_data(port);
1031 if (mos7720_port == NULL)
1042 mos7720_port->write_urb_pool[j] = urb;
1055 usb_free_urb(mos7720_port->write_urb_pool[j]);
1056 mos7720_port->write_urb_pool[j] = NULL;
1082 dbg("SS::%p LSR:%x", mos7720_port, data);
1093 mos7720_port->shadowLCR = 0x03;
1094 write_mos_reg(serial, port_number, LCR, mos7720_port->shadowLCR);
1095 mos7720_port->shadowMCR = 0x0b;
1096 write_mos_reg(serial, port_number, MCR, mos7720_port->shadowMCR);
1102 mos7720_port->shadowLCR = 0x83;
1103 write_mos_reg(serial, port_number, LCR, mos7720_port->shadowLCR);
1106 mos7720_port->shadowLCR = 0x03;
1107 write_mos_reg(serial, port_number, LCR, mos7720_port->shadowLCR);
1116 memset(&(mos7720_port->icount), 0x00, sizeof(mos7720_port->icount));
1119 mos7720_port->shadowMCR = UART_MCR_OUT2; /* Must set to enable ints! */
1122 mos7720_port->open = 1;
1141 struct moschip_port *mos7720_port;
1145 mos7720_port = usb_get_serial_port_data(port);
1146 if (mos7720_port == NULL) {
1152 if (mos7720_port->write_urb_pool[i] &&
1153 mos7720_port->write_urb_pool[i]->status == -EINPROGRESS)
1163 struct moschip_port *mos7720_port;
1170 mos7720_port = usb_get_serial_port_data(port);
1171 if (mos7720_port == NULL)
1175 usb_kill_urb(mos7720_port->write_urb_pool[j]);
1179 if (mos7720_port->write_urb_pool[j]) {
1180 kfree(mos7720_port->write_urb_pool[j]->transfer_buffer);
1181 usb_free_urb(mos7720_port->write_urb_pool[j]);
1202 mos7720_port->open = 0;
1212 struct moschip_port *mos7720_port;
1218 mos7720_port = usb_get_serial_port_data(port);
1219 if (mos7720_port == NULL)
1223 data = mos7720_port->shadowLCR | UART_LCR_SBC;
1225 data = mos7720_port->shadowLCR & ~UART_LCR_SBC;
1227 mos7720_port->shadowLCR = data;
1229 LCR, mos7720_port->shadowLCR);
1244 struct moschip_port *mos7720_port;
1250 mos7720_port = usb_get_serial_port_data(port);
1251 if (mos7720_port == NULL) {
1257 if (mos7720_port->write_urb_pool[i] &&
1258 mos7720_port->write_urb_pool[i]->status != -EINPROGRESS)
1274 struct moschip_port *mos7720_port;
1283 mos7720_port = usb_get_serial_port_data(port);
1284 if (mos7720_port == NULL) {
1285 dbg("mos7720_port is NULL");
1293 if (mos7720_port->write_urb_pool[i] &&
1294 mos7720_port->write_urb_pool[i]->status != -EINPROGRESS) {
1295 urb = mos7720_port->write_urb_pool[i];
1326 mos7720_bulk_out_data_callback, mos7720_port);
1345 struct moschip_port *mos7720_port;
1350 mos7720_port = usb_get_serial_port_data(port);
1352 if (mos7720_port == NULL)
1355 if (!mos7720_port->open) {
1372 mos7720_port->shadowMCR &= ~UART_MCR_RTS;
1374 MCR, mos7720_port->shadowMCR);
1383 struct moschip_port *mos7720_port = usb_get_serial_port_data(port);
1386 if (mos7720_port == NULL)
1389 if (!mos7720_port->open) {
1406 mos7720_port->shadowMCR |= UART_MCR_RTS;
1408 MCR, mos7720_port->shadowMCR);
1414 static int set_higher_rates(struct moschip_port *mos7720_port,
1421 if (mos7720_port == NULL)
1424 port = mos7720_port->port;
1436 mos7720_port->shadowMCR = 0x0b;
1437 write_mos_reg(serial, port_number, MCR, mos7720_port->shadowMCR);
1450 mos7720_port->shadowMCR = 0x2b;
1451 write_mos_reg(serial, port_number, MCR, mos7720_port->shadowMCR);
1456 mos7720_port->shadowLCR = mos7720_port->shadowLCR | UART_LCR_DLAB;
1457 write_mos_reg(serial, port_number, LCR, mos7720_port->shadowLCR);
1460 mos7720_port->shadowLCR = mos7720_port->shadowLCR & ~UART_LCR_DLAB;
1461 write_mos_reg(serial, port_number, LCR, mos7720_port->shadowLCR);
1542 static int send_cmd_write_baud_rate(struct moschip_port *mos7720_port,
1551 if (mos7720_port == NULL)
1554 port = mos7720_port->port;
1570 mos7720_port->shadowLCR = mos7720_port->shadowLCR | UART_LCR_DLAB;
1571 write_mos_reg(serial, number, LCR, mos7720_port->shadowLCR);
1578 mos7720_port->shadowLCR = mos7720_port->shadowLCR & ~UART_LCR_DLAB;
1579 write_mos_reg(serial, number, LCR, mos7720_port->shadowLCR);
1590 struct moschip_port *mos7720_port,
1605 if (mos7720_port == NULL)
1608 port = mos7720_port->port;
1614 if (!mos7720_port->open) {
1681 mos7720_port->shadowLCR &=
1683 mos7720_port->shadowLCR |= (lData | lParity | lStop);
1692 write_mos_reg(serial, port_number, LCR, mos7720_port->shadowLCR);
1693 mos7720_port->shadowMCR = 0x0b;
1694 write_mos_reg(serial, port_number, MCR, mos7720_port->shadowMCR);
1697 mos7720_port->shadowMCR = UART_MCR_OUT2;
1699 mos7720_port->shadowMCR |= (UART_MCR_DTR | UART_MCR_RTS);
1702 mos7720_port->shadowMCR |= (UART_MCR_XONANY);
1711 mos7720_port->shadowMCR &= ~(UART_MCR_XONANY);
1713 write_mos_reg(serial, port_number, MCR, mos7720_port->shadowMCR);
1724 set_higher_rates(mos7720_port, baud);
1731 status = send_cmd_write_baud_rate(mos7720_port, baud);
1759 struct moschip_port *mos7720_port;
1763 mos7720_port = usb_get_serial_port_data(port);
1765 if (mos7720_port == NULL)
1768 if (!mos7720_port->open) {
1788 change_port_settings(tty, mos7720_port, old_termios);
1816 struct moschip_port *mos7720_port, unsigned int __user *value)
1841 struct moschip_port *mos7720_port = usb_get_serial_port_data(port);
1848 mcr = mos7720_port->shadowMCR;
1849 msr = mos7720_port->shadowMSR;
1867 struct moschip_port *mos7720_port = usb_get_serial_port_data(port);
1872 mcr = mos7720_port->shadowMCR;
1888 mos7720_port->shadowMCR = mcr;
1890 MCR, mos7720_port->shadowMCR);
1895 static int set_modem_info(struct moschip_port *mos7720_port, unsigned int cmd,
1903 if (mos7720_port == NULL)
1906 port = (struct usb_serial_port *)mos7720_port->port;
1907 mcr = mos7720_port->shadowMCR;
1933 mos7720_port->shadowMCR = mcr;
1935 MCR, mos7720_port->shadowMCR);
1940 static int get_serial_info(struct moschip_port *mos7720_port,
1951 tmp.line = mos7720_port->port->serial->minor;
1952 tmp.port = mos7720_port->port->number;
1969 struct moschip_port *mos7720_port;
1974 mos7720_port = usb_get_serial_port_data(port);
1975 if (mos7720_port == NULL)
1983 return get_lsr_info(tty, mos7720_port,
1991 return set_modem_info(mos7720_port, cmd,
1996 return get_serial_info(mos7720_port,
2001 cprev = mos7720_port->icount;
2005 cnow = mos7720_port->icount;
2021 cnow = mos7720_port->icount;
2049 struct moschip_port *mos7720_port;
2091 mos7720_port = kzalloc(sizeof(struct moschip_port), GFP_KERNEL);
2092 if (mos7720_port == NULL) {
2103 mos7720_port->port = serial->port[i];
2104 usb_set_serial_port_data(serial->port[i], mos7720_port);