Lines Matching refs:event
56 * struct vmw_event_fence_action - fence action that delivers a drm event.
59 * @event: A pointer to the pending event.
62 * @dev: Pointer to a struct drm_device so we can access the event stuff.
71 struct drm_pending_event *event;
825 * attached has passed. It queues the event on the submitter's event list.
833 struct drm_pending_event *event = eaction->event;
835 if (unlikely(event == NULL))
849 drm_send_event_locked(dev, eaction->event);
850 eaction->event = NULL;
922 * vmw_event_fence_action_queue - Post an event for sending when a fence
925 * @file_priv: The file connection on which the event should be posted.
926 * @fence: The fence object on which to post the event.
927 * @event: Event to be posted. This event should've been alloced
935 * As a side effect, the object pointed to by @event may have been
942 struct drm_pending_event *event,
954 eaction->event = event;
972 struct drm_vmw_event_fence event;
981 struct vmw_event_fence_pending *event;
986 event = kzalloc(sizeof(*event), GFP_KERNEL);
987 if (unlikely(!event)) {
988 DRM_ERROR("Failed to allocate an event.\n");
993 event->event.base.type = DRM_VMW_EVENT_FENCE_SIGNALED;
994 event->event.base.length = sizeof(*event);
995 event->event.user_data = user_data;
997 ret = drm_event_reserve_init(dev, file_priv, &event->base, &event->event.base);
1000 DRM_ERROR("Failed to allocate event space for this file.\n");
1001 kfree(event);
1007 &event->base,
1008 &event->event.tv_sec,
1009 &event->event.tv_usec,
1013 &event->base,
1023 drm_event_cancel_free(dev, &event->base);
1081 DRM_ERROR("Fence event failed to create fence.\n");
1094 DRM_ERROR("Failed to attach event to fence.\n");