Lines Matching refs:adapter_index
68 if ((phm->adapter_index >= HPI_MAX_ADAPTERS) in hpi_send_recv_f()
189 if (hm->h.adapter_index < ARRAY_SIZE(adapters)) in asihpi_hpi_ioctl()
190 pa = &adapters[array_index_nospec(hm->h.adapter_index, in asihpi_hpi_ioctl()
227 hm->h.adapter_index, in asihpi_hpi_ioctl()
348 int adapter_index; in asihpi_adapter_probe() local
375 hm.adapter_index = HPI_ADAPTER_INDEX_INVALID; in asihpi_adapter_probe()
406 adapter_index = hr.u.s.adapter_index; in asihpi_adapter_probe()
407 adapter.adapter = hpi_find_adapter(adapter_index); in asihpi_adapter_probe()
422 hm.adapter_index = adapter.adapter->index; in asihpi_adapter_probe()
433 hm.adapter_index = adapter.adapter->index; in asihpi_adapter_probe()
447 hm.adapter_index = adapter.adapter->index; in asihpi_adapter_probe()
461 adapters[adapter_index] = adapter; in asihpi_adapter_probe()
462 mutex_init(&adapters[adapter_index].mutex); in asihpi_adapter_probe()
463 pci_set_drvdata(pci_dev, &adapters[adapter_index]); in asihpi_adapter_probe()
476 hm.adapter_index = adapter.adapter->index; in asihpi_adapter_probe()
489 "asihpi", &adapters[adapter_index])) { in asihpi_adapter_probe()
495 adapters[adapter_index].interrupt_mode = 1; in asihpi_adapter_probe()
498 adapters[adapter_index].irq = pci_dev->irq; in asihpi_adapter_probe()
504 adapter.adapter->type, adapter_index); in asihpi_adapter_probe()
539 hm.adapter_index = pa->adapter->index; in asihpi_adapter_remove()
547 hm.adapter_index = pa->adapter->index; in asihpi_adapter_remove()