Lines Matching refs:event

59  * struct vmw_event_fence_action - fence action that delivers a drm event.
61 * @e: A struct drm_pending_event that controls the event delivery.
65 * @dev: Pointer to a struct drm_device so we can access the event stuff.
76 struct drm_pending_event *event;
904 * attached has passed. It queues the event on the submitter's event list.
912 struct drm_pending_event *event = eaction->event;
914 if (unlikely(event == NULL))
928 drm_send_event_locked(dev, eaction->event);
929 eaction->event = NULL;
1001 * vmw_event_fence_action_create - Post an event for sending when a fence
1004 * @file_priv: The file connection on which the event should be posted.
1005 * @fence: The fence object on which to post the event.
1006 * @event: Event to be posted. This event should've been alloced
1010 * As a side effect, the object pointed to by @event may have been
1017 struct drm_pending_event *event,
1029 eaction->event = event;
1047 struct drm_vmw_event_fence event;
1056 struct vmw_event_fence_pending *event;
1061 event = kzalloc(sizeof(*event), GFP_KERNEL);
1062 if (unlikely(!event)) {
1063 DRM_ERROR("Failed to allocate an event.\n");
1068 event->event.base.type = DRM_VMW_EVENT_FENCE_SIGNALED;
1069 event->event.base.length = sizeof(*event);
1070 event->event.user_data = user_data;
1072 ret = drm_event_reserve_init(dev, file_priv, &event->base, &event->event.base);
1075 DRM_ERROR("Failed to allocate event space for this file.\n");
1076 kfree(event);
1082 &event->base,
1083 &event->event.tv_sec,
1084 &event->event.tv_usec,
1088 &event->base,
1098 drm_event_cancel_free(dev, &event->base);
1156 DRM_ERROR("Fence event failed to create fence.\n");
1169 DRM_ERROR("Failed to attach event to fence.\n");