Lines Matching refs:a

72 #define	SMC_inl(a,r)	(*((volatile dword *)((a)->iobase+((r)<<1))))  argument
73 #define SMC_inw(a,r) (*((volatile word *)((a)->iobase+((r)<<1)))) argument
74 #define SMC_inb(a,p) ({ \ argument
75 unsigned int __p = (unsigned int)((a)->iobase + ((p)<<1)); \
81 #define SMC_inl(a,r) (*((volatile dword *)((a)->iobase+(r)))) argument
82 #define SMC_inw(a,r) (*((volatile word *)((a)->iobase+(r)))) argument
83 #define SMC_inb(a,p) ({ \ argument
84 unsigned int __p = (unsigned int)((a)->iobase + (p)); \
92 #define SMC_outl(a,d,r) (*((volatile dword *)((a)->iobase+(r<<1))) = d) argument
93 #define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+(r<<1))) = d) argument
95 #define SMC_outl(a,d,r) (*((volatile dword *)((a)->iobase+(r))) = d) argument
96 #define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+(r))) = d) argument
99 #define SMC_outb(a,d,r) ({ word __d = (byte)(d); \ argument
100 word __w = SMC_inw((a),(r)&~1); \
103 SMC_outw((a),__w,(r)&~1); \
106 #define SMC_outsl(a,r,b,l) ({ int __i; \ argument
110 SMC_outl((a), *(__b2 + __i), r); \
114 #define SMC_outsw(a,r,b,l) ({ int __i; \ argument
118 SMC_outw((a), *(__b2 + __i), r); \
122 #define SMC_insl(a,r,b,l) ({ int __i ; \ argument
126 *(__b2 + __i) = SMC_inl((a),(r)); \
127 SMC_inl((a),0); \
131 #define SMC_insw(a,r,b,l) ({ int __i ; \ argument
135 *(__b2 + __i) = SMC_inw((a),(r)); \
136 SMC_inw((a),0); \
140 #define SMC_insb(a,r,b,l) ({ int __i ; \ argument
144 *(__b2 + __i) = SMC_inb((a),(r)); \
145 SMC_inb((a),0); \
160 #define SMC_inl(a,r) (SMC_LEON_SWAP32((*(volatile dword *)((a)->iobase+((r)<<0))))) argument
161 #define SMC_inl_nosw(a,r) ((*(volatile dword *)((a)->iobase+((r)<<0)))) argument
162 #define SMC_inw(a,r) (SMC_LEON_SWAP16((*(volatile word *)((a)->iobase+((r)<<0))))) argument
163 #define SMC_inw_nosw(a,r) ((*(volatile word *)((a)->iobase+((r)<<0)))) argument
164 #define SMC_inb(a,p) ({ \ argument
165 word ___v = SMC_inw((a),(p) & ~1); \
170 #define SMC_outl(a,d,r) (*(volatile dword *)((a)->iobase+((r)<<0))=SMC_LEON_SWAP32(d)) argument
171 #define SMC_outl_nosw(a,d,r) (*(volatile dword *)((a)->iobase+((r)<<0))=(d)) argument
172 #define SMC_outw(a,d,r) (*(volatile word *)((a)->iobase+((r)<<0))=SMC_LEON_SWAP16(d)) argument
173 #define SMC_outw_nosw(a,d,r) (*(volatile word *)((a)->iobase+((r)<<0))=(d)) argument
174 #define SMC_outb(a,d,r) do{ word __d = (byte)(d); \ argument
175 word __w = SMC_inw((a),(r)&~1); \
178 SMC_outw((a),__w,(r)&~1); \
180 #define SMC_outsl(a,r,b,l) do{ int __i; \ argument
184 SMC_outl_nosw((a), *(__b2 + __i), r); \
187 #define SMC_outsw(a,r,b,l) do{ int __i; \ argument
191 SMC_outw_nosw((a), *(__b2 + __i), r); \
194 #define SMC_insl(a,r,b,l) do{ int __i ; \ argument
198 *(__b2 + __i) = SMC_inl_nosw((a),(r)); \
202 #define SMC_insw(a,r,b,l) do{ int __i ; \ argument
206 *(__b2 + __i) = SMC_inw_nosw((a),(r)); \
210 #define SMC_insb(a,r,b,l) do{ int __i ; \ argument
214 *(__b2 + __i) = SMC_inb((a),(r)); \
219 #define SMC_inw(a, r) *((volatile word*)((a)->iobase + (r))) argument
220 #define SMC_inb(a, r) (*((volatile byte*)((a)->iobase + ((r) ^ 0x01)))) argument
221 #define SMC_insw(a, r, b, l) \ argument
226 *__b2++ = SWAB7206(SMC_inw(a, r)); \
229 #define SMC_outw(a, d, r) (*((volatile word *)((a)->iobase+(r))) = d) argument
230 #define SMC_outb(a, d, r) ({ word __d = (byte)(d); \ argument
231 word __w = SMC_inw((a), ((r)&(~1))); \
236 SMC_outw((a), __w, ((r)&(~1))); \
238 #define SMC_outsw(a, r, b, l) \ argument
243 SMC_outw(a, SWAB7206(*__b2), r); \
255 #define SMC_inw(a,r) (*((volatile word *)((a)->iobase+((r)<<1)))) argument
257 #define SMC_inw(a, r) (*((volatile word*)((a)->iobase+((dword)(r))))) argument
259 #define SMC_inw(a, r) (*((volatile word*)((a)->iobase+(r)))) argument
261 #define SMC_inb(a,r) (((r)&1) ? SMC_inw((a),(r)&~1)>>8 : SMC_inw((a),(r)&0xFF)) argument
264 #define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+((r)<<1))) = d) argument
266 #define SMC_outw(a, d, r) \ argument
267 (*((volatile word*)((a)->iobase+((dword)(r)))) = d)
269 #define SMC_outw(a, d, r) \ argument
270 (*((volatile word*)((a)->iobase+(r))) = d)
272 #define SMC_outb(a,d,r) ({ word __d = (byte)(d); \ argument
273 word __w = SMC_inw((a),(r)&~1); \
276 SMC_outw((a),__w,(r)&~1); \
279 #define SMC_outsw(a,r,b,l) outsw((a)->iobase+(r), (b), (l))
281 #define SMC_outsw(a,r,b,l) ({ int __i; \ argument
285 SMC_outw((a), *(__b2 + __i), r); \
291 #define SMC_insw(a,r,b,l) insw((a)->iobase+(r), (b), (l))
293 #define SMC_insw(a,r,b,l) ({ int __i ; \ argument
297 *(__b2 + __i) = SMC_inw((a),(r)); \
298 SMC_inw((a),0); \
308 #define SMC_inl(a,r) (*((volatile dword *)((a)->iobase+(r<<1)))) argument
310 #define SMC_inl(a,r) (*((volatile dword *)((a)->iobase+(r)))) argument
313 #define SMC_insl(a,r,b,l) ({ int __i ; \ argument
317 *(__b2 + __i) = SMC_inl((a),(r)); \
318 SMC_inl((a),0); \
323 #define SMC_outl(a,d,r) (*((volatile dword *)((a)->iobase+(r<<1))) = d) argument
325 #define SMC_outl(a,d,r) (*((volatile dword *)((a)->iobase+(r))) = d) argument
327 #define SMC_outsl(a,r,b,l) ({ int __i; \ argument
331 SMC_outl((a), *(__b2 + __i), r); \
756 #define SMC_SELECT_BANK(a,x) { SMC_outw((a), (x), BANK_SELECT ); } argument
759 #define SMC_ENABLE_INT(a,x) {\ argument
761 SMC_SELECT_BANK((a),2);\
762 mask = SMC_inb((a), IM_REG );\
764 SMC_outb( (a), mask, IM_REG ); \
769 #define SMC_DISABLE_INT(a,x) {\ argument
772 mask = SMC_inb( (a), IM_REG );\
774 SMC_outb( (a), mask, IM_REG ); \