Lines Matching refs:port
68 * IO port access primitives. Hexagon doesn't have special IO access
71 * in/out are used for "ports", but we don't have "port instructions",
203 * inb - read byte from I/O port or something
204 * @port: address in I/O space
208 static inline u8 inb(unsigned long port)
210 return readb(_IO_BASE + (port & IO_SPACE_LIMIT));
213 static inline u16 inw(unsigned long port)
215 return readw(_IO_BASE + (port & IO_SPACE_LIMIT));
218 static inline u32 inl(unsigned long port)
220 return readl(_IO_BASE + (port & IO_SPACE_LIMIT));
228 static inline void outb(u8 data, unsigned long port)
230 writeb(data, _IO_BASE + (port & IO_SPACE_LIMIT));
233 static inline void outw(u16 data, unsigned long port)
235 writew(data, _IO_BASE + (port & IO_SPACE_LIMIT));
238 static inline void outl(u32 data, unsigned long port)
240 writel(data, _IO_BASE + (port & IO_SPACE_LIMIT));
251 static inline void insb(unsigned long port, void *buffer, int count)
256 u8 x = inb(port);
262 static inline void insw(unsigned long port, void *buffer, int count)
267 u16 x = inw(port);
273 static inline void insl(unsigned long port, void *buffer, int count)
278 u32 x = inw(port);
284 static inline void outsb(unsigned long port, const void *buffer, int count)
289 outb(*buf++, port);
294 static inline void outsw(unsigned long port, const void *buffer, int count)
299 outw(*buf++, port);
304 static inline void outsl(unsigned long port, const void *buffer, int count)
309 outl(*buf++, port);