• Home
  • Raw
  • Download

Lines Matching refs:intf

160 	struct usb_interface*	intf;		/* save off the usb interface pointer */  member
200 if (dev->intf) in ld_usb_abort_transfers()
204 if (dev->intf) in ld_usb_abort_transfers()
241 dev_dbg(&dev->intf->dev, in ld_usb_interrupt_in_callback()
258 dev_dbg(&dev->intf->dev, "%s: received %d bytes\n", in ld_usb_interrupt_in_callback()
261 dev_warn(&dev->intf->dev, in ld_usb_interrupt_in_callback()
270 if (dev->interrupt_in_running && !dev->buffer_overflow && dev->intf) { in ld_usb_interrupt_in_callback()
273 dev_err(&dev->intf->dev, in ld_usb_interrupt_in_callback()
296 dev_dbg(&dev->intf->dev, in ld_usb_interrupt_out_callback()
399 if (dev->intf == NULL) { in ld_usb_release()
430 if (!dev->intf) in ld_usb_poll()
469 if (dev->intf == NULL) { in ld_usb_read()
495 dev_warn(&dev->intf->dev, "Read buffer overflow, %zd bytes dropped\n", in ld_usb_read()
549 if (dev->intf == NULL) { in ld_usb_write()
570 dev_warn(&dev->intf->dev, "Write buffer overflow, %zd bytes dropped\n",count-bytes_to_write); in ld_usb_write()
571 dev_dbg(&dev->intf->dev, "%s: count = %zd, bytes_to_write = %zd\n", in ld_usb_write()
581 retval = usb_control_msg(interface_to_usbdev(dev->intf), in ld_usb_write()
582 usb_sndctrlpipe(interface_to_usbdev(dev->intf), 0), in ld_usb_write()
590 dev_err(&dev->intf->dev, in ld_usb_write()
598 interface_to_usbdev(dev->intf), in ld_usb_write()
599 usb_sndintpipe(interface_to_usbdev(dev->intf), in ld_usb_write()
613 dev_err(&dev->intf->dev, in ld_usb_write()
654 static int ld_usb_probe(struct usb_interface *intf, const struct usb_device_id *id) in ld_usb_probe() argument
656 struct usb_device *udev = interface_to_usbdev(intf); in ld_usb_probe()
671 dev->intf = intf; in ld_usb_probe()
688 iface_desc = intf->cur_altsetting; in ld_usb_probe()
701 dev_err(&intf->dev, "Interrupt in endpoint not found\n"); in ld_usb_probe()
705 dev_warn(&intf->dev, "Interrupt out endpoint not found (using control endpoint instead)\n"); in ld_usb_probe()
730 usb_set_intfdata(intf, dev); in ld_usb_probe()
732 retval = usb_register_dev(intf, &ld_usb_class); in ld_usb_probe()
735 dev_err(&intf->dev, "Not able to get a minor for this device.\n"); in ld_usb_probe()
736 usb_set_intfdata(intf, NULL); in ld_usb_probe()
741 dev_info(&intf->dev, "LD USB Device #%d now attached to major %d minor %d\n", in ld_usb_probe()
742 (intf->minor - USB_LD_MINOR_BASE), USB_MAJOR, intf->minor); in ld_usb_probe()
758 static void ld_usb_disconnect(struct usb_interface *intf) in ld_usb_disconnect() argument
763 dev = usb_get_intfdata(intf); in ld_usb_disconnect()
764 usb_set_intfdata(intf, NULL); in ld_usb_disconnect()
766 minor = intf->minor; in ld_usb_disconnect()
769 usb_deregister_dev(intf, &ld_usb_class); in ld_usb_disconnect()
778 dev->intf = NULL; in ld_usb_disconnect()
785 dev_info(&intf->dev, "LD USB Device #%d now disconnected\n", in ld_usb_disconnect()