Lines Matching refs:up

257 	struct usb_port *up;
283 up = hub->ports + port - 1;
290 if (up->req_reset_tt.bRequest != 0) {
310 up->req_reset_tt = req;
323 struct usb_port *up;
338 up = udev->hub->ports + x;
340 if (up->req_reset_tt.bRequest == 0)
344 usbd_copy_in(xfer->frbuffers, 0, &up->req_reset_tt,
345 sizeof(up->req_reset_tt));
347 (void)memset_s(&up->req_reset_tt, sizeof(up->req_reset_tt), 0, sizeof(up->req_reset_tt));
350 usbd_xfer_set_frame_len(xfer, 0, sizeof(up->req_reset_tt));
381 struct usb_port *up;
395 up = hub->ports + x;
396 child = usb_bus_port_get_device(udev->bus, up);
495 uhub_explore_sub(struct uhub_softc *sc, struct usb_port *up)
513 child = usb_bus_port_get_device(bus, up);
760 /* wait for maximum device power up time */
784 DPRINTFN(0, "giving up port %d reset - "
1015 * happened. "ptr" and "len" makes up the Root HUB interrupt
1058 struct usb_port *up;
1087 up = hub->ports + x;
1125 if (up->restartcnt == USB_RESTART_MAX) {
1127 DPRINTFN(0, "port error, giving up "
1132 up->restartcnt++;
1151 if (uhub_explore_sub(sc, up) == USB_ERR_NORMAL_COMPLETION) {
1153 up->restartcnt = 0;
1453 /* set up interrupt pipe */
1501 /* set up data structures */
1502 struct usb_port *up = hub->ports + x;
1504 up->device_index = 0;
1505 up->restartcnt = 0;
2267 usb_bus_port_get_device(struct usb_bus *bus, struct usb_port *up)
2269 if ((bus == NULL) || (up == NULL)) {
2273 if (up->device_index == 0) {
2277 return (bus->devices[up->device_index]);
2286 usb_bus_port_set_device(struct usb_bus *bus, struct usb_port *up,
2297 if (up) {
2299 up->device_index = device_index;
2301 device_index = up->device_index;
2302 up->device_index = 0;
2533 * This function returns non-zero if the current device should wake up.
2745 * not wake it up either!