Lines Matching refs:port
16 * peripherals address bus, thereby accessing the odd IO port. Meanwhile, the
210 u8 __inb8(unsigned int port)
217 if (SUPERIO_PORT(port))
218 ret = __raw_readb((void __iomem *)ISAIO_BASE + (port << 2));
220 void __iomem *a = (void __iomem *)ISAIO_BASE + ((port & ~1) << 1);
225 if (port & 1)
237 u8 __inb16(unsigned int port)
244 if (SUPERIO_PORT(port))
245 offset = port << 2;
247 offset = (port & ~1) << 1 | (port & 1);
252 u16 __inw(unsigned int port)
259 if (SUPERIO_PORT(port))
260 offset = port << 2;
262 offset = port << 1;
263 BUG_ON(port & 1);
271 u32 __inl(unsigned int port)
275 if (SUPERIO_PORT(port) || port & 3)
278 a = (void __iomem *)ISAIO_BASE + ((port & ~1) << 1);
288 void __outb8(u8 val, unsigned int port)
293 if (SUPERIO_PORT(port))
294 __raw_writeb(val, (void __iomem *)ISAIO_BASE + (port << 2));
296 void __iomem *a = (void __iomem *)ISAIO_BASE + ((port & ~1) << 1);
301 if (port & 1)
308 void __outb16(u8 val, unsigned int port)
315 if (SUPERIO_PORT(port))
316 offset = port << 2;
318 offset = (port & ~1) << 1 | (port & 1);
323 void __outw(u16 val, unsigned int port)
330 if (SUPERIO_PORT(port))
331 offset = port << 2;
333 offset = port << 1;
334 BUG_ON(port & 1);
339 void __outl(u32 val, unsigned int port)
349 void outsb(unsigned int port, const void *from, int len)
353 if (SUPERIO_PORT(port))
354 off = port << 2;
356 off = (port & ~1) << 1;
357 if (port & 1)
364 void insb(unsigned int port, void *from, int len)
368 if (SUPERIO_PORT(port))
369 off = port << 2;
371 off = (port & ~1) << 1;
372 if (port & 1)
382 void outsw(unsigned int port, const void *from, int len)
386 if (SUPERIO_PORT(port))
387 off = port << 2;
389 off = (port & ~1) << 1;
390 if (port & 1)
397 void insw(unsigned int port, void *from, int len)
401 if (SUPERIO_PORT(port))
402 off = port << 2;
404 off = (port & ~1) << 1;
405 if (port & 1)
419 void outsl(unsigned int port, const void *from, int len)
421 u32 off = port << 1;
423 if (SUPERIO_PORT(port) || port & 3)
429 void insl(unsigned int port, void *from, int len)
431 u32 off = port << 1;
433 if (SUPERIO_PORT(port) || port & 3)