Searched refs:intfdata (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/drivers/usb/serial/
H A Dusb_wwan.c42 struct usb_wwan_intf_private *intfdata; usb_wwan_dtr_rts() local
44 intfdata = usb_get_serial_data(port->serial); usb_wwan_dtr_rts()
46 if (!intfdata->send_setup) usb_wwan_dtr_rts()
54 intfdata->send_setup(port); usb_wwan_dtr_rts()
82 struct usb_wwan_intf_private *intfdata; usb_wwan_tiocmset() local
85 intfdata = usb_get_serial_data(port->serial); usb_wwan_tiocmset()
87 if (!intfdata->send_setup) usb_wwan_tiocmset()
100 return intfdata->send_setup(port); usb_wwan_tiocmset()
185 struct usb_wwan_intf_private *intfdata; usb_wwan_write() local
193 intfdata = usb_get_serial_data(port->serial); usb_wwan_write()
225 spin_lock_irqsave(&intfdata->susp_lock, flags); usb_wwan_write()
226 if (intfdata->suspended) { usb_wwan_write()
228 spin_unlock_irqrestore(&intfdata->susp_lock, flags); usb_wwan_write()
230 intfdata->in_flight++; usb_wwan_write()
231 spin_unlock_irqrestore(&intfdata->susp_lock, flags); usb_wwan_write()
238 spin_lock_irqsave(&intfdata->susp_lock, flags); usb_wwan_write()
239 intfdata->in_flight--; usb_wwan_write()
240 spin_unlock_irqrestore(&intfdata->susp_lock, usb_wwan_write()
300 struct usb_wwan_intf_private *intfdata; usb_wwan_outdat_callback() local
304 intfdata = usb_get_serial_data(port->serial); usb_wwan_outdat_callback()
309 spin_lock(&intfdata->susp_lock); usb_wwan_outdat_callback()
310 intfdata->in_flight--; usb_wwan_outdat_callback()
311 spin_unlock(&intfdata->susp_lock); usb_wwan_outdat_callback()
368 struct usb_wwan_intf_private *intfdata; usb_wwan_open() local
374 intfdata = usb_get_serial_data(serial); usb_wwan_open()
397 spin_lock_irq(&intfdata->susp_lock); usb_wwan_open()
398 if (++intfdata->open_ports == 1) usb_wwan_open()
400 spin_unlock_irq(&intfdata->susp_lock); usb_wwan_open()
426 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); usb_wwan_close() local
435 spin_lock_irq(&intfdata->susp_lock); usb_wwan_close()
436 if (--intfdata->open_ports == 0) usb_wwan_close()
438 spin_unlock_irq(&intfdata->susp_lock); usb_wwan_close()
584 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); usb_wwan_suspend() local
586 spin_lock_irq(&intfdata->susp_lock); usb_wwan_suspend()
588 if (intfdata->in_flight) { usb_wwan_suspend()
589 spin_unlock_irq(&intfdata->susp_lock); usb_wwan_suspend()
593 intfdata->suspended = 1; usb_wwan_suspend()
594 spin_unlock_irq(&intfdata->susp_lock); usb_wwan_suspend()
641 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); usb_wwan_resume() local
647 spin_lock_irq(&intfdata->susp_lock); usb_wwan_resume()
682 intfdata->suspended = 0; usb_wwan_resume()
683 spin_unlock_irq(&intfdata->susp_lock); usb_wwan_resume()
H A Dsierra.c430 struct sierra_intf_private *intfdata; sierra_outdat_callback() local
433 intfdata = usb_get_serial_data(port->serial); sierra_outdat_callback()
445 spin_lock(&intfdata->susp_lock); sierra_outdat_callback()
446 --intfdata->in_flight; sierra_outdat_callback()
447 spin_unlock(&intfdata->susp_lock); sierra_outdat_callback()
457 struct sierra_intf_private *intfdata; sierra_write() local
470 intfdata = usb_get_serial_data(serial); sierra_write()
518 spin_lock_irqsave(&intfdata->susp_lock, flags); sierra_write()
520 if (intfdata->suspended) { sierra_write()
522 spin_unlock_irqrestore(&intfdata->susp_lock, flags); sierra_write()
531 spin_unlock_irqrestore(&intfdata->susp_lock, flags); sierra_write()
536 intfdata->in_flight++; sierra_write()
537 spin_unlock_irqrestore(&intfdata->susp_lock, flags); sierra_write()
772 struct sierra_intf_private *intfdata = usb_get_serial_data(serial); sierra_close() local
781 spin_lock_irq(&intfdata->susp_lock); sierra_close()
782 if (--intfdata->open_ports == 0) sierra_close()
784 spin_unlock_irq(&intfdata->susp_lock); sierra_close()
813 struct sierra_intf_private *intfdata = usb_get_serial_data(serial); sierra_open() local
836 spin_lock_irq(&intfdata->susp_lock); sierra_open()
837 if (++intfdata->open_ports == 1) sierra_open()
839 spin_unlock_irq(&intfdata->susp_lock); sierra_open()
869 struct sierra_intf_private *intfdata; sierra_startup() local
871 intfdata = kzalloc(sizeof(*intfdata), GFP_KERNEL); sierra_startup()
872 if (!intfdata) sierra_startup()
875 spin_lock_init(&intfdata->susp_lock); sierra_startup()
877 usb_set_serial_data(serial, intfdata); sierra_startup()
891 struct sierra_intf_private *intfdata; sierra_release() local
893 intfdata = usb_get_serial_data(serial); sierra_release()
894 kfree(intfdata); sierra_release()
974 struct sierra_intf_private *intfdata = usb_get_serial_data(serial); sierra_suspend() local
976 spin_lock_irq(&intfdata->susp_lock); sierra_suspend()
978 if (intfdata->in_flight) { sierra_suspend()
979 spin_unlock_irq(&intfdata->susp_lock); sierra_suspend()
983 intfdata->suspended = 1; sierra_suspend()
984 spin_unlock_irq(&intfdata->susp_lock); sierra_suspend()
995 struct sierra_intf_private *intfdata; sierra_submit_delayed_urbs() local
1000 intfdata = usb_get_serial_data(port->serial); sierra_submit_delayed_urbs()
1008 intfdata->in_flight++; sierra_submit_delayed_urbs()
1014 intfdata->in_flight--; sierra_submit_delayed_urbs()
1034 struct sierra_intf_private *intfdata = usb_get_serial_data(serial); sierra_resume() local
1038 spin_lock_irq(&intfdata->susp_lock); sierra_resume()
1053 intfdata->suspended = 0; sierra_resume()
1054 spin_unlock_irq(&intfdata->susp_lock); sierra_resume()
H A Doption.c2102 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); option_release() local
2103 struct option_private *priv = intfdata->private; option_release()
2106 kfree(intfdata); option_release()
2172 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); option_send_setup() local
2173 struct option_private *priv = intfdata->private; option_send_setup()
/linux-4.1.27/drivers/usb/misc/
H A Dcypress_cy7c63.c254 /* the intfdata can be set to NULL only after the cypress_disconnect()
/linux-4.1.27/drivers/usb/class/
H A Dcdc-wdm.c112 /* return intfdata if we own the interface, else look up intf in the list */ wdm_find_device()

Completed in 203 milliseconds