Lines Matching refs:intf

26 	struct usb_interface *intf;  member
45 static struct usb_device *create_lvs_device(struct usb_interface *intf) in create_lvs_device() argument
49 struct lvs_rh *lvs = usb_get_intfdata(intf); in create_lvs_device()
52 dev_err(&intf->dev, "No LVS device is present\n"); in create_lvs_device()
56 hdev = interface_to_usbdev(intf); in create_lvs_device()
61 dev_err(&intf->dev, "Could not allocate lvs udev\n"); in create_lvs_device()
70 dev_err(&intf->dev, "Failed to enable\n"); in create_lvs_device()
109 struct usb_interface *intf = to_usb_interface(dev); in u3_entry_store() local
110 struct usb_device *hdev = interface_to_usbdev(intf); in u3_entry_store()
111 struct lvs_rh *lvs = usb_get_intfdata(intf); in u3_entry_store()
115 udev = create_lvs_device(intf); in u3_entry_store()
138 struct usb_interface *intf = to_usb_interface(dev); in u3_exit_store() local
139 struct usb_device *hdev = interface_to_usbdev(intf); in u3_exit_store()
140 struct lvs_rh *lvs = usb_get_intfdata(intf); in u3_exit_store()
144 udev = create_lvs_device(intf); in u3_exit_store()
167 struct usb_interface *intf = to_usb_interface(dev); in hot_reset_store() local
168 struct usb_device *hdev = interface_to_usbdev(intf); in hot_reset_store()
169 struct lvs_rh *lvs = usb_get_intfdata(intf); in hot_reset_store()
186 struct usb_interface *intf = to_usb_interface(dev); in u2_timeout_store() local
187 struct usb_device *hdev = interface_to_usbdev(intf); in u2_timeout_store()
188 struct lvs_rh *lvs = usb_get_intfdata(intf); in u2_timeout_store()
215 struct usb_interface *intf = to_usb_interface(dev); in u1_timeout_store() local
216 struct usb_device *hdev = interface_to_usbdev(intf); in u1_timeout_store()
217 struct lvs_rh *lvs = usb_get_intfdata(intf); in u1_timeout_store()
244 struct usb_interface *intf = to_usb_interface(dev); in get_dev_desc_store() local
255 udev = create_lvs_device(intf); in get_dev_desc_store()
298 struct usb_interface *intf = lvs->intf; in lvs_rh_work() local
299 struct usb_device *hdev = interface_to_usbdev(intf); in lvs_rh_work()
351 dev_err(&intf->dev, "urb resubmit error %d\n", ret); in lvs_rh_work()
361 static int lvs_rh_probe(struct usb_interface *intf, in lvs_rh_probe() argument
371 hdev = interface_to_usbdev(intf); in lvs_rh_probe()
372 desc = intf->cur_altsetting; in lvs_rh_probe()
377 dev_err(&intf->dev, "Bind LVS driver with SS root Hub only\n"); in lvs_rh_probe()
381 lvs = devm_kzalloc(&intf->dev, sizeof(*lvs), GFP_KERNEL); in lvs_rh_probe()
385 lvs->intf = intf; in lvs_rh_probe()
386 usb_set_intfdata(intf, lvs); in lvs_rh_probe()
401 dev_err(&intf->dev, "couldn't allocate lvs urb\n"); in lvs_rh_probe()
407 dev_err(&intf->dev, "couldn't create workqueue\n"); in lvs_rh_probe()
414 ret = sysfs_create_group(&intf->dev.kobj, &lvs_attr_group); in lvs_rh_probe()
416 dev_err(&intf->dev, "Failed to create sysfs node %d\n", ret); in lvs_rh_probe()
427 dev_err(&intf->dev, "couldn't submit lvs urb %d\n", ret); in lvs_rh_probe()
434 sysfs_remove_group(&intf->dev.kobj, &lvs_attr_group); in lvs_rh_probe()
442 static void lvs_rh_disconnect(struct usb_interface *intf) in lvs_rh_disconnect() argument
444 struct lvs_rh *lvs = usb_get_intfdata(intf); in lvs_rh_disconnect()
446 sysfs_remove_group(&intf->dev.kobj, &lvs_attr_group); in lvs_rh_disconnect()