Lines Matching refs:rhub
2240 struct xhci_hub *rhub; in xhci_add_in_port() local
2249 rhub = &xhci->usb3_rhub; in xhci_add_in_port()
2260 rhub = &xhci->usb2_rhub; in xhci_add_in_port()
2268 rhub->maj_rev = XHCI_EXT_PORT_MAJOR(temp); in xhci_add_in_port()
2270 if (rhub->min_rev < minor_revision) in xhci_add_in_port()
2271 rhub->min_rev = minor_revision; in xhci_add_in_port()
2336 if (hw_port->rhub) { in xhci_add_in_port()
2341 hw_port->rhub->maj_rev, major_revision); in xhci_add_in_port()
2345 if (hw_port->rhub != rhub && in xhci_add_in_port()
2347 hw_port->rhub->num_ports--; in xhci_add_in_port()
2352 hw_port->rhub = rhub; in xhci_add_in_port()
2354 rhub->num_ports++; in xhci_add_in_port()
2360 struct xhci_hub *rhub, gfp_t flags) in xhci_create_rhub_port_array() argument
2366 if (!rhub->num_ports) in xhci_create_rhub_port_array()
2368 rhub->ports = kcalloc_node(rhub->num_ports, sizeof(*rhub->ports), in xhci_create_rhub_port_array()
2370 if (!rhub->ports) in xhci_create_rhub_port_array()
2374 if (xhci->hw_ports[i].rhub != rhub || in xhci_create_rhub_port_array()
2378 rhub->ports[port_index] = &xhci->hw_ports[i]; in xhci_create_rhub_port_array()
2380 if (port_index == rhub->num_ports) in xhci_create_rhub_port_array()