Lines Matching defs:num_ports

811 	unsigned int			num_ports;
816 num_ports = 1;
818 num_ports = hdev->maxchild;
820 for (i = 0; i < num_ports; i++, tt_info++) {
1876 int i, j, num_ports;
1895 num_ports = HCS_MAX_PORTS(xhci->hcs_params1);
1896 for (i = 0; i < num_ports && xhci->rh_bw; i++) {
1936 for (i = 0; i < num_ports; i++) {
1946 xhci->usb2_rhub.num_ports = 0;
1947 xhci->usb3_rhub.num_ports = 0;
1989 static void xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports,
2040 if (port_offset == 0 || (port_offset + port_count - 1) > num_ports)
2112 hw_port->rhub->num_ports--;
2119 rhub->num_ports++;
2131 if (!rhub->num_ports)
2133 rhub->ports = kcalloc_node(rhub->num_ports, sizeof(*rhub->ports),
2145 if (port_index == rhub->num_ports)
2161 unsigned int num_ports;
2167 num_ports = HCS_MAX_PORTS(xhci->hcs_params1);
2168 xhci->hw_ports = kcalloc_node(num_ports, sizeof(*xhci->hw_ports),
2173 for (i = 0; i < num_ports; i++) {
2182 xhci->rh_bw = kcalloc_node(num_ports, sizeof(*xhci->rh_bw), flags,
2186 for (i = 0; i < num_ports; i++) {
2218 xhci_add_in_port(xhci, num_ports, base + offset, cap_count);
2219 if (xhci->usb2_rhub.num_ports + xhci->usb3_rhub.num_ports ==
2220 num_ports)
2225 if (xhci->usb2_rhub.num_ports == 0 && xhci->usb3_rhub.num_ports == 0) {
2231 xhci->usb2_rhub.num_ports, xhci->usb3_rhub.num_ports);
2236 if (xhci->usb3_rhub.num_ports > USB_SS_MAXPORTS) {
2240 xhci->usb3_rhub.num_ports = USB_SS_MAXPORTS;
2242 if (xhci->usb2_rhub.num_ports > USB_MAXCHILDREN) {
2246 xhci->usb2_rhub.num_ports = USB_MAXCHILDREN;
2249 if (!xhci->usb2_rhub.num_ports)
2252 if (!xhci->usb3_rhub.num_ports)