Lines Matching refs:maxchild
120 if (!hdev || !hdev->actconfig || !hdev->maxchild) in usb_hub_to_struct_hub()
458 for (i = 0; i < hdev->maxchild; i++) { in led_work()
507 cursor %= hdev->maxchild; in led_work()
847 for (port1 = 1; port1 <= hub->hdev->maxchild; port1++) in hub_power_on()
1128 for (port1 = 1; port1 <= hdev->maxchild; ++port1) { in hub_activate()
1309 for (i = 0; i < hdev->maxchild; ++i) { in hub_quiesce()
1327 for (i = 0; i < hub->hdev->maxchild; ++i) in hub_pm_barrier_for_all_ports()
1366 unsigned maxchild; in hub_configure() local
1405 maxchild = hub->descriptor->bNbrPorts; in hub_configure()
1406 dev_info(hub_dev, "%d port%s detected\n", maxchild, in hub_configure()
1407 (maxchild == 1) ? "" : "s"); in hub_configure()
1409 hub->ports = kzalloc(maxchild * sizeof(struct usb_port *), GFP_KERNEL); in hub_configure()
1429 for (i = 0; i < maxchild; i++) in hub_configure()
1433 portstr[maxchild] = 0; in hub_configure()
1545 hdev->bus_mA = full_load * maxchild; in hub_configure()
1560 if (remaining < maxchild * unit_load) in hub_configure()
1617 for (i = 0; i < maxchild; i++) { in hub_configure()
1625 hdev->maxchild = i; in hub_configure()
1626 for (i = 0; i < hdev->maxchild; i++) { in hub_configure()
1691 port1 = hdev->maxchild; in hub_disconnect()
1692 hdev->maxchild = 0; in hub_disconnect()
1862 info->nports = hdev->maxchild; in hub_ioctl()
1892 if (port1 == 0 || port1 > hdev->maxchild) in find_port_owner()
1940 for (n = 0; n < hdev->maxchild; n++) { in usb_hub_release_all_ports()
1963 for (i = 0; i < udev->maxchild; ++i) { in recursively_mark_NOTATTACHED()
2120 for (i = 0; i < udev->maxchild; i++) { in hub_disconnect_children()
3545 for (port1 = 1; port1 <= hub->hdev->maxchild; ++port1) { in check_ports_changed()
3568 for (port1 = 1; port1 <= hdev->maxchild; port1++) { in hub_suspend()
3594 for (port1 = 1; port1 <= hdev->maxchild; port1++) { in hub_suspend()
4625 for (port1 = 1; port1 <= hdev->maxchild; ++port1) { in hub_power_remaining()
5055 hdev->state, hdev->maxchild, in hub_event()
5098 for (i = 1; i <= hdev->maxchild; i++) { in hub_event()
5663 if (port1 < 1 || port1 > hdev->maxchild) in usb_hub_find_child()
5680 for (i = 1; i <= hdev->maxchild; i++) { in usb_hub_adjust_deviceremovable()
5696 for (i = 1; i <= hdev->maxchild; i++) { in usb_hub_adjust_deviceremovable()