Lines Matching refs:ints
607 static void __init setup_error(char *mesg, int *ints) in setup_error() argument
609 if (ints[0] == 3) in setup_error()
610 printk(KERN_ERR "wd7000_setup: \"wd7000=%d,%d,0x%x\" -> %s\n", ints[1], ints[2], ints[3], mesg); in setup_error()
611 else if (ints[0] == 4) in setup_error()
612 …printk(KERN_ERR "wd7000_setup: \"wd7000=%d,%d,0x%x,%d\" -> %s\n", ints[1], ints[2], ints[3], ints[… in setup_error()
614 …RR "wd7000_setup: \"wd7000=%d,%d,0x%x,%d,%d\" -> %s\n", ints[1], ints[2], ints[3], ints[4], ints[5… in setup_error()
636 int ints[6]; in wd7000_setup() local
638 (void) get_options(str, ARRAY_SIZE(ints), ints); in wd7000_setup()
645 if ((ints[0] < 3) || (ints[0] > 5)) { in wd7000_setup()
649 if (ints[1] == wd7000_irq[i]) in wd7000_setup()
653 setup_error("invalid IRQ.", ints); in wd7000_setup()
656 configs[wd7000_card_num].irq = ints[1]; in wd7000_setup()
659 if (ints[2] == wd7000_dma[i]) in wd7000_setup()
663 setup_error("invalid DMA channel.", ints); in wd7000_setup()
666 configs[wd7000_card_num].dma = ints[2]; in wd7000_setup()
669 if (ints[3] == wd7000_iobase[i]) in wd7000_setup()
673 setup_error("invalid I/O base address.", ints); in wd7000_setup()
676 configs[wd7000_card_num].iobase = ints[3]; in wd7000_setup()
678 if (ints[0] > 3) { in wd7000_setup()
679 if ((ints[4] < 500) || (ints[4] > 31875)) { in wd7000_setup()
680 setup_error("BUS_ON value is out of range (500" " to 31875 nanoseconds)!", ints); in wd7000_setup()
683 configs[wd7000_card_num].bus_on = ints[4] / 125; in wd7000_setup()
687 if (ints[0] > 4) { in wd7000_setup()
688 if ((ints[5] < 500) || (ints[5] > 31875)) { in wd7000_setup()
689 setup_error("BUS_OFF value is out of range (500" " to 31875 nanoseconds)!", ints); in wd7000_setup()
692 configs[wd7000_card_num].bus_off = ints[5] / 125; in wd7000_setup()
702 setup_error("duplicated IRQ!", ints); in wd7000_setup()
706 setup_error("duplicated DMA " "channel!", ints); in wd7000_setup()
710 setup_error("duplicated I/O " "base address!", ints); in wd7000_setup()