Lines Matching refs:intf
580 struct usb_interface *intf; in kick_hub_wq() local
593 intf = to_usb_interface(hub->intfdev); in kick_hub_wq()
594 usb_autopm_get_interface_no_resume(intf); in kick_hub_wq()
601 usb_autopm_put_interface_async(intf); in kick_hub_wq()
1005 struct usb_interface *intf; in usb_remove_device() local
1010 intf = to_usb_interface(hub->intfdev); in usb_remove_device()
1012 usb_autopm_get_interface(intf); in usb_remove_device()
1015 usb_autopm_put_interface(intf); in usb_remove_device()
1332 static int hub_pre_reset(struct usb_interface *intf) in hub_pre_reset() argument
1334 struct usb_hub *hub = usb_get_intfdata(intf); in hub_pre_reset()
1343 static int hub_post_reset(struct usb_interface *intf) in hub_post_reset() argument
1345 struct usb_hub *hub = usb_get_intfdata(intf); in hub_post_reset()
1671 static void hub_disconnect(struct usb_interface *intf) in hub_disconnect() argument
1673 struct usb_hub *hub = usb_get_intfdata(intf); in hub_disconnect()
1674 struct usb_device *hdev = interface_to_usbdev(intf); in hub_disconnect()
1693 usb_set_intfdata(intf, NULL); in hub_disconnect()
1710 pm_suspend_ignore_children(&intf->dev, false); in hub_disconnect()
1714 static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id) in hub_probe() argument
1721 desc = intf->cur_altsetting; in hub_probe()
1722 hdev = interface_to_usbdev(intf); in hub_probe()
1780 dev_err(&intf->dev, in hub_probe()
1787 dev_warn(&intf->dev, "ignoring external hub\n"); in hub_probe()
1797 dev_err(&intf->dev, "bad descriptor, ignoring hub\n"); in hub_probe()
1812 dev_info(&intf->dev, "USB hub found\n"); in hub_probe()
1816 dev_dbg(&intf->dev, "couldn't kmalloc hub struct\n"); in hub_probe()
1821 hub->intfdev = &intf->dev; in hub_probe()
1826 usb_get_intf(intf); in hub_probe()
1829 usb_set_intfdata(intf, hub); in hub_probe()
1830 intf->needs_remote_wakeup = 1; in hub_probe()
1831 pm_suspend_ignore_children(&intf->dev, true); in hub_probe()
1842 hub_disconnect(intf); in hub_probe()
1847 hub_ioctl(struct usb_interface *intf, unsigned int code, void *user_data) in hub_ioctl() argument
1849 struct usb_device *hdev = interface_to_usbdev(intf); in hub_ioctl()
3556 static int hub_suspend(struct usb_interface *intf, pm_message_t msg) in hub_suspend() argument
3558 struct usb_hub *hub = usb_get_intfdata(intf); in hub_suspend()
3604 dev_dbg(&intf->dev, "%s\n", __func__); in hub_suspend()
3611 static int hub_resume(struct usb_interface *intf) in hub_resume() argument
3613 struct usb_hub *hub = usb_get_intfdata(intf); in hub_resume()
3615 dev_dbg(&intf->dev, "%s\n", __func__); in hub_resume()
3620 static int hub_reset_resume(struct usb_interface *intf) in hub_reset_resume() argument
3622 struct usb_hub *hub = usb_get_intfdata(intf); in hub_reset_resume()
3624 dev_dbg(&intf->dev, "%s\n", __func__); in hub_reset_resume()
5042 struct usb_interface *intf; in hub_event() local
5052 intf = to_usb_interface(hub_dev); in hub_event()
5074 ret = usb_autopm_get_interface(intf); in hub_event()
5153 usb_autopm_put_interface_no_suspend(intf); in hub_event()
5158 usb_autopm_put_interface(intf); in hub_event()
5452 struct usb_interface *intf = config->interface[i]; in usb_reset_and_verify_device() local
5455 desc = &intf->cur_altsetting->desc; in usb_reset_and_verify_device()
5457 usb_disable_interface(udev, intf, true); in usb_reset_and_verify_device()
5458 usb_enable_interface(udev, intf, true); in usb_reset_and_verify_device()
5465 intf->resetting_device = 1; in usb_reset_and_verify_device()
5468 intf->resetting_device = 0; in usb_reset_and_verify_device()
5479 for (j = 0; j < intf->cur_altsetting->desc.bNumEndpoints; j++) in usb_reset_and_verify_device()
5480 intf->cur_altsetting->endpoint[j].streams = 0; in usb_reset_and_verify_device()