Lines Matching refs:pSetup

636     PVUSBSETUP pSetup = (PVUSBSETUP)&pUrb->abData[0];
637 Assert(pSetup->bRequest == HID_REQ_SET_REPORT);
640 if (pSetup->wIndex == 0 && pSetup->wLength == 1 && pSetup->wValue == 0x200)
643 uint8_t u8LEDs = pUrb->abData[sizeof(*pSetup)];
889 PVUSBSETUP pSetup = (PVUSBSETUP)&pUrb->abData[0];
892 AssertReturn(pUrb->cbData >= sizeof(*pSetup), VERR_VUSB_FAILED_TO_QUEUE_URB);
894 if ((pSetup->bmRequestType & VUSB_REQ_MASK) == VUSB_REQ_STANDARD)
896 switch (pSetup->bRequest)
900 switch (pSetup->bmRequestType)
904 switch (pSetup->wValue >> 8)
907 Log(("usbHid: GET_DESCRIPTOR DT_STRING wValue=%#x wIndex=%#x\n", pSetup->wValue, pSetup->wIndex));
910 Log(("usbHid: GET_DESCRIPTOR, huh? wValue=%#x wIndex=%#x\n", pSetup->wValue, pSetup->wIndex));
918 switch (pSetup->wValue >> 8)
925 cbCopy = pUrb->cbData - sizeof(*pSetup);
927 Log(("usbHidKbd: GET_DESCRIPTOR DT_IF_HID_DESCRIPTOR wValue=%#x wIndex=%#x cbCopy=%#x\n", pSetup->wValue, pSetup->wIndex, cbCopy));
928 memcpy(&pUrb->abData[sizeof(*pSetup)], &g_UsbHidIfHidDesc, cbCopy);
929 return usbHidCompleteOk(pThis, pUrb, cbCopy + sizeof(*pSetup));
937 cbCopy = pUrb->cbData - sizeof(*pSetup);
939 Log(("usbHid: GET_DESCRIPTOR DT_IF_HID_REPORT wValue=%#x wIndex=%#x cbCopy=%#x\n", pSetup->wValue, pSetup->wIndex, cbCopy));
940 memcpy(&pUrb->abData[sizeof(*pSetup)], &g_UsbHidReportDesc, cbCopy);
941 return usbHidCompleteOk(pThis, pUrb, cbCopy + sizeof(*pSetup));
945 Log(("usbHid: GET_DESCRIPTOR, huh? wValue=%#x wIndex=%#x\n", pSetup->wValue, pSetup->wIndex));
952 Log(("usbHid: Bad GET_DESCRIPTOR req: bmRequestType=%#x\n", pSetup->bmRequestType));
962 if (pSetup->wLength != 2)
964 Log(("usbHid: Bad GET_STATUS req: wLength=%#x\n", pSetup->wLength));
967 Assert(pSetup->wValue == 0);
968 switch (pSetup->bmRequestType)
972 Assert(pSetup->wIndex == 0);
975 memcpy(&pUrb->abData[sizeof(*pSetup)], &wRet, sizeof(wRet));
976 return usbHidCompleteOk(pThis, pUrb, sizeof(wRet) + sizeof(*pSetup));
981 if (pSetup->wIndex == 0)
983 memcpy(&pUrb->abData[sizeof(*pSetup)], &wRet, sizeof(wRet));
984 return usbHidCompleteOk(pThis, pUrb, sizeof(wRet) + sizeof(*pSetup));
988 Log(("usbHid: GET_STATUS (interface) invalid, wIndex=%#x\n", pSetup->wIndex));
995 if (pSetup->wIndex < RT_ELEMENTS(pThis->aEps))
997 wRet = pThis->aEps[pSetup->wIndex].fHalted ? 1 : 0;
998 memcpy(&pUrb->abData[sizeof(*pSetup)], &wRet, sizeof(wRet));
999 return usbHidCompleteOk(pThis, pUrb, sizeof(wRet) + sizeof(*pSetup));
1003 Log(("usbHid: GET_STATUS (endpoint) invalid, wIndex=%#x\n", pSetup->wIndex));
1009 Log(("usbHid: Bad GET_STATUS req: bmRequestType=%#x\n", pSetup->bmRequestType));
1021 pSetup->bmRequestType, pSetup->bRequest, pSetup->wValue, pSetup->wIndex, pSetup->wLength));
1025 else if ((pSetup->bmRequestType & VUSB_REQ_MASK) == VUSB_REQ_CLASS)
1027 switch (pSetup->bRequest)
1031 switch (pSetup->bmRequestType)
1035 Log(("usbHid: SET_IDLE wValue=%#x wIndex=%#x\n", pSetup->wValue, pSetup->wIndex));
1036 pThis->bIdle = pSetup->wValue >> 8;
1047 switch (pSetup->bmRequestType)
1051 Log(("usbHid: GET_IDLE wValue=%#x wIndex=%#x, returning %#x\n", pSetup->wValue, pSetup->wIndex, pThis->bIdle));
1052 pUrb->abData[sizeof(*pSetup)] = pThis->bIdle;
1061 switch (pSetup->bmRequestType)
1065 Log(("usbHid: SET_REPORT wValue=%#x wIndex=%#x wLength=%#x\n", pSetup->wValue, pSetup->wIndex, pSetup->wLength));
1075 pSetup->bmRequestType, pSetup->bRequest, pSetup->wValue, pSetup->wIndex, pSetup->wLength));
1082 pSetup->bmRequestType, pSetup->bRequest, pSetup->wValue, pSetup->wIndex, pSetup->wLength));