Lines Matching refs:ints

577 static void setup_error (char *mesg, int *ints)  in setup_error()  argument
579 if (ints[0] == 3) in setup_error()
581 ints[1], ints[2], ints[3], mesg); in setup_error()
582 else if (ints[0] == 4) in setup_error()
584 ints[1], ints[2], ints[3], ints[4], mesg); in setup_error()
587 ints[1], ints[2], ints[3], ints[4], ints[5], mesg); in setup_error()
609 int ints[6]; in wd7000_setup() local
611 (void)get_options(str, ARRAY_SIZE(ints), ints); in wd7000_setup()
619 if ((ints[0] < 3) || (ints[0] > 5)) { in wd7000_setup()
624 if (ints[1] == wd7000_irq[i]) in wd7000_setup()
628 setup_error("invalid IRQ.", ints); in wd7000_setup()
631 configs[wd7000_card_num].irq = ints[1]; in wd7000_setup()
634 if (ints[2] == wd7000_dma[i]) in wd7000_setup()
638 setup_error("invalid DMA channel.", ints); in wd7000_setup()
641 configs[wd7000_card_num].dma = ints[2]; in wd7000_setup()
644 if (ints[3] == wd7000_iobase[i]) in wd7000_setup()
648 setup_error("invalid I/O base address.", ints); in wd7000_setup()
651 configs[wd7000_card_num].iobase = ints[3]; in wd7000_setup()
653 if (ints[0] > 3) { in wd7000_setup()
654 if ((ints[4] < 500) || (ints[4] > 31875)) { in wd7000_setup()
655 setup_error("BUS_ON value is out of range (500 to 31875 nanoseconds)!", ints); in wd7000_setup()
658 configs[wd7000_card_num].bus_on = ints[4] / 125; in wd7000_setup()
662 if (ints[0] > 4) { in wd7000_setup()
663 if ((ints[5] < 500) || (ints[5] > 31875)) { in wd7000_setup()
664 setup_error("BUS_OFF value is out of range (500 to 31875 nanoseconds)!", ints); in wd7000_setup()
667 configs[wd7000_card_num].bus_off = ints[5] / 125; in wd7000_setup()
675 setup_error("duplicated IRQ!", ints); in wd7000_setup()
678 setup_error("duplicated DMA channel!", ints); in wd7000_setup()
681 setup_error ("duplicated I/O base address!", ints); in wd7000_setup()