Lines Matching refs:offset
55 void __iomem *microdev_ioport_map(unsigned long offset, unsigned int len)
59 if ((offset >= IO_LAN91C111_BASE) &&
60 (offset < IO_LAN91C111_BASE + IO_LAN91C111_EXTENT)) {
64 result = IO_LAN91C111_PHYS + offset - IO_LAN91C111_BASE;
65 } else if ((offset >= IO_SUPERIO_BASE) &&
66 (offset < IO_SUPERIO_BASE + IO_SUPERIO_EXTENT)) {
72 result = IO_SUPERIO_PHYS + (offset << 1);
73 } else if (((offset >= IO_IDE1_BASE) &&
74 (offset < IO_IDE1_BASE + IO_IDE_EXTENT)) ||
75 (offset == IO_IDE1_MISC)) {
81 result = IO_SUPERIO_PHYS + (offset << 1);
82 } else if (((offset >= IO_IDE2_BASE) &&
83 (offset < IO_IDE2_BASE + IO_IDE_EXTENT)) ||
84 (offset == IO_IDE2_MISC)) {
90 result = IO_SUPERIO_PHYS + (offset << 1);
91 } else if ((offset >= IO_SERIAL1_BASE) &&
92 (offset < IO_SERIAL1_BASE + IO_SERIAL_EXTENT)) {
98 result = IO_SUPERIO_PHYS + (offset << 1);
99 } else if ((offset >= IO_SERIAL2_BASE) &&
100 (offset < IO_SERIAL2_BASE + IO_SERIAL_EXTENT)) {
106 result = IO_SUPERIO_PHYS + (offset << 1);
107 } else if ((offset >= IO_ISP1161_BASE) &&
108 (offset < IO_ISP1161_BASE + IO_ISP1161_EXTENT)) {
112 result = IO_ISP1161_PHYS + offset - IO_ISP1161_BASE;
117 printk("Warning: unexpected port in %s( offset = 0x%lx )\n",
118 __func__, offset);