Lines Matching refs:htotal
356 unsigned int hdisplay, hsyncstart, hsyncend, htotal; in mgag200_set_mode_regs() local
363 htotal = mode->htotal / 8 - 1; in mgag200_set_mode_regs()
366 if ((htotal & 0x07) == 0x06 || (htotal & 0x07) == 0x04) in mgag200_set_mode_regs()
367 htotal++; in mgag200_set_mode_regs()
386 crtcext1 = (((htotal - 4) & 0x100) >> 8) | in mgag200_set_mode_regs()
389 (htotal & 0x40); in mgag200_set_mode_regs()
401 WREG_CRT(0, htotal - 4); in mgag200_set_mode_regs()
404 WREG_CRT(3, (htotal & 0x1F) | 0x80); in mgag200_set_mode_regs()
406 WREG_CRT(5, ((htotal & 0x20) << 2) | (hsyncend & 0x1F)); in mgag200_set_mode_regs()
689 if (!mode->htotal || !mode->vtotal || !mode->clock) in mga_vga_calculate_mode_bandwidth()
693 total_area = mode->htotal * mode->vtotal; in mga_vga_calculate_mode_bandwidth()
760 (mode->hsync_end % 8) != 0 || (mode->htotal % 8) != 0) { in mga_vga_mode_valid()