Lines Matching refs:idx
340 int idx, nm, low_latency_mode = 0, irq_supported = 0; in asihpi_adapter_probe() local
372 for (idx = 0; idx < nm; idx++) { in asihpi_adapter_probe()
373 HPI_DEBUG_LOG(INFO, "resource %d %pR\n", idx, in asihpi_adapter_probe()
374 &pci_dev->resource[idx]); in asihpi_adapter_probe()
376 if (pci_resource_flags(pci_dev, idx) & IORESOURCE_MEM) { in asihpi_adapter_probe()
377 memlen = pci_resource_len(pci_dev, idx); in asihpi_adapter_probe()
378 pci.ap_mem_base[idx] = in asihpi_adapter_probe()
379 ioremap(pci_resource_start(pci_dev, idx), in asihpi_adapter_probe()
381 if (!pci.ap_mem_base[idx]) { in asihpi_adapter_probe()
502 for (idx = 0; idx < HPI_MAX_ADAPTER_MEM_SPACES; idx++) { in asihpi_adapter_probe()
503 if (pci.ap_mem_base[idx]) { in asihpi_adapter_probe()
504 iounmap(pci.ap_mem_base[idx]); in asihpi_adapter_probe()
505 pci.ap_mem_base[idx] = NULL; in asihpi_adapter_probe()
520 int idx; in asihpi_adapter_remove() local
544 for (idx = 0; idx < HPI_MAX_ADAPTER_MEM_SPACES; ++idx) in asihpi_adapter_remove()
545 iounmap(pci.ap_mem_base[idx]); in asihpi_adapter_remove()