Lines Matching refs:intf

155 		struct usb_interface *intf)  in us_set_lock_class()  argument
157 struct usb_device *udev = interface_to_usbdev(intf); in us_set_lock_class()
162 if (config->interface[i] == intf) in us_set_lock_class()
174 struct usb_interface *intf) in us_set_lock_class() argument
433 static int associate_dev(struct us_data *us, struct usb_interface *intf) in associate_dev() argument
436 us->pusb_dev = interface_to_usbdev(intf); in associate_dev()
437 us->pusb_intf = intf; in associate_dev()
438 us->ifnum = intf->cur_altsetting->desc.bInterfaceNumber; in associate_dev()
444 intf->cur_altsetting->desc.bInterfaceSubClass, in associate_dev()
445 intf->cur_altsetting->desc.bInterfaceProtocol); in associate_dev()
448 usb_set_intfdata(intf, us); in associate_dev()
916 static unsigned int usb_stor_sg_tablesize(struct usb_interface *intf) in usb_stor_sg_tablesize() argument
918 struct usb_device *usb_dev = interface_to_usbdev(intf); in usb_stor_sg_tablesize()
928 struct usb_interface *intf, in usb_stor_probe1() argument
936 dev_info(&intf->dev, "USB Mass Storage device detected\n"); in usb_stor_probe1()
944 dev_warn(&intf->dev, "Unable to allocate the scsi host\n"); in usb_stor_probe1()
952 host->sg_tablesize = usb_stor_sg_tablesize(intf); in usb_stor_probe1()
955 us_set_lock_class(&us->dev_mutex, intf); in usb_stor_probe1()
962 result = associate_dev(us, intf); in usb_stor_probe1()
1070 void usb_stor_disconnect(struct usb_interface *intf) in usb_stor_disconnect() argument
1072 struct us_data *us = usb_get_intfdata(intf); in usb_stor_disconnect()
1080 static int storage_probe(struct usb_interface *intf, in storage_probe() argument
1090 if (uas_use_uas_driver(intf, id, NULL)) in storage_probe()
1098 if (usb_usual_ignore_device(intf)) in storage_probe()
1115 …dev_dbg(&intf->dev, "Use Bulk-Only transport with the Transparent SCSI protocol for dynamic id: 0x… in storage_probe()
1119 result = usb_stor_probe1(&us, intf, id, unusual_dev); in storage_probe()