Lines Matching refs:fevent
626 struct dpu_crtc_frame_event *fevent = container_of(work, in dpu_crtc_frame_event_work() local
628 struct drm_crtc *crtc = fevent->crtc; in dpu_crtc_frame_event_work()
635 DRM_DEBUG_ATOMIC("crtc%d event:%u ts:%lld\n", crtc->base.id, fevent->event, in dpu_crtc_frame_event_work()
636 ktime_to_ns(fevent->ts)); in dpu_crtc_frame_event_work()
638 if (fevent->event & (DPU_ENCODER_FRAME_EVENT_DONE in dpu_crtc_frame_event_work()
647 fevent->event); in dpu_crtc_frame_event_work()
651 fevent->event); in dpu_crtc_frame_event_work()
654 if (fevent->event & (DPU_ENCODER_FRAME_EVENT_DONE in dpu_crtc_frame_event_work()
659 if (fevent->event & DPU_ENCODER_FRAME_EVENT_PANEL_DEAD) in dpu_crtc_frame_event_work()
661 crtc->base.id, ktime_to_ns(fevent->ts)); in dpu_crtc_frame_event_work()
667 list_add_tail(&fevent->list, &dpu_crtc->frame_event_list); in dpu_crtc_frame_event_work()
686 struct dpu_crtc_frame_event *fevent; in dpu_crtc_frame_event_cb() local
701 fevent = list_first_entry_or_null(&dpu_crtc->frame_event_list, in dpu_crtc_frame_event_cb()
703 if (fevent) in dpu_crtc_frame_event_cb()
704 list_del_init(&fevent->list); in dpu_crtc_frame_event_cb()
707 if (!fevent) { in dpu_crtc_frame_event_cb()
712 fevent->event = event; in dpu_crtc_frame_event_cb()
713 fevent->crtc = crtc; in dpu_crtc_frame_event_cb()
714 fevent->ts = ktime_get(); in dpu_crtc_frame_event_cb()
715 kthread_queue_work(priv->event_thread[crtc_id].worker, &fevent->work); in dpu_crtc_frame_event_cb()