Lines Matching defs:child

252 uhub_tt_buffer_reset_async_locked(struct usb_device *child, struct usb_endpoint *ep)
261 if ((child == NULL) || (ep == NULL))
264 udev = child->parent_hs_hub;
265 port = child->hs_port_no;
273 ((child->speed != USB_SPEED_LOW) &&
274 (child->speed != USB_SPEED_FULL)) ||
275 (child->flags.usb_mode != USB_MODE_HOST) ||
299 ((child->address & 0x7F) << 4) |
379 struct usb_device *child;
396 child = usb_bus_port_get_device(udev->bus, up);
397 if ((child != NULL) &&
398 (child->flags.usb_mode == USB_MODE_HOST) &&
399 (child->speed == speed))
407 uhub_explore_handle_re_enumerate(struct usb_device *child)
413 if (child->flags.usb_mode != USB_MODE_HOST)
416 do_unlock = usbd_enum_lock(child);
417 switch (child->re_enumerate_wait) {
419 err = usbd_set_config_index(child,
425 if (child->parent_hub == NULL) {
430 err = usbd_req_re_enumerate(child, NULL);
433 err = usbd_set_config_index(child, 0);
435 err = usb_probe_and_attach(child,
438 child->re_enumerate_wait = USB_RE_ENUM_DONE;
443 err = usbd_set_config_index(child,
449 if (child->parent_hub == NULL) {
455 err = usbd_req_clear_port_feature(child->parent_hub,
456 NULL, child->port_no, UHF_PORT_ENABLE);
462 child->re_enumerate_wait = USB_RE_ENUM_DONE;
466 err = usbd_set_config_index(child,
467 child->next_config_index);
472 err = usb_probe_and_attach(child,
475 child->re_enumerate_wait = USB_RE_ENUM_DONE;
479 child->re_enumerate_wait = USB_RE_ENUM_DONE;
484 usbd_enum_unlock(child);
502 struct usb_device *child;
513 child = usb_bus_port_get_device(bus, up);
514 if (child == NULL) {
524 uhub_explore_handle_re_enumerate(child);
528 if (child->driver_added_refcount != refcount) {
529 child->driver_added_refcount = refcount;
530 err = usb_probe_and_attach(child,
538 if (child->flags.usb_mode == USB_MODE_DEVICE)
539 usbd_ctrl_transfer_setup(child);
543 if (child->hub)
544 err = (child->hub->explore) (child);
656 struct usb_device *child;
669 child = usb_bus_port_get_device(udev->bus,
682 /* check if there is a child */
684 if (child != NULL) {
688 usb_free_device(child, 0);
689 child = NULL;
874 /* need to create a new child */
875 child = usb_alloc_device(sc->sc_dev, udev->bus, udev,
877 if (child == NULL) {
884 if (child != NULL) {
888 usb_free_device(child, 0);
889 child = NULL;
937 struct usb_device *child;
945 child = usb_bus_port_get_device(udev->bus,
996 if (child) {
1003 usb_dev_resume_peer(child);
1004 else if (child->flags.usb_mode == USB_MODE_DEVICE)
1005 usb_dev_suspend_peer(child);
1075 /* need to wait until the child signals resume */
1617 struct usb_device *child;
1645 child = usb_bus_port_get_device(bus, hub->ports + x);
1647 if (child == NULL) {
1654 usb_free_device(child, 0);
1704 uhub_find_iface_index(struct usb_hub *hub, device_t child,
1723 (iface->subdev == child)) {
1737 uhub_child_location_string(device_t parent, device_t child,
1757 uhub_find_iface_index(hub, child, &res);
1777 uhub_child_pnpinfo_string(device_t parent, device_t child,
1798 uhub_find_iface_index(hub, child, &res);
2833 struct usb_device *child;
2860 child = usb_bus_port_get_device(udev->bus,
2863 if (child == NULL)
2866 if (child->flags.self_suspended)