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()
1863 for (i = 0; i < num_ports; i++) { in xhci_mem_cleanup()
2076 static void xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports, in xhci_add_in_port() argument
2099 if (port_offset == 0 || (port_offset + port_count - 1) > num_ports) in xhci_add_in_port()
2169 unsigned int num_ports; in xhci_setup_port_arrays() local
2181 num_ports = HCS_MAX_PORTS(xhci->hcs_params1); in xhci_setup_port_arrays()
2182 xhci->port_array = kzalloc(sizeof(*xhci->port_array)*num_ports, flags); in xhci_setup_port_arrays()
2186 xhci->rh_bw = kzalloc(sizeof(*xhci->rh_bw)*num_ports, flags); in xhci_setup_port_arrays()
2189 for (i = 0; i < num_ports; i++) { in xhci_setup_port_arrays()
2227 xhci_add_in_port(xhci, num_ports, addr, in xhci_setup_port_arrays()
2232 == num_ports) in xhci_setup_port_arrays()
2275 for (i = 0; i < num_ports; i++) { in xhci_setup_port_arrays()
2300 for (i = 0; i < num_ports; i++) in xhci_setup_port_arrays()