portdata 2148 drivers/usb/serial/option.c struct usb_wwan_port_private *portdata = portdata 2151 drivers/usb/serial/option.c dev_dbg(dev, "%s: urb %p port %p has data %p\n", __func__, urb, port, portdata); portdata 2170 drivers/usb/serial/option.c old_dcd_state = portdata->dcd_state; portdata 2171 drivers/usb/serial/option.c portdata->cts_state = 1; portdata 2172 drivers/usb/serial/option.c portdata->dcd_state = ((signals & 0x01) ? 1 : 0); portdata 2173 drivers/usb/serial/option.c portdata->dsr_state = ((signals & 0x02) ? 1 : 0); portdata 2174 drivers/usb/serial/option.c portdata->ri_state = ((signals & 0x08) ? 1 : 0); portdata 2176 drivers/usb/serial/option.c if (old_dcd_state && !portdata->dcd_state) portdata 310 drivers/usb/serial/sierra.c struct sierra_port_private *portdata; portdata 316 drivers/usb/serial/sierra.c portdata = usb_get_serial_port_data(port); portdata 318 drivers/usb/serial/sierra.c if (portdata->dtr_state) portdata 320 drivers/usb/serial/sierra.c if (portdata->rts_state) portdata 364 drivers/usb/serial/sierra.c struct sierra_port_private *portdata; portdata 366 drivers/usb/serial/sierra.c portdata = usb_get_serial_port_data(port); portdata 368 drivers/usb/serial/sierra.c value = ((portdata->rts_state) ? TIOCM_RTS : 0) | portdata 369 drivers/usb/serial/sierra.c ((portdata->dtr_state) ? TIOCM_DTR : 0) | portdata 370 drivers/usb/serial/sierra.c ((portdata->cts_state) ? TIOCM_CTS : 0) | portdata 371 drivers/usb/serial/sierra.c ((portdata->dsr_state) ? TIOCM_DSR : 0) | portdata 372 drivers/usb/serial/sierra.c ((portdata->dcd_state) ? TIOCM_CAR : 0) | portdata 373 drivers/usb/serial/sierra.c ((portdata->ri_state) ? TIOCM_RNG : 0); portdata 382 drivers/usb/serial/sierra.c struct sierra_port_private *portdata; portdata 384 drivers/usb/serial/sierra.c portdata = usb_get_serial_port_data(port); portdata 387 drivers/usb/serial/sierra.c portdata->rts_state = 1; portdata 389 drivers/usb/serial/sierra.c portdata->dtr_state = 1; portdata 392 drivers/usb/serial/sierra.c portdata->rts_state = 0; portdata 394 drivers/usb/serial/sierra.c portdata->dtr_state = 0; portdata 409 drivers/usb/serial/sierra.c struct sierra_port_private *portdata = usb_get_serial_port_data(port); portdata 423 drivers/usb/serial/sierra.c spin_lock_irqsave(&portdata->lock, flags); portdata 424 drivers/usb/serial/sierra.c --portdata->outstanding_urbs; portdata 425 drivers/usb/serial/sierra.c spin_unlock_irqrestore(&portdata->lock, flags); portdata 437 drivers/usb/serial/sierra.c struct sierra_port_private *portdata; portdata 450 drivers/usb/serial/sierra.c portdata = usb_get_serial_port_data(port); portdata 454 drivers/usb/serial/sierra.c spin_lock_irqsave(&portdata->lock, flags); portdata 456 drivers/usb/serial/sierra.c portdata->outstanding_urbs); portdata 457 drivers/usb/serial/sierra.c if (portdata->outstanding_urbs > portdata->num_out_urbs) { portdata 458 drivers/usb/serial/sierra.c spin_unlock_irqrestore(&portdata->lock, flags); portdata 462 drivers/usb/serial/sierra.c portdata->outstanding_urbs++; portdata 464 drivers/usb/serial/sierra.c portdata->outstanding_urbs); portdata 465 drivers/usb/serial/sierra.c spin_unlock_irqrestore(&portdata->lock, flags); portdata 469 drivers/usb/serial/sierra.c spin_lock_irqsave(&portdata->lock, flags); portdata 470 drivers/usb/serial/sierra.c portdata->outstanding_urbs--; portdata 471 drivers/usb/serial/sierra.c spin_unlock_irqrestore(&portdata->lock, flags); portdata 502 drivers/usb/serial/sierra.c usb_anchor_urb(urb, &portdata->delayed); portdata 506 drivers/usb/serial/sierra.c usb_anchor_urb(urb, &portdata->active); portdata 532 drivers/usb/serial/sierra.c spin_lock_irqsave(&portdata->lock, flags); portdata 533 drivers/usb/serial/sierra.c --portdata->outstanding_urbs; portdata 535 drivers/usb/serial/sierra.c portdata->outstanding_urbs); portdata 536 drivers/usb/serial/sierra.c spin_unlock_irqrestore(&portdata->lock, flags); portdata 585 drivers/usb/serial/sierra.c struct sierra_port_private *portdata = usb_get_serial_port_data(port); portdata 589 drivers/usb/serial/sierra.c urb, port, portdata); portdata 610 drivers/usb/serial/sierra.c old_dcd_state = portdata->dcd_state; portdata 611 drivers/usb/serial/sierra.c portdata->cts_state = 1; portdata 612 drivers/usb/serial/sierra.c portdata->dcd_state = ((signals & 0x01) ? 1 : 0); portdata 613 drivers/usb/serial/sierra.c portdata->dsr_state = ((signals & 0x02) ? 1 : 0); portdata 614 drivers/usb/serial/sierra.c portdata->ri_state = ((signals & 0x08) ? 1 : 0); portdata 616 drivers/usb/serial/sierra.c if (old_dcd_state && !portdata->dcd_state) portdata 639 drivers/usb/serial/sierra.c struct sierra_port_private *portdata = usb_get_serial_port_data(port); portdata 644 drivers/usb/serial/sierra.c spin_lock_irqsave(&portdata->lock, flags); portdata 645 drivers/usb/serial/sierra.c if (portdata->outstanding_urbs > (portdata->num_out_urbs * 2) / 3) { portdata 646 drivers/usb/serial/sierra.c spin_unlock_irqrestore(&portdata->lock, flags); portdata 650 drivers/usb/serial/sierra.c spin_unlock_irqrestore(&portdata->lock, flags); portdata 658 drivers/usb/serial/sierra.c struct sierra_port_private *portdata = usb_get_serial_port_data(port); portdata 663 drivers/usb/serial/sierra.c spin_lock_irqsave(&portdata->lock, flags); portdata 664 drivers/usb/serial/sierra.c chars = portdata->outstanding_urbs * MAX_TRANSFER; portdata 665 drivers/usb/serial/sierra.c spin_unlock_irqrestore(&portdata->lock, flags); portdata 675 drivers/usb/serial/sierra.c struct sierra_port_private *portdata = usb_get_serial_port_data(port); portdata 677 drivers/usb/serial/sierra.c for (i = 0; i < portdata->num_in_urbs; i++) portdata 678 drivers/usb/serial/sierra.c usb_kill_urb(portdata->in_urbs[i]); portdata 689 drivers/usb/serial/sierra.c struct sierra_port_private *portdata = usb_get_serial_port_data(port); portdata 692 drivers/usb/serial/sierra.c for (i = 0; i < portdata->num_in_urbs; i++) { portdata 693 drivers/usb/serial/sierra.c urb = portdata->in_urbs[i]; portdata 752 drivers/usb/serial/sierra.c struct sierra_port_private *portdata; portdata 756 drivers/usb/serial/sierra.c portdata = usb_get_serial_port_data(port); portdata 768 drivers/usb/serial/sierra.c urb = usb_get_from_anchor(&portdata->delayed); portdata 774 drivers/usb/serial/sierra.c spin_lock_irq(&portdata->lock); portdata 775 drivers/usb/serial/sierra.c portdata->outstanding_urbs--; portdata 776 drivers/usb/serial/sierra.c spin_unlock_irq(&portdata->lock); portdata 780 drivers/usb/serial/sierra.c usb_kill_anchored_urbs(&portdata->active); portdata 782 drivers/usb/serial/sierra.c for (i = 0; i < portdata->num_in_urbs; i++) { portdata 783 drivers/usb/serial/sierra.c sierra_release_urb(portdata->in_urbs[i]); portdata 784 drivers/usb/serial/sierra.c portdata->in_urbs[i] = NULL; portdata 792 drivers/usb/serial/sierra.c struct sierra_port_private *portdata; portdata 800 drivers/usb/serial/sierra.c portdata = usb_get_serial_port_data(port); portdata 803 drivers/usb/serial/sierra.c for (i = 0; i < portdata->num_in_urbs; i++) { portdata 807 drivers/usb/serial/sierra.c portdata->in_urbs[i] = urb; portdata 828 drivers/usb/serial/sierra.c for (i = 0; i < portdata->num_in_urbs; i++) { portdata 829 drivers/usb/serial/sierra.c sierra_release_urb(portdata->in_urbs[i]); portdata 830 drivers/usb/serial/sierra.c portdata->in_urbs[i] = NULL; portdata 839 drivers/usb/serial/sierra.c struct sierra_port_private *portdata; portdata 841 drivers/usb/serial/sierra.c portdata = usb_get_serial_port_data(port); portdata 842 drivers/usb/serial/sierra.c portdata->rts_state = on; portdata 843 drivers/usb/serial/sierra.c portdata->dtr_state = on; portdata 881 drivers/usb/serial/sierra.c struct sierra_port_private *portdata; portdata 885 drivers/usb/serial/sierra.c portdata = kzalloc(sizeof(*portdata), GFP_KERNEL); portdata 886 drivers/usb/serial/sierra.c if (!portdata) portdata 889 drivers/usb/serial/sierra.c spin_lock_init(&portdata->lock); portdata 890 drivers/usb/serial/sierra.c init_usb_anchor(&portdata->active); portdata 891 drivers/usb/serial/sierra.c init_usb_anchor(&portdata->delayed); portdata 894 drivers/usb/serial/sierra.c portdata->num_out_urbs = N_OUT_URB; portdata 895 drivers/usb/serial/sierra.c portdata->num_in_urbs = N_IN_URB; portdata 911 drivers/usb/serial/sierra.c portdata->num_out_urbs = N_OUT_URB_HM; portdata 912 drivers/usb/serial/sierra.c portdata->num_in_urbs = N_IN_URB_HM; portdata 917 drivers/usb/serial/sierra.c ifnum, portdata->num_in_urbs, portdata->num_out_urbs); portdata 919 drivers/usb/serial/sierra.c usb_set_serial_port_data(port, portdata); portdata 926 drivers/usb/serial/sierra.c struct sierra_port_private *portdata; portdata 928 drivers/usb/serial/sierra.c portdata = usb_get_serial_port_data(port); portdata 930 drivers/usb/serial/sierra.c kfree(portdata); portdata 940 drivers/usb/serial/sierra.c struct sierra_port_private *portdata; portdata 945 drivers/usb/serial/sierra.c portdata = usb_get_serial_port_data(port); portdata 946 drivers/usb/serial/sierra.c if (!portdata) portdata 949 drivers/usb/serial/sierra.c usb_kill_anchored_urbs(&portdata->active); portdata 975 drivers/usb/serial/sierra.c struct sierra_port_private *portdata = usb_get_serial_port_data(port); portdata 984 drivers/usb/serial/sierra.c urb = usb_get_from_anchor(&portdata->delayed); portdata 988 drivers/usb/serial/sierra.c usb_anchor_urb(urb, &portdata->active); portdata 1000 drivers/usb/serial/sierra.c spin_lock(&portdata->lock); portdata 1001 drivers/usb/serial/sierra.c portdata->outstanding_urbs--; portdata 1002 drivers/usb/serial/sierra.c spin_unlock(&portdata->lock); portdata 43 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 48 drivers/usb/serial/usb_wwan.c portdata = usb_get_serial_port_data(port); portdata 50 drivers/usb/serial/usb_wwan.c if (portdata->dtr_state) portdata 52 drivers/usb/serial/usb_wwan.c if (portdata->rts_state) portdata 72 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 80 drivers/usb/serial/usb_wwan.c portdata = usb_get_serial_port_data(port); portdata 82 drivers/usb/serial/usb_wwan.c portdata->rts_state = on; portdata 83 drivers/usb/serial/usb_wwan.c portdata->dtr_state = on; portdata 93 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 95 drivers/usb/serial/usb_wwan.c portdata = usb_get_serial_port_data(port); portdata 97 drivers/usb/serial/usb_wwan.c value = ((portdata->rts_state) ? TIOCM_RTS : 0) | portdata 98 drivers/usb/serial/usb_wwan.c ((portdata->dtr_state) ? TIOCM_DTR : 0) | portdata 99 drivers/usb/serial/usb_wwan.c ((portdata->cts_state) ? TIOCM_CTS : 0) | portdata 100 drivers/usb/serial/usb_wwan.c ((portdata->dsr_state) ? TIOCM_DSR : 0) | portdata 101 drivers/usb/serial/usb_wwan.c ((portdata->dcd_state) ? TIOCM_CAR : 0) | portdata 102 drivers/usb/serial/usb_wwan.c ((portdata->ri_state) ? TIOCM_RNG : 0); portdata 112 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 115 drivers/usb/serial/usb_wwan.c portdata = usb_get_serial_port_data(port); portdata 123 drivers/usb/serial/usb_wwan.c portdata->rts_state = 1; portdata 125 drivers/usb/serial/usb_wwan.c portdata->dtr_state = 1; portdata 128 drivers/usb/serial/usb_wwan.c portdata->rts_state = 0; portdata 130 drivers/usb/serial/usb_wwan.c portdata->dtr_state = 0; portdata 183 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 191 drivers/usb/serial/usb_wwan.c portdata = usb_get_serial_port_data(port); portdata 203 drivers/usb/serial/usb_wwan.c this_urb = portdata->out_urbs[i]; portdata 204 drivers/usb/serial/usb_wwan.c if (test_and_set_bit(i, &portdata->out_busy)) { portdata 206 drivers/usb/serial/usb_wwan.c portdata->tx_start_time[i] + 10 * HZ)) portdata 216 drivers/usb/serial/usb_wwan.c clear_bit(i, &portdata->out_busy); portdata 226 drivers/usb/serial/usb_wwan.c usb_anchor_urb(this_urb, &portdata->delayed); portdata 236 drivers/usb/serial/usb_wwan.c clear_bit(i, &portdata->out_busy); portdata 246 drivers/usb/serial/usb_wwan.c portdata->tx_start_time[i] = jiffies; portdata 302 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 312 drivers/usb/serial/usb_wwan.c portdata = usb_get_serial_port_data(port); portdata 318 drivers/usb/serial/usb_wwan.c if (portdata->out_urbs[i] == urb) { portdata 320 drivers/usb/serial/usb_wwan.c clear_bit(i, &portdata->out_busy); portdata 329 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 334 drivers/usb/serial/usb_wwan.c portdata = usb_get_serial_port_data(port); portdata 337 drivers/usb/serial/usb_wwan.c this_urb = portdata->out_urbs[i]; portdata 338 drivers/usb/serial/usb_wwan.c if (this_urb && !test_bit(i, &portdata->out_busy)) portdata 350 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 355 drivers/usb/serial/usb_wwan.c portdata = usb_get_serial_port_data(port); portdata 358 drivers/usb/serial/usb_wwan.c this_urb = portdata->out_urbs[i]; portdata 361 drivers/usb/serial/usb_wwan.c if (this_urb && test_bit(i, &portdata->out_busy)) portdata 371 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 377 drivers/usb/serial/usb_wwan.c portdata = usb_get_serial_port_data(port); portdata 390 drivers/usb/serial/usb_wwan.c urb = portdata->in_urbs[i]; portdata 413 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata) portdata 418 drivers/usb/serial/usb_wwan.c if (urb == portdata->out_urbs[i]) { portdata 419 drivers/usb/serial/usb_wwan.c clear_bit(i, &portdata->out_busy); portdata 429 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 433 drivers/usb/serial/usb_wwan.c portdata = usb_get_serial_port_data(port); portdata 445 drivers/usb/serial/usb_wwan.c urb = usb_get_from_anchor(&portdata->delayed); portdata 448 drivers/usb/serial/usb_wwan.c unbusy_queued_urb(urb, portdata); portdata 453 drivers/usb/serial/usb_wwan.c usb_kill_urb(portdata->in_urbs[i]); portdata 455 drivers/usb/serial/usb_wwan.c usb_kill_urb(portdata->out_urbs[i]); portdata 487 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 495 drivers/usb/serial/usb_wwan.c portdata = kzalloc(sizeof(*portdata), GFP_KERNEL); portdata 496 drivers/usb/serial/usb_wwan.c if (!portdata) portdata 499 drivers/usb/serial/usb_wwan.c init_usb_anchor(&portdata->delayed); portdata 505 drivers/usb/serial/usb_wwan.c portdata->in_buffer[i] = buffer; portdata 511 drivers/usb/serial/usb_wwan.c portdata->in_urbs[i] = urb; portdata 518 drivers/usb/serial/usb_wwan.c portdata->out_buffer[i] = buffer; portdata 524 drivers/usb/serial/usb_wwan.c portdata->out_urbs[i] = urb; portdata 527 drivers/usb/serial/usb_wwan.c usb_set_serial_port_data(port, portdata); portdata 533 drivers/usb/serial/usb_wwan.c usb_free_urb(portdata->out_urbs[i]); portdata 534 drivers/usb/serial/usb_wwan.c kfree(portdata->out_buffer[i]); portdata 538 drivers/usb/serial/usb_wwan.c usb_free_urb(portdata->in_urbs[i]); portdata 539 drivers/usb/serial/usb_wwan.c free_page((unsigned long)portdata->in_buffer[i]); portdata 541 drivers/usb/serial/usb_wwan.c kfree(portdata); portdata 550 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 552 drivers/usb/serial/usb_wwan.c portdata = usb_get_serial_port_data(port); portdata 556 drivers/usb/serial/usb_wwan.c usb_free_urb(portdata->in_urbs[i]); portdata 557 drivers/usb/serial/usb_wwan.c free_page((unsigned long)portdata->in_buffer[i]); portdata 560 drivers/usb/serial/usb_wwan.c usb_free_urb(portdata->out_urbs[i]); portdata 561 drivers/usb/serial/usb_wwan.c kfree(portdata->out_buffer[i]); portdata 564 drivers/usb/serial/usb_wwan.c kfree(portdata); portdata 575 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 579 drivers/usb/serial/usb_wwan.c portdata = usb_get_serial_port_data(port); portdata 580 drivers/usb/serial/usb_wwan.c if (!portdata) portdata 583 drivers/usb/serial/usb_wwan.c usb_kill_urb(portdata->in_urbs[j]); portdata 585 drivers/usb/serial/usb_wwan.c usb_kill_urb(portdata->out_urbs[j]); portdata 615 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 620 drivers/usb/serial/usb_wwan.c portdata = usb_get_serial_port_data(port); portdata 623 drivers/usb/serial/usb_wwan.c urb = usb_get_from_anchor(&portdata->delayed); portdata 632 drivers/usb/serial/usb_wwan.c unbusy_queued_urb(urb, portdata); portdata 650 drivers/usb/serial/usb_wwan.c struct usb_wwan_port_private *portdata; portdata 662 drivers/usb/serial/usb_wwan.c portdata = usb_get_serial_port_data(port); portdata 680 drivers/usb/serial/usb_wwan.c urb = portdata->in_urbs[j];