Lines Matching defs:maxchild

155 	if (!hdev || !hdev->actconfig || !hdev->maxchild)
513 for (i = 0; i < hdev->maxchild; i++) {
562 cursor %= hdev->maxchild;
974 for (port1 = 1; port1 <= hub->hdev->maxchild; port1++)
1175 for (port1 = 1; port1 <= hdev->maxchild; ++port1) {
1380 for (i = 0; i < hdev->maxchild; ++i) {
1399 for (i = 0; i < hub->hdev->maxchild; ++i)
1438 unsigned maxchild;
1469 maxchild = USB_MAXCHILDREN;
1471 maxchild = min_t(unsigned, maxchild, USB_SS_MAXPORTS);
1473 if (hub->descriptor->bNbrPorts > maxchild) {
1497 maxchild = hub->descriptor->bNbrPorts;
1498 dev_info(hub_dev, "%d port%s detected\n", maxchild,
1499 (maxchild == 1) ? "" : "s");
1501 hub->ports = kcalloc(maxchild, sizeof(struct usb_port *), GFP_KERNEL);
1521 for (i = 0; i < maxchild; i++)
1525 portstr[maxchild] = 0;
1637 hdev->bus_mA = full_load * maxchild;
1652 if (remaining < maxchild * unit_load)
1709 for (i = 0; i < maxchild; i++) {
1717 hdev->maxchild = i;
1718 for (i = 0; i < hdev->maxchild; i++) {
1793 port1 = hdev->maxchild;
1794 hdev->maxchild = 0;
1991 info->nports = hdev->maxchild;
2021 if (port1 == 0 || port1 > hdev->maxchild)
2025 * will always have maxchild equal to 0.
2069 for (n = 0; n < hdev->maxchild; n++) {
2099 * which will set the hub's maxchild to 0, further
2115 for (i = 0; i < udev->maxchild; ++i) {
2252 for (i = 0; i < udev->maxchild; i++) {
3902 for (port1 = 1; port1 <= hub->hdev->maxchild; ++port1) {
3924 for (port1 = 1; port1 <= hdev->maxchild; port1++) {
3950 for (port1 = 1; port1 <= hdev->maxchild; port1++) {
3991 for (i = 0; i < hdev->maxchild; ++i) {
5223 for (port1 = 1; port1 <= hdev->maxchild; ++port1) {
5842 hdev->state, hdev->maxchild,
5885 for (i = 1; i <= hdev->maxchild; i++) {
6402 if (port1 < 1 || port1 > hdev->maxchild)
6419 for (i = 1; i <= hdev->maxchild; i++) {
6435 for (i = 1; i <= hdev->maxchild; i++) {