Lines Matching refs:pao
59 u16 hpi_add_adapter(struct hpi_adapter_obj *pao) in hpi_add_adapter() argument
66 if (pao->index >= HPI_MAX_ADAPTERS) { in hpi_add_adapter()
71 if (adapters.adapter[pao->index].type) { in hpi_add_adapter()
77 pao->type, pao->index, a); in hpi_add_adapter()
78 pao->index = a; 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()
96 void hpi_delete_adapter(struct hpi_adapter_obj *pao) in hpi_delete_adapter() argument
98 if (!pao->type) { in hpi_delete_adapter()
104 if (adapters.adapter[pao->index].type) in hpi_delete_adapter()
106 memset(&adapters.adapter[pao->index], 0, sizeof(adapters.adapter[0])); in hpi_delete_adapter()
118 struct hpi_adapter_obj *pao = NULL; in hpi_find_adapter() local
126 pao = &adapters.adapter[adapter_index]; in hpi_find_adapter()
127 if (pao->type != 0) { in hpi_find_adapter()
132 return pao; in hpi_find_adapter()