Lines Matching refs:pSetup
255 int custom_handle_req(struct usb_setup_packet *pSetup, in custom_handle_req() argument
258 if (usb_reqtype_is_to_device(pSetup)) { in custom_handle_req()
262 if (USB_GET_DESCRIPTOR_TYPE(pSetup->wValue) == USB_DESC_STRING && in custom_handle_req()
263 USB_GET_DESCRIPTOR_INDEX(pSetup->wValue) == 0xEE) { in custom_handle_req()
285 int vendor_handle_req(struct usb_setup_packet *pSetup, in vendor_handle_req() argument
288 if (usb_reqtype_is_to_device(pSetup)) { in vendor_handle_req()
293 if (pSetup->bRequest == 0x01 && pSetup->wIndex == 0x01) { in vendor_handle_req()
300 } else if (pSetup->bRequest == 0x01 && pSetup->wIndex == 0x02) { in vendor_handle_req()
302 uint8_t index = USB_GET_DESCRIPTOR_INDEX(pSetup->wValue); in vendor_handle_req()
314 } else if (pSetup->bRequest == bos_cap_msosv2.cap.bMS_VendorCode && in vendor_handle_req()
315 pSetup->wIndex == MS_OS_20_DESCRIPTOR_INDEX) { in vendor_handle_req()
323 } else if (pSetup->bRequest == 0x03 && pSetup->wIndex == 0x04) { in vendor_handle_req()