Lines Matching refs:IO_COND
52 #define IO_COND(addr, is_pio, is_mmio) do { \ macro
75 IO_COND(addr, return inb(port), return readb(addr)); in ioread8()
80 IO_COND(addr, return inw(port), return readw(addr)); in ioread16()
85 IO_COND(addr, return pio_read16be(port), return mmio_read16be(addr)); in ioread16be()
90 IO_COND(addr, return inl(port), return readl(addr)); in ioread32()
95 IO_COND(addr, return pio_read32be(port), return mmio_read32be(addr)); in ioread32be()
111 IO_COND(addr, outb(val,port), writeb(val, addr)); in iowrite8()
115 IO_COND(addr, outw(val,port), writew(val, addr)); in iowrite16()
119 IO_COND(addr, pio_write16be(val,port), mmio_write16be(val, addr)); in iowrite16be()
123 IO_COND(addr, outl(val,port), writel(val, addr)); in iowrite32()
127 IO_COND(addr, pio_write32be(val,port), mmio_write32be(val, addr)); in iowrite32be()
189 IO_COND(addr, insb(port,dst,count), mmio_insb(addr, dst, count)); in ioread8_rep()
193 IO_COND(addr, insw(port,dst,count), mmio_insw(addr, dst, count)); in ioread16_rep()
197 IO_COND(addr, insl(port,dst,count), mmio_insl(addr, dst, count)); in ioread32_rep()
202 IO_COND(addr, outsb(port, src, count), mmio_outsb(addr, src, count)); in iowrite8_rep()
206 IO_COND(addr, outsw(port, src, count), mmio_outsw(addr, src, count)); in iowrite16_rep()
210 IO_COND(addr, outsl(port, src,count), mmio_outsl(addr, src, count)); in iowrite32_rep()
250 IO_COND(addr, /* nothing */, iounmap(addr)); in pci_iounmap()