Searched refs:pSetup (Results 1 – 4 of 4) sorted by relevance
| /Zephyr-latest/samples/subsys/usb/webusb/src/ |
| D | main.c | 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() [all …]
|
| D | webusb.c | 90 int webusb_custom_handle_req(struct usb_setup_packet *pSetup, in webusb_custom_handle_req() argument 97 return req_handlers->custom_handler(pSetup, len, data); in webusb_custom_handle_req() 112 int webusb_vendor_handle_req(struct usb_setup_packet *pSetup, in webusb_vendor_handle_req() argument 117 return req_handlers->vendor_handler(pSetup, len, data); in webusb_vendor_handle_req()
|
| /Zephyr-latest/subsys/usb/device/class/audio/ |
| D | audio.c | 638 struct usb_setup_packet *pSetup, in handle_feature_unit_req() argument 650 fu_id = ((pSetup->wIndex) >> 8) & 0xFF; in handle_feature_unit_req() 652 ch = (pSetup->wValue) & 0xFF; in handle_feature_unit_req() 653 cs = ((pSetup->wValue) >> 8) & 0xFF; in handle_feature_unit_req() 669 ret = handle_fu_mute_req(audio_dev_data, pSetup, in handle_feature_unit_req() 673 ret = handle_fu_volume_req(audio_dev_data, pSetup, in handle_feature_unit_req() 686 if (usb_reqtype_is_to_device(pSetup) && in handle_feature_unit_req() 687 pSetup->bRequest == USB_AUDIO_SET_CUR) { in handle_feature_unit_req() 712 static int handle_interface_req(struct usb_setup_packet *pSetup, in handle_interface_req() argument 720 uint8_t entity_id = ((pSetup->wIndex) >> 8) & 0xFF; in handle_interface_req() [all …]
|
| /Zephyr-latest/subsys/usb/device/ |
| D | usb_device.c | 1458 static int class_handler(struct usb_setup_packet *pSetup, in class_handler() argument 1465 pSetup->bRequest, pSetup->wIndex); in class_handler() 1479 if_descr->bInterfaceNumber == (pSetup->wIndex & 0xFF)) { in class_handler() 1480 return iface->class_handler(pSetup, len, data); in class_handler() 1487 static int custom_handler(struct usb_setup_packet *pSetup, in custom_handler() argument 1494 pSetup->bRequest, pSetup->wIndex); in custom_handler() 1511 if (if_descr->bInterfaceNumber == (pSetup->wIndex & 0xFF)) { in custom_handler() 1512 return iface->custom_handler(pSetup, len, data); in custom_handler() 1522 (void)iface->custom_handler(pSetup, len, data); in custom_handler() 1530 static int vendor_handler(struct usb_setup_packet *pSetup, in vendor_handler() argument [all …]
|