Lines Matching refs:portno

554 uhub_read_port_status(struct uhub_softc *sc, uint8_t portno)
560 DPRINTFN(4, "port %d, HUB looks dead, too many errors\n", portno);
567 sc->sc_udev, NULL, &ps, portno);
583 portno, sc->sc_st.port_status,
601 uhub_port_debounce(struct uhub_softc *sc, uint8_t portno)
612 ret = uhub_read_port_status(sc, portno);
631 portno, UHF_C_PORT_CONNECTION);
654 uhub_reattach_port(struct uhub_softc *sc, uint8_t portno)
665 DPRINTF("reattaching port %d\n", portno);
670 udev->hub->ports + portno - 1);
677 portno, UHF_C_PORT_CONNECTION);
694 err = uhub_read_port_status(sc, portno);
700 err = uhub_port_debounce(sc, portno);
738 "has no power\n", portno);
744 DPRINTF("Port %d is in Host Mode\n", portno);
753 "suspended, clearing.\n", portno);
755 NULL, portno, UHF_PORT_SUSPEND);
765 err = usbd_req_reset_port(udev, NULL, portno);
770 portno, usbd_errstr(err));
775 err = uhub_read_port_status(sc, portno);
786 portno, sc->sc_st.port_change,
794 DPRINTF("Port %d is in Device Mode\n", portno);
846 portno, 128 - (2 * udev->depth));
850 portno, usbd_errstr(err));
853 portno, 128 - (2 * udev->depth));
857 portno, usbd_errstr(err));
876 udev->depth + 1, portno - 1, portno, speed, mode);
895 portno, UHF_PORT_ENABLE);
900 "disabling port %d\n", usbd_errstr(err), portno);
935 uhub_suspend_resume_port(struct uhub_softc *sc, uint8_t portno)
942 DPRINTF("port %d\n", portno);
946 udev->hub->ports + portno - 1);
952 portno, UHF_C_PORT_SUSPEND);
955 portno, UHF_C_PORT_LINK_STATE);
964 err = uhub_read_port_status(sc, portno);
983 (void)usbd_req_warm_reset_port(udev, NULL, portno);
1060 uint8_t portno;
1088 portno = x + 1;
1094 err = uhub_read_port_status(sc, portno);
1100 DPRINTF("Overcurrent on port %u.\n", portno);
1102 udev, NULL, portno, UHF_C_PORT_OVER_CURRENT);
1111 udev, NULL, portno, UHF_C_PORT_ENABLE);
1123 "port %d\n", portno);
1128 "port %d\n", portno);
1137 err = uhub_reattach_port(sc, portno);
1145 err = uhub_suspend_resume_port(sc, portno);
1267 uint8_t portno;
1506 portno = x + 1;
1513 if (!UHD_NOT_REMOV(&hubdesc20, portno))
1517 if (!UHD_NOT_REMOV(&hubdesc30, portno))
1528 portno, UHF_PORT_POWER);
1532 portno, usbd_errstr(err));
1535 portno);
1543 portno = x + 1;
1544 err = uhub_read_port_status(sc, portno);
1553 cur_info.port_no = portno;
1557 if (portno == 1) { /* if it is the hub 1 port */
1572 parent_info.port_no = portno - 1;
1699 uint8_t portno;
1726 res->portno = x + 1;
1733 res->portno = 0;
1768 res.portno,