Lines Matching refs:setup

135 			   const struct usb_setup_packet *const setup)  in handle_set_idle()  argument
137 const uint32_t duration = HID_GET_IDLE_DURATION(setup->wValue); in handle_set_idle()
138 const uint8_t id = HID_GET_IDLE_ID(setup->wValue); in handle_set_idle()
159 const struct usb_setup_packet *const setup, in handle_get_idle() argument
162 const uint8_t id = HID_GET_IDLE_ID(setup->wValue); in handle_get_idle()
167 if (setup->wLength != 1U) { in handle_get_idle()
195 const struct usb_setup_packet *const setup, in handle_set_report() argument
198 const uint8_t type = HID_GET_REPORT_TYPE(setup->wValue); in handle_set_report()
199 const uint8_t id = HID_GET_REPORT_ID(setup->wValue); in handle_set_report()
231 const struct usb_setup_packet *const setup, in handle_get_report() argument
234 const uint8_t type = HID_GET_REPORT_TYPE(setup->wValue); in handle_get_report()
235 const uint8_t id = HID_GET_REPORT_ID(setup->wValue); in handle_get_report()
238 const size_t size = setup->wLength; in handle_get_report()
271 const struct usb_setup_packet *const setup) in handle_set_protocol() argument
277 const uint16_t protocol = setup->wValue; in handle_set_protocol()
308 const struct usb_setup_packet *const setup, in handle_get_protocol() argument
315 if (setup->wValue != 0 || setup->wLength != 1) { in handle_get_protocol()
333 const struct usb_setup_packet *const setup, in handle_get_descriptor() argument
338 uint8_t desc_type = USB_GET_DESCRIPTOR_TYPE(setup->wValue); in handle_get_descriptor()
339 uint8_t desc_idx = USB_GET_DESCRIPTOR_INDEX(setup->wValue); in handle_get_descriptor()
345 net_buf_add_mem(buf, ddata->rdesc, MIN(ddata->rsize, setup->wLength)); in handle_get_descriptor()
349 net_buf_add_mem(buf, &desc->hid, MIN(desc->hid.bLength, setup->wLength)); in handle_get_descriptor()
364 const struct usb_setup_packet *const setup, in usbd_hid_ctd() argument
370 switch (setup->bRequest) { in usbd_hid_ctd()
372 ret = handle_set_idle(dev, setup); in usbd_hid_ctd()
375 ret = handle_set_report(dev, setup, buf); in usbd_hid_ctd()
378 ret = handle_set_protocol(dev, setup); in usbd_hid_ctd()
389 const struct usb_setup_packet *const setup, in usbd_hid_cth() argument
395 switch (setup->bRequest) { in usbd_hid_cth()
397 ret = handle_get_idle(dev, setup, buf); in usbd_hid_cth()
400 ret = handle_get_report(dev, setup, buf); in usbd_hid_cth()
403 ret = handle_get_protocol(dev, setup, buf); in usbd_hid_cth()
406 ret = handle_get_descriptor(dev, setup, buf); in usbd_hid_cth()