Lines Matching refs:udev
77 struct usb_device *udev; /* save off the usb device pointer */ member
124 if (dev->udev == NULL) in adu_abort_transfers()
162 adu_debug_data(&dev->udev->dev, __func__, in adu_interrupt_in_callback()
170 dev_dbg(&dev->udev->dev, in adu_interrupt_in_callback()
186 dev_dbg(&dev->udev->dev,"%s reading %d\n", __func__, in adu_interrupt_in_callback()
189 dev_dbg(&dev->udev->dev,"%s : read_buffer overflow\n", in adu_interrupt_in_callback()
206 adu_debug_data(&dev->udev->dev, __func__, in adu_interrupt_out_callback()
212 dev_dbg(&dev->udev->dev, in adu_interrupt_out_callback()
247 if (!dev || !dev->udev) { in adu_open()
259 dev_dbg(&dev->udev->dev, "%s: open count %d\n", __func__, in adu_open()
269 usb_fill_int_urb(dev->interrupt_in_urb, dev->udev, in adu_open()
270 usb_rcvintpipe(dev->udev, in adu_open()
297 dev_dbg(&dev->udev->dev, "%s : open count %d\n", __func__, in adu_release_internal()
324 dev_dbg(&dev->udev->dev, "%s : device not opened\n", __func__); in adu_release()
330 if (dev->udev == NULL) { in adu_release()
359 if (dev->udev == NULL) { in adu_read()
367 dev_dbg(&dev->udev->dev, "%s : read request of 0 bytes\n", in adu_read()
373 dev_dbg(&dev->udev->dev, "%s : about to start looping\n", __func__); in adu_read()
376 dev_dbg(&dev->udev->dev, in adu_read()
402 dev_dbg(&dev->udev->dev, in adu_read()
419 dev_dbg(&dev->udev->dev, in adu_read()
424 dev_dbg(&dev->udev->dev, in adu_read()
430 usb_fill_int_urb(dev->interrupt_in_urb, dev->udev, in adu_read()
431 usb_rcvintpipe(dev->udev, in adu_read()
444 dev_dbg(&dev->udev->dev, in adu_read()
465 dev_dbg(&dev->udev->dev, in adu_read()
472 dev_dbg(&dev->udev->dev, in adu_read()
488 usb_fill_int_urb(dev->interrupt_in_urb, dev->udev, in adu_read()
489 usb_rcvintpipe(dev->udev, in adu_read()
528 if (dev->udev == NULL) { in adu_write()
536 dev_dbg(&dev->udev->dev, "%s : write request of 0 bytes\n", in adu_write()
550 dev_dbg(&dev->udev->dev, "%s : interrupted\n", in adu_write()
557 dev_dbg(&dev->udev->dev, in adu_write()
569 dev_dbg(&dev->udev->dev, in adu_write()
576 dev_dbg(&dev->udev->dev, "%s : sending, count = %Zd\n", in adu_write()
582 dev_dbg(&dev->udev->dev, in adu_write()
594 dev->udev, in adu_write()
595 usb_sndintpipe(dev->udev, dev->interrupt_out_endpoint->bEndpointAddress), in adu_write()
606 dev_err(&dev->udev->dev, "Couldn't submit " in adu_write()
659 struct usb_device *udev = interface_to_usbdev(interface); in adu_probe() local
668 if (udev == NULL) { in adu_probe()
683 dev->udev = udev; in adu_probe()
762 if (!usb_string(udev, udev->descriptor.iSerialNumber, dev->serial_number, in adu_probe()
785 le16_to_cpu(udev->descriptor.idProduct), dev->serial_number, in adu_probe()
808 dev->udev = NULL; /* poison */ in adu_disconnect()