• Home
  • Raw
  • Download

Lines Matching refs:addr

50 #define IO_COND(addr, is_pio, is_mmio) do {			\  argument
51 unsigned long port = (unsigned long __force)addr; \
67 #define mmio_read16be(addr) be16_to_cpu(__raw_readw(addr)) argument
68 #define mmio_read32be(addr) be32_to_cpu(__raw_readl(addr)) argument
71 unsigned int ioread8(void __iomem *addr) in ioread8() argument
73 IO_COND(addr, return inb(port), return readb(addr)); in ioread8()
76 unsigned int ioread16(void __iomem *addr) in ioread16() argument
78 IO_COND(addr, return inw(port), return readw(addr)); in ioread16()
81 unsigned int ioread16be(void __iomem *addr) in ioread16be() argument
83 IO_COND(addr, return pio_read16be(port), return mmio_read16be(addr)); in ioread16be()
86 unsigned int ioread32(void __iomem *addr) in ioread32() argument
88 IO_COND(addr, return inl(port), return readl(addr)); in ioread32()
91 unsigned int ioread32be(void __iomem *addr) in ioread32be() argument
93 IO_COND(addr, return pio_read32be(port), return mmio_read32be(addr)); in ioread32be()
112 void iowrite8(u8 val, void __iomem *addr) in iowrite8() argument
114 IO_COND(addr, outb(val,port), writeb(val, addr)); in iowrite8()
116 void iowrite16(u16 val, void __iomem *addr) in iowrite16() argument
118 IO_COND(addr, outw(val,port), writew(val, addr)); in iowrite16()
120 void iowrite16be(u16 val, void __iomem *addr) in iowrite16be() argument
122 IO_COND(addr, pio_write16be(val,port), mmio_write16be(val, addr)); in iowrite16be()
124 void iowrite32(u32 val, void __iomem *addr) in iowrite32() argument
126 IO_COND(addr, outl(val,port), writel(val, addr)); in iowrite32()
128 void iowrite32be(u32 val, void __iomem *addr) in iowrite32be() argument
130 IO_COND(addr, pio_write32be(val,port), mmio_write32be(val, addr)); in iowrite32be()
145 static inline void mmio_insb(void __iomem *addr, u8 *dst, int count) in mmio_insb() argument
148 u8 data = __raw_readb(addr); in mmio_insb()
153 static inline void mmio_insw(void __iomem *addr, u16 *dst, int count) in mmio_insw() argument
156 u16 data = __raw_readw(addr); in mmio_insw()
161 static inline void mmio_insl(void __iomem *addr, u32 *dst, int count) in mmio_insl() argument
164 u32 data = __raw_readl(addr); in mmio_insl()
172 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) in mmio_outsb() argument
175 __raw_writeb(*src, addr); in mmio_outsb()
179 static inline void mmio_outsw(void __iomem *addr, const u16 *src, int count) in mmio_outsw() argument
182 __raw_writew(*src, addr); in mmio_outsw()
186 static inline void mmio_outsl(void __iomem *addr, const u32 *src, int count) in mmio_outsl() argument
189 __raw_writel(*src, addr); in mmio_outsl()
195 void ioread8_rep(void __iomem *addr, void *dst, unsigned long count) in ioread8_rep() argument
197 IO_COND(addr, insb(port,dst,count), mmio_insb(addr, dst, count)); in ioread8_rep()
199 void ioread16_rep(void __iomem *addr, void *dst, unsigned long count) in ioread16_rep() argument
201 IO_COND(addr, insw(port,dst,count), mmio_insw(addr, dst, count)); in ioread16_rep()
203 void ioread32_rep(void __iomem *addr, void *dst, unsigned long count) in ioread32_rep() argument
205 IO_COND(addr, insl(port,dst,count), mmio_insl(addr, dst, count)); in ioread32_rep()
211 void iowrite8_rep(void __iomem *addr, const void *src, unsigned long count) in iowrite8_rep() argument
213 IO_COND(addr, outsb(port, src, count), mmio_outsb(addr, src, count)); in iowrite8_rep()
215 void iowrite16_rep(void __iomem *addr, const void *src, unsigned long count) in iowrite16_rep() argument
217 IO_COND(addr, outsw(port, src, count), mmio_outsw(addr, src, count)); in iowrite16_rep()
219 void iowrite32_rep(void __iomem *addr, const void *src, unsigned long count) in iowrite32_rep() argument
221 IO_COND(addr, outsl(port, src,count), mmio_outsl(addr, src, count)); in iowrite32_rep()
236 void ioport_unmap(void __iomem *addr) in ioport_unmap() argument
247 void pci_iounmap(struct pci_dev *dev, void __iomem * addr) in pci_iounmap() argument
249 IO_COND(addr, /* nothing */, iounmap(addr)); in pci_iounmap()