Lines Matching refs:io_port
730 shpnt->io_port = setup->io_port; in aha152x_probe_one()
735 HOSTIOPORT0 = setup->io_port; in aha152x_probe_one()
736 HOSTIOPORT1 = setup->io_port; in aha152x_probe_one()
738 HOSTIOPORT0 = setup->io_port+0x10; in aha152x_probe_one()
739 HOSTIOPORT1 = setup->io_port-0x10; in aha152x_probe_one()
777 shpnt->io_port, HOSTIOPORT0, HOSTIOPORT1, in aha152x_probe_one()
856 if (shpnt->io_port) in aha152x_release()
857 release_region(shpnt->io_port, IO_RANGE); in aha152x_release()
2815 shpnt->io_port, shpnt->io_port + shpnt->n_io_port - 1); in aha152x_show_info()
2983 static int aha152x_porttest(int io_port) in aha152x_porttest() argument
2987 SETPORT(io_port + O_DMACNTRL1, 0); /* reset stack pointer */ in aha152x_porttest()
2989 SETPORT(io_port + O_STACK, i); in aha152x_porttest()
2991 SETPORT(io_port + O_DMACNTRL1, 0); /* reset stack pointer */ in aha152x_porttest()
2992 for (i = 0; i < 16 && GETPORT(io_port + O_STACK) == i; i++) in aha152x_porttest()
2998 static int tc1550_porttest(int io_port) in tc1550_porttest() argument
3002 SETPORT(io_port + O_TC_DMACNTRL1, 0); /* reset stack pointer */ in tc1550_porttest()
3004 SETPORT(io_port + O_STACK, i); in tc1550_porttest()
3006 SETPORT(io_port + O_TC_DMACNTRL1, 0); /* reset stack pointer */ in tc1550_porttest()
3007 for (i = 0; i < 16 && GETPORT(io_port + O_TC_STACK) == i; i++) in tc1550_porttest()
3017 for (i = 0; i < ARRAY_SIZE(ports) && (setup->io_port != ports[i]); i++) in checksetup()
3023 if (!request_region(setup->io_port, IO_RANGE, "aha152x")) { in checksetup()
3024 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup->io_port); in checksetup()
3028 if( aha152x_porttest(setup->io_port) ) { in checksetup()
3030 } else if( tc1550_porttest(setup->io_port) ) { in checksetup()
3033 release_region(setup->io_port, IO_RANGE); in checksetup()
3037 release_region(setup->io_port, IO_RANGE); in checksetup()
3088 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3091 override.io_port, in aha152x_init()
3109 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3112 override.io_port, in aha152x_init()
3130 setup[setup_count].io_port = aha152x[0]; in aha152x_init()
3139 if(io[0]!=0) setup[setup_count].io_port = io[0]; in aha152x_init()
3154 setup[setup_count].io_port, in aha152x_init()
3167 setup[setup_count].io_port = aha152x1[0]; in aha152x_init()
3176 if(io[1]!=0) setup[setup_count].io_port = io[1]; in aha152x_init()
3190 setup[setup_count].io_port, in aha152x_init()
3218 if (setup_count==1 && pnp_port_start(dev, 0)==setup[0].io_port) { in aha152x_init()
3223 setup[setup_count].io_port = pnp_port_start(dev, 0); in aha152x_init()
3236 setup[setup_count].io_port, setup[setup_count].irq); in aha152x_init()
3265 if ((setup_count == 1) && (setup[0].io_port == ports[i])) in aha152x_init()
3291 setup[setup_count].io_port = ports[i]; in aha152x_init()
3311 if ( request_region(setup[i].io_port, IO_RANGE, "aha152x") ) { in aha152x_init()
3315 release_region(setup[i].io_port, IO_RANGE); in aha152x_init()
3323 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup[i].io_port); in aha152x_init()
3362 setup[setup_count].io_port = ints[0] >= 1 ? ints[1] : 0x340; in aha152x_setup()