Lines Matching refs:addr
24 #define readb(addr) \ argument
25 ({ unsigned char __v = (*(volatile unsigned char *)(addr)); __v; })
27 #define readw(addr) \ argument
28 ({ unsigned short __v = (*(volatile unsigned short *)(addr)); __v; })
30 #define readl(addr) \ argument
31 ({ unsigned int __v = (*(volatile unsigned int *)(addr)); __v; })
33 #define writeb(b, addr) \ argument
34 (void)((*(volatile unsigned char *)(addr)) = (b))
36 #define writew(b, addr) \ argument
37 (void)((*(volatile unsigned short *)(addr)) = (b))
39 #define writel(b, addr) \ argument
40 (void)((*(volatile unsigned int *)(addr)) = (b))
46 #define inb(addr) readb(addr) argument
47 #define inw(addr) readw(addr) argument
48 #define inl(addr) readl(addr) argument
49 #define outb(x, addr) ((void)writeb(x, addr)) argument
50 #define outw(x, addr) ((void)writew(x, addr)) argument
51 #define outl(x, addr) ((void)writel(x, addr)) argument
53 #define out_arch(type, endian, addr, x) \ argument
54 __raw_write##type(cpu_to_##endian(x), addr)
55 #define in_arch(type, endian, addr) \ argument
56 endian##_to_cpu(__raw_read##type(addr))
58 #define out_le16(addr, x) out_arch(w, le16, addr, x) argument
59 #define out_le32(addr, x) out_arch(l, le32, addr, x) argument
61 #define in_le16(addr) in_arch(w, le16, addr) argument
62 #define in_le32(addr) in_arch(l, le32, addr) argument
64 #define in_8(addr) readb(addr) argument
65 #define in_be16(addr) in_arch(w, be16, addr) argument
66 #define in_be32(addr) in_arch(l, be32, addr) argument
68 #define out_8(addr, x) outb(x, addr) argument
69 #define out_be16(addr, x) out_arch(w, be16, addr, x) argument
70 #define out_be32(addr, x) out_arch(l, be32, addr, x) argument