Lines Matching refs:portdata
43 struct usb_wwan_port_private *portdata;
54 portdata = usb_get_serial_port_data(port);
56 portdata->rts_state = on;
57 portdata->dtr_state = on;
84 struct usb_wwan_port_private *portdata;
86 portdata = usb_get_serial_port_data(port);
88 value = ((portdata->rts_state) ? TIOCM_RTS : 0) |
89 ((portdata->dtr_state) ? TIOCM_DTR : 0) |
90 ((portdata->cts_state) ? TIOCM_CTS : 0) |
91 ((portdata->dsr_state) ? TIOCM_DSR : 0) |
92 ((portdata->dcd_state) ? TIOCM_CAR : 0) |
93 ((portdata->ri_state) ? TIOCM_RNG : 0);
103 struct usb_wwan_port_private *portdata;
106 portdata = usb_get_serial_port_data(port);
113 portdata->rts_state = 1;
115 portdata->dtr_state = 1;
118 portdata->rts_state = 0;
120 portdata->dtr_state = 0;
129 struct usb_wwan_port_private *portdata;
137 portdata = usb_get_serial_port_data(port);
149 this_urb = portdata->out_urbs[i];
150 if (test_and_set_bit(i, &portdata->out_busy)) {
152 portdata->tx_start_time[i] + 10 * HZ))
170 usb_anchor_urb(this_urb, &portdata->delayed);
179 clear_bit(i, &portdata->out_busy);
188 portdata->tx_start_time[i] = jiffies;
242 struct usb_wwan_port_private *portdata;
253 portdata = usb_get_serial_port_data(port);
259 if (portdata->out_urbs[i] == urb) {
261 clear_bit(i, &portdata->out_busy);
270 struct usb_wwan_port_private *portdata;
275 portdata = usb_get_serial_port_data(port);
278 this_urb = portdata->out_urbs[i];
279 if (this_urb && !test_bit(i, &portdata->out_busy))
291 struct usb_wwan_port_private *portdata;
296 portdata = usb_get_serial_port_data(port);
299 this_urb = portdata->out_urbs[i];
300 if (this_urb && test_bit(i, &portdata->out_busy))
310 struct usb_wwan_port_private *portdata;
316 portdata = usb_get_serial_port_data(port);
323 urb = portdata->in_urbs[i];
338 portdata->opened = 1;
350 struct usb_wwan_port_private *portdata;
354 portdata = usb_get_serial_port_data(port);
359 portdata->opened = 0;
363 usb_kill_urb(portdata->in_urbs[i]);
365 usb_kill_urb(portdata->out_urbs[i]);
401 struct usb_wwan_port_private *portdata;
407 portdata = usb_get_serial_port_data(port);
411 portdata->in_urbs[j] = usb_wwan_setup_urb(serial,
416 portdata->
424 portdata->out_urbs[j] = usb_wwan_setup_urb(serial,
429 portdata->
442 struct usb_wwan_port_private *portdata;
450 portdata = kzalloc(sizeof(*portdata), GFP_KERNEL);
451 if (!portdata) {
456 init_usb_anchor(&portdata->delayed);
462 portdata->in_buffer[j] = buffer;
469 portdata->out_buffer[j] = buffer;
472 usb_set_serial_port_data(port, portdata);
485 kfree(portdata->out_buffer[j]);
488 if (portdata->in_buffer[j])
489 free_page((unsigned long)portdata->in_buffer[j]);
490 kfree(portdata);
499 struct usb_wwan_port_private *portdata;
504 portdata = usb_get_serial_port_data(port);
506 usb_kill_urb(portdata->in_urbs[j]);
508 usb_kill_urb(portdata->out_urbs[j]);
524 struct usb_wwan_port_private *portdata;
531 portdata = usb_get_serial_port_data(port);
534 usb_free_urb(portdata->in_urbs[j]);
536 portdata->in_buffer[j]);
537 portdata->in_urbs[j] = NULL;
540 usb_free_urb(portdata->out_urbs[j]);
541 kfree(portdata->out_buffer[j]);
542 portdata->out_urbs[j] = NULL;
583 struct usb_wwan_port_private *portdata;
587 portdata = usb_get_serial_port_data(port);
589 while ((urb = usb_get_from_anchor(&portdata->delayed))) {
601 struct usb_wwan_port_private *portdata;
625 portdata = usb_get_serial_port_data(port);
629 if (!portdata->opened) {
635 urb = portdata->in_urbs[j];