Lines Matching refs:val
205 static inline void vga_mm_w (void __iomem *regbase, unsigned short port, unsigned char val) in vga_mm_w() argument
207 writeb (val, regbase + port); in vga_mm_w()
211 unsigned char reg, unsigned char val) in vga_mm_w_fast() argument
213 writew (VGA_OUT16VAL (val, reg), regbase + port); in vga_mm_w_fast()
226 static inline void vga_io_w (unsigned short port, unsigned char val) in vga_io_w() argument
228 outb_p(val, port); in vga_io_w()
232 unsigned char val) in vga_io_w_fast() argument
234 outw(VGA_OUT16VAL (val, reg), port); in vga_io_w_fast()
245 static inline void vga_w (void __iomem *regbase, unsigned short port, unsigned char val) in vga_w() argument
248 vga_mm_w (regbase, port, val); in vga_w()
250 vga_io_w (port, val); in vga_w()
255 unsigned char reg, unsigned char val) in vga_w_fast() argument
258 vga_mm_w_fast (regbase, port, reg, val); in vga_w_fast()
260 vga_io_w_fast (port, reg, val); in vga_w_fast()
268 static inline void vga_w (void __iomem *regbase, unsigned short port, unsigned char val) in vga_w() argument
270 vga_mm_w (regbase, port, val); in vga_w()
275 unsigned char reg, unsigned char val) in vga_w_fast() argument
277 vga_mm_w_fast (regbase, port, reg, val); in vga_w_fast()
291 static inline void vga_wcrt (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_wcrt() argument
294 vga_w_fast (regbase, VGA_CRT_IC, reg, val); in vga_wcrt()
297 vga_w (regbase, VGA_CRT_DC, val); in vga_wcrt()
308 static inline void vga_io_wcrt (unsigned char reg, unsigned char val) in vga_io_wcrt() argument
311 vga_io_w_fast (VGA_CRT_IC, reg, val); in vga_io_wcrt()
314 vga_io_w (VGA_CRT_DC, val); in vga_io_wcrt()
325 static inline void vga_mm_wcrt (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_mm_wcrt() argument
328 vga_mm_w_fast (regbase, VGA_CRT_IC, reg, val); in vga_mm_wcrt()
331 vga_mm_w (regbase, VGA_CRT_DC, val); in vga_mm_wcrt()
346 static inline void vga_wseq (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_wseq() argument
349 vga_w_fast (regbase, VGA_SEQ_I, reg, val); in vga_wseq()
352 vga_w (regbase, VGA_SEQ_D, val); in vga_wseq()
363 static inline void vga_io_wseq (unsigned char reg, unsigned char val) in vga_io_wseq() argument
366 vga_io_w_fast (VGA_SEQ_I, reg, val); in vga_io_wseq()
369 vga_io_w (VGA_SEQ_D, val); in vga_io_wseq()
380 static inline void vga_mm_wseq (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_mm_wseq() argument
383 vga_mm_w_fast (regbase, VGA_SEQ_I, reg, val); in vga_mm_wseq()
386 vga_mm_w (regbase, VGA_SEQ_D, val); in vga_mm_wseq()
400 static inline void vga_wgfx (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_wgfx() argument
403 vga_w_fast (regbase, VGA_GFX_I, reg, val); in vga_wgfx()
406 vga_w (regbase, VGA_GFX_D, val); in vga_wgfx()
417 static inline void vga_io_wgfx (unsigned char reg, unsigned char val) in vga_io_wgfx() argument
420 vga_io_w_fast (VGA_GFX_I, reg, val); in vga_io_wgfx()
423 vga_io_w (VGA_GFX_D, val); in vga_io_wgfx()
434 static inline void vga_mm_wgfx (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_mm_wgfx() argument
437 vga_mm_w_fast (regbase, VGA_GFX_I, reg, val); in vga_mm_wgfx()
440 vga_mm_w (regbase, VGA_GFX_D, val); in vga_mm_wgfx()
455 static inline void vga_wattr (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_wattr() argument
458 vga_w (regbase, VGA_ATT_W, val); in vga_wattr()
468 static inline void vga_io_wattr (unsigned char reg, unsigned char val) in vga_io_wattr() argument
471 vga_io_w (VGA_ATT_W, val); in vga_io_wattr()
481 static inline void vga_mm_wattr (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_mm_wattr() argument
484 vga_mm_w (regbase, VGA_ATT_W, val); in vga_mm_wattr()