Lines Matching refs:edev
62 #define SMCREG(edev, r) ((edev)->iobase+((r)<<SMC_IO_SHIFT)) argument
64 #define SMC_inl(edev, r) (*((volatile dword *)SMCREG(edev, r))) argument
65 #define SMC_inw(edev, r) (*((volatile word *)SMCREG(edev, r))) argument
66 #define SMC_inb(edev, p) ({ \ argument
68 unsigned int __v = SMC_inw(edev, __p & ~1); \
73 #define SMC_outl(edev, d, r) (*((volatile dword *)SMCREG(edev, r)) = d) argument
74 #define SMC_outw(edev, d, r) (*((volatile word *)SMCREG(edev, r)) = d) argument
75 #define SMC_outb(edev, d, r) ({ word __d = (byte)(d); \ argument
76 word __w = SMC_inw(edev, (r)&~1); \
79 SMC_outw(edev, __w, (r)&~1); \
82 #define SMC_outsl(edev, r, b, l) ({ int __i; \ argument
86 SMC_outl(edev, *(__b2 + __i),\
91 #define SMC_outsw(edev, r, b, l) ({ int __i; \ argument
95 SMC_outw(edev, *(__b2 + __i),\
100 #define SMC_insl(edev, r, b, l) ({ int __i ; \ argument
104 *(__b2 + __i) = SMC_inl(edev,\
106 SMC_inl(edev, 0); \
110 #define SMC_insw(edev, r, b, l) ({ int __i ; \ argument
114 *(__b2 + __i) = SMC_inw(edev,\
116 SMC_inw(edev, 0); \
120 #define SMC_insb(edev, r, b, l) ({ int __i ; \ argument
124 *(__b2 + __i) = SMC_inb(edev,\
126 SMC_inb(edev, 0); \
136 #define SMC_inw(edev, r) (*((volatile word *)((edev)->iobase+(r)))) argument
137 #define SMC_inb(edev, r) (((r)&1) ? SMC_inw(edev, (r)&~1)>>8 :\ argument
138 SMC_inw(edev, r)&0xFF)
140 #define SMC_outw(edev, d, r) (*((volatile word *)((edev)->iobase+(r))) = d) argument
141 #define SMC_outb(edev, d, r) ({ word __d = (byte)(d); \ argument
142 word __w = SMC_inw(edev, (r)&~1); \
145 SMC_outw(edev, __w, (r)&~1); \
147 #define SMC_outsw(edev, r, b, l) ({ int __i; \ argument
151 SMC_outw(edev, *(__b2 + __i),\
156 #define SMC_insw(edev, r, b, l) ({ int __i ; \ argument
160 *(__b2 + __i) = SMC_inw(edev,\
162 SMC_inw(edev, 0); \
584 #define SMC_SELECT_BANK(edev, x) { SMC_outw(edev, x, LAN91C96_BANK_SELECT); } argument
587 #define SMC_ENABLE_INT(edev, x) {\ argument
589 SMC_SELECT_BANK(edev, 2);\
590 mask = SMC_inb(edev, LAN91C96_INT_MASK);\
592 SMC_outb(edev, mask, LAN91C96_INT_MASK); \
597 #define SMC_DISABLE_INT(edev, x) {\ argument
599 SMC_SELECT_BANK(edev, 2);\
600 mask = SMC_inb(edev, LAN91C96_INT_MASK);\
602 SMC_outb(edev, mask, LAN91C96_INT_MASK); \