Lines Matching refs:device_index
1475 uint8_t device_index; in usb_alloc_device() local
1493 for (device_index = USB_ROOT_HUB_ADDR; in usb_alloc_device()
1494 (device_index != bus->devices_max) && in usb_alloc_device()
1495 (bus->devices[device_index] != NULL); in usb_alloc_device()
1496 device_index++) /* nop */; in usb_alloc_device()
1498 if (device_index == bus->devices_max) { in usb_alloc_device()
1590 udev->device_index = device_index; in usb_alloc_device()
1596 device_get_unit(bus->bdev), device_index); in usb_alloc_device()
1608 "(%s, ignored)\n", device_index, in usb_alloc_device()
1618 err = usbd_req_set_address(udev, NULL, device_index); in usb_alloc_device()
1625 udev->address = device_index; in usb_alloc_device()
1830 (parent_hub->hub->ports + port_index) : NULL, udev, device_index); in usb_alloc_device()
1875 pd->dev_index = udev->device_index; in usb_make_dev()
2412 return (udev->device_index); in usbd_get_device_index()