Home
last modified time | relevance | path

Searched refs:wIndex (Results 1 – 25 of 28) sorted by relevance

12

/Zephyr-latest/subsys/usb/host/
Dusbh_ch9.c41 const uint16_t wIndex, in usbh_req_setup() argument
49 .wIndex = sys_cpu_to_le16(wIndex), in usbh_req_setup()
230 const uint16_t wIndex = iface; in usbh_req_set_alt() local
233 bmRequestType, bRequest, wValue, wIndex, 0, in usbh_req_set_alt()
267 const uint16_t wIndex = port; in usbh_req_set_hcfs_ppwr() local
270 bmRequestType, bRequest, wValue, wIndex, 0, in usbh_req_set_hcfs_ppwr()
282 const uint16_t wIndex = port; in usbh_req_set_hcfs_prst() local
285 bmRequestType, bRequest, wValue, wIndex, 0, in usbh_req_set_hcfs_prst()
Dusbh_ch9.h19 const uint16_t wIndex,
/Zephyr-latest/subsys/usb/device_next/
Dusbd_ch9.c30 #define SF_TEST_MODE_SELECTOR(wIndex) ((uint8_t)((wIndex) >> 8)) argument
31 #define SF_TEST_LOWER_BYTE(wIndex) ((uint8_t)(wIndex)) argument
71 uint8_t mode = SF_TEST_MODE_SELECTOR(setup->wIndex); in post_status_stage()
90 if (setup->wValue > 127 || setup->wIndex || setup->wLength) { in sreq_set_address()
198 if (setup->wValue > UINT8_MAX || setup->wIndex > UINT8_MAX) { in sreq_set_interface()
208 ret = usbd_interface_set(uds_ctx, setup->wIndex, setup->wValue); in sreq_set_interface()
231 uint8_t ep = setup->wIndex; in sreq_clear_feature()
246 if (usbd_state_is_address(uds_ctx) && setup->wIndex) { in sreq_clear_feature()
253 if (setup->wIndex != 0) { in sreq_clear_feature()
286 uint8_t mode = SF_TEST_MODE_SELECTOR(setup->wIndex); in set_feature_test_mode()
[all …]
/Zephyr-latest/samples/subsys/usb/webusb/src/
Dmain.c293 if (pSetup->bRequest == 0x01 && pSetup->wIndex == 0x01) { in vendor_handle_req()
300 } else if (pSetup->bRequest == 0x01 && pSetup->wIndex == 0x02) { 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()
/Zephyr-latest/tests/subsys/usb/os_desc/src/
Dusb_osdesc.c37 uint16_t wIndex; member
51 .wIndex = sys_cpu_to_le16(USB_OSDESC_EXTENDED_COMPAT_ID),
117 setup.wIndex = USB_OSDESC_EXTENDED_COMPAT_ID; in test_handle_os_desc_feature()
/Zephyr-latest/subsys/usb/device/
Dusb_device.c149 uint16_t wIndex; member
171 setup->wIndex, in usb_print_setup()
307 setup->wIndex = sys_le16_to_cpu(setup_raw.wIndex); in usb_handle_control_transfer()
765 LOG_DBG("Set Interface %u alternate %u", setup->wIndex, setup->wValue); in usb_set_interface()
774 if (cur_iface == setup->wIndex && in usb_set_interface()
776 ret = usb_set_alt_setting(setup->wIndex, in usb_set_interface()
785 if (cur_iface == setup->wIndex) { in usb_set_interface()
816 if (cur_iface == setup->wIndex) { in usb_get_interface()
819 setup->wIndex, data[0]); in usb_get_interface()
961 (!is_interface_valid((uint8_t)setup->wIndex))) { in usb_handle_std_interface_req()
[all …]
Dos_desc.c46 switch (setup->wIndex) { in usb_handle_os_desc_feature()
/Zephyr-latest/samples/subsys/usb/webusb-next/src/
Dwebusb.h70 if (setup->wIndex == WEBUSB_REQ_GET_URL) { in webusb_to_host_cb()
Dmsosv2.h123 setup->wIndex == MS_OS_20_DESCRIPTOR_INDEX) { in msosv2_to_host_cb()
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_hid_api.c79 .wIndex = 0, in wrapper_get_report()
101 .wIndex = 0, in wrapper_set_report()
Dusbd_cdc_ncm.c56 uint16_t wIndex; member
715 .wIndex = sys_cpu_to_le16(cdc_ncm_get_ctrl_if(data)), in cdc_ncm_send_connected()
746 .wIndex = sys_cpu_to_le16(cdc_ncm_get_ctrl_if(data)), in cdc_ncm_send_speed_change()
921 setup->wLength, setup->wIndex, setup->wValue); in usbd_cdc_ncm_cth()
Dusbd_cdc_ecm.c51 uint16_t wIndex; member
325 .wIndex = sys_cpu_to_le16(cdc_ecm_get_ctrl_if(data)), in cdc_ecm_send_notification()
/Zephyr-latest/drivers/usb/device/
Dusb_dc_native_posix_adapt.h73 uint16_t wIndex; member
Dusb_dc_nrfx.c754 usbd_setup->wIndex = nrf_usbd_setup_windex_get(NRF_USBD); in usbd_work_process_setup()
765 (uint32_t)usbd_setup->wIndex, in usbd_work_process_setup()
/Zephyr-latest/samples/subsys/dap/src/
Dmain.c187 if (setup->bRequest == WEBUSB_VENDOR_CODE && setup->wIndex == 0x02) { in msosv2_vendor_handle_req()
197 setup->wIndex == MS_OS_20_DESCRIPTOR_INDEX) { in msosv2_vendor_handle_req()
/Zephyr-latest/drivers/usb/common/nrf_usbd_common/
Dnrf_usbd_common.h270 uint16_t wIndex; /*!< byte 4, 5 */ member
/Zephyr-latest/include/zephyr/usb/class/
Dusb_cdc.h215 uint16_t wIndex; member
/Zephyr-latest/subsys/usb/device/class/hid/
Dcore.c449 (uint8_t)setup->wIndex); in hid_class_handle_req()
452 setup->wIndex); in hid_class_handle_req()
513 uint8_t iface_num = (uint8_t)setup->wIndex; in hid_custom_handle_req()
/Zephyr-latest/subsys/usb/device/class/audio/
Daudio.c650 fu_id = ((pSetup->wIndex) >> 8) & 0xFF; in handle_feature_unit_req()
720 uint8_t entity_id = ((pSetup->wIndex) >> 8) & 0xFF; in handle_interface_req()
776 uint8_t iface = (pSetup->wIndex) & 0xFF; in audio_custom_handler()
843 pSetup->wIndex, pSetup->wLength); in audio_class_handle_req()
/Zephyr-latest/include/zephyr/usb/
Dusb_ch9.h47 uint16_t wIndex; member
/Zephyr-latest/subsys/usb/device/class/
Dcdc_acm.c161 (uint8_t)setup->wIndex); in cdc_acm_class_handle_req()
164 setup->wIndex); in cdc_acm_class_handle_req()
780 notification.wIndex = 0U; in cdc_acm_send_notification()
Dmsc.c343 if (setup->wIndex != mass_cfg.if0.bInterfaceNumber || in mass_storage_class_handle_req()
/Zephyr-latest/drivers/usb/udc/
Dudc_nrf.c387 setup->wIndex = 0; in udc_event_xfer_setup()
400 setup->wIndex = 0; in udc_event_xfer_setup()
/Zephyr-latest/subsys/usb/device/class/netusb/
Dfunction_ecm.c211 setup->wIndex, setup->wValue); in ecm_class_handler()
Dfunction_rndis.c997 uint16_t wIndex; member
1011 .wIndex = sys_cpu_to_le16(USB_OSDESC_EXTENDED_COMPAT_ID),

12