Lines Matching defs:hub
75 static void ohci_da8xx_ocic_handler(struct da8xx_ohci_root_hub *hub,
81 if (hub->get_oci(port) > 0)
82 hub->set_power(port, 0);
88 struct da8xx_ohci_root_hub *hub = dev_get_platdata(dev);
98 * DA8xx only have 1 port connected to the pins but the HC root hub
108 * Since we're providing a board-specific root hub port power control
109 * and over-current reporting, we have to override the HC root hub A
111 * the correct hub descriptor...
114 if (hub->set_power) {
118 if (hub->get_oci) {
123 rh_a |= hub->potpgt << 24;
148 * Update the status data from the hub with the over-current indicator change.
168 * Look at the control requests to the root hub and see if we need to override.
174 struct da8xx_ohci_root_hub *hub = dev_get_platdata(dev);
188 if (hub->get_power && hub->get_power(wIndex) == 0)
192 if (hub->get_oci && hub->get_oci(wIndex) > 0)
217 if (!hub->set_power)
220 return hub->set_power(wIndex, temp) ? -EPIPE : 0;
269 * root hub support
295 struct da8xx_ohci_root_hub *hub = dev_get_platdata(&pdev->dev);
300 if (hub == NULL)
340 if (hub->ocic_notify) {
341 error = hub->ocic_notify(ohci_da8xx_ocic_handler);
364 struct da8xx_ohci_root_hub *hub = dev_get_platdata(&pdev->dev);
366 hub->ocic_notify(NULL);