Lines Matching refs:idx
349 int idx, nm, low_latency_mode = 0, irq_supported = 0; in asihpi_adapter_probe() local
381 for (idx = 0; idx < nm; idx++) { in asihpi_adapter_probe()
382 HPI_DEBUG_LOG(INFO, "resource %d %pR\n", idx, in asihpi_adapter_probe()
383 &pci_dev->resource[idx]); in asihpi_adapter_probe()
385 if (pci_resource_flags(pci_dev, idx) & IORESOURCE_MEM) { in asihpi_adapter_probe()
386 memlen = pci_resource_len(pci_dev, idx); in asihpi_adapter_probe()
387 pci.ap_mem_base[idx] = in asihpi_adapter_probe()
388 ioremap(pci_resource_start(pci_dev, idx), in asihpi_adapter_probe()
390 if (!pci.ap_mem_base[idx]) { in asihpi_adapter_probe()
512 while (--idx >= 0) { in asihpi_adapter_probe()
513 if (pci.ap_mem_base[idx]) { in asihpi_adapter_probe()
514 iounmap(pci.ap_mem_base[idx]); in asihpi_adapter_probe()
515 pci.ap_mem_base[idx] = NULL; in asihpi_adapter_probe()
530 int idx; in asihpi_adapter_remove() local
554 for (idx = 0; idx < HPI_MAX_ADAPTER_MEM_SPACES; ++idx) in asihpi_adapter_remove()
555 iounmap(pci.ap_mem_base[idx]); in asihpi_adapter_remove()