Lines Matching refs:portp
37 static inline unsigned char _ne_inb(void *portp)
39 return *(volatile unsigned char *)(portp+1);
42 static inline unsigned short _ne_inw(void *portp)
46 tmp = *(unsigned short *)(portp) & 0xff;
47 tmp |= *(unsigned short *)(portp+2) << 8;
51 static inline void _ne_insb(void *portp, void *addr, unsigned long count)
55 *buf++ = *(volatile unsigned char *)(portp+1);
58 static inline void _ne_outb(unsigned char b, void *portp)
60 *(volatile unsigned char *)(portp+1) = b;
63 static inline void _ne_outw(unsigned short w, void *portp)
65 *(volatile unsigned short *)portp = (w >> 8);
66 *(volatile unsigned short *)(portp+2) = (w & 0xff);
156 unsigned char *portp = PORT2ADDR(port);
158 *buf++ = *(volatile unsigned char *)portp;
165 unsigned short *portp;
168 portp = PORT2ADDR_NE(port);
170 *buf++ = _ne_inw(portp);
172 portp = PORT2ADDR(port);
174 *buf++ = *(volatile unsigned short *)portp;
181 unsigned long *portp;
183 portp = PORT2ADDR(port);
185 *buf++ = *(volatile unsigned long *)portp;
191 unsigned char *portp;
194 portp = PORT2ADDR_NE(port);
196 _ne_outb(*buf++, portp);
198 portp = PORT2ADDR(port);
200 *(volatile unsigned char *)portp = *buf++;
207 unsigned short *portp;
210 portp = PORT2ADDR_NE(port);
212 _ne_outw(*buf++, portp);
214 portp = PORT2ADDR(port);
216 *(volatile unsigned short *)portp = *buf++;
223 unsigned char *portp;
225 portp = PORT2ADDR(port);
227 *(volatile unsigned long *)portp = *buf++;