Lines Matching refs:port
71 * IO port access primitives. Hexagon doesn't have special IO access
74 * in/out are used for "ports", but we don't have "port instructions",
201 * inb - read byte from I/O port or something
202 * @port: address in I/O space
206 static inline u8 inb(unsigned long port)
208 return readb(_IO_BASE + (port & IO_SPACE_LIMIT));
211 static inline u16 inw(unsigned long port)
213 return readw(_IO_BASE + (port & IO_SPACE_LIMIT));
216 static inline u32 inl(unsigned long port)
218 return readl(_IO_BASE + (port & IO_SPACE_LIMIT));
226 static inline void outb(u8 data, unsigned long port)
228 writeb(data, _IO_BASE + (port & IO_SPACE_LIMIT));
231 static inline void outw(u16 data, unsigned long port)
233 writew(data, _IO_BASE + (port & IO_SPACE_LIMIT));
236 static inline void outl(u32 data, unsigned long port)
238 writel(data, _IO_BASE + (port & IO_SPACE_LIMIT));
249 static inline void insb(unsigned long port, void *buffer, int count)
254 u8 x = inb(port);
260 static inline void insw(unsigned long port, void *buffer, int count)
265 u16 x = inw(port);
271 static inline void insl(unsigned long port, void *buffer, int count)
276 u32 x = inw(port);
282 static inline void outsb(unsigned long port, const void *buffer, int count)
287 outb(*buf++, port);
292 static inline void outsw(unsigned long port, const void *buffer, int count)
297 outw(*buf++, port);
302 static inline void outsl(unsigned long port, const void *buffer, int count)
307 outl(*buf++, port);