Lines Matching refs:setup
146 const struct usb_setup_packet *const setup) in handle_set_idle() argument
148 const uint32_t duration = HID_GET_IDLE_DURATION(setup->wValue); in handle_set_idle()
149 const uint8_t id = HID_GET_IDLE_ID(setup->wValue); in handle_set_idle()
170 const struct usb_setup_packet *const setup, in handle_get_idle() argument
173 const uint8_t id = HID_GET_IDLE_ID(setup->wValue); in handle_get_idle()
178 if (setup->wLength != 1U) { in handle_get_idle()
206 const struct usb_setup_packet *const setup, in handle_set_report() argument
209 const uint8_t type = HID_GET_REPORT_TYPE(setup->wValue); in handle_set_report()
210 const uint8_t id = HID_GET_REPORT_ID(setup->wValue); in handle_set_report()
242 const struct usb_setup_packet *const setup, in handle_get_report() argument
245 const uint8_t type = HID_GET_REPORT_TYPE(setup->wValue); in handle_get_report()
246 const uint8_t id = HID_GET_REPORT_ID(setup->wValue); in handle_get_report()
249 const size_t size = setup->wLength; in handle_get_report()
282 const struct usb_setup_packet *const setup) in handle_set_protocol() argument
288 const uint16_t protocol = setup->wValue; in handle_set_protocol()
319 const struct usb_setup_packet *const setup, in handle_get_protocol() argument
326 if (setup->wValue != 0 || setup->wLength != 1) { in handle_get_protocol()
344 const struct usb_setup_packet *const setup, in handle_get_descriptor() argument
349 uint8_t desc_type = USB_GET_DESCRIPTOR_TYPE(setup->wValue); in handle_get_descriptor()
350 uint8_t desc_idx = USB_GET_DESCRIPTOR_INDEX(setup->wValue); in handle_get_descriptor()
356 net_buf_add_mem(buf, ddata->rdesc, MIN(ddata->rsize, setup->wLength)); in handle_get_descriptor()
360 net_buf_add_mem(buf, &desc->hid, MIN(desc->hid.bLength, setup->wLength)); in handle_get_descriptor()
375 const struct usb_setup_packet *const setup, in usbd_hid_ctd() argument
381 switch (setup->bRequest) { in usbd_hid_ctd()
383 ret = handle_set_idle(dev, setup); in usbd_hid_ctd()
386 ret = handle_set_report(dev, setup, buf); in usbd_hid_ctd()
389 ret = handle_set_protocol(dev, setup); in usbd_hid_ctd()
400 const struct usb_setup_packet *const setup, in usbd_hid_cth() argument
406 switch (setup->bRequest) { in usbd_hid_cth()
408 ret = handle_get_idle(dev, setup, buf); in usbd_hid_cth()
411 ret = handle_get_report(dev, setup, buf); in usbd_hid_cth()
414 ret = handle_get_protocol(dev, setup, buf); in usbd_hid_cth()
417 ret = handle_get_descriptor(dev, setup, buf); in usbd_hid_cth()