Lines Matching refs:ports
2935 static unsigned short ports[] = { 0x340, 0x140 }; variable
3032 for (i = 0; i < ARRAY_SIZE(ports) && (setup->io_port != ports[i]); i++) in checksetup()
3035 if (i == ARRAY_SIZE(ports)) in checksetup()
3279 for (i = 0; i < ARRAY_SIZE(ports) && setup_count < 2; i++) { in aha152x_init()
3280 if ((setup_count == 1) && (setup[0].io_port == ports[i])) in aha152x_init()
3283 if (!request_region(ports[i], IO_RANGE, "aha152x")) { in aha152x_init()
3284 printk(KERN_ERR "aha152x: io port 0x%x busy.\n", ports[i]); in aha152x_init()
3288 if (aha152x_porttest(ports[i])) { in aha152x_init()
3292 (GETPORT(ports[i] + O_PORTA) << 8) + GETPORT(ports[i] + O_PORTB); in aha152x_init()
3293 } else if (tc1550_porttest(ports[i])) { in aha152x_init()
3297 (GETPORT(ports[i] + O_TC_PORTA) << 8) + GETPORT(ports[i] + O_TC_PORTB); in aha152x_init()
3299 release_region(ports[i], IO_RANGE); in aha152x_init()
3303 release_region(ports[i], IO_RANGE); in aha152x_init()
3306 setup[setup_count].io_port = ports[i]; in aha152x_init()