Lines Matching refs:intf
26 struct usb_interface *intf; member
43 static struct usb_device *create_lvs_device(struct usb_interface *intf) in create_lvs_device() argument
47 struct lvs_rh *lvs = usb_get_intfdata(intf); in create_lvs_device()
50 dev_err(&intf->dev, "No LVS device is present\n"); in create_lvs_device()
54 hdev = interface_to_usbdev(intf); in create_lvs_device()
59 dev_err(&intf->dev, "Could not allocate lvs udev\n"); in create_lvs_device()
68 dev_err(&intf->dev, "Failed to enable\n"); in create_lvs_device()
107 struct usb_interface *intf = to_usb_interface(dev); in u3_entry_store() local
108 struct usb_device *hdev = interface_to_usbdev(intf); in u3_entry_store()
109 struct lvs_rh *lvs = usb_get_intfdata(intf); in u3_entry_store()
113 udev = create_lvs_device(intf); in u3_entry_store()
136 struct usb_interface *intf = to_usb_interface(dev); in u3_exit_store() local
137 struct usb_device *hdev = interface_to_usbdev(intf); in u3_exit_store()
138 struct lvs_rh *lvs = usb_get_intfdata(intf); in u3_exit_store()
142 udev = create_lvs_device(intf); in u3_exit_store()
165 struct usb_interface *intf = to_usb_interface(dev); in hot_reset_store() local
166 struct usb_device *hdev = interface_to_usbdev(intf); in hot_reset_store()
167 struct lvs_rh *lvs = usb_get_intfdata(intf); in hot_reset_store()
184 struct usb_interface *intf = to_usb_interface(dev); in u2_timeout_store() local
185 struct usb_device *hdev = interface_to_usbdev(intf); in u2_timeout_store()
186 struct lvs_rh *lvs = usb_get_intfdata(intf); in u2_timeout_store()
213 struct usb_interface *intf = to_usb_interface(dev); in u1_timeout_store() local
214 struct usb_device *hdev = interface_to_usbdev(intf); in u1_timeout_store()
215 struct lvs_rh *lvs = usb_get_intfdata(intf); in u1_timeout_store()
242 struct usb_interface *intf = to_usb_interface(dev); in get_dev_desc_store() local
251 udev = create_lvs_device(intf); in get_dev_desc_store()
294 struct usb_interface *intf = lvs->intf; in lvs_rh_work() local
295 struct usb_device *hdev = interface_to_usbdev(intf); in lvs_rh_work()
347 dev_err(&intf->dev, "urb resubmit error %d\n", ret); in lvs_rh_work()
357 static int lvs_rh_probe(struct usb_interface *intf, in lvs_rh_probe() argument
367 hdev = interface_to_usbdev(intf); in lvs_rh_probe()
368 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()
405 ret = sysfs_create_group(&intf->dev.kobj, &lvs_attr_group); in lvs_rh_probe()
407 dev_err(&intf->dev, "Failed to create sysfs node %d\n", ret); in lvs_rh_probe()
418 dev_err(&intf->dev, "couldn't submit lvs urb %d\n", ret); in lvs_rh_probe()
425 sysfs_remove_group(&intf->dev.kobj, &lvs_attr_group); in lvs_rh_probe()
431 static void lvs_rh_disconnect(struct usb_interface *intf) in lvs_rh_disconnect() argument
433 struct lvs_rh *lvs = usb_get_intfdata(intf); in lvs_rh_disconnect()
435 sysfs_remove_group(&intf->dev.kobj, &lvs_attr_group); in lvs_rh_disconnect()