Lines Matching refs:rhub
1051 struct xhci_hub *rhub; in xhci_find_rhub_port() local
1063 rhub = xhci_get_rhub(hcd); in xhci_find_rhub_port()
1064 return rhub->ports[top_dev->portnum - 1]; in xhci_find_rhub_port()
1990 struct xhci_hub *rhub; in xhci_add_in_port() local
1999 rhub = &xhci->usb3_rhub; in xhci_add_in_port()
2019 rhub = &xhci->usb2_rhub; in xhci_add_in_port()
2078 rhub->maj_rev = major_revision; in xhci_add_in_port()
2080 if (rhub->min_rev < minor_revision) in xhci_add_in_port()
2081 rhub->min_rev = minor_revision; in xhci_add_in_port()
2098 if (hw_port->rhub) { in xhci_add_in_port()
2101 hw_port->rhub->maj_rev, major_revision); in xhci_add_in_port()
2105 if (hw_port->rhub != rhub && in xhci_add_in_port()
2107 hw_port->rhub->num_ports--; in xhci_add_in_port()
2112 hw_port->rhub = rhub; in xhci_add_in_port()
2114 rhub->num_ports++; in xhci_add_in_port()
2120 struct xhci_hub *rhub, gfp_t flags) in xhci_create_rhub_port_array() argument
2126 if (!rhub->num_ports) in xhci_create_rhub_port_array()
2128 rhub->ports = kcalloc_node(rhub->num_ports, sizeof(*rhub->ports), in xhci_create_rhub_port_array()
2130 if (!rhub->ports) in xhci_create_rhub_port_array()
2134 if (xhci->hw_ports[i].rhub != rhub || in xhci_create_rhub_port_array()
2138 rhub->ports[port_index] = &xhci->hw_ports[i]; in xhci_create_rhub_port_array()
2140 if (port_index == rhub->num_ports) in xhci_create_rhub_port_array()