Lines Matching refs:adapters
39 static struct hpi_adapters_list adapters; variable
73 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()
114 adapters.gw_num_adapters--; in hpi_delete_adapter()
115 memset(&adapters.adapter[pao->index], 0, sizeof(adapters.adapter[0])); in hpi_delete_adapter()
116 hpios_alistlock_unlock(&adapters); in hpi_delete_adapter()
134 pao = &adapters.adapter[adapter_index]; in hpi_find_adapter()
157 memset(&adapters, 0, sizeof(adapters)); in wipe_adapter_list()
168 if (adapters.adapter[index].type) { in subsys_get_adapter()
176 phr->u.s.adapter_index = adapters.adapter[index].index; in subsys_get_adapter()
177 phr->u.s.adapter_type = adapters.adapter[index].type; in subsys_get_adapter()
672 hpios_alistlock_init(&adapters); in subsys_message()
678 phr->u.s.num_adapters = adapters.gw_num_adapters; in subsys_message()