Lines Matching refs:hub
101 extern int hub_reset(struct usb_hub *hub);
106 extern void hub_power_on(struct usb_hub *hub);
107 extern int hub_hub_status(struct usb_hub *hub,
121 struct usb_hub *hub; in has_hub_events_Port2() local
135 hub = list_entry(tmp, struct usb_hub, event_list); in has_hub_events_Port2()
136 dev = interface_to_usbdev(hub->intf); in has_hub_events_Port2()
160 struct usb_hub *hub; in hub_events_Port2() local
180 hub = list_entry(tmp, struct usb_hub, event_list); in hub_events_Port2()
182 dev = interface_to_usbdev(hub->intf); in hub_events_Port2()
193 if (hub->error) { in hub_events_Port2()
194 dev_dbg (&hub->intf->dev, "resetting for error %d\n", in hub_events_Port2()
195 hub->error); in hub_events_Port2()
197 if (hub_reset(hub)) { in hub_events_Port2()
198 dev_dbg (&hub->intf->dev, in hub_events_Port2()
200 up(&hub->khubd_sem); in hub_events_Port2()
205 hub->nerrors = 0; in hub_events_Port2()
206 hub->error = 0; in hub_events_Port2()
258 for (i = 0; i < hub->descriptor.bNbrPorts; i++) { in hub_events_Port2()
264 hub_port_connect_change(hub, i, portstatus, portchange); in hub_events_Port2()
324 dev_err (&hub->intf->dev, in hub_events_Port2()
329 hub_port_connect_change(hub, in hub_events_Port2()
335 dev_dbg (&hub->intf->dev, in hub_events_Port2()
392 dev_err (&hub->intf->dev, in hub_events_Port2()
397 hub_power_on(hub); in hub_events_Port2()
401 dev_dbg (&hub->intf->dev, in hub_events_Port2()
459 if (hub_hub_status(hub, &hubstatus, &hubchange) < 0) { in hub_events_Port2()
460 dev_err (&hub->intf->dev, "get_hub_status failed%s","\n"); in hub_events_Port2()
464 dev_dbg (&hub->intf->dev, "power change%s","\n"); in hub_events_Port2()
468 dev_dbg (&hub->intf->dev, "overcurrent change%s","\n"); in hub_events_Port2()
471 hub_power_on(hub); in hub_events_Port2()
474 up(&hub->khubd_sem); in hub_events_Port2()