Lines Matching refs:ev

414 	struct udc_mcux_event *ev;  in udc_mcux_event_submit()  local
417 ret = k_mem_slab_alloc(&udc_event_slab, (void **)&ev, K_NO_WAIT); in udc_mcux_event_submit()
424 ev->dev = dev; in udc_mcux_event_submit()
425 ev->mcux_msg = *mcux_msg; in udc_mcux_event_submit()
426 k_fifo_put(&priv->fifo, ev); in udc_mcux_event_submit()
432 struct udc_mcux_event *ev; in udc_mcux_work_handler() local
439 while ((ev = k_fifo_get(&priv->fifo, K_NO_WAIT)) != NULL) { in udc_mcux_work_handler()
440 mcux_msg = &ev->mcux_msg; in udc_mcux_work_handler()
445 udc_mcux_control(ev->dev, kUSB_DeviceControlSetDefaultStatus, NULL); in udc_mcux_work_handler()
446 cfg = udc_get_ep_cfg(ev->dev, USB_CONTROL_EP_OUT); in udc_mcux_work_handler()
448 udc_ep_disable_internal(ev->dev, USB_CONTROL_EP_OUT); in udc_mcux_work_handler()
450 cfg = udc_get_ep_cfg(ev->dev, USB_CONTROL_EP_IN); in udc_mcux_work_handler()
452 udc_ep_disable_internal(ev->dev, USB_CONTROL_EP_IN); in udc_mcux_work_handler()
454 if (udc_ep_enable_internal(ev->dev, USB_CONTROL_EP_OUT, in udc_mcux_work_handler()
460 if (udc_ep_enable_internal(ev->dev, USB_CONTROL_EP_IN, in udc_mcux_work_handler()
465 udc_submit_event(ev->dev, UDC_EVT_RESET, 0); in udc_mcux_work_handler()
473 err = udc_mcux_handler_setup(ev->dev, setup); in udc_mcux_work_handler()
475 err = udc_mcux_handler_in(ev->dev, ep, mcux_msg->buffer, in udc_mcux_work_handler()
478 err = udc_mcux_handler_out(ev->dev, ep, mcux_msg->buffer, in udc_mcux_work_handler()
483 udc_submit_event(ev->dev, UDC_EVT_ERROR, err); in udc_mcux_work_handler()
487 k_mem_slab_free(&udc_event_slab, (void *)ev); in udc_mcux_work_handler()