Lines Matching refs:addr
60 #define readb(addr) (*(volatile unsigned char *) (addr)) argument
61 #define readw(addr) (*(volatile unsigned short *) (addr)) argument
62 #define readl(addr) (*(volatile unsigned int *) (addr)) argument
63 #define readq(addr) (*(volatile unsigned long long *) (addr)) argument
69 #define writeb(b,addr) (*(volatile unsigned char *) (addr) = (b)) argument
70 #define writew(b,addr) (*(volatile unsigned short *) (addr) = (b)) argument
71 #define writel(b,addr) (*(volatile unsigned int *) (addr) = (b)) argument
72 #define writeq(b,addr) (*(volatile unsigned long long *) (addr) = (b)) argument
102 #define clrbits(type, addr, clear) \ argument
103 out_##type((addr), in_##type(addr) & ~(clear))
105 #define setbits(type, addr, set) \ argument
106 out_##type((addr), in_##type(addr) | (set))
108 #define clrsetbits(type, addr, clear, set) \ argument
109 out_##type((addr), (in_##type(addr) & ~(clear)) | (set))
111 #define clrbits_be32(addr, clear) clrbits(be32, addr, clear) argument
112 #define setbits_be32(addr, set) setbits(be32, addr, set) argument
113 #define clrsetbits_be32(addr, clear, set) clrsetbits(be32, addr, clear, set) argument
115 #define clrbits_le32(addr, clear) clrbits(le32, addr, clear) argument
116 #define setbits_le32(addr, set) setbits(le32, addr, set) argument
117 #define clrsetbits_le32(addr, clear, set) clrsetbits(le32, addr, clear, set) argument
119 #define clrbits_be16(addr, clear) clrbits(be16, addr, clear) argument
120 #define setbits_be16(addr, set) setbits(be16, addr, set) argument
121 #define clrsetbits_be16(addr, clear, set) clrsetbits(be16, addr, clear, set) argument
123 #define clrbits_le16(addr, clear) clrbits(le16, addr, clear) argument
124 #define setbits_le16(addr, set) setbits(le16, addr, set) argument
125 #define clrsetbits_le16(addr, clear, set) clrsetbits(le16, addr, clear, set) argument
127 #define clrbits_8(addr, clear) clrbits(8, addr, clear) argument
128 #define setbits_8(addr, set) setbits(8, addr, set) argument
129 #define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set) argument
171 static inline void ins##s(unsigned short port, void * addr, unsigned long count) \
173 : "=D" (addr), "=c" (count) : "d" (port),"0" (addr),"1" (count)); }
176 static inline void outs##s(unsigned short port, const void * addr, unsigned long count) \
178 : "=S" (addr), "=c" (count) : "d" (port),"0" (addr),"1" (count)); }
211 #define clrio(type, addr, clear) \ in __INS() argument
212 out##type(in##type(addr) & ~(clear), (addr)) in __INS()
214 #define setio(type, addr, set) \ in __INS() argument
215 out##type(in##type(addr) | (set), (addr)) in __INS()
217 #define clrsetio(type, addr, clear, set) \ in __INS() argument
218 out##type((in##type(addr) & ~(clear)) | (set), (addr)) in __INS()
220 #define clrio_32(addr, clear) clrio(l, addr, clear) in __INS() argument
221 #define clrio_16(addr, clear) clrio(w, addr, clear) in __INS() argument
222 #define clrio_8(addr, clear) clrio(b, addr, clear) in __INS() argument
224 #define setio_32(addr, set) setio(l, addr, set) in __INS() argument
225 #define setio_16(addr, set) setio(w, addr, set) in __INS() argument
226 #define setio_8(addr, set) setio(b, addr, set) in __INS() argument
228 #define clrsetio_32(addr, clear, set) clrsetio(l, addr, clear, set) in __INS() argument
229 #define clrsetio_16(addr, clear, set) clrsetio(w, addr, clear, set) in __INS() argument
230 #define clrsetio_8(addr, clear, set) clrsetio(b, addr, clear, set) in __INS() argument