Lines Matching full:hub
3 * usb hub driver head file
29 struct usb_hub_status hub;
126 extern int usb_hub_create_port_device(struct usb_hub *hub,
128 extern void usb_hub_remove_port_device(struct usb_hub *hub,
130 extern int usb_hub_set_port_power(struct usb_device *hdev, struct usb_hub *hub,
133 extern void hub_get(struct usb_hub *hub);
134 extern void hub_put(struct usb_hub *hub);
135 extern int hub_port_debounce(struct usb_hub *hub, int port1,
139 extern int usb_hub_port_status(struct usb_hub *hub, int port1,
141 extern int usb_port_is_power_on(struct usb_hub *hub, unsigned int portstatus);
143 static inline bool hub_is_port_power_switchable(struct usb_hub *hub)
147 if (!hub)
149 hcs = hub->descriptor->wHubCharacteristics;
165 static inline unsigned hub_power_on_good_delay(struct usb_hub *hub)
167 unsigned delay = hub->descriptor->bPwrOn2PwrGood * 2;
169 if (!hub->hdev->parent) /* root hub */
175 static inline int hub_port_debounce_be_connected(struct usb_hub *hub,
178 return hub_port_debounce(hub, port1, true);
181 static inline int hub_port_debounce_be_stable(struct usb_hub *hub,
184 return hub_port_debounce(hub, port1, false);