Lines Matching refs:edge_serial
108 struct edgeport_serial *edge_serial; member
1627 struct edgeport_serial *edge_serial = (struct edgeport_serial *)urb->context; in edge_interrupt_callback() local
1639 if (serial_paranoia_check (edge_serial->serial, __FUNCTION__)) { in edge_interrupt_callback()
1664 port = &edge_serial->serial->port[port_number]; in edge_interrupt_callback()
1810 struct edgeport_serial *edge_serial; in edge_open() local
1914 edge_serial = edge_port->edge_serial; in edge_open()
1915 if (edge_serial->num_ports_open == 0) { in edge_open()
1918 urb = edge_serial->serial->port[0].interrupt_in_urb; in edge_open()
1924 urb->context = edge_serial; in edge_open()
1955 ++edge_serial->num_ports_open; in edge_open()
1965 struct edgeport_serial *edge_serial; in edge_close() local
1979 edge_serial = (struct edgeport_serial *)serial->private; in edge_close()
1981 if ((edge_serial == NULL) || (edge_port == NULL)) in edge_close()
2004 --edge_port->edge_serial->num_ports_open; in edge_close()
2005 if (edge_port->edge_serial->num_ports_open <= 0) { in edge_close()
2008 edge_port->edge_serial->num_ports_open = 0; in edge_close()
2568 struct edgeport_serial *edge_serial; in edge_startup() local
2577 edge_serial = kmalloc (sizeof(struct edgeport_serial), GFP_KERNEL); in edge_startup()
2578 if (edge_serial == NULL) { in edge_startup()
2582 memset (edge_serial, 0, sizeof(struct edgeport_serial)); in edge_startup()
2583 edge_serial->serial = serial; in edge_startup()
2584 serial->private = edge_serial; in edge_startup()
2586 status = TIDownloadFirmware (edge_serial); in edge_startup()
2588 kfree (edge_serial); in edge_startup()
2601 edge_port->edge_serial = edge_serial; in edge_startup()