Lines Matching refs:vga_state

655 } vga_state;  variable
662 vga_state.SeqCtrlIndex = vga_r(state->vgabase, VGA_SEQ_I); in vga_vesa_blank()
663 vga_state.CrtCtrlIndex = inb_p(vga_video_port_reg); in vga_vesa_blank()
664 vga_state.CrtMiscIO = vga_r(state->vgabase, VGA_MIS_R); in vga_vesa_blank()
668 vga_state.HorizontalTotal = inb_p(vga_video_port_val); in vga_vesa_blank()
670 vga_state.HorizDisplayEnd = inb_p(vga_video_port_val); in vga_vesa_blank()
672 vga_state.StartHorizRetrace = inb_p(vga_video_port_val); in vga_vesa_blank()
674 vga_state.EndHorizRetrace = inb_p(vga_video_port_val); in vga_vesa_blank()
676 vga_state.Overflow = inb_p(vga_video_port_val); in vga_vesa_blank()
678 vga_state.StartVertRetrace = inb_p(vga_video_port_val); in vga_vesa_blank()
680 vga_state.EndVertRetrace = inb_p(vga_video_port_val); in vga_vesa_blank()
682 vga_state.ModeControl = inb_p(vga_video_port_val); in vga_vesa_blank()
683 vga_state.ClockingMode = vga_rseq(state->vgabase, VGA_SEQ_CLOCK_MODE); in vga_vesa_blank()
689 vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, vga_state.ClockingMode | 0x20); in vga_vesa_blank()
692 if ((vga_state.CrtMiscIO & 0x80) == 0x80) in vga_vesa_blank()
693 vga_w(state->vgabase, VGA_MIS_W, vga_state.CrtMiscIO & 0xEF); in vga_vesa_blank()
706 outb_p(vga_state.Overflow | 0x84, vga_video_port_val); /* bits 9,10 of vert. retrace */ in vga_vesa_blank()
722 vga_w(state->vgabase, VGA_SEQ_I, vga_state.SeqCtrlIndex); in vga_vesa_blank()
723 outb_p(vga_state.CrtCtrlIndex, vga_video_port_reg); in vga_vesa_blank()
731 vga_w(state->vgabase, VGA_MIS_W, vga_state.CrtMiscIO); in vga_vesa_unblank()
734 outb_p(vga_state.HorizontalTotal, vga_video_port_val); in vga_vesa_unblank()
736 outb_p(vga_state.HorizDisplayEnd, vga_video_port_val); in vga_vesa_unblank()
738 outb_p(vga_state.StartHorizRetrace, vga_video_port_val); in vga_vesa_unblank()
740 outb_p(vga_state.EndHorizRetrace, vga_video_port_val); in vga_vesa_unblank()
742 outb_p(vga_state.Overflow, vga_video_port_val); in vga_vesa_unblank()
744 outb_p(vga_state.StartVertRetrace, vga_video_port_val); in vga_vesa_unblank()
746 outb_p(vga_state.EndVertRetrace, vga_video_port_val); in vga_vesa_unblank()
748 outb_p(vga_state.ModeControl, vga_video_port_val); in vga_vesa_unblank()
750 vga_wseq(state->vgabase, VGA_SEQ_CLOCK_MODE, vga_state.ClockingMode); in vga_vesa_unblank()
753 vga_w(state->vgabase, VGA_SEQ_I, vga_state.SeqCtrlIndex); in vga_vesa_unblank()
754 outb_p(vga_state.CrtCtrlIndex, vga_video_port_reg); in vga_vesa_unblank()