Lines Matching defs:interface
207 static int ati_remote2_probe(struct usb_interface *interface, const struct usb_device_id *id);
208 static void ati_remote2_disconnect(struct usb_interface *interface);
209 static int ati_remote2_suspend(struct usb_interface *interface, pm_message_t message);
210 static int ati_remote2_resume(struct usb_interface *interface);
211 static int ati_remote2_reset_resume(struct usb_interface *interface);
212 static int ati_remote2_pre_reset(struct usb_interface *interface);
213 static int ati_remote2_post_reset(struct usb_interface *interface);
799 static int ati_remote2_probe(struct usb_interface *interface, const struct usb_device_id *id)
801 struct usb_device *udev = interface_to_usbdev(interface);
802 struct usb_host_interface *alt = interface->cur_altsetting;
815 /* Sanity check, first interface must have an endpoint */
817 dev_err(&interface->dev,
818 "%s(): interface 0 must have an endpoint\n", __func__);
822 ar2->intf[0] = interface;
828 dev_err(&interface->dev, "%s(): need 2 interfaces, found %d\n",
838 /* Sanity check, second interface must have an endpoint */
841 dev_err(&interface->dev,
842 "%s(): interface 1 must have an endpoint\n", __func__);
872 usb_set_intfdata(interface, ar2);
874 interface->needs_remote_wakeup = 1;
890 static void ati_remote2_disconnect(struct usb_interface *interface)
893 struct usb_host_interface *alt = interface->cur_altsetting;
898 ar2 = usb_get_intfdata(interface);
899 usb_set_intfdata(interface, NULL);
912 static int ati_remote2_suspend(struct usb_interface *interface,
916 struct usb_host_interface *alt = interface->cur_altsetting;
921 ar2 = usb_get_intfdata(interface);
937 static int ati_remote2_resume(struct usb_interface *interface)
940 struct usb_host_interface *alt = interface->cur_altsetting;
946 ar2 = usb_get_intfdata(interface);
963 static int ati_remote2_reset_resume(struct usb_interface *interface)
966 struct usb_host_interface *alt = interface->cur_altsetting;
972 ar2 = usb_get_intfdata(interface);
994 static int ati_remote2_pre_reset(struct usb_interface *interface)
997 struct usb_host_interface *alt = interface->cur_altsetting;
1002 ar2 = usb_get_intfdata(interface);
1014 static int ati_remote2_post_reset(struct usb_interface *interface)
1017 struct usb_host_interface *alt = interface->cur_altsetting;
1023 ar2 = usb_get_intfdata(interface);