Lines Matching refs:rhub
2137 struct xhci_hub *rhub; in xhci_add_in_port() local
2146 rhub = &xhci->usb3_rhub; in xhci_add_in_port()
2157 rhub = &xhci->usb2_rhub; in xhci_add_in_port()
2165 rhub->maj_rev = XHCI_EXT_PORT_MAJOR(temp); in xhci_add_in_port()
2167 if (rhub->min_rev < minor_revision) in xhci_add_in_port()
2168 rhub->min_rev = minor_revision; in xhci_add_in_port()
2233 if (hw_port->rhub) { in xhci_add_in_port()
2238 hw_port->rhub->maj_rev, major_revision); in xhci_add_in_port()
2242 if (hw_port->rhub != rhub && in xhci_add_in_port()
2244 hw_port->rhub->num_ports--; in xhci_add_in_port()
2249 hw_port->rhub = rhub; in xhci_add_in_port()
2251 rhub->num_ports++; in xhci_add_in_port()
2257 struct xhci_hub *rhub, gfp_t flags) in xhci_create_rhub_port_array() argument
2263 if (!rhub->num_ports) in xhci_create_rhub_port_array()
2265 rhub->ports = kcalloc_node(rhub->num_ports, sizeof(*rhub->ports), in xhci_create_rhub_port_array()
2267 if (!rhub->ports) in xhci_create_rhub_port_array()
2271 if (xhci->hw_ports[i].rhub != rhub || in xhci_create_rhub_port_array()
2275 rhub->ports[port_index] = &xhci->hw_ports[i]; in xhci_create_rhub_port_array()
2277 if (port_index == rhub->num_ports) in xhci_create_rhub_port_array()