Lines Matching refs:idx

428 	int idx;  in isapnp_print_compatible()  local
430 for (idx = 0; idx < DEVICE_COUNT_COMPATIBLE; idx++) { in isapnp_print_compatible()
431 if (dev->vendor_compatible[idx] == 0) in isapnp_print_compatible()
435 dev->vendor_compatible[idx], in isapnp_print_compatible()
436 dev->device_compatible[idx]); in isapnp_print_compatible()
785 int idx, idx1; in isapnp_set_card() local
795 idx = idx1 = simple_strtoul(index, NULL, 0); in isapnp_set_card()
801 printk("isapnp: card '%s' order %i not found\n", value, idx); in isapnp_set_card()
841 int idx, idx1; in isapnp_set_device() local
847 idx = idx1 = simple_strtoul(index, NULL, 0); in isapnp_set_device()
850 while (isapnp_info_device && idx-- > 0) in isapnp_set_device()
853 printk("isapnp: device '%s' order %i not found\n", value, idx); in isapnp_set_device()
885 int idx, port; in isapnp_set_port() local
890 idx = simple_strtoul(index, NULL, 0); in isapnp_set_port()
892 if (idx < 0 || idx > 7) { in isapnp_set_port()
893 printk("isapnp: wrong port index %i\n", idx); in isapnp_set_port()
900 isapnp_write_word(ISAPNP_CFG_PORT + (idx << 1), port); in isapnp_set_port()
901 if (!isapnp_info_device->resource[idx].flags) in isapnp_set_port()
903 if (isapnp_info_device->resource[idx].flags & IORESOURCE_AUTO) { in isapnp_set_port()
904 isapnp_info_device->resource[idx].start = port; in isapnp_set_port()
905 isapnp_info_device->resource[idx].end += port - 1; in isapnp_set_port()
906 isapnp_info_device->resource[idx].flags &= ~IORESOURCE_AUTO; in isapnp_set_port()
908 isapnp_info_device->resource[idx].end -= isapnp_info_device->resource[idx].start; in isapnp_set_port()
909 isapnp_info_device->resource[idx].start = port; in isapnp_set_port()
910 isapnp_info_device->resource[idx].end += port; in isapnp_set_port()
923 int idx, irq; in isapnp_set_irq() local
928 idx = simple_strtoul(index, NULL, 0); in isapnp_set_irq()
930 if (idx < 0 || idx > 1) { in isapnp_set_irq()
931 printk("isapnp: wrong IRQ index %i\n", idx); in isapnp_set_irq()
940 isapnp_write_byte(ISAPNP_CFG_IRQ + (idx << 1), irq); in isapnp_set_irq()
941 isapnp_set_irqresource(isapnp_info_device->irq_resource + idx, irq); in isapnp_set_irq()
969 int idx, dma; in isapnp_set_dma() local
974 idx = simple_strtoul(index, NULL, 0); in isapnp_set_dma()
976 if (idx < 0 || idx > 1) { in isapnp_set_dma()
977 printk("isapnp: wrong DMA index %i\n", idx); in isapnp_set_dma()
984 isapnp_write_byte(ISAPNP_CFG_DMA + idx, dma); in isapnp_set_dma()
985 isapnp_set_dmaresource(isapnp_info_device->dma_resource + idx, dma); in isapnp_set_dma()
991 int idx; in isapnp_set_mem() local
997 idx = simple_strtoul(index, NULL, 0); in isapnp_set_mem()
999 if (idx < 0 || idx > 3) { in isapnp_set_mem()
1000 printk("isapnp: wrong memory index %i\n", idx); in isapnp_set_mem()
1004 isapnp_write_word(ISAPNP_CFG_MEM + (idx<<2), mem & 0xffff); in isapnp_set_mem()
1005 if (!isapnp_info_device->resource[idx + 8].flags) in isapnp_set_mem()
1007 if (isapnp_info_device->resource[idx + 8].flags & IORESOURCE_AUTO) { in isapnp_set_mem()
1008 isapnp_info_device->resource[idx + 8].start = mem & ~0x00ffff00; in isapnp_set_mem()
1009 isapnp_info_device->resource[idx + 8].end += (mem & ~0x00ffff00) - 1; in isapnp_set_mem()
1010 isapnp_info_device->resource[idx + 8].flags &= ~IORESOURCE_AUTO; in isapnp_set_mem()
1012 isapnp_info_device->resource[idx + 8].end -= isapnp_info_device->resource[idx + 8].start; in isapnp_set_mem()
1013 isapnp_info_device->resource[idx + 8].start = mem & ~0x00ffff00; in isapnp_set_mem()
1014 isapnp_info_device->resource[idx + 8].end += mem & ~0x00ffff00; in isapnp_set_mem()
1104 int c, idx, idx1 = 0; in isapnp_info_write() local
1111 for (idx = 0; idx < buffer->size; idx++) { in isapnp_info_write()
1112 c = buffer->buffer[idx]; in isapnp_info_write()