Lines Matching full:event
27 const struct uhc_event *const event) in usbh_event_carrier() argument
29 return k_msgq_put(&usbh_msgq, event, K_NO_WAIT); in usbh_event_carrier()
46 struct uhc_event *const event) in usbh_event_handler() argument
50 if (event->type == UHC_EVT_EP_REQUEST) { in usbh_event_handler()
51 struct usb_device *const udev = event->xfer->udev; in usbh_event_handler()
52 usbh_udev_cb_t cb = event->xfer->cb; in usbh_event_handler()
54 if (event->xfer->cb) { in usbh_event_handler()
55 ret = cb(udev, event->xfer); in usbh_event_handler()
57 ret = discard_ep_request(ctx, event->xfer); in usbh_event_handler()
62 switch (event->type) { in usbh_event_handler()
66 LOG_DBG("Device connected event"); in usbh_event_handler()
69 LOG_DBG("Device removed event"); in usbh_event_handler()
81 LOG_DBG("RWUP event"); in usbh_event_handler()
84 LOG_DBG("Error event %d", event->status); in usbh_event_handler()
99 struct uhc_event event; in usbh_thread() local
102 k_msgq_get(&usbh_msgq, &event, K_FOREVER); in usbh_thread()
105 if (uhs_ctx->dev == event.dev) { in usbh_thread()
106 usbh_event_handler(uhs_ctx, &event); in usbh_thread()