Lines Matching refs:addr
56 #define readb(addr)\ argument
58 asm volatile( "ldbio %0, 0(%1)" :"=r"(val) : "r" (addr)); val;})
59 #define readw(addr)\ argument
61 asm volatile( "ldhio %0, 0(%1)" :"=r"(val) : "r" (addr)); val;})
62 #define readl(addr)\ argument
64 asm volatile( "ldwio %0, 0(%1)" :"=r"(val) : "r" (addr)); val;})
66 #define writeb(val,addr)\ argument
67 asm volatile ("stbio %0, 0(%1)" : : "r" (val), "r" (addr))
68 #define writew(val,addr)\ argument
69 asm volatile ("sthio %0, 0(%1)" : : "r" (val), "r" (addr))
70 #define writel(val,addr)\ argument
71 asm volatile ("stwio %0, 0(%1)" : : "r" (val), "r" (addr))
73 #define inb(addr) readb(addr) argument
74 #define inw(addr) readw(addr) argument
75 #define inl(addr) readl(addr) argument
76 #define outb(val, addr) writeb(val,addr) argument
77 #define outw(val, addr) writew(val,addr) argument
78 #define outl(val, addr) writel(val,addr) argument
139 #define clrbits(type, addr, clear) \ argument
140 out_##type((addr), in_##type(addr) & ~(clear))
142 #define setbits(type, addr, set) \ argument
143 out_##type((addr), in_##type(addr) | (set))
145 #define clrsetbits(type, addr, clear, set) \ argument
146 out_##type((addr), (in_##type(addr) & ~(clear)) | (set))
148 #define clrbits_be32(addr, clear) clrbits(be32, addr, clear) argument
149 #define setbits_be32(addr, set) setbits(be32, addr, set) argument
150 #define clrsetbits_be32(addr, clear, set) clrsetbits(be32, addr, clear, set) argument
152 #define clrbits_le32(addr, clear) clrbits(le32, addr, clear) argument
153 #define setbits_le32(addr, set) setbits(le32, addr, set) argument
154 #define clrsetbits_le32(addr, clear, set) clrsetbits(le32, addr, clear, set) argument
156 #define clrbits_be16(addr, clear) clrbits(be16, addr, clear) argument
157 #define setbits_be16(addr, set) setbits(be16, addr, set) argument
158 #define clrsetbits_be16(addr, clear, set) clrsetbits(be16, addr, clear, set) argument
160 #define clrbits_le16(addr, clear) clrbits(le16, addr, clear) argument
161 #define setbits_le16(addr, set) setbits(le16, addr, set) argument
162 #define clrsetbits_le16(addr, clear, set) clrsetbits(le16, addr, clear, set) argument
164 #define clrbits_8(addr, clear) clrbits(8, addr, clear) argument
165 #define setbits_8(addr, set) setbits(8, addr, set) argument
166 #define clrsetbits_8(addr, clear, set) clrsetbits(8, addr, clear, set) argument