Lines Matching refs:adapters
28 static struct hpi_adapters_list adapters; variable
64 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()
105 adapters.gw_num_adapters--; in hpi_delete_adapter()
106 memset(&adapters.adapter[pao->index], 0, sizeof(adapters.adapter[0])); in hpi_delete_adapter()
107 hpios_alistlock_unlock(&adapters); in hpi_delete_adapter()
126 pao = &adapters.adapter[adapter_index]; in hpi_find_adapter()
148 memset(&adapters, 0, sizeof(adapters)); in wipe_adapter_list()
159 if (adapters.adapter[index].type) { in subsys_get_adapter()
167 phr->u.s.adapter_index = adapters.adapter[index].index; in subsys_get_adapter()
168 phr->u.s.adapter_type = adapters.adapter[index].type; in subsys_get_adapter()
682 hpios_alistlock_init(&adapters); in subsys_message()
688 phr->u.s.num_adapters = adapters.gw_num_adapters; in subsys_message()