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()
478 spin_lock_irqsave(&intfdata->susp_lock, flags); in sierra_write()
480 if (intfdata->suspended) { in sierra_write()
482 spin_unlock_irqrestore(&intfdata->susp_lock, flags); in sierra_write()
491 spin_unlock_irqrestore(&intfdata->susp_lock, flags); in sierra_write()
496 intfdata->in_flight++; in sierra_write()
497 spin_unlock_irqrestore(&intfdata->susp_lock, flags); in sierra_write()
731 struct sierra_intf_private *intfdata = usb_get_serial_data(serial); in sierra_close() local
741 spin_lock_irq(&intfdata->susp_lock); in sierra_close()
742 if (--intfdata->open_ports == 0) in sierra_close()
744 spin_unlock_irq(&intfdata->susp_lock); in sierra_close()
773 struct sierra_intf_private *intfdata = usb_get_serial_data(serial); in sierra_open() local
796 spin_lock_irq(&intfdata->susp_lock); in sierra_open()
797 if (++intfdata->open_ports == 1) in sierra_open()
799 spin_unlock_irq(&intfdata->susp_lock); in sierra_open()
829 struct sierra_intf_private *intfdata; in sierra_startup() local
831 intfdata = kzalloc(sizeof(*intfdata), GFP_KERNEL); in sierra_startup()
832 if (!intfdata) in sierra_startup()
835 spin_lock_init(&intfdata->susp_lock); in sierra_startup()
837 usb_set_serial_data(serial, intfdata); in sierra_startup()
851 struct sierra_intf_private *intfdata; in sierra_release() local
853 intfdata = usb_get_serial_data(serial); in sierra_release()
854 kfree(intfdata); in sierra_release()
932 struct sierra_intf_private *intfdata = usb_get_serial_data(serial); in sierra_suspend() local
934 spin_lock_irq(&intfdata->susp_lock); in sierra_suspend()
936 if (intfdata->in_flight) { in sierra_suspend()
937 spin_unlock_irq(&intfdata->susp_lock); in sierra_suspend()
941 intfdata->suspended = 1; in sierra_suspend()
942 spin_unlock_irq(&intfdata->susp_lock); in sierra_suspend()
953 struct sierra_intf_private *intfdata; in sierra_submit_delayed_urbs() local
958 intfdata = usb_get_serial_data(port->serial); in sierra_submit_delayed_urbs()
966 intfdata->in_flight++; in sierra_submit_delayed_urbs()
972 intfdata->in_flight--; in sierra_submit_delayed_urbs()
992 struct sierra_intf_private *intfdata = usb_get_serial_data(serial); in sierra_resume() local
996 spin_lock_irq(&intfdata->susp_lock); in sierra_resume()
1011 intfdata->suspended = 0; in sierra_resume()
1012 spin_unlock_irq(&intfdata->susp_lock); in sierra_resume()