Lines Matching defs:vtotal
22 * vtotal = vblank_start + 3
185 u32 vtotal = mode->crtc_vtotal;
189 scanline = min(scanline, vtotal - 1);
190 scanline = (scanline + vblank_start) % vtotal;
206 int position, vtotal;
217 vtotal = mode->crtc_vtotal;
219 vtotal /= 2;
252 return (position + crtc->scanline_offset) % vtotal;
260 int vtotal;
262 vtotal = mode->crtc_vtotal;
264 vtotal /= 2;
266 return (scanline + vtotal - crtc->scanline_offset) % vtotal;
306 int vbl_start, vbl_end, hsync_start, htotal, vtotal;
321 vtotal = mode->crtc_vtotal;
328 vtotal /= 2;
357 position = min(crtc->vmax_vblank_start + scanlines, vtotal - 1);
374 vtotal *= htotal;
385 position = min(position, vtotal - 1);
396 position = (position + htotal - hsync_start) % vtotal;
417 position += vtotal - vbl_end;
498 * On most platforms it starts counting from vtotal-1 on the
505 * of vtotal-1, so we have to subtract one (or rather add vtotal-1
523 int vtotal;
525 vtotal = adjusted_mode->crtc_vtotal;
527 vtotal /= 2;
529 return vtotal - 1;