Lines Matching refs:intfdata
75 struct usb_wwan_intf_private *intfdata; in usb_wwan_dtr_rts() local
77 intfdata = usb_get_serial_data(port->serial); in usb_wwan_dtr_rts()
79 if (!intfdata->use_send_setup) in usb_wwan_dtr_rts()
115 struct usb_wwan_intf_private *intfdata; in usb_wwan_tiocmset() local
118 intfdata = usb_get_serial_data(port->serial); in usb_wwan_tiocmset()
120 if (!intfdata->use_send_setup) in usb_wwan_tiocmset()
141 struct usb_wwan_intf_private *intfdata; in usb_wwan_write() local
149 intfdata = usb_get_serial_data(port->serial); in usb_wwan_write()
180 spin_lock_irqsave(&intfdata->susp_lock, flags); in usb_wwan_write()
181 if (intfdata->suspended) { in usb_wwan_write()
183 spin_unlock_irqrestore(&intfdata->susp_lock, flags); in usb_wwan_write()
185 intfdata->in_flight++; in usb_wwan_write()
186 spin_unlock_irqrestore(&intfdata->susp_lock, flags); in usb_wwan_write()
193 spin_lock_irqsave(&intfdata->susp_lock, flags); in usb_wwan_write()
194 intfdata->in_flight--; in usb_wwan_write()
195 spin_unlock_irqrestore(&intfdata->susp_lock, in usb_wwan_write()
259 struct usb_wwan_intf_private *intfdata; in usb_wwan_outdat_callback() local
264 intfdata = usb_get_serial_data(port->serial); in usb_wwan_outdat_callback()
269 spin_lock_irqsave(&intfdata->susp_lock, flags); in usb_wwan_outdat_callback()
270 intfdata->in_flight--; in usb_wwan_outdat_callback()
271 spin_unlock_irqrestore(&intfdata->susp_lock, flags); in usb_wwan_outdat_callback()
328 struct usb_wwan_intf_private *intfdata; in usb_wwan_open() local
334 intfdata = usb_get_serial_data(serial); in usb_wwan_open()
357 spin_lock_irq(&intfdata->susp_lock); in usb_wwan_open()
358 if (++intfdata->open_ports == 1) in usb_wwan_open()
360 spin_unlock_irq(&intfdata->susp_lock); in usb_wwan_open()
386 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_close() local
396 spin_lock_irq(&intfdata->susp_lock); in usb_wwan_close()
397 if (--intfdata->open_ports == 0) in usb_wwan_close()
399 spin_unlock_irq(&intfdata->susp_lock); in usb_wwan_close()
425 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_setup_urb() local
436 if (intfdata->use_zlp && dir == USB_DIR_OUT) in usb_wwan_setup_urb()
547 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_suspend() local
549 spin_lock_irq(&intfdata->susp_lock); in usb_wwan_suspend()
551 if (intfdata->in_flight) { in usb_wwan_suspend()
552 spin_unlock_irq(&intfdata->susp_lock); in usb_wwan_suspend()
556 intfdata->suspended = 1; in usb_wwan_suspend()
557 spin_unlock_irq(&intfdata->susp_lock); in usb_wwan_suspend()
604 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_resume() local
610 spin_lock_irq(&intfdata->susp_lock); in usb_wwan_resume()
645 intfdata->suspended = 0; in usb_wwan_resume()
646 spin_unlock_irq(&intfdata->susp_lock); in usb_wwan_resume()