Searched refs:adapters (Results 1 – 2 of 2) sorted by relevance
39 static struct hpi_adapters_list adapters; variable73 hpios_alistlock_lock(&adapters); in hpi_add_adapter()80 if (adapters.adapter[pao->index].type) { in hpi_add_adapter()83 if (!adapters.adapter[a].type) { in hpi_add_adapter()96 adapters.adapter[pao->index] = *pao; in hpi_add_adapter()97 hpios_dsplock_init(&adapters.adapter[pao->index]); in hpi_add_adapter()98 adapters.gw_num_adapters++; in hpi_add_adapter()101 hpios_alistlock_unlock(&adapters); in hpi_add_adapter()112 hpios_alistlock_lock(&adapters); in hpi_delete_adapter()113 if (adapters.adapter[pao->index].type) in hpi_delete_adapter()[all …]
61 static struct hpi_adapter adapters[HPI_MAX_ADAPTERS]; variable184 if (hm->h.adapter_index < ARRAY_SIZE(adapters)) in asihpi_hpi_ioctl()185 pa = &adapters[hm->h.adapter_index]; in asihpi_hpi_ioctl()397 adapters[adapter_index] = adapter; in asihpi_adapter_probe()398 mutex_init(&adapters[adapter_index].mutex); in asihpi_adapter_probe()399 pci_set_drvdata(pci_dev, &adapters[adapter_index]); in asihpi_adapter_probe()464 memset(adapters, 0, sizeof(adapters)); in asihpi_init()