Lines Matching refs:num_ports
876 unsigned int num_ports; in xhci_alloc_tt_info() local
880 num_ports = 1; in xhci_alloc_tt_info()
882 num_ports = hdev->maxchild; in xhci_alloc_tt_info()
884 for (i = 0; i < num_ports; i++, tt_info++) { in xhci_alloc_tt_info()
1793 int i, j, num_ports; in xhci_mem_cleanup() local
1818 num_ports = HCS_MAX_PORTS(xhci->hcs_params1); in xhci_mem_cleanup()
1819 for (i = 0; i < num_ports && xhci->rh_bw; i++) { in xhci_mem_cleanup()
1859 for (i = 0; i < num_ports; i++) { in xhci_mem_cleanup()
2072 static void xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports, in xhci_add_in_port() argument
2104 if (port_offset == 0 || (port_offset + port_count - 1) > num_ports) in xhci_add_in_port()
2201 unsigned int num_ports; in xhci_setup_port_arrays() local
2213 num_ports = HCS_MAX_PORTS(xhci->hcs_params1); in xhci_setup_port_arrays()
2214 xhci->port_array = kzalloc(sizeof(*xhci->port_array)*num_ports, flags); in xhci_setup_port_arrays()
2218 xhci->rh_bw = kzalloc(sizeof(*xhci->rh_bw)*num_ports, flags); in xhci_setup_port_arrays()
2221 for (i = 0; i < num_ports; i++) { in xhci_setup_port_arrays()
2259 xhci_add_in_port(xhci, num_ports, addr, in xhci_setup_port_arrays()
2264 == num_ports) in xhci_setup_port_arrays()
2307 for (i = 0; i < num_ports; i++) { in xhci_setup_port_arrays()
2332 for (i = 0; i < num_ports; i++) in xhci_setup_port_arrays()