Lines Matching defs:hca

28  * Provides the Solaris OFED User Verbs thin common hca interface for
67 int sol_uverbs_hca_add_client_context(sol_uverbs_hca_t *hca,
92 sol_uverbs_hca_t *hca;
99 hca = (sol_uverbs_hca_t *)entry->ptr;
102 !sol_uverbs_hca_add_client_context(hca, client)) {
103 client->add(hca);
128 sol_uverbs_hca_t *hca;
135 hca = (sol_uverbs_hca_t *)entry->ptr;
137 ASSERT(hca != NULL);
140 client->remove(hca);
142 mutex_enter(&hca->client_data_lock);
143 centry = hca->client_data_list.nxt;
146 while (centry != &hca->client_data_list) {
158 mutex_exit(&hca->client_data_lock);
168 * hca - Pointer to HCA struct passed in the client
181 sol_uverbs_ib_get_client_data(sol_uverbs_hca_t *hca,
188 ASSERT(hca != NULL);
191 mutex_enter(&hca->client_data_lock);
193 list_for_each(entry, &hca->client_data_list) {
203 mutex_exit(&hca->client_data_lock);
211 * hca - Pointer to HCA struct passed in the client
224 sol_uverbs_ib_set_client_data(sol_uverbs_hca_t *hca,
230 ASSERT(hca != NULL);
233 mutex_enter(&hca->client_data_lock);
235 list_for_each(entry, &hca->client_data_list) {
250 mutex_exit(&hca->client_data_lock);
272 ASSERT(handler->hca != NULL);
274 mutex_enter(&handler->hca->event_handler_lock);
276 llist_add_tail(&handler->list, &handler->hca->event_handler_list);
277 mutex_exit(&handler->hca->event_handler_lock);
298 ASSERT(handler->hca != NULL);
300 mutex_enter(&handler->hca->event_handler_lock);
302 mutex_exit(&handler->hca->event_handler_lock);
316 * Perform initialization required by the common hca client API.
338 * Perform cleanup required by the common hca client API.
355 * hca - Pointer to the hca struct to add a client context.
363 * the specified hca.
366 int sol_uverbs_hca_add_client_context(sol_uverbs_hca_t *hca,
384 mutex_enter(&hca->client_data_lock);
385 llist_add(&context->list, &hca->client_data_list);
386 mutex_exit(&hca->client_data_lock);
401 * Given an IBT hca handle, return the user verbs HCA structure associated
408 sol_uverbs_hca_t *hca;
413 hca = (sol_uverbs_hca_t *)entry->ptr;
415 if (hca->hdl == hca_hdl) {
416 ret = hca;