Lines Matching refs:reg
212 static inline void vga_io_w_fast (unsigned short port, unsigned char reg, in vga_io_w_fast() argument
215 outw(VGA_OUT16VAL (val, reg), port); in vga_io_w_fast()
229 unsigned char reg, unsigned char val) in vga_mm_w_fast() argument
231 writew (VGA_OUT16VAL (val, reg), regbase + port); in vga_mm_w_fast()
252 unsigned char reg, unsigned char val) in vga_w_fast() argument
255 vga_mm_w_fast (regbase, port, reg, val); in vga_w_fast()
257 vga_io_w_fast (port, reg, val); in vga_w_fast()
265 static inline unsigned char vga_rcrt (void __iomem *regbase, unsigned char reg) in vga_rcrt() argument
267 vga_w (regbase, VGA_CRT_IC, reg); in vga_rcrt()
271 static inline void vga_wcrt (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_wcrt() argument
274 vga_w_fast (regbase, VGA_CRT_IC, reg, val); in vga_wcrt()
276 vga_w (regbase, VGA_CRT_IC, reg); in vga_wcrt()
281 static inline unsigned char vga_io_rcrt (unsigned char reg) in vga_io_rcrt() argument
283 vga_io_w (VGA_CRT_IC, reg); in vga_io_rcrt()
287 static inline void vga_io_wcrt (unsigned char reg, unsigned char val) in vga_io_wcrt() argument
290 vga_io_w_fast (VGA_CRT_IC, reg, val); in vga_io_wcrt()
292 vga_io_w (VGA_CRT_IC, reg); in vga_io_wcrt()
297 static inline unsigned char vga_mm_rcrt (void __iomem *regbase, unsigned char reg) in vga_mm_rcrt() argument
299 vga_mm_w (regbase, VGA_CRT_IC, reg); in vga_mm_rcrt()
303 static inline void vga_mm_wcrt (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_mm_wcrt() argument
306 vga_mm_w_fast (regbase, VGA_CRT_IC, reg, val); in vga_mm_wcrt()
308 vga_mm_w (regbase, VGA_CRT_IC, reg); in vga_mm_wcrt()
318 static inline unsigned char vga_rseq (void __iomem *regbase, unsigned char reg) in vga_rseq() argument
320 vga_w (regbase, VGA_SEQ_I, reg); in vga_rseq()
324 static inline void vga_wseq (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_wseq() argument
327 vga_w_fast (regbase, VGA_SEQ_I, reg, val); in vga_wseq()
329 vga_w (regbase, VGA_SEQ_I, reg); in vga_wseq()
334 static inline unsigned char vga_io_rseq (unsigned char reg) in vga_io_rseq() argument
336 vga_io_w (VGA_SEQ_I, reg); in vga_io_rseq()
340 static inline void vga_io_wseq (unsigned char reg, unsigned char val) in vga_io_wseq() argument
343 vga_io_w_fast (VGA_SEQ_I, reg, val); in vga_io_wseq()
345 vga_io_w (VGA_SEQ_I, reg); in vga_io_wseq()
350 static inline unsigned char vga_mm_rseq (void __iomem *regbase, unsigned char reg) in vga_mm_rseq() argument
352 vga_mm_w (regbase, VGA_SEQ_I, reg); in vga_mm_rseq()
356 static inline void vga_mm_wseq (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_mm_wseq() argument
359 vga_mm_w_fast (regbase, VGA_SEQ_I, reg, val); in vga_mm_wseq()
361 vga_mm_w (regbase, VGA_SEQ_I, reg); in vga_mm_wseq()
370 static inline unsigned char vga_rgfx (void __iomem *regbase, unsigned char reg) in vga_rgfx() argument
372 vga_w (regbase, VGA_GFX_I, reg); in vga_rgfx()
376 static inline void vga_wgfx (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_wgfx() argument
379 vga_w_fast (regbase, VGA_GFX_I, reg, val); in vga_wgfx()
381 vga_w (regbase, VGA_GFX_I, reg); in vga_wgfx()
386 static inline unsigned char vga_io_rgfx (unsigned char reg) in vga_io_rgfx() argument
388 vga_io_w (VGA_GFX_I, reg); in vga_io_rgfx()
392 static inline void vga_io_wgfx (unsigned char reg, unsigned char val) in vga_io_wgfx() argument
395 vga_io_w_fast (VGA_GFX_I, reg, val); in vga_io_wgfx()
397 vga_io_w (VGA_GFX_I, reg); in vga_io_wgfx()
402 static inline unsigned char vga_mm_rgfx (void __iomem *regbase, unsigned char reg) in vga_mm_rgfx() argument
404 vga_mm_w (regbase, VGA_GFX_I, reg); in vga_mm_rgfx()
408 static inline void vga_mm_wgfx (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_mm_wgfx() argument
411 vga_mm_w_fast (regbase, VGA_GFX_I, reg, val); in vga_mm_wgfx()
413 vga_mm_w (regbase, VGA_GFX_I, reg); in vga_mm_wgfx()
423 static inline unsigned char vga_rattr (void __iomem *regbase, unsigned char reg) in vga_rattr() argument
425 vga_w (regbase, VGA_ATT_IW, reg); in vga_rattr()
429 static inline void vga_wattr (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_wattr() argument
431 vga_w (regbase, VGA_ATT_IW, reg); in vga_wattr()
435 static inline unsigned char vga_io_rattr (unsigned char reg) in vga_io_rattr() argument
437 vga_io_w (VGA_ATT_IW, reg); in vga_io_rattr()
441 static inline void vga_io_wattr (unsigned char reg, unsigned char val) in vga_io_wattr() argument
443 vga_io_w (VGA_ATT_IW, reg); in vga_io_wattr()
447 static inline unsigned char vga_mm_rattr (void __iomem *regbase, unsigned char reg) in vga_mm_rattr() argument
449 vga_mm_w (regbase, VGA_ATT_IW, reg); in vga_mm_rattr()
453 static inline void vga_mm_wattr (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_mm_wattr() argument
455 vga_mm_w (regbase, VGA_ATT_IW, reg); in vga_mm_wattr()