Lines Matching refs:req
767 struct LIBUSB20_CONTROL_SETUP_DECODED req;
777 LIBUSB20_INIT(LIBUSB20_CONTROL_SETUP, &req);
783 req.bmRequestType =
787 req.bRequest = LIBUSB20_REQUEST_GET_DESCRIPTOR;
788 req.wValue = (LIBUSB20_DT_STRING << 8) | str_index;
789 req.wIndex = langid;
790 req.wLength = 4; /* bytes */
792 error = libusb20_dev_request_sync(pdev, &req,
797 req.wLength = *(uint8_t *)ptr; /* bytes */
798 if (req.wLength > len) {
800 req.wLength = len;
802 error = libusb20_dev_request_sync(pdev, &req,