Lines Matching refs:intf
36 struct usb_interface *intf; member
724 err = usb_lock_device_for_reset(udev, devinfo->intf); in uas_eh_bus_reset_handler()
852 struct usb_interface *intf) in uas_switch_interface() argument
856 alt = uas_find_uas_alt_setting(intf); in uas_switch_interface()
861 intf->altsetting[0].desc.bInterfaceNumber, alt); in uas_switch_interface()
870 r = uas_find_endpoints(devinfo->intf->cur_altsetting, eps); in uas_configure_endpoints()
887 devinfo->qdepth = usb_alloc_streams(devinfo->intf, eps + 1, in uas_configure_endpoints()
905 usb_free_streams(devinfo->intf, eps, 3, GFP_NOIO); in uas_free_streams()
908 static int uas_probe(struct usb_interface *intf, const struct usb_device_id *id) in uas_probe() argument
913 struct usb_device *udev = interface_to_usbdev(intf); in uas_probe()
916 if (!uas_use_uas_driver(intf, id, &dev_flags)) in uas_probe()
919 if (uas_switch_interface(udev, intf)) in uas_probe()
934 devinfo->intf = intf; in uas_probe()
953 usb_set_intfdata(intf, shost); in uas_probe()
954 result = scsi_add_host(shost, &intf->dev); in uas_probe()
963 usb_set_intfdata(intf, NULL); in uas_probe()
965 usb_set_interface(udev, intf->altsetting[0].desc.bInterfaceNumber, 0); in uas_probe()
1019 static int uas_pre_reset(struct usb_interface *intf) in uas_pre_reset() argument
1021 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_pre_reset()
1044 static int uas_post_reset(struct usb_interface *intf) in uas_post_reset() argument
1046 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_post_reset()
1071 static int uas_suspend(struct usb_interface *intf, pm_message_t message) in uas_suspend() argument
1073 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_suspend()
1084 static int uas_resume(struct usb_interface *intf) in uas_resume() argument
1089 static int uas_reset_resume(struct usb_interface *intf) in uas_reset_resume() argument
1091 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_reset_resume()
1111 static void uas_disconnect(struct usb_interface *intf) in uas_disconnect() argument
1113 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_disconnect()
1139 struct usb_interface *intf = to_usb_interface(dev); in uas_shutdown() local
1140 struct usb_device *udev = interface_to_usbdev(intf); in uas_shutdown()
1141 struct Scsi_Host *shost = usb_get_intfdata(intf); in uas_shutdown()
1149 usb_set_interface(udev, intf->altsetting[0].desc.bInterfaceNumber, 0); in uas_shutdown()