Lines Matching refs:io

174 } io;  variable
209 return io.base + (port << 5) + ((size - 1) << 3); in port_to_cpu_addr()
211 return port + io.base; in port_to_cpu_addr()
213 return io.base + (port << 7) + ((size - 1) << 5); in port_to_cpu_addr()
225 if (msb && msb != io.hae_cache) in inline_sethae()
227 io.hae_cache = msb; in inline_sethae()
235 if (addr != io.hae_cache) in inline_sethae()
237 io.hae_cache = addr; in inline_sethae()
322 return port + io.base; in dense_port_to_cpu_addr()
547 io.sparse_bus_memory_base in init_iosys()
549 io.io_base = io_system[IOSYS_JENSEN].bus_io_base; in init_iosys()
554 io.bus_memory_base = addr; in init_iosys()
564 io.io_base = addr; in init_iosys()
568 io.sparse_bus_memory_base in init_iosys()
570 io.io_base = __pciconfig_iobase (IOBASE_SPARSE_IO, 0, 0); in init_iosys()
575 io.swiz = io_swiz; in init_iosys()
576 io.swp = &ioswtch[io_swiz]; in init_iosys()
651 io.bus_memory_base = io_system[io_sys].bus_memory_base; in init_iosys()
652 io.sparse_bus_memory_base = io_system[io_sys].sparse_bus_mem_base; in init_iosys()
653 io.io_base = io_system[io_sys].bus_io_base; in init_iosys()
656 io.swiz = IOSWIZZLE_JENSEN; in init_iosys()
660 io.swiz = IOSWIZZLE_DENSE; in init_iosys()
662 io.swiz = IOSWIZZLE_SPARSE; in init_iosys()
663 io.swp = &ioswtch[io.swiz]; in init_iosys()
683 if (!io.swp && init_iosys() < 0) in _ioperm()
702 fprintf(stderr, "ioperm: turn_on %d io.base %ld\n", turn_on, io.base); in _ioperm()
707 if (!io.base) in _ioperm()
711 io.hae_cache = 0; in _ioperm()
712 if (io.swiz != IOSWIZZLE_DENSE) in _ioperm()
727 addr = port_to_cpu_addr (0, io.swiz, 1); in _ioperm()
728 len = port_to_cpu_addr (MAX_PORT, io.swiz, 1) - addr; in _ioperm()
729 io.base = in _ioperm()
731 fd, io.io_base); in _ioperm()
735 len, io.base); in _ioperm()
737 if ((long) io.base == -1) in _ioperm()
744 if (!io.base) in _ioperm()
750 addr = port_to_cpu_addr (from, io.swiz, 1); in _ioperm()
752 len = port_to_cpu_addr (from + num, io.swiz, 1) - addr; in _ioperm()
778 if (!io.swp && init_iosys () < 0) in _sethae()
781 io.swp->sethae (addr); in _sethae()
791 io.swp->outb (b, port); in _outb()
801 io.swp->outw (b, port); in _outw()
811 io.swp->outl (b, port); in _outl()
818 return io.swp->inb (port); in _inb()
825 return io.swp->inw (port); in _inw()
832 return io.swp->inl (port); in _inl()
839 if (!io.swp && init_iosys () < 0) in _bus_base()
841 return io.bus_memory_base; in _bus_base()
847 if (!io.swp && init_iosys () < 0) in _bus_base_sparse()
849 return io.sparse_bus_memory_base; in _bus_base_sparse()
855 if (!io.swp && init_iosys () < 0) in _hae_shift()
857 if (io.swiz == IOSWIZZLE_JENSEN) in _hae_shift()
859 if (io.swiz == IOSWIZZLE_SPARSE) in _hae_shift()