• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/usbip/

Lines Matching defs:interface

27 static int stub_probe(struct usb_interface *interface,
29 static void stub_disconnect(struct usb_interface *interface);
241 struct usb_device *udev = interface_to_usbdev(sdev->interface);
245 ret = usb_lock_device_for_reset(udev, sdev->interface);
288 * @interface: usb_interface of a new device
292 static struct stub_device *stub_device_alloc(struct usb_interface *interface)
295 int busnum = interface_to_busnum(interface);
296 int devnum = interface_to_devnum(interface);
298 dev_dbg(&interface->dev, "allocating stub device");
303 dev_err(&interface->dev, "no memory for stub_device\n");
307 sdev->interface = interface;
341 usbip_udbg("register new interface\n");
362 * active interface). Currently, a userland program must ensure that it
363 * looks at the usbip's sysfs entries of only the first active interface.
369 static int stub_probe(struct usb_interface *interface,
372 struct usb_device *udev = interface_to_usbdev(interface);
374 const char *udev_busid = dev_name(interface->dev.parent);
378 dev_dbg(&interface->dev, "Enter\n");
384 dev_info(&interface->dev,
415 dev_info(&interface->dev,
416 "USB/IP Stub: register a new interface "
418 interface->cur_altsetting->desc.bInterfaceNumber);
421 usb_set_intfdata(interface, sdev);
423 err = stub_add_files(&interface->dev);
425 dev_err(&interface->dev, "create sysfs files for %s\n",
427 usb_set_intfdata(interface, NULL);
437 sdev = stub_device_alloc(interface);
441 dev_info(&interface->dev, "USB/IP Stub: register a new device "
443 interface->cur_altsetting->desc.bInterfaceNumber);
449 usb_set_intfdata(interface, sdev);
454 err = stub_add_files(&interface->dev);
456 dev_err(&interface->dev, "create sysfs files for %s\n",
458 usb_set_intfdata(interface, NULL);
487 static void stub_disconnect(struct usb_interface *interface)
490 const char *udev_busid = dev_name(interface->dev.parent);
502 sdev = usb_get_intfdata(interface);
511 usb_set_intfdata(interface, NULL);
517 stub_remove_files(&interface->dev);