Lines Matching refs:wIndex
30 #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()
289 SF_TEST_LOWER_BYTE(setup->wIndex) != 0) { in set_feature_test_mode()
307 uint8_t ep = setup->wIndex; in sreq_set_feature()
329 if (usbd_state_is_address(uds_ctx) && setup->wIndex) { in sreq_set_feature()
336 if (setup->wIndex != 0) { in sreq_set_feature()
401 uint8_t ep = setup->wIndex; in sreq_get_status()
415 if (usbd_state_is_address(uds_ctx) && setup->wIndex) { in sreq_get_status()
422 if (setup->wIndex != 0) { in sreq_get_status()
870 if (setup->wIndex > UINT8_MAX || in sreq_get_interface()
871 setup->wIndex > cfg_desc->bNumInterfaces) { in sreq_get_interface()
876 if (usbd_get_alt_value(uds_ctx, setup->wIndex, &cur_alt)) { in sreq_get_interface()
882 setup->wIndex, cur_alt); in sreq_get_interface()
964 c_nd = usbd_class_get_by_ep(uds_ctx, setup->wIndex); in nonstd_request()
967 c_nd = usbd_class_get_by_iface(uds_ctx, setup->wIndex); in nonstd_request()
1043 setup->wIndex = sys_le16_to_cpu(setup->wIndex); in ctrl_xfer_get_setup()