Lines Matching refs:val
207 static inline void vga_io_w (unsigned short port, unsigned char val) in vga_io_w() argument
209 outb_p(val, port); in vga_io_w()
213 unsigned char val) in vga_io_w_fast() argument
215 outw(VGA_OUT16VAL (val, reg), port); in vga_io_w_fast()
223 static inline void vga_mm_w (void __iomem *regbase, unsigned short port, unsigned char val) in vga_mm_w() argument
225 writeb (val, regbase + port); in vga_mm_w()
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()
242 static inline void vga_w (void __iomem *regbase, unsigned short port, unsigned char val) in vga_w() argument
245 vga_mm_w (regbase, port, val); in vga_w()
247 vga_io_w (port, val); in vga_w()
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()
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()
277 vga_w (regbase, VGA_CRT_DC, val); in vga_wcrt()
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()
293 vga_io_w (VGA_CRT_DC, val); in vga_io_wcrt()
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()
309 vga_mm_w (regbase, VGA_CRT_DC, val); in vga_mm_wcrt()
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()
330 vga_w (regbase, VGA_SEQ_D, val); in vga_wseq()
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()
346 vga_io_w (VGA_SEQ_D, val); in vga_io_wseq()
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()
362 vga_mm_w (regbase, VGA_SEQ_D, val); in vga_mm_wseq()
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()
382 vga_w (regbase, VGA_GFX_D, val); in vga_wgfx()
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()
398 vga_io_w (VGA_GFX_D, val); in vga_io_wgfx()
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()
414 vga_mm_w (regbase, VGA_GFX_D, val); in vga_mm_wgfx()
429 static inline void vga_wattr (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_wattr() argument
432 vga_w (regbase, VGA_ATT_W, val); in vga_wattr()
441 static inline void vga_io_wattr (unsigned char reg, unsigned char val) in vga_io_wattr() argument
444 vga_io_w (VGA_ATT_W, val); in vga_io_wattr()
453 static inline void vga_mm_wattr (void __iomem *regbase, unsigned char reg, unsigned char val) in vga_mm_wattr() argument
456 vga_mm_w (regbase, VGA_ATT_W, val); in vga_mm_wattr()