Lines Matching refs:vblank
1147 static int matroxfb_get_vblank(WPMINFO struct fb_vblank *vblank) in matroxfb_get_vblank() argument
1152 memset(vblank, 0, sizeof(*vblank)); in matroxfb_get_vblank()
1153 vblank->flags = FB_VBLANK_HAVE_VCOUNT | FB_VBLANK_HAVE_VSYNC | in matroxfb_get_vblank()
1156 vblank->vcount = mga_inl(M_VCOUNT); in matroxfb_get_vblank()
1161 vblank->flags |= FB_VBLANK_HBLANKING; in matroxfb_get_vblank()
1163 vblank->flags |= FB_VBLANK_VSYNCING; in matroxfb_get_vblank()
1164 if (vblank->vcount >= ACCESS_FBINFO(currcon_display)->var.yres) in matroxfb_get_vblank()
1165 vblank->flags |= FB_VBLANK_VBLANKING; in matroxfb_get_vblank()
1167 vblank->flags |= FB_VBLANK_HAVE_COUNT; in matroxfb_get_vblank()
1170 vblank->count = ACCESS_FBINFO(crtc1).vsync.cnt; in matroxfb_get_vblank()
1194 struct fb_vblank vblank; in matroxfb_ioctl() local
1197 err = matroxfb_get_vblank(PMINFO &vblank); in matroxfb_ioctl()
1200 if (copy_to_user((struct fb_vblank*)arg, &vblank, sizeof(vblank))) in matroxfb_ioctl()