Lines Matching refs:io_port

731 	shpnt->io_port   = setup->io_port;  in aha152x_probe_one()
736 HOSTIOPORT0 = setup->io_port; in aha152x_probe_one()
737 HOSTIOPORT1 = setup->io_port; in aha152x_probe_one()
739 HOSTIOPORT0 = setup->io_port+0x10; in aha152x_probe_one()
740 HOSTIOPORT1 = setup->io_port-0x10; in aha152x_probe_one()
778 shpnt->io_port, HOSTIOPORT0, HOSTIOPORT1, in aha152x_probe_one()
857 if (shpnt->io_port) in aha152x_release()
858 release_region(shpnt->io_port, IO_RANGE); in aha152x_release()
2818 shpnt->io_port, shpnt->io_port + shpnt->n_io_port - 1); in aha152x_show_info()
2986 static int aha152x_porttest(int io_port) in aha152x_porttest() argument
2990 SETPORT(io_port + O_DMACNTRL1, 0); /* reset stack pointer */ in aha152x_porttest()
2992 SETPORT(io_port + O_STACK, i); in aha152x_porttest()
2994 SETPORT(io_port + O_DMACNTRL1, 0); /* reset stack pointer */ in aha152x_porttest()
2995 for (i = 0; i < 16 && GETPORT(io_port + O_STACK) == i; i++) in aha152x_porttest()
3001 static int tc1550_porttest(int io_port) in tc1550_porttest() argument
3005 SETPORT(io_port + O_TC_DMACNTRL1, 0); /* reset stack pointer */ in tc1550_porttest()
3007 SETPORT(io_port + O_STACK, i); in tc1550_porttest()
3009 SETPORT(io_port + O_TC_DMACNTRL1, 0); /* reset stack pointer */ in tc1550_porttest()
3010 for (i = 0; i < 16 && GETPORT(io_port + O_TC_STACK) == i; i++) in tc1550_porttest()
3020 for (i = 0; i < ARRAY_SIZE(ports) && (setup->io_port != ports[i]); i++) in checksetup()
3026 if (!request_region(setup->io_port, IO_RANGE, "aha152x")) { in checksetup()
3027 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup->io_port); in checksetup()
3031 if( aha152x_porttest(setup->io_port) ) { in checksetup()
3033 } else if( tc1550_porttest(setup->io_port) ) { in checksetup()
3036 release_region(setup->io_port, IO_RANGE); in checksetup()
3040 release_region(setup->io_port, IO_RANGE); in checksetup()
3091 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3094 override.io_port, in aha152x_init()
3112 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3115 override.io_port, in aha152x_init()
3133 setup[setup_count].io_port = aha152x[0]; in aha152x_init()
3142 if(io[0]!=0) setup[setup_count].io_port = io[0]; in aha152x_init()
3157 setup[setup_count].io_port, in aha152x_init()
3170 setup[setup_count].io_port = aha152x1[0]; in aha152x_init()
3179 if(io[1]!=0) setup[setup_count].io_port = io[1]; in aha152x_init()
3193 setup[setup_count].io_port, in aha152x_init()
3221 if (setup_count==1 && pnp_port_start(dev, 0)==setup[0].io_port) { in aha152x_init()
3226 setup[setup_count].io_port = pnp_port_start(dev, 0); in aha152x_init()
3239 setup[setup_count].io_port, setup[setup_count].irq); in aha152x_init()
3268 if ((setup_count == 1) && (setup[0].io_port == ports[i])) in aha152x_init()
3294 setup[setup_count].io_port = ports[i]; in aha152x_init()
3314 if ( request_region(setup[i].io_port, IO_RANGE, "aha152x") ) { in aha152x_init()
3318 release_region(setup[i].io_port, IO_RANGE); in aha152x_init()
3326 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup[i].io_port); in aha152x_init()
3365 setup[setup_count].io_port = ints[0] >= 1 ? ints[1] : 0x340; in aha152x_setup()