Home
last modified time | relevance | path

Searched refs:powersrc (Results 1 – 5 of 5) sorted by relevance

/openbsd/sys/dev/usb/
H A Dusb_subr.c719 if (dev->powersrc == NULL) { in usbd_set_config_index()
726 if (power > dev->powersrc->power) { in usbd_set_config_index()
727 DPRINTF(("power exceeded %d %d\n", power,dev->powersrc->power)); in usbd_set_config_index()
734 power, dev->powersrc->power); in usbd_set_config_index()
1064 dev->powersrc = up; in usbd_new_device()
1301 di->udi_port = dev->powersrc ? dev->powersrc->portno : 0; in usbd_fill_deviceinfo()
1344 r = dev->powersrc ? dev->powersrc->portno : 0; in usbd_get_routestring()
1346 port = hub->powersrc ? hub->powersrc->portno : 0; in usbd_get_routestring()
1354 port = (hub && hub->powersrc) ? hub->powersrc->portno : 0; in usbd_get_routestring()
1375 dev->powersrc == NULL) in usbd_get_location()
H A Duhub.c228 if (!dev->self_powered && dev->powersrc->parent != NULL && in uhub_attach()
229 !dev->powersrc->parent->self_powered) { in uhub_attach()
328 if (dev->powersrc->parent != NULL) in uhub_attach()
H A Dusbdivar.h154 struct usbd_port *powersrc; /* upstream hub port, or 0 */ member
H A Dusb.c871 dev->powersrc->reattach = 1; in usb_needs_reattach()
H A Dxhci.c1496 uint32_t port = hub->powersrc->portno; in xhci_context_setup()
1503 rhport = hub->powersrc->portno; in xhci_context_setup()
1611 dev->powersrc->portno, dev->speed, xp->slot, xp->dci, in xhci_pipe_init()