Lines Matching refs:port

209 u8 __inb8(unsigned int port)  in __inb8()  argument
216 if (SUPERIO_PORT(port)) in __inb8()
217 ret = __raw_readb((void __iomem *)ISAIO_BASE + (port << 2)); in __inb8()
219 void __iomem *a = (void __iomem *)ISAIO_BASE + ((port & ~1) << 1); in __inb8()
224 if (port & 1) in __inb8()
236 u8 __inb16(unsigned int port) in __inb16() argument
243 if (SUPERIO_PORT(port)) in __inb16()
244 offset = port << 2; in __inb16()
246 offset = (port & ~1) << 1 | (port & 1); in __inb16()
251 u16 __inw(unsigned int port) in __inw() argument
258 if (SUPERIO_PORT(port)) in __inw()
259 offset = port << 2; in __inw()
261 offset = port << 1; in __inw()
262 BUG_ON(port & 1); in __inw()
270 u32 __inl(unsigned int port) in __inl() argument
274 if (SUPERIO_PORT(port) || port & 3) in __inl()
277 a = (void __iomem *)ISAIO_BASE + ((port & ~1) << 1); in __inl()
287 void __outb8(u8 val, unsigned int port) in __outb8() argument
292 if (SUPERIO_PORT(port)) in __outb8()
293 __raw_writeb(val, (void __iomem *)ISAIO_BASE + (port << 2)); in __outb8()
295 void __iomem *a = (void __iomem *)ISAIO_BASE + ((port & ~1) << 1); in __outb8()
300 if (port & 1) in __outb8()
307 void __outb16(u8 val, unsigned int port) in __outb16() argument
314 if (SUPERIO_PORT(port)) in __outb16()
315 offset = port << 2; in __outb16()
317 offset = (port & ~1) << 1 | (port & 1); in __outb16()
322 void __outw(u16 val, unsigned int port) in __outw() argument
329 if (SUPERIO_PORT(port)) in __outw()
330 offset = port << 2; in __outw()
332 offset = port << 1; in __outw()
333 BUG_ON(port & 1); in __outw()
338 void __outl(u32 val, unsigned int port) in __outl() argument
348 void outsb(unsigned int port, const void *from, int len) in outsb() argument
352 if (SUPERIO_PORT(port)) in outsb()
353 off = port << 2; in outsb()
355 off = (port & ~1) << 1; in outsb()
356 if (port & 1) in outsb()
363 void insb(unsigned int port, void *from, int len) in insb() argument
367 if (SUPERIO_PORT(port)) in insb()
368 off = port << 2; in insb()
370 off = (port & ~1) << 1; in insb()
371 if (port & 1) in insb()
381 void outsw(unsigned int port, const void *from, int len) in outsw() argument
385 if (SUPERIO_PORT(port)) in outsw()
386 off = port << 2; in outsw()
388 off = (port & ~1) << 1; in outsw()
389 if (port & 1) in outsw()
396 void insw(unsigned int port, void *from, int len) in insw() argument
400 if (SUPERIO_PORT(port)) in insw()
401 off = port << 2; in insw()
403 off = (port & ~1) << 1; in insw()
404 if (port & 1) in insw()
418 void outsl(unsigned int port, const void *from, int len) in outsl() argument
420 u32 off = port << 1; in outsl()
422 if (SUPERIO_PORT(port) || port & 3) in outsl()
428 void insl(unsigned int port, void *from, int len) in insl() argument
430 u32 off = port << 1; in insl()
432 if (SUPERIO_PORT(port) || port & 3) in insl()