Lines Matching refs:reg

205 static inline void vga_io_w_fast (unsigned short port, unsigned char reg,  in vga_io_w_fast()  argument
208 outw (VGA_OUT16VAL (val, reg), port); in vga_io_w_fast()
222 unsigned char reg, unsigned char val) in vga_mm_w_fast() argument
224 writew (VGA_OUT16VAL (val, reg), regbase + port); in vga_mm_w_fast()
245 unsigned char reg, unsigned char val) in vga_w_fast() argument
248 vga_mm_w_fast (regbase, port, reg, val); in vga_w_fast()
250 vga_io_w_fast (port, reg, val); in vga_w_fast()
258 static inline unsigned char vga_rcrt (caddr_t regbase, unsigned char reg) in vga_rcrt() argument
260 vga_w (regbase, VGA_CRT_IC, reg); in vga_rcrt()
264 static inline void vga_wcrt (caddr_t regbase, unsigned char reg, unsigned char val) in vga_wcrt() argument
267 vga_w_fast (regbase, VGA_CRT_IC, reg, val); in vga_wcrt()
269 vga_w (regbase, VGA_CRT_IC, reg); in vga_wcrt()
274 static inline unsigned char vga_io_rcrt (unsigned char reg) in vga_io_rcrt() argument
276 vga_io_w (VGA_CRT_IC, reg); in vga_io_rcrt()
280 static inline void vga_io_wcrt (unsigned char reg, unsigned char val) in vga_io_wcrt() argument
283 vga_io_w_fast (VGA_CRT_IC, reg, val); in vga_io_wcrt()
285 vga_io_w (VGA_CRT_IC, reg); in vga_io_wcrt()
290 static inline unsigned char vga_mm_rcrt (caddr_t regbase, unsigned char reg) in vga_mm_rcrt() argument
292 vga_mm_w (regbase, VGA_CRT_IC, reg); in vga_mm_rcrt()
296 static inline void vga_mm_wcrt (caddr_t regbase, unsigned char reg, unsigned char val) in vga_mm_wcrt() argument
299 vga_mm_w_fast (regbase, VGA_CRT_IC, reg, val); in vga_mm_wcrt()
301 vga_mm_w (regbase, VGA_CRT_IC, reg); in vga_mm_wcrt()
311 static inline unsigned char vga_rseq (caddr_t regbase, unsigned char reg) in vga_rseq() argument
313 vga_w (regbase, VGA_SEQ_I, reg); in vga_rseq()
317 static inline void vga_wseq (caddr_t regbase, unsigned char reg, unsigned char val) in vga_wseq() argument
320 vga_w_fast (regbase, VGA_SEQ_I, reg, val); in vga_wseq()
322 vga_w (regbase, VGA_SEQ_I, reg); in vga_wseq()
327 static inline unsigned char vga_io_rseq (unsigned char reg) in vga_io_rseq() argument
329 vga_io_w (VGA_SEQ_I, reg); in vga_io_rseq()
333 static inline void vga_io_wseq (unsigned char reg, unsigned char val) in vga_io_wseq() argument
336 vga_io_w_fast (VGA_SEQ_I, reg, val); in vga_io_wseq()
338 vga_io_w (VGA_SEQ_I, reg); in vga_io_wseq()
343 static inline unsigned char vga_mm_rseq (caddr_t regbase, unsigned char reg) in vga_mm_rseq() argument
345 vga_mm_w (regbase, VGA_SEQ_I, reg); in vga_mm_rseq()
349 static inline void vga_mm_wseq (caddr_t regbase, unsigned char reg, unsigned char val) in vga_mm_wseq() argument
352 vga_mm_w_fast (regbase, VGA_SEQ_I, reg, val); in vga_mm_wseq()
354 vga_mm_w (regbase, VGA_SEQ_I, reg); in vga_mm_wseq()
365 static inline unsigned char vga_rgfx (caddr_t regbase, unsigned char reg) in vga_rgfx() argument
367 vga_w (regbase, VGA_GFX_I, reg); in vga_rgfx()
371 static inline void vga_wgfx (caddr_t regbase, unsigned char reg, unsigned char val) in vga_wgfx() argument
374 vga_w_fast (regbase, VGA_GFX_I, reg, val); in vga_wgfx()
376 vga_w (regbase, VGA_GFX_I, reg); in vga_wgfx()
381 static inline unsigned char vga_io_rgfx (unsigned char reg) in vga_io_rgfx() argument
383 vga_io_w (VGA_GFX_I, reg); in vga_io_rgfx()
387 static inline void vga_io_wgfx (unsigned char reg, unsigned char val) in vga_io_wgfx() argument
390 vga_io_w_fast (VGA_GFX_I, reg, val); in vga_io_wgfx()
392 vga_io_w (VGA_GFX_I, reg); in vga_io_wgfx()
397 static inline unsigned char vga_mm_rgfx (caddr_t regbase, unsigned char reg) in vga_mm_rgfx() argument
399 vga_mm_w (regbase, VGA_GFX_I, reg); in vga_mm_rgfx()
403 static inline void vga_mm_wgfx (caddr_t regbase, unsigned char reg, unsigned char val) in vga_mm_wgfx() argument
406 vga_mm_w_fast (regbase, VGA_GFX_I, reg, val); in vga_mm_wgfx()
408 vga_mm_w (regbase, VGA_GFX_I, reg); in vga_mm_wgfx()
418 static inline unsigned char vga_rattr (caddr_t regbase, unsigned char reg) in vga_rattr() argument
420 vga_w (regbase, VGA_ATT_IW, reg); in vga_rattr()
424 static inline void vga_wattr (caddr_t regbase, unsigned char reg, unsigned char val) in vga_wattr() argument
426 vga_w (regbase, VGA_ATT_IW, reg); in vga_wattr()
430 static inline unsigned char vga_io_rattr (unsigned char reg) in vga_io_rattr() argument
432 vga_io_w (VGA_ATT_IW, reg); in vga_io_rattr()
436 static inline void vga_io_wattr (unsigned char reg, unsigned char val) in vga_io_wattr() argument
438 vga_io_w (VGA_ATT_IW, reg); in vga_io_wattr()
442 static inline unsigned char vga_mm_rattr (caddr_t regbase, unsigned char reg) in vga_mm_rattr() argument
444 vga_mm_w (regbase, VGA_ATT_IW, reg); in vga_mm_rattr()
448 static inline void vga_mm_wattr (caddr_t regbase, unsigned char reg, unsigned char val) in vga_mm_wattr() argument
450 vga_mm_w (regbase, VGA_ATT_IW, reg); in vga_mm_wattr()