Lines Matching refs:port

36 static uint32_t usb_reset_port_flag[8];	/* 256 bits for reset port flag refer to USB_MAX_PORTS */
753 * on the specified port number.
757 * Else: Failure. No USB device is present and the USB port should be
761 usbd_req_reset_port(struct usb_device *udev, struct mtx *mtx, uint8_t port)
771 /* clear any leftover port reset changes first */
773 udev, mtx, port, UHF_C_PORT_RESET);
775 /* assert port reset on the given port */
777 udev, mtx, port, UHF_PORT_RESET);
787 err = usbd_req_get_port_status(udev, mtx, &ps, port);
794 /* The port state is unknown until the reset completes.
808 /* clear port reset first */
810 udev, mtx, port, UHF_C_PORT_RESET);
815 usb_reset_port_flag_set(port);
821 /* try to clear port warm reset */
823 udev, mtx, port, UHF_C_BH_PORT_RESET);
835 if (usb_reset_port_flag_is_set(port) == true) {
837 usb_reset_port_flag_clear(port);
845 DPRINTFN(0, "port %d reset returning error=%s\n",
846 port, usbd_errstr(err));
854 * sequence on the specified port number. This kind of reset is not
860 * Else: Failure. No USB device is present and the USB port should be
865 uint8_t port)
875 err = usbd_req_get_port_status(udev, mtx, &ps, port);
892 /* clear any leftover warm port reset changes first */
894 port, UHF_C_BH_PORT_RESET);
896 /* set warm port reset */
898 port, UHF_BH_PORT_RESET);
907 err = usbd_req_get_port_status(udev, mtx, &ps, port);
929 /* clear port reset first */
931 udev, mtx, port, UHF_C_BH_PORT_RESET);
944 DPRINTFN(2, "port %d warm reset returning error=%s\n",
945 port, usbd_errstr(err));
1513 * port reset the USB device will respond at address zero.
1563 struct usb_port_status *ps, uint8_t port)
1570 req.wIndex[0] = port;
1627 uint8_t port, uint8_t timeout)
1634 req.wIndex[0] = port;
1649 uint8_t port, uint8_t timeout)
1656 req.wIndex[0] = port;
1692 uint8_t port, uint16_t sel)
1699 req.wIndex[0] = port;
1714 uint8_t port, uint16_t sel)
1721 req.wIndex[0] = port;
2060 /* Try to reset the parent HUB port. */
2063 DPRINTFN(0, "addr=%d, port reset failed, %s\n",
2069 * After that the port has been reset our device should be at
2168 uint8_t port)
2172 /* For single TT HUBs the port should be 1 */
2176 port = 1;
2181 req.wIndex[0] = port;
2190 * For single TT HUBs the port should be 1.
2198 uint8_t port, uint8_t addr, uint8_t type, uint8_t endpoint)
2203 /* For single TT HUBs the port should be 1 */
2207 port = 1;
2215 req.wIndex[0] = port;
2232 uint8_t port, uint8_t link_state)
2239 req.wIndex[0] = port;
2259 uint8_t port, uint8_t besl, uint8_t addr, uint8_t rwe)
2268 req.wIndex[0] = (port & 0xF) | ((besl & 0xF) << 4);