Lines Matching refs:fevent
597 struct dpu_crtc_frame_event *fevent = container_of(work, in dpu_crtc_frame_event_work() local
599 struct drm_crtc *crtc = fevent->crtc; in dpu_crtc_frame_event_work()
606 DRM_DEBUG_ATOMIC("crtc%d event:%u ts:%lld\n", crtc->base.id, fevent->event, in dpu_crtc_frame_event_work()
607 ktime_to_ns(fevent->ts)); in dpu_crtc_frame_event_work()
609 if (fevent->event & (DPU_ENCODER_FRAME_EVENT_DONE in dpu_crtc_frame_event_work()
618 fevent->event); in dpu_crtc_frame_event_work()
622 fevent->event); in dpu_crtc_frame_event_work()
625 if (fevent->event & (DPU_ENCODER_FRAME_EVENT_DONE in dpu_crtc_frame_event_work()
630 if (fevent->event & DPU_ENCODER_FRAME_EVENT_PANEL_DEAD) in dpu_crtc_frame_event_work()
632 crtc->base.id, ktime_to_ns(fevent->ts)); in dpu_crtc_frame_event_work()
638 list_add_tail(&fevent->list, &dpu_crtc->frame_event_list); in dpu_crtc_frame_event_work()
657 struct dpu_crtc_frame_event *fevent; in dpu_crtc_frame_event_cb() local
672 fevent = list_first_entry_or_null(&dpu_crtc->frame_event_list, in dpu_crtc_frame_event_cb()
674 if (fevent) in dpu_crtc_frame_event_cb()
675 list_del_init(&fevent->list); in dpu_crtc_frame_event_cb()
678 if (!fevent) { in dpu_crtc_frame_event_cb()
683 fevent->event = event; in dpu_crtc_frame_event_cb()
684 fevent->crtc = crtc; in dpu_crtc_frame_event_cb()
685 fevent->ts = ktime_get(); in dpu_crtc_frame_event_cb()
686 kthread_queue_work(priv->event_thread[crtc_id].worker, &fevent->work); in dpu_crtc_frame_event_cb()