Lines Matching refs:port
55 * the two short jumps: using outb's to a nonexistent port seems
58 * On the other hand, I'd like to be sure of a non-existent port:
121 extern void __out##s(unsigned x value, unsigned short port); \
122 extern inline void __out##s(unsigned x value, unsigned short port) {
128 __OUT1(s,x) __OUT2(s,s1,"w") : : "a" (value), "d" (port)); } \
129 __OUT1(s##c,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); } \
130 __OUT1(s##_p,x) __OUT2(s,s1,"w") : : "a" (value), "d" (port)); SLOW_DOWN_IO; } \
131 __OUT1(s##c_p,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); SLOW_DOWN_IO; }
134 extern unsigned x __in##s(unsigned short port); \
135 extern inline unsigned x __in##s(unsigned short port) { unsigned x _v;
141 __IN1(s,x) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); return _v; } \
142 __IN1(s##c,x) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); return _v; } \
143 __IN1(s##_p,x) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) ,##i ); SLOW_DOWN_IO; return _v; } \
144 __IN1(s##c_p,x) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); SLOW_DOWN_IO; return _v; }
147 extern void ins##s(unsigned short port, void * addr, unsigned long count); \
148 extern inline void ins##s(unsigned short port, void * addr, unsigned long count) \
150 : "=D" (addr), "=c" (count) : "d" (port),"0" (addr),"1" (count)); }
153 extern void outs##s(unsigned short port, const void * addr, unsigned long count); \
154 extern inline void outs##s(unsigned short port, const void * addr, unsigned long count) \
156 : "=S" (addr), "=c" (count) : "d" (port),"0" (addr),"1" (count)); }
179 #define outb(val,port) \
180 ((__builtin_constant_p((port)) && (port) < 256) ? \
181 __outbc((val),(port)) : \
182 __outb((val),(port)))
184 #define inb(port) \
185 ((__builtin_constant_p((port)) && (port) < 256) ? \
186 __inbc(port) : \
187 __inb(port))
189 #define outb_p(val,port) \
190 ((__builtin_constant_p((port)) && (port) < 256) ? \
191 __outbc_p((val),(port)) : \
192 __outb_p((val),(port)))
194 #define inb_p(port) \
195 ((__builtin_constant_p((port)) && (port) < 256) ? \
196 __inbc_p(port) : \
197 __inb_p(port))
199 #define outw(val,port) \
200 ((__builtin_constant_p((port)) && (port) < 256) ? \
201 __outwc((val),(port)) : \
202 __outw((val),(port)))
204 #define inw(port) \
205 ((__builtin_constant_p((port)) && (port) < 256) ? \
206 __inwc(port) : \
207 __inw(port))
209 #define outw_p(val,port) \
210 ((__builtin_constant_p((port)) && (port) < 256) ? \
211 __outwc_p((val),(port)) : \
212 __outw_p((val),(port)))
214 #define inw_p(port) \
215 ((__builtin_constant_p((port)) && (port) < 256) ? \
216 __inwc_p(port) : \
217 __inw_p(port))
219 #define outl(val,port) \
220 ((__builtin_constant_p((port)) && (port) < 256) ? \
221 __outlc((val),(port)) : \
222 __outl((val),(port)))
224 #define inl(port) \
225 ((__builtin_constant_p((port)) && (port) < 256) ? \
226 __inlc(port) : \
227 __inl(port))
229 #define outl_p(val,port) \
230 ((__builtin_constant_p((port)) && (port) < 256) ? \
231 __outlc_p((val),(port)) : \
232 __outl_p((val),(port)))
234 #define inl_p(port) \
235 ((__builtin_constant_p((port)) && (port) < 256) ? \
236 __inlc_p(port) : \
237 __inl_p(port))