Lines Matching refs:iobase
34 static inline unsigned char vga_rcrtcs(void __iomem *regbase, unsigned short iobase, in vga_rcrtcs() argument
37 vga_w(regbase, iobase + 0x4, reg); in vga_rcrtcs()
38 return vga_r(regbase, iobase + 0x5); in vga_rcrtcs()
41 static inline void vga_wcrtcs(void __iomem *regbase, unsigned short iobase, in vga_wcrtcs() argument
44 vga_w(regbase, iobase + 0x4, reg); in vga_wcrtcs()
45 vga_w(regbase, iobase + 0x5, val); in vga_wcrtcs()
53 unsigned short iobase; in save_vga_text() local
57 iobase = (misc & 1) ? 0x3d0 : 0x3b0; in save_vga_text()
59 vga_r(state->vgabase, iobase + 0xa); in save_vga_text()
62 vga_r(state->vgabase, iobase + 0xa); in save_vga_text()
229 unsigned short iobase; in save_vga_mode() local
234 iobase = 0x3d0; in save_vga_mode()
236 iobase = 0x3b0; in save_vga_mode()
239 saved->crtc[i] = vga_rcrtcs(state->vgabase, iobase, i); in save_vga_mode()
241 vga_r(state->vgabase, iobase + 0xa); in save_vga_mode()
244 vga_r(state->vgabase, iobase + 0xa); in save_vga_mode()
247 vga_r(state->vgabase, iobase + 0xa); in save_vga_mode()
260 unsigned short iobase; in restore_vga_mode() local
266 iobase = 0x3d0; in restore_vga_mode()
268 iobase = 0x3b0; in restore_vga_mode()
278 vga_r(state->vgabase, iobase + 0xa); in restore_vga_mode()
286 vga_wcrtcs(state->vgabase, iobase, 17, saved->crtc[17] & ~0x80); in restore_vga_mode()
288 vga_wcrtcs(state->vgabase, iobase, i, saved->crtc[i]); in restore_vga_mode()
294 vga_r(state->vgabase, iobase + 0xa); in restore_vga_mode()
305 vga_r(state->vgabase, iobase + 0xa); in restore_vga_mode()