Searched refs:adapters (Results 1 – 2 of 2) sorted by relevance
28 static struct hpi_adapters_list adapters; variable64 hpios_alistlock_lock(&adapters); in hpi_add_adapter()71 if (adapters.adapter[pao->index].type) { in hpi_add_adapter()74 if (!adapters.adapter[a].type) { in hpi_add_adapter()87 adapters.adapter[pao->index] = *pao; in hpi_add_adapter()88 hpios_dsplock_init(&adapters.adapter[pao->index]); in hpi_add_adapter()89 adapters.gw_num_adapters++; in hpi_add_adapter()92 hpios_alistlock_unlock(&adapters); in hpi_add_adapter()103 hpios_alistlock_lock(&adapters); in hpi_delete_adapter()104 if (adapters.adapter[pao->index].type) in hpi_delete_adapter()[all …]
53 static struct hpi_adapter adapters[HPI_MAX_ADAPTERS]; variable182 if (hm->h.adapter_index < ARRAY_SIZE(adapters)) in asihpi_hpi_ioctl()183 pa = &adapters[array_index_nospec(hm->h.adapter_index, in asihpi_hpi_ioctl()184 ARRAY_SIZE(adapters))]; in asihpi_hpi_ioctl()463 adapters[adapter_index] = adapter; in asihpi_adapter_probe()464 mutex_init(&adapters[adapter_index].mutex); in asihpi_adapter_probe()465 pci_set_drvdata(pci_dev, &adapters[adapter_index]); in asihpi_adapter_probe()492 "asihpi", &adapters[adapter_index])) { in asihpi_adapter_probe()498 adapters[adapter_index].interrupt_mode = 1; in asihpi_adapter_probe()501 adapters[adapter_index].irq = pci_dev->irq; in asihpi_adapter_probe()[all …]