search for: drm_crtc_arm_vblank_ev

Displaying 5 results from an estimated 5 matches for "drm_crtc_arm_vblank_ev".

2015 Oct 30
5
[PATCH] drm/nouveau: Fix pre-nv50 pageflip events
...the next vblank + * period. This helper function implements exactly the required vblank arming + * behaviour. + * + * Caller must hold event lock. Caller must also hold a vblank reference for the + * event @e, which will be dropped when the next vblank arrives. + * + * This is the legacy version of drm_crtc_arm_vblank_event(). + */ +void drm_arm_vblank_event(struct drm_device *dev, unsigned int pipe, + struct drm_pending_vblank_event *e) +{ + struct timeval now; + unsigned int seq; + + assert_spin_locked(&dev->event_lock); + + e->pipe = pipe; + list_add_tail(&e->base.link, &dev->vblank_e...
2015 Nov 09
2
[PATCH] drm/nouveau: Fix pre-nv50 pageflip events (v2)
...the next vblank + * period. This helper function implements exactly the required vblank arming + * behaviour. + * + * Caller must hold event lock. Caller must also hold a vblank reference for the + * event @e, which will be dropped when the next vblank arrives. + * + * This is the legacy version of drm_crtc_arm_vblank_event(). + */ +void drm_arm_vblank_event(struct drm_device *dev, unsigned int pipe, + struct drm_pending_vblank_event *e) +{ + assert_spin_locked(&dev->event_lock); + + e->pipe = pipe; + e->event.sequence = drm_vblank_count(dev, pipe); + list_add_tail(&e->base.link, &dev-&g...
2015 Nov 06
0
[PATCH] drm/nouveau: Fix pre-nv50 pageflip events
...is helper function implements exactly the required vblank arming > + * behaviour. > + * > + * Caller must hold event lock. Caller must also hold a vblank reference for the > + * event @e, which will be dropped when the next vblank arrives. > + * > + * This is the legacy version of drm_crtc_arm_vblank_event(). > + */ > +void drm_arm_vblank_event(struct drm_device *dev, unsigned int pipe, > + struct drm_pending_vblank_event *e) > +{ > + struct timeval now; > + unsigned int seq; > + > + assert_spin_locked(&dev->event_lock); > + > + e->pipe = pipe; > + li...
2015 Nov 10
2
[PATCH] drm/nouveau: Fix pre-nv50 pageflip events (v3)
...the next vblank + * period. This helper function implements exactly the required vblank arming + * behaviour. + * + * Caller must hold event lock. Caller must also hold a vblank reference for the + * event @e, which will be dropped when the next vblank arrives. + * + * This is the legacy version of drm_crtc_arm_vblank_event(). + */ +void drm_arm_vblank_event(struct drm_device *dev, unsigned int pipe, + struct drm_pending_vblank_event *e) +{ + assert_spin_locked(&dev->event_lock); + + e->pipe = pipe; + e->event.sequence = drm_vblank_count(dev, pipe); + list_add_tail(&e->base.link, &dev-&g...
2016 Jun 07
0
[PATCH 01/10] drm/nouveau: replace legacy vblank helpers
...2,17 +841,17 @@ nouveau_finish_page_flip(struct nouveau_channel *chan, s = list_first_entry(&fctx->flip, struct nouveau_page_flip_state, head); if (s->event) { if (drm->device.info.family < NV_DEVICE_INFO_V0_TESLA) { - drm_arm_vblank_event(dev, s->crtc, s->event); + drm_crtc_arm_vblank_event(s->crtc, s->event); } else { - drm_send_vblank_event(dev, s->crtc, s->event); + drm_crtc_send_vblank_event(s->crtc, s->event); /* Give up ownership of vblank for page-flipped crtc */ - drm_vblank_put(dev, s->crtc); + drm_crtc_vblank_put(s->crtc); } }...