Lines Matching refs:io_port

739 	shpnt->io_port   = setup->io_port;  in aha152x_probe_one()
744 HOSTIOPORT0 = setup->io_port; in aha152x_probe_one()
745 HOSTIOPORT1 = setup->io_port; in aha152x_probe_one()
747 HOSTIOPORT0 = setup->io_port+0x10; in aha152x_probe_one()
748 HOSTIOPORT1 = setup->io_port-0x10; in aha152x_probe_one()
786 shpnt->io_port, HOSTIOPORT0, HOSTIOPORT1, in aha152x_probe_one()
865 if (shpnt->io_port) in aha152x_release()
866 release_region(shpnt->io_port, IO_RANGE); in aha152x_release()
2828 shpnt->io_port, shpnt->io_port + shpnt->n_io_port - 1); in aha152x_show_info()
2998 static int aha152x_porttest(int io_port) in aha152x_porttest() argument
3002 SETPORT(io_port + O_DMACNTRL1, 0); /* reset stack pointer */ in aha152x_porttest()
3004 SETPORT(io_port + O_STACK, i); in aha152x_porttest()
3006 SETPORT(io_port + O_DMACNTRL1, 0); /* reset stack pointer */ in aha152x_porttest()
3007 for (i = 0; i < 16 && GETPORT(io_port + O_STACK) == i; i++) in aha152x_porttest()
3013 static int tc1550_porttest(int io_port) in tc1550_porttest() argument
3017 SETPORT(io_port + O_TC_DMACNTRL1, 0); /* reset stack pointer */ in tc1550_porttest()
3019 SETPORT(io_port + O_STACK, i); in tc1550_porttest()
3021 SETPORT(io_port + O_TC_DMACNTRL1, 0); /* reset stack pointer */ in tc1550_porttest()
3022 for (i = 0; i < 16 && GETPORT(io_port + O_TC_STACK) == i; i++) in tc1550_porttest()
3032 for (i = 0; i < ARRAY_SIZE(ports) && (setup->io_port != ports[i]); i++) in checksetup()
3038 if (!request_region(setup->io_port, IO_RANGE, "aha152x")) { in checksetup()
3039 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup->io_port); in checksetup()
3043 if( aha152x_porttest(setup->io_port) ) { in checksetup()
3045 } else if( tc1550_porttest(setup->io_port) ) { in checksetup()
3048 release_region(setup->io_port, IO_RANGE); in checksetup()
3052 release_region(setup->io_port, IO_RANGE); in checksetup()
3103 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3106 override.io_port, in aha152x_init()
3124 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3127 override.io_port, in aha152x_init()
3145 setup[setup_count].io_port = aha152x[0]; in aha152x_init()
3154 if(io[0]!=0) setup[setup_count].io_port = io[0]; in aha152x_init()
3169 setup[setup_count].io_port, in aha152x_init()
3182 setup[setup_count].io_port = aha152x1[0]; in aha152x_init()
3191 if(io[1]!=0) setup[setup_count].io_port = io[1]; in aha152x_init()
3205 setup[setup_count].io_port, in aha152x_init()
3233 if (setup_count==1 && pnp_port_start(dev, 0)==setup[0].io_port) { in aha152x_init()
3238 setup[setup_count].io_port = pnp_port_start(dev, 0); in aha152x_init()
3251 setup[setup_count].io_port, setup[setup_count].irq); in aha152x_init()
3280 if ((setup_count == 1) && (setup[0].io_port == ports[i])) in aha152x_init()
3306 setup[setup_count].io_port = ports[i]; in aha152x_init()
3326 if ( request_region(setup[i].io_port, IO_RANGE, "aha152x") ) { in aha152x_init()
3330 release_region(setup[i].io_port, IO_RANGE); in aha152x_init()
3338 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup[i].io_port); in aha152x_init()
3377 setup[setup_count].io_port = ints[0] >= 1 ? ints[1] : 0x340; in aha152x_setup()