Lines Matching refs:io_port
749 shpnt->io_port = setup->io_port; in aha152x_probe_one()
754 HOSTIOPORT0 = setup->io_port; in aha152x_probe_one()
755 HOSTIOPORT1 = setup->io_port; in aha152x_probe_one()
757 HOSTIOPORT0 = setup->io_port+0x10; in aha152x_probe_one()
758 HOSTIOPORT1 = setup->io_port-0x10; in aha152x_probe_one()
796 shpnt->io_port, HOSTIOPORT0, HOSTIOPORT1, in aha152x_probe_one()
875 if (shpnt->io_port) in aha152x_release()
876 release_region(shpnt->io_port, IO_RANGE); in aha152x_release()
2867 shpnt->io_port, shpnt->io_port + shpnt->n_io_port - 1); in aha152x_show_info()
3036 static int aha152x_porttest(int io_port) in aha152x_porttest() argument
3040 SETPORT(io_port + O_DMACNTRL1, 0); /* reset stack pointer */ in aha152x_porttest()
3042 SETPORT(io_port + O_STACK, i); in aha152x_porttest()
3044 SETPORT(io_port + O_DMACNTRL1, 0); /* reset stack pointer */ in aha152x_porttest()
3045 for (i = 0; i < 16 && GETPORT(io_port + O_STACK) == i; i++) in aha152x_porttest()
3051 static int tc1550_porttest(int io_port) in tc1550_porttest() argument
3055 SETPORT(io_port + O_TC_DMACNTRL1, 0); /* reset stack pointer */ in tc1550_porttest()
3057 SETPORT(io_port + O_STACK, i); in tc1550_porttest()
3059 SETPORT(io_port + O_TC_DMACNTRL1, 0); /* reset stack pointer */ in tc1550_porttest()
3060 for (i = 0; i < 16 && GETPORT(io_port + O_TC_STACK) == i; i++) in tc1550_porttest()
3070 for (i = 0; i < ARRAY_SIZE(ports) && (setup->io_port != ports[i]); i++) in checksetup()
3076 if (!request_region(setup->io_port, IO_RANGE, "aha152x")) { in checksetup()
3077 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup->io_port); in checksetup()
3081 if( aha152x_porttest(setup->io_port) ) { in checksetup()
3083 } else if( tc1550_porttest(setup->io_port) ) { in checksetup()
3086 release_region(setup->io_port, IO_RANGE); in checksetup()
3090 release_region(setup->io_port, IO_RANGE); in checksetup()
3141 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3144 override.io_port, in aha152x_init()
3162 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3165 override.io_port, in aha152x_init()
3183 setup[setup_count].io_port = aha152x[0]; in aha152x_init()
3192 if(io[0]!=0) setup[setup_count].io_port = io[0]; in aha152x_init()
3207 setup[setup_count].io_port, in aha152x_init()
3220 setup[setup_count].io_port = aha152x1[0]; in aha152x_init()
3229 if(io[1]!=0) setup[setup_count].io_port = io[1]; in aha152x_init()
3243 setup[setup_count].io_port, in aha152x_init()
3271 if (setup_count==1 && pnp_port_start(dev, 0)==setup[0].io_port) { in aha152x_init()
3276 setup[setup_count].io_port = pnp_port_start(dev, 0); in aha152x_init()
3289 setup[setup_count].io_port, setup[setup_count].irq); in aha152x_init()
3318 if ((setup_count == 1) && (setup[0].io_port == ports[i])) in aha152x_init()
3344 setup[setup_count].io_port = ports[i]; in aha152x_init()
3364 if ( request_region(setup[i].io_port, IO_RANGE, "aha152x") ) { in aha152x_init()
3368 release_region(setup[i].io_port, IO_RANGE); in aha152x_init()
3376 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", setup[i].io_port); in aha152x_init()
3415 setup[setup_count].io_port = ints[0] >= 1 ? ints[1] : 0x340; in aha152x_setup()