Lines Matching defs:port
97 static inline u8 in_idx(u16 port, u8 index)
99 outb(index, port);
100 return inb(port+1);
103 static inline void out_idx(u8 v, u16 port, u8 index)
105 outw(index+(v << 8), port);
108 /* Writes a value to an indexed port and then reads the port again */
109 static inline u8 tst_idx(u8 v, u16 port, u8 index)
111 out_idx(port, index, v);
112 return in_idx(port, index);
115 /* Get the I/O port of the VGA CRTC */