Lines Matching defs:port
27 port2adr(unsigned int port)
29 if (port >= 0x2000 && port < 0x2020)
30 return (volatile __u16 *) (PA_MRSHPC + (port - 0x2000));
31 else if (port >= 0x300 && port < 0x310)
32 return (volatile __u16 *) (PA_SMSC + (port - 0x300));
34 return (volatile __u16 *)port;
37 unsigned char se7206_inb(unsigned long port)
39 return (*port2adr(port)) & 0xff;
42 unsigned char se7206_inb_p(unsigned long port)
46 v = (*port2adr(port)) & 0xff;
51 unsigned short se7206_inw(unsigned long port)
53 return *port2adr(port);
56 void se7206_outb(unsigned char value, unsigned long port)
58 *(port2adr(port)) = value;
61 void se7206_outb_p(unsigned char value, unsigned long port)
63 *(port2adr(port)) = value;
67 void se7206_outw(unsigned short value, unsigned long port)
69 *port2adr(port) = value;
72 void se7206_insb(unsigned long port, void *addr, unsigned long count)
74 volatile __u16 *p = port2adr(port);
81 void se7206_insw(unsigned long port, void *addr, unsigned long count)
83 volatile __u16 *p = port2adr(port);
89 void se7206_outsb(unsigned long port, const void *addr, unsigned long count)
91 volatile __u16 *p = port2adr(port);
98 void se7206_outsw(unsigned long port, const void *addr, unsigned long count)
100 volatile __u16 *p = port2adr(port);