Lines Matching refs:intf

157 		struct usb_interface *intf)  in us_set_lock_class()  argument
159 struct usb_device *udev = interface_to_usbdev(intf); in us_set_lock_class()
164 if (config->interface[i] == intf) in us_set_lock_class()
176 struct usb_interface *intf) in us_set_lock_class() argument
435 static int associate_dev(struct us_data *us, struct usb_interface *intf) in associate_dev() argument
438 us->pusb_dev = interface_to_usbdev(intf); in associate_dev()
439 us->pusb_intf = intf; in associate_dev()
440 us->ifnum = intf->cur_altsetting->desc.bInterfaceNumber; in associate_dev()
446 intf->cur_altsetting->desc.bInterfaceSubClass, in associate_dev()
447 intf->cur_altsetting->desc.bInterfaceProtocol); in associate_dev()
450 usb_set_intfdata(intf, us); in associate_dev()
918 static unsigned int usb_stor_sg_tablesize(struct usb_interface *intf) in usb_stor_sg_tablesize() argument
920 struct usb_device *usb_dev = interface_to_usbdev(intf); in usb_stor_sg_tablesize()
930 struct usb_interface *intf, in usb_stor_probe1() argument
939 dev_info(&intf->dev, "USB Mass Storage device detected\n"); in usb_stor_probe1()
947 dev_warn(&intf->dev, "Unable to allocate the scsi host\n"); in usb_stor_probe1()
955 host->sg_tablesize = usb_stor_sg_tablesize(intf); in usb_stor_probe1()
958 us_set_lock_class(&us->dev_mutex, intf); in usb_stor_probe1()
965 result = associate_dev(us, intf); in usb_stor_probe1()
1073 void usb_stor_disconnect(struct usb_interface *intf) in usb_stor_disconnect() argument
1075 struct us_data *us = usb_get_intfdata(intf); in usb_stor_disconnect()
1085 static int storage_probe(struct usb_interface *intf, in storage_probe() argument
1095 if (uas_use_uas_driver(intf, id, NULL)) in storage_probe()
1103 if (usb_usual_ignore_device(intf)) in storage_probe()
1120 …dev_dbg(&intf->dev, "Use Bulk-Only transport with the Transparent SCSI protocol for dynamic id: 0x… in storage_probe()
1124 result = usb_stor_probe1(&us, intf, id, unusual_dev, in storage_probe()