Lines Matching refs:pSetup

1838     PVUSBSETUP pSetup = (PVUSBSETUP)&pUrb->abData[0];
1839 AssertReturn(pUrb->cbData >= sizeof(*pSetup), VERR_VUSB_FAILED_TO_QUEUE_URB);
1841 if ((pSetup->bmRequestType & VUSB_REQ_MASK) == VUSB_REQ_STANDARD)
1843 switch (pSetup->bRequest)
1847 if (pSetup->bmRequestType != (VUSB_TO_DEVICE | VUSB_REQ_STANDARD | VUSB_DIR_TO_HOST))
1849 Log(("usbMsd: Bad GET_DESCRIPTOR req: bmRequestType=%#x\n", pSetup->bmRequestType));
1853 switch (pSetup->wValue >> 8)
1858 Log(("usbMsd: GET_DESCRIPTOR DT_STRING wValue=%#x wIndex=%#x\n", pSetup->wValue, pSetup->wIndex));
1861 Log(("usbMsd: GET_DESCRIPTOR DT_DEVICE_QUALIFIER wValue=%#x wIndex=%#x\n", pSetup->wValue, pSetup->wIndex));
1863 cbCopy = pUrb->cbData - sizeof(*pSetup);
1865 memcpy(&pUrb->abData[sizeof(*pSetup)], &g_UsbMsdDeviceQualifier, cbCopy);
1866 return usbMsdCompleteOk(pThis, pUrb, cbCopy + sizeof(*pSetup));
1868 Log(("usbMsd: GET_DESCRIPTOR DT_BOS wValue=%#x wIndex=%#x\n", pSetup->wValue, pSetup->wIndex));
1870 cbCopy = pUrb->cbData - sizeof(*pSetup);
1872 memcpy(&pUrb->abData[sizeof(*pSetup)], &g_UsbMsdBOS, cbCopy);
1873 return usbMsdCompleteOk(pThis, pUrb, cbCopy + sizeof(*pSetup));
1875 Log(("usbMsd: GET_DESCRIPTOR, huh? wValue=%#x wIndex=%#x\n", pSetup->wValue, pSetup->wIndex));
1887 pSetup->bmRequestType, pSetup->bRequest, pSetup->wValue, pSetup->wIndex, pSetup->wLength));
1892 else if ( pSetup->bmRequestType == (VUSB_REQ_CLASS | VUSB_TO_INTERFACE)
1893 && pSetup->bRequest == 0xff
1894 && !pSetup->wValue
1895 && !pSetup->wLength
1896 && pSetup->wIndex == 0)
1902 else if ( pSetup->bmRequestType == (VUSB_REQ_CLASS | VUSB_TO_INTERFACE | VUSB_DIR_TO_HOST)
1903 && pSetup->bRequest == 0xfe
1904 && !pSetup->wValue
1905 && pSetup->wLength == 1
1906 && pSetup->wIndex == 0)
1908 *(uint8_t *)(pSetup + 1) = 0; /* max lun is 0 */
1914 pSetup->bmRequestType, pSetup->bRequest, pSetup->wValue, pSetup->wIndex, pSetup->wLength));