Lines Matching refs:intfdata

73 	struct usb_wwan_intf_private *intfdata;  in usb_wwan_dtr_rts()  local
75 intfdata = usb_get_serial_data(port->serial); in usb_wwan_dtr_rts()
77 if (!intfdata->use_send_setup) in usb_wwan_dtr_rts()
113 struct usb_wwan_intf_private *intfdata; in usb_wwan_tiocmset() local
116 intfdata = usb_get_serial_data(port->serial); in usb_wwan_tiocmset()
118 if (!intfdata->use_send_setup) in usb_wwan_tiocmset()
139 struct usb_wwan_intf_private *intfdata; in usb_wwan_write() local
147 intfdata = usb_get_serial_data(port->serial); in usb_wwan_write()
178 spin_lock_irqsave(&intfdata->susp_lock, flags); in usb_wwan_write()
179 if (intfdata->suspended) { in usb_wwan_write()
181 spin_unlock_irqrestore(&intfdata->susp_lock, flags); in usb_wwan_write()
183 intfdata->in_flight++; in usb_wwan_write()
184 spin_unlock_irqrestore(&intfdata->susp_lock, flags); in usb_wwan_write()
191 spin_lock_irqsave(&intfdata->susp_lock, flags); in usb_wwan_write()
192 intfdata->in_flight--; in usb_wwan_write()
193 spin_unlock_irqrestore(&intfdata->susp_lock, in usb_wwan_write()
257 struct usb_wwan_intf_private *intfdata; in usb_wwan_outdat_callback() local
262 intfdata = usb_get_serial_data(port->serial); in usb_wwan_outdat_callback()
267 spin_lock_irqsave(&intfdata->susp_lock, flags); in usb_wwan_outdat_callback()
268 intfdata->in_flight--; in usb_wwan_outdat_callback()
269 spin_unlock_irqrestore(&intfdata->susp_lock, flags); in usb_wwan_outdat_callback()
326 struct usb_wwan_intf_private *intfdata; in usb_wwan_open() local
332 intfdata = usb_get_serial_data(serial); in usb_wwan_open()
355 spin_lock_irq(&intfdata->susp_lock); in usb_wwan_open()
356 if (++intfdata->open_ports == 1) in usb_wwan_open()
358 spin_unlock_irq(&intfdata->susp_lock); in usb_wwan_open()
384 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_close() local
394 spin_lock_irq(&intfdata->susp_lock); in usb_wwan_close()
395 if (--intfdata->open_ports == 0) in usb_wwan_close()
397 spin_unlock_irq(&intfdata->susp_lock); in usb_wwan_close()
423 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_setup_urb() local
434 if (intfdata->use_zlp && dir == USB_DIR_OUT) in usb_wwan_setup_urb()
545 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_suspend() local
547 spin_lock_irq(&intfdata->susp_lock); in usb_wwan_suspend()
549 if (intfdata->in_flight) { in usb_wwan_suspend()
550 spin_unlock_irq(&intfdata->susp_lock); in usb_wwan_suspend()
554 intfdata->suspended = 1; in usb_wwan_suspend()
555 spin_unlock_irq(&intfdata->susp_lock); in usb_wwan_suspend()
602 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); in usb_wwan_resume() local
608 spin_lock_irq(&intfdata->susp_lock); in usb_wwan_resume()
643 intfdata->suspended = 0; in usb_wwan_resume()
644 spin_unlock_irq(&intfdata->susp_lock); in usb_wwan_resume()