Home
last modified time | relevance | path

Searched refs:portp (Results 1 – 8 of 8) sorted by relevance

/arch/m32r/platforms/oaks32r/
Dio.c37 static inline unsigned char _ne_inb(void *portp) in _ne_inb() argument
39 return *(volatile unsigned char *)(portp+1); in _ne_inb()
42 static inline unsigned short _ne_inw(void *portp) in _ne_inw() argument
46 tmp = *(unsigned short *)(portp) & 0xff; in _ne_inw()
47 tmp |= *(unsigned short *)(portp+2) << 8; in _ne_inw()
51 static inline void _ne_insb(void *portp, void *addr, unsigned long count) in _ne_insb() argument
55 *buf++ = *(volatile unsigned char *)(portp+1); in _ne_insb()
58 static inline void _ne_outb(unsigned char b, void *portp) in _ne_outb() argument
60 *(volatile unsigned char *)(portp+1) = b; in _ne_outb()
63 static inline void _ne_outw(unsigned short w, void *portp) in _ne_outw() argument
[all …]
/arch/m32r/platforms/m32104ut/
Dio.c80 static inline unsigned char _ne_inb(void *portp) in _ne_inb() argument
82 return *(volatile unsigned char *)portp; in _ne_inb()
85 static inline unsigned short _ne_inw(void *portp) in _ne_inw() argument
87 return (unsigned short)le16_to_cpu(*(volatile unsigned short *)portp); in _ne_inw()
90 static inline void _ne_insb(void *portp, void *addr, unsigned long count) in _ne_insb() argument
95 *buf++ = _ne_inb(portp); in _ne_insb()
98 static inline void _ne_outb(unsigned char b, void *portp) in _ne_outb() argument
100 *(volatile unsigned char *)portp = b; in _ne_outb()
103 static inline void _ne_outw(unsigned short w, void *portp) in _ne_outw() argument
105 *(volatile unsigned short *)portp = cpu_to_le16(w); in _ne_outw()
[all …]
/arch/m32r/platforms/mappi2/
Dio.c84 static inline unsigned char _ne_inb(void *portp) in _ne_inb() argument
86 return (unsigned char) *(volatile unsigned char *)portp; in _ne_inb()
89 static inline unsigned short _ne_inw(void *portp) in _ne_inw() argument
91 return (unsigned short)le16_to_cpu(*(volatile unsigned short *)portp); in _ne_inw()
94 static inline void _ne_insb(void *portp, void * addr, unsigned long count) in _ne_insb() argument
99 *buf++ = *(volatile unsigned char *)portp; in _ne_insb()
102 static inline void _ne_outb(unsigned char b, void *portp) in _ne_outb() argument
104 *(volatile unsigned char *)portp = (unsigned char)b; in _ne_outb()
107 static inline void _ne_outw(unsigned short w, void *portp) in _ne_outw() argument
109 *(volatile unsigned short *)portp = cpu_to_le16(w); in _ne_outw()
[all …]
/arch/m32r/platforms/m32700ut/
Dio.c88 static inline unsigned char _ne_inb(void *portp) in _ne_inb() argument
90 return *(volatile unsigned char *)portp; in _ne_inb()
93 static inline unsigned short _ne_inw(void *portp) in _ne_inw() argument
95 return (unsigned short)le16_to_cpu(*(volatile unsigned short *)portp); in _ne_inw()
98 static inline void _ne_insb(void *portp, void *addr, unsigned long count) in _ne_insb() argument
103 *buf++ = _ne_inb(portp); in _ne_insb()
106 static inline void _ne_outb(unsigned char b, void *portp) in _ne_outb() argument
108 *(volatile unsigned char *)portp = b; in _ne_outb()
111 static inline void _ne_outw(unsigned short w, void *portp) in _ne_outw() argument
113 *(volatile unsigned short *)portp = cpu_to_le16(w); in _ne_outw()
[all …]
/arch/m32r/platforms/mappi3/
Dio.c99 static inline unsigned char _ne_inb(void *portp) in _ne_inb() argument
101 return (unsigned char) *(volatile unsigned char *)portp; in _ne_inb()
104 static inline unsigned short _ne_inw(void *portp) in _ne_inw() argument
106 return (unsigned short)le16_to_cpu(*(volatile unsigned short *)portp); in _ne_inw()
109 static inline void _ne_insb(void *portp, void * addr, unsigned long count) in _ne_insb() argument
114 *buf++ = *(volatile unsigned char *)portp; in _ne_insb()
117 static inline void _ne_outb(unsigned char b, void *portp) in _ne_outb() argument
119 *(volatile unsigned char *)portp = (unsigned char)b; in _ne_outb()
122 static inline void _ne_outw(unsigned short w, void *portp) in _ne_outw() argument
124 *(volatile unsigned short *)portp = cpu_to_le16(w); in _ne_outw()
[all …]
/arch/m32r/platforms/opsput/
Dio.c88 static inline unsigned char _ne_inb(void *portp) in _ne_inb() argument
90 return *(volatile unsigned char *)portp; in _ne_inb()
93 static inline unsigned short _ne_inw(void *portp) in _ne_inw() argument
95 return (unsigned short)le16_to_cpu(*(volatile unsigned short *)portp); in _ne_inw()
98 static inline void _ne_insb(void *portp, void *addr, unsigned long count) in _ne_insb() argument
103 *buf++ = _ne_inb(portp); in _ne_insb()
106 static inline void _ne_outb(unsigned char b, void *portp) in _ne_outb() argument
108 *(volatile unsigned char *)portp = b; in _ne_outb()
111 static inline void _ne_outw(unsigned short w, void *portp) in _ne_outw() argument
113 *(volatile unsigned short *)portp = cpu_to_le16(w); in _ne_outw()
[all …]
/arch/m32r/platforms/mappi/
Dio.c52 static inline unsigned char _ne_inb(void *portp) in _ne_inb() argument
54 return (unsigned char) *(volatile unsigned short *)portp; in _ne_inb()
57 static inline unsigned short _ne_inw(void *portp) in _ne_inw() argument
61 tmp = *(volatile unsigned short *)portp; in _ne_inw()
65 static inline void _ne_outb(unsigned char b, void *portp) in _ne_outb() argument
67 *(volatile unsigned short *)portp = (unsigned short)b; in _ne_outb()
70 static inline void _ne_outw(unsigned short w, void *portp) in _ne_outw() argument
72 *(volatile unsigned short *)portp = cpu_to_le16(w); in _ne_outw()
214 unsigned short *portp; in _insb() local
217 portp = PORT2ADDR_NE(port); in _insb()
[all …]
/arch/m32r/platforms/usrv/
Dio.c156 unsigned char *portp = PORT2ADDR(port); in _insb() local
158 *buf++ = *(volatile unsigned char *)portp; in _insb()
165 unsigned short *portp; in _insw() local
171 portp = PORT2ADDR(port); in _insw()
173 *buf++ = *(volatile unsigned short *)portp; in _insw()
180 unsigned long *portp; in _insl() local
182 portp = PORT2ADDR(port); in _insl()
184 *buf++ = *(volatile unsigned long *)portp; in _insl()
190 unsigned char *portp; in _outsb() local
196 portp = PORT2ADDR(port); in _outsb()
[all …]