Lines Matching refs:pSetup

1832     PVUSBSETUP pSetup = (PVUSBSETUP)&pUrb->abData[0];
1837 pSetup->bmRequestType, pSetup->bRequest, pSetup->wValue,
1838 pSetup->wIndex, pSetup->wLength));
1844 switch (pSetup->bRequest)
1849 uint8_t u8ReportType = RT_HI_U8(pSetup->wValue);
1850 uint8_t u8ReportID = RT_LO_U8(pSetup->wValue);
1852 pSetup->bRequest == GET_REPORT? "GET_REPORT": "SET_REPORT",
1855 if (pSetup->bRequest == GET_REPORT)
1921 pSetup->bmRequestType, pSetup->bRequest, pSetup->wValue,
1922 pSetup->wIndex, pSetup->wLength));
1935 PVUSBSETUP pSetup = (PVUSBSETUP)&pUrb->abData[0];
1936 AssertReturn(pUrb->cbData >= sizeof(*pSetup), VERR_VUSB_FAILED_TO_QUEUE_URB);
1938 if ((pSetup->bmRequestType & VUSB_REQ_MASK) == VUSB_REQ_STANDARD)
1940 switch (pSetup->bRequest)
1944 switch (pSetup->bmRequestType)
1948 switch (pSetup->wValue >> 8)
1952 pSetup->wValue, pSetup->wIndex));
1956 pSetup->wValue, pSetup->wIndex));
1964 switch (pSetup->wValue >> 8)
1992 cbCopy = pUrb->cbData - sizeof(*pSetup);
1995 pSetup->wValue, pSetup->wIndex,
1997 memcpy(&pUrb->abData[sizeof(*pSetup)], pDesc, cbCopy);
1998 return usbHidCompleteOk(pThis, pUrb, cbCopy + sizeof(*pSetup));
2023 cbCopy = pUrb->cbData - sizeof(*pSetup);
2026 pSetup->wValue, pSetup->wIndex,
2028 memcpy(&pUrb->abData[sizeof(*pSetup)], pDesc, cbCopy);
2029 return usbHidCompleteOk(pThis, pUrb, cbCopy + sizeof(*pSetup));
2034 pSetup->wValue, pSetup->wIndex));
2042 pSetup->bmRequestType));
2052 if (pSetup->wLength != 2)
2055 pSetup->wLength));
2058 Assert(pSetup->wValue == 0);
2059 switch (pSetup->bmRequestType)
2063 Assert(pSetup->wIndex == 0);
2066 memcpy(&pUrb->abData[sizeof(*pSetup)], &wRet, sizeof(wRet));
2067 return usbHidCompleteOk(pThis, pUrb, sizeof(wRet) + sizeof(*pSetup));
2072 if (pSetup->wIndex == 0)
2074 memcpy(&pUrb->abData[sizeof(*pSetup)], &wRet, sizeof(wRet));
2075 return usbHidCompleteOk(pThis, pUrb, sizeof(wRet) + sizeof(*pSetup));
2080 pSetup->wIndex));
2087 if (pSetup->wIndex < RT_ELEMENTS(pThis->aEps))
2089 wRet = pThis->aEps[pSetup->wIndex].fHalted ? 1 : 0;
2090 memcpy(&pUrb->abData[sizeof(*pSetup)], &wRet, sizeof(wRet));
2091 return usbHidCompleteOk(pThis, pUrb, sizeof(wRet) + sizeof(*pSetup));
2096 pSetup->wIndex));
2103 pSetup->bmRequestType));
2115 pSetup->bmRequestType, pSetup->bRequest, pSetup->wValue,
2116 pSetup->wIndex, pSetup->wLength));
2120 else if ((pSetup->bmRequestType & VUSB_REQ_MASK) == VUSB_REQ_CLASS)
2123 if ((pSetup->bmRequestType & VUSB_RECIP_MASK) == VUSB_TO_INTERFACE)
2129 pSetup->bmRequestType, pSetup->bRequest, pSetup->wValue,
2130 pSetup->wIndex, pSetup->wLength));
2136 pSetup->bmRequestType, pSetup->bRequest, pSetup->wValue,
2137 pSetup->wIndex, pSetup->wLength));