Lines Matching refs:setup
66 const struct usb_setup_packet *const setup, in lb_control_to_host() argument
69 if (setup->RequestType.recipient != USB_REQTYPE_RECIPIENT_DEVICE) { in lb_control_to_host()
74 if (setup->bRequest == LB_VENDOR_REQ_IN) { in lb_control_to_host()
76 MIN(sizeof(lb_buf), setup->wLength)); in lb_control_to_host()
78 LOG_WRN("Device-to-Host, wLength %u | %zu", setup->wLength, in lb_control_to_host()
79 MIN(sizeof(lb_buf), setup->wLength)); in lb_control_to_host()
84 LOG_ERR("Class request 0x%x not supported", setup->bRequest); in lb_control_to_host()
91 const struct usb_setup_packet *const setup, in lb_control_to_dev() argument
94 if (setup->RequestType.recipient != USB_REQTYPE_RECIPIENT_DEVICE) { in lb_control_to_dev()
99 if (setup->bRequest == LB_VENDOR_REQ_OUT) { in lb_control_to_dev()
100 LOG_WRN("Host-to-Device, wLength %u | %zu", setup->wLength, in lb_control_to_dev()
106 LOG_ERR("Class request 0x%x not supported", setup->bRequest); in lb_control_to_dev()