Lines Matching refs:num_ports

800 	unsigned int			num_ports;  in xhci_alloc_tt_info()  local
805 num_ports = 1; in xhci_alloc_tt_info()
807 num_ports = hdev->maxchild; in xhci_alloc_tt_info()
809 for (i = 0; i < num_ports; i++, tt_info++) { in xhci_alloc_tt_info()
1865 int i, j, num_ports; in xhci_mem_cleanup() local
1884 num_ports = HCS_MAX_PORTS(xhci->hcs_params1); in xhci_mem_cleanup()
1885 for (i = 0; i < num_ports && xhci->rh_bw; i++) { in xhci_mem_cleanup()
1925 for (i = 0; i < num_ports; i++) { in xhci_mem_cleanup()
1935 xhci->usb2_rhub.num_ports = 0; in xhci_mem_cleanup()
1936 xhci->usb3_rhub.num_ports = 0; in xhci_mem_cleanup()
1978 static void xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports, in xhci_add_in_port() argument
2029 if (port_offset == 0 || (port_offset + port_count - 1) > num_ports) in xhci_add_in_port()
2101 hw_port->rhub->num_ports--; in xhci_add_in_port()
2108 rhub->num_ports++; in xhci_add_in_port()
2120 if (!rhub->num_ports) in xhci_create_rhub_port_array()
2122 rhub->ports = kcalloc_node(rhub->num_ports, sizeof(*rhub->ports), in xhci_create_rhub_port_array()
2134 if (port_index == rhub->num_ports) in xhci_create_rhub_port_array()
2150 unsigned int num_ports; in xhci_setup_port_arrays() local
2156 num_ports = HCS_MAX_PORTS(xhci->hcs_params1); in xhci_setup_port_arrays()
2157 xhci->hw_ports = kcalloc_node(num_ports, sizeof(*xhci->hw_ports), in xhci_setup_port_arrays()
2162 for (i = 0; i < num_ports; i++) { in xhci_setup_port_arrays()
2171 xhci->rh_bw = kcalloc_node(num_ports, sizeof(*xhci->rh_bw), flags, in xhci_setup_port_arrays()
2175 for (i = 0; i < num_ports; i++) { in xhci_setup_port_arrays()
2207 xhci_add_in_port(xhci, num_ports, base + offset, cap_count); in xhci_setup_port_arrays()
2208 if (xhci->usb2_rhub.num_ports + xhci->usb3_rhub.num_ports == in xhci_setup_port_arrays()
2209 num_ports) in xhci_setup_port_arrays()
2214 if (xhci->usb2_rhub.num_ports == 0 && xhci->usb3_rhub.num_ports == 0) { in xhci_setup_port_arrays()
2220 xhci->usb2_rhub.num_ports, xhci->usb3_rhub.num_ports); in xhci_setup_port_arrays()
2225 if (xhci->usb3_rhub.num_ports > USB_SS_MAXPORTS) { in xhci_setup_port_arrays()
2229 xhci->usb3_rhub.num_ports = USB_SS_MAXPORTS; in xhci_setup_port_arrays()
2231 if (xhci->usb2_rhub.num_ports > USB_MAXCHILDREN) { in xhci_setup_port_arrays()
2235 xhci->usb2_rhub.num_ports = USB_MAXCHILDREN; in xhci_setup_port_arrays()
2238 if (!xhci->usb2_rhub.num_ports) in xhci_setup_port_arrays()
2241 if (!xhci->usb3_rhub.num_ports) in xhci_setup_port_arrays()