Lines Matching refs:event
106 * userspace through the file descriptor. They are used to send vblank event and
110 * For the driver-side event interface see drm_event_reserve_init() and
178 file->event_space = 4096; /* set aside 4k for event buffer */
559 * This function will only ever read a full event. Therefore userspace must
560 * supply a big enough buffer to fit any event to ensure forward progress. Since
561 * the maximum event space is currently 4K it's recommended to just use that for
587 file_priv->event_space += e->event->length;
609 unsigned length = e->event->length;
622 if (copy_to_user(buffer + ret, e->event, length)) {
669 * drm_event_reserve_init_locked - init a DRM event and reserve space for it
672 * @p: tracking structure for the pending event
673 * @e: actual event data to deliver to userspace
675 * This function prepares the passed in event for eventual delivery. If the event
680 * asynchronous event to userspace.
702 p->event = e;
711 * drm_event_reserve_init - init a DRM event and reserve space for it
714 * @p: tracking structure for the pending event
715 * @e: actual event data to deliver to userspace
717 * This function prepares the passed in event for eventual delivery. If the event
722 * asynchronous event to userspace.
751 * drm_event_cancel_free - free a DRM event and release its space
753 * @p: tracking structure for the pending event
755 * This function frees the event @p initialized with drm_event_reserve_init()
756 * and releases any allocated space. It is used to cancel an event when the
766 p->file_priv->event_space += p->event->length;
779 * drm_send_event_locked - send DRM event to file descriptor
781 * @e: DRM event to deliver
783 * This function sends the event @e, initialized with drm_event_reserve_init(),
789 * DRM file for this event still exists and can call this function upon
821 * drm_send_event - send DRM event to file descriptor
823 * @e: DRM event to deliver
825 * This function sends the event @e, initialized with drm_event_reserve_init(),
832 * DRM file for this event still exists and can call this function upon