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()
2816 shpnt->io_port, shpnt->io_port + shpnt->n_io_port - 1); in aha152x_show_info()
2984 static int aha152x_porttest(int io_port) in aha152x_porttest() argument
2988 SETPORT(io_port + O_DMACNTRL1, 0); /* reset stack pointer */ in aha152x_porttest()
2990 SETPORT(io_port + O_STACK, i); in aha152x_porttest()
2992 SETPORT(io_port + O_DMACNTRL1, 0); /* reset stack pointer */ in aha152x_porttest()
2993 for (i = 0; i < 16 && GETPORT(io_port + O_STACK) == i; i++) in aha152x_porttest()
2999 static int tc1550_porttest(int io_port) in tc1550_porttest() argument
3003 SETPORT(io_port + O_TC_DMACNTRL1, 0); /* reset stack pointer */ in tc1550_porttest()
3005 SETPORT(io_port + O_STACK, i); in tc1550_porttest()
3007 SETPORT(io_port + O_TC_DMACNTRL1, 0); /* reset stack pointer */ in tc1550_porttest()
3008 for (i = 0; i < 16 && GETPORT(io_port + O_TC_STACK) == i; i++) in tc1550_porttest()
3018 for (i = 0; i < ARRAY_SIZE(ports) && (setup->io_port != ports[i]); i++) in checksetup()
3024 if (!request_region(setup->io_port, IO_RANGE, "aha152x")) { in checksetup()
3025 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup->io_port); in checksetup()
3029 if( aha152x_porttest(setup->io_port) ) { in checksetup()
3031 } else if( tc1550_porttest(setup->io_port) ) { in checksetup()
3034 release_region(setup->io_port, IO_RANGE); in checksetup()
3038 release_region(setup->io_port, IO_RANGE); in checksetup()
3089 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3092 override.io_port, in aha152x_init()
3110 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3113 override.io_port, in aha152x_init()
3131 setup[setup_count].io_port = aha152x[0]; in aha152x_init()
3140 if(io[0]!=0) setup[setup_count].io_port = io[0]; in aha152x_init()
3155 setup[setup_count].io_port, in aha152x_init()
3168 setup[setup_count].io_port = aha152x1[0]; in aha152x_init()
3177 if(io[1]!=0) setup[setup_count].io_port = io[1]; in aha152x_init()
3191 setup[setup_count].io_port, in aha152x_init()
3219 if (setup_count==1 && pnp_port_start(dev, 0)==setup[0].io_port) { in aha152x_init()
3224 setup[setup_count].io_port = pnp_port_start(dev, 0); in aha152x_init()
3237 setup[setup_count].io_port, setup[setup_count].irq); in aha152x_init()
3266 if ((setup_count == 1) && (setup[0].io_port == ports[i])) in aha152x_init()
3292 setup[setup_count].io_port = ports[i]; in aha152x_init()
3312 if ( request_region(setup[i].io_port, IO_RANGE, "aha152x") ) { in aha152x_init()
3316 release_region(setup[i].io_port, IO_RANGE); in aha152x_init()
3324 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup[i].io_port); in aha152x_init()
3363 setup[setup_count].io_port = ints[0] >= 1 ? ints[1] : 0x340; in aha152x_setup()