Lines Matching refs:intfdata

391 	struct sierra_intf_private *intfdata;  in sierra_outdat_callback()  local
395 intfdata = usb_get_serial_data(port->serial); in sierra_outdat_callback()
407 spin_lock_irqsave(&intfdata->susp_lock, flags); in sierra_outdat_callback()
408 --intfdata->in_flight; in sierra_outdat_callback()
409 spin_unlock_irqrestore(&intfdata->susp_lock, flags); in sierra_outdat_callback()
419 struct sierra_intf_private *intfdata; in sierra_write() local
432 intfdata = usb_get_serial_data(serial); in sierra_write()
480 spin_lock_irqsave(&intfdata->susp_lock, flags); in sierra_write()
482 if (intfdata->suspended) { in sierra_write()
484 spin_unlock_irqrestore(&intfdata->susp_lock, flags); in sierra_write()
493 spin_unlock_irqrestore(&intfdata->susp_lock, flags); in sierra_write()
498 intfdata->in_flight++; in sierra_write()
499 spin_unlock_irqrestore(&intfdata->susp_lock, flags); in sierra_write()
733 struct sierra_intf_private *intfdata = usb_get_serial_data(serial); in sierra_close() local
743 spin_lock_irq(&intfdata->susp_lock); in sierra_close()
744 if (--intfdata->open_ports == 0) in sierra_close()
746 spin_unlock_irq(&intfdata->susp_lock); in sierra_close()
775 struct sierra_intf_private *intfdata = usb_get_serial_data(serial); in sierra_open() local
798 spin_lock_irq(&intfdata->susp_lock); in sierra_open()
799 if (++intfdata->open_ports == 1) in sierra_open()
801 spin_unlock_irq(&intfdata->susp_lock); in sierra_open()
831 struct sierra_intf_private *intfdata; in sierra_startup() local
833 intfdata = kzalloc(sizeof(*intfdata), GFP_KERNEL); in sierra_startup()
834 if (!intfdata) in sierra_startup()
837 spin_lock_init(&intfdata->susp_lock); in sierra_startup()
839 usb_set_serial_data(serial, intfdata); in sierra_startup()
853 struct sierra_intf_private *intfdata; in sierra_release() local
855 intfdata = usb_get_serial_data(serial); in sierra_release()
856 kfree(intfdata); in sierra_release()
934 struct sierra_intf_private *intfdata = usb_get_serial_data(serial); in sierra_suspend() local
936 spin_lock_irq(&intfdata->susp_lock); in sierra_suspend()
938 if (intfdata->in_flight) { in sierra_suspend()
939 spin_unlock_irq(&intfdata->susp_lock); in sierra_suspend()
943 intfdata->suspended = 1; in sierra_suspend()
944 spin_unlock_irq(&intfdata->susp_lock); in sierra_suspend()
955 struct sierra_intf_private *intfdata; in sierra_submit_delayed_urbs() local
960 intfdata = usb_get_serial_data(port->serial); in sierra_submit_delayed_urbs()
968 intfdata->in_flight++; in sierra_submit_delayed_urbs()
974 intfdata->in_flight--; in sierra_submit_delayed_urbs()
994 struct sierra_intf_private *intfdata = usb_get_serial_data(serial); in sierra_resume() local
998 spin_lock_irq(&intfdata->susp_lock); in sierra_resume()
1013 intfdata->suspended = 0; in sierra_resume()
1014 spin_unlock_irq(&intfdata->susp_lock); in sierra_resume()