Lines Matching refs:cur_vblank
233 u32 cur_vblank; in drm_reset_vblank_timestamp() local
245 cur_vblank = __get_vblank_counter(dev, pipe); in drm_reset_vblank_timestamp()
247 } while (cur_vblank != __get_vblank_counter(dev, pipe) && --count > 0); in drm_reset_vblank_timestamp()
261 store_vblank(dev, pipe, 1, t_vblank, cur_vblank); in drm_reset_vblank_timestamp()
282 u32 cur_vblank, diff; in drm_update_vblank_count() local
302 cur_vblank = __get_vblank_counter(dev, pipe); in drm_update_vblank_count()
304 } while (cur_vblank != __get_vblank_counter(dev, pipe) && --count > 0); in drm_update_vblank_count()
308 diff = (cur_vblank - vblank->last) & max_vblank_count; in drm_update_vblank_count()
351 diff, cur_vblank, vblank->last); in drm_update_vblank_count()
354 drm_WARN_ON_ONCE(dev, cur_vblank != vblank->last); in drm_update_vblank_count()
367 store_vblank(dev, pipe, diff, t_vblank, cur_vblank); in drm_update_vblank_count()
1479 u32 cur_vblank, diff = 1; in drm_vblank_restore() local
1496 cur_vblank = __get_vblank_counter(dev, pipe); in drm_vblank_restore()
1498 } while (cur_vblank != __get_vblank_counter(dev, pipe) && --count > 0); in drm_vblank_restore()
1507 diff, diff_ns, framedur_ns, cur_vblank - vblank->last); in drm_vblank_restore()
1508 vblank->last = (cur_vblank - diff) & max_vblank_count; in drm_vblank_restore()