Home
last modified time | relevance | path

Searched refs:hca_ptr (Results 1 – 25 of 30) sorted by relevance

12

/titanic_44/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_hca_util.c66 DAPL_HCA *hca_ptr; in dapl_hca_alloc() local
68 hca_ptr = dapl_os_alloc(sizeof (DAPL_HCA)); in dapl_hca_alloc()
69 if (NULL != hca_ptr) { in dapl_hca_alloc()
70 (void) dapl_os_memzero(hca_ptr, sizeof (DAPL_HCA)); in dapl_hca_alloc()
74 DAT_TRUE, &hca_ptr->lmr_hash_table)) { in dapl_hca_alloc()
75 dapl_os_lock_init(&hca_ptr->lock); in dapl_hca_alloc()
76 dapl_llist_init_head(&hca_ptr->ia_list_head); in dapl_hca_alloc()
78 hca_ptr->name = dapl_os_strdup(name); in dapl_hca_alloc()
79 hca_ptr->ib_hca_handle = IB_INVALID_HANDLE; in dapl_hca_alloc()
80 hca_ptr->port_num = 0; in dapl_hca_alloc()
[all …]
H A Ddapl_ia_open.c58 DAPL_HCA *hca_ptr,
62 static void dapli_hca_cleanup(DAPL_HCA *hca_ptr, DAT_BOOLEAN dec_ref);
179 DAPL_HCA *hca_ptr; in dapl_ia_open() local
185 hca_ptr = NULL; in dapl_ia_open()
222 hca_ptr = (DAPL_HCA *)provider->extension; in dapl_ia_open()
227 dapl_os_lock(&hca_ptr->lock); in dapl_ia_open()
228 if (hca_ptr->ib_hca_handle == IB_INVALID_HANDLE) { in dapl_ia_open()
230 dat_status = dapls_ib_open_hca(hca_ptr, in dapl_ia_open()
231 &hca_ptr->ib_hca_handle); in dapl_ia_open()
236 dapl_os_unlock(&hca_ptr->lock); in dapl_ia_open()
[all …]
H A Ddapl_init.c174 DAPL_HCA *hca_ptr; in dat_provider_init() local
178 hca_ptr = NULL; in dat_provider_init()
188 hca_ptr = dapl_hca_alloc((char *)provider_info->ia_name, 0); in dat_provider_init()
189 if (NULL == hca_ptr) { in dat_provider_init()
195 provider->extension = hca_ptr; in dat_provider_init()
212 if (NULL != hca_ptr) { in dat_provider_init()
213 dapl_hca_free(hca_ptr); in dat_provider_init()
H A Ddapl_ia_util.c49 DAPL_HCA *hca_ptr);
68 dapl_ia_alloc(DAT_PROVIDER * provider, DAPL_HCA * hca_ptr) in dapl_ia_alloc() argument
96 ia_ptr->hca_ptr = hca_ptr; in dapl_ia_alloc()
114 dapl_hca_link_ia(hca_ptr, ia_ptr); in dapl_ia_alloc()
148 DAPL_HCA *hca_ptr; in dapl_ia_abrupt_close() local
307 hca_ptr = ia_ptr->hca_ptr; in dapl_ia_abrupt_close()
316 hca_ptr->async_evd = NULL; /* It was our async EVD; nuke it. */ in dapl_ia_abrupt_close()
335 dapli_ia_release_hca(hca_ptr); in dapl_ia_abrupt_close()
367 DAPL_HCA *hca_ptr; in dapl_ia_graceful_close() local
429 hca_ptr = ia_ptr->hca_ptr; in dapl_ia_graceful_close()
[all …]
H A Ddapl_osd.c364 DAPL_HCA *hca_ptr; in dapls_osd_fork_cleanup() local
379 hca_ptr = (DAPL_HCA *) cur_node->data.extension; in dapls_osd_fork_cleanup()
386 while (!dapl_llist_is_empty(&hca_ptr->ia_list_head)) { in dapls_osd_fork_cleanup()
388 dapl_llist_peek_head(&hca_ptr->ia_list_head); in dapls_osd_fork_cleanup()
454 owner_ia->hca_ptr->lmr_hash_table, in dapls_osd_fork_cleanup()
503 dapl_hca_unlink_ia(ia_ptr->hca_ptr, ia_ptr); in dapls_osd_fork_cleanup()
H A Ddapl_lmr_create.c122 dat_status = dapls_hash_search(ia->hca_ptr->lmr_hash_table, in dapl_lmr_create_virtual()
133 dat_status = dapls_hash_insert(ia->hca_ptr->lmr_hash_table, in dapl_lmr_create_virtual()
194 dat_status = dapls_hash_search(ia->hca_ptr->lmr_hash_table, in dapl_lmr_create_lmr()
222 dat_status = dapls_hash_search(ia->hca_ptr->lmr_hash_table, in dapl_lmr_create_lmr()
233 dat_status = dapls_hash_insert(ia->hca_ptr->lmr_hash_table, in dapl_lmr_create_lmr()
H A Ddapl_lmr_free.c91 lmr->header.owner_ia->hca_ptr->lmr_hash_table, in dapl_lmr_free()
110 hca_ptr->lmr_hash_table, in dapl_lmr_free()
H A Ddapl_ep_util.c119 (DAT_IA_ADDRESS_PTR)&ia_ptr->hca_ptr->hca_address; in dapl_ep_alloc()
626 dat_status = dapls_ib_query_hca(ia_ptr->hca_ptr, in dapl_ep_create_common()
642 if (ia_ptr->hca_ptr->max_inline_send) in dapl_ep_create_common()
647 ia_ptr->hca_ptr->max_inline_send); in dapl_ep_create_common()
H A Ddapl_evd_dto_callb.c81 evd_ptr->header.owner_ia->hca_ptr->ib_hca_handle); in dapl_evd_dto_callback()
H A Ddapl_srq.c114 dat_status = dapls_ib_query_hca(ia_ptr->hca_ptr, NULL, NULL, NULL, in dapl_srq_create()
461 dat_status = dapls_ib_query_hca(srq_ptr->header.owner_ia->hca_ptr, in dapl_srq_resize()
H A Ddapl_evd_create.c122 if (evd_min_qlen > ia_ptr->hca_ptr->ia_attr.max_evd_qlen) { in dapl_evd_create()
H A Ddapl_name_service.c465 (void) dapl_os_strcpy(lifr.lifr_name, ia_ptr->hca_ptr->name); in dapls_ns_lookup_v6()
549 (void) dapl_os_strcpy(lifreq.lifr_name, ia_ptr->hca_ptr->name); in dapls_ns_subnet_match_v4()
594 (void) dapl_os_strcpy(lifreq.lifr_name, ia_ptr->hca_ptr->name); in dapls_ns_subnet_match_v6()
H A Ddapl_evd_resize.c102 max_evd_qlen = evd_ptr->header.owner_ia->hca_ptr->ia_attr.max_evd_qlen; in dapl_evd_resize()
/titanic_44/usr/src/lib/udapl/udapl_tavor/tavor/
H A Ddapl_tavor_hca.c60 static DAT_RETURN dapli_process_ia(dladm_ib_attr_t *ib_attr, DAPL_HCA *hca_ptr,
74 IN DAPL_HCA *hca_ptr) in dapli_init_hca() argument
101 if ((dladm_name2info(dlh, hca_ptr->name, &linkid, NULL, &class, in dapli_init_hca()
109 hca_ptr->name); in dapli_init_hca()
121 hca_ptr->name); in dapli_init_hca()
126 dapls_init_funcs_tavor(hca_ptr); in dapli_init_hca()
128 dapls_init_funcs_arbel(hca_ptr); in dapli_init_hca()
130 dapls_init_funcs_hermon(hca_ptr); in dapli_init_hca()
135 "init_hca: %s not found\n", hca_ptr->name); in dapli_init_hca()
144 hca_ptr->name, dat_status); in dapli_init_hca()
[all …]
H A Ddapl_tavor_ibtf_util.c113 ia_fd = ia_ptr->hca_ptr->ib_hca_handle->ia_fd; in dapls_ib_cq_alloc()
114 hca_fd = ia_ptr->hca_ptr->ib_hca_handle->hca_fd; in dapls_ib_cq_alloc()
206 cq_handle->cq_iauar = ia_ptr->hca_ptr->ib_hca_handle->ia_uar; in dapls_ib_cq_alloc()
289 DAPL_HCA *hca_ptr; in dapli_ib_cq_resize_internal() local
309 hca_ptr = evd_ptr->header.owner_ia->hca_ptr; in dapli_ib_cq_resize_internal()
312 if (hca_ptr->hermon_resize_cq == 0) { in dapli_ib_cq_resize_internal()
325 ia_fd = hca_ptr->ib_hca_handle->ia_fd; in dapli_ib_cq_resize_internal()
326 hca_fd = hca_ptr->ib_hca_handle->hca_fd; in dapli_ib_cq_resize_internal()
370 if (hca_ptr->hermon_resize_cq == 0) in dapli_ib_cq_resize_internal()
378 if (hca_ptr->hermon_resize_cq == 0) { in dapli_ib_cq_resize_internal()
[all …]
H A Ddapl_tavor_ibtf_cm.c149 &ep_p->header.owner_ia->hca_ptr->hca_address; in dapls_ib_connect()
178 retval = ioctl(ep_p->header.owner_ia->hca_ptr->ib_hca_handle->ia_fd, in dapls_ib_connect()
228 retval = ioctl(ep_ptr->header.owner_ia->hca_ptr->ib_hca_handle->ia_fd, in dapls_ib_disconnect()
323 hca_hndl = ep_ptr->header.owner_ia->hca_ptr->ib_hca_handle; in dapls_ib_reinit_ep()
403 ib_hca_handle_t hca_hdl = ia_ptr->hca_ptr->ib_hca_handle; in dapls_ib_setup_conn_listener()
445 s = (struct sockaddr *)&ia_ptr->hca_ptr->hca_address; in dapls_ib_setup_conn_listener()
473 ib_hca_handle_t hca_hdl = ia_ptr->hca_ptr->ib_hca_handle; in dapls_ib_remove_conn_listener()
499 s = (struct sockaddr *)&ia_ptr->hca_ptr->hca_address; in dapls_ib_remove_conn_listener()
537 sp_ptr->header.owner_ia->hca_ptr->ib_hca_handle->ia_fd, in dapls_ib_reject_connection()
540 retval = ioctl(sp_ptr->header.owner_ia->hca_ptr->ib_hca_handle->ia_fd, in dapls_ib_reject_connection()
[all …]
H A Ddapl_tavor_ibtf_qp.c77 } else if (ia_ptr->hca_ptr->null_ib_cq_handle != IB_INVALID_HANDLE) { in dapli_get_dto_cq()
78 cq_handle = ia_ptr->hca_ptr->null_ib_cq_handle; in dapli_get_dto_cq()
85 ia_ptr->hca_ptr->null_ib_cq_handle = IB_INVALID_HANDLE; in dapli_get_dto_cq()
97 ia_fd = ia_ptr->hca_ptr->ib_hca_handle->ia_fd; in dapli_get_dto_cq()
106 ia_ptr->hca_ptr->null_ib_cq_handle = IB_INVALID_HANDLE; in dapli_get_dto_cq()
120 cq_handle->cq_iauar = ia_ptr->hca_ptr->ib_hca_handle->ia_uar; in dapli_get_dto_cq()
127 ia_ptr->hca_ptr->null_ib_cq_handle = cq_handle; in dapli_get_dto_cq()
177 if (ia_ptr->hca_ptr->ib_hca_handle == NULL) { in dapls_ib_qp_alloc()
183 ia_fd = ia_ptr->hca_ptr->ib_hca_handle->ia_fd; in dapls_ib_qp_alloc()
184 hca_fd = ia_ptr->hca_ptr->ib_hca_handle->hca_fd; in dapls_ib_qp_alloc()
[all …]
H A Ddapl_tavor_ibtf_mrsync.c54 ia_ptr->hca_ptr->lmr_hash_table, in dapls_ib_lmr_sync_rdma_common()
79 retval = ioctl(ia_ptr->hca_ptr->ib_hca_handle->ia_fd, in dapls_ib_lmr_sync_rdma_common()
92 retval = ioctl(ia_ptr->hca_ptr->ib_hca_handle->ia_fd, in dapls_ib_lmr_sync_rdma_common()
H A Ddapl_arbel_hw.c1615 dapls_init_funcs_arbel(DAPL_HCA *hca_ptr) in dapls_init_funcs_arbel() argument
1617 hca_ptr->post_send = dapli_arbel_post_send; in dapls_init_funcs_arbel()
1618 hca_ptr->post_recv = dapli_arbel_post_recv; in dapls_init_funcs_arbel()
1619 hca_ptr->post_srq = dapli_arbel_post_srq; in dapls_init_funcs_arbel()
1620 hca_ptr->cq_peek = dapli_arbel_cq_peek; in dapls_init_funcs_arbel()
1621 hca_ptr->cq_poll = dapli_arbel_cq_poll; in dapls_init_funcs_arbel()
1622 hca_ptr->cq_poll_one = dapli_arbel_cq_poll_one; in dapls_init_funcs_arbel()
1623 hca_ptr->cq_notify = dapli_arbel_cq_notify; in dapls_init_funcs_arbel()
1624 hca_ptr->srq_flush = dapli_arbel_cq_srq_entries_flush; in dapls_init_funcs_arbel()
1625 hca_ptr->qp_init = dapli_arbel_qp_init; in dapls_init_funcs_arbel()
[all …]
H A Ddapl_hermon_hw.c1649 dapls_init_funcs_hermon(DAPL_HCA *hca_ptr) in dapls_init_funcs_hermon() argument
1651 hca_ptr->post_send = dapli_hermon_post_send; in dapls_init_funcs_hermon()
1652 hca_ptr->post_recv = dapli_hermon_post_recv; in dapls_init_funcs_hermon()
1653 hca_ptr->post_srq = dapli_hermon_post_srq; in dapls_init_funcs_hermon()
1654 hca_ptr->cq_peek = dapli_hermon_cq_peek; in dapls_init_funcs_hermon()
1655 hca_ptr->cq_poll = dapli_hermon_cq_poll; in dapls_init_funcs_hermon()
1656 hca_ptr->cq_poll_one = dapli_hermon_cq_poll_one; in dapls_init_funcs_hermon()
1657 hca_ptr->cq_notify = dapli_hermon_cq_notify; in dapls_init_funcs_hermon()
1658 hca_ptr->srq_flush = dapli_hermon_cq_srq_entries_flush; in dapls_init_funcs_hermon()
1659 hca_ptr->qp_init = dapli_hermon_qp_init; in dapls_init_funcs_hermon()
[all …]
H A Ddapl_tavor_hw.c1890 dapls_init_funcs_tavor(DAPL_HCA *hca_ptr) in dapls_init_funcs_tavor() argument
1892 hca_ptr->post_send = dapli_tavor_post_send; in dapls_init_funcs_tavor()
1893 hca_ptr->post_recv = dapli_tavor_post_recv; in dapls_init_funcs_tavor()
1894 hca_ptr->post_srq = dapli_tavor_post_srq; in dapls_init_funcs_tavor()
1895 hca_ptr->cq_peek = dapli_tavor_cq_peek; in dapls_init_funcs_tavor()
1896 hca_ptr->cq_poll = dapli_tavor_cq_poll; in dapls_init_funcs_tavor()
1897 hca_ptr->cq_poll_one = dapli_tavor_cq_poll_one; in dapls_init_funcs_tavor()
1898 hca_ptr->cq_notify = dapli_tavor_cq_notify; in dapls_init_funcs_tavor()
1899 hca_ptr->srq_flush = dapli_tavor_cq_srq_entries_flush; in dapls_init_funcs_tavor()
1900 hca_ptr->qp_init = dapli_tavor_qp_init; in dapls_init_funcs_tavor()
[all …]
/titanic_44/usr/src/lib/udapl/udapl_tavor/include/
H A Ddapl_hca_util.h52 dapl_hca_free(DAPL_HCA *hca_ptr);
56 IN DAPL_HCA *hca_ptr,
61 IN DAPL_HCA *hca_ptr,
H A Ddapl.h354 #define DAPL_SEND(x) (x->header.owner_ia->hca_ptr->post_send)
355 #define DAPL_RECV(x) (x->header.owner_ia->hca_ptr->post_recv)
356 #define DAPL_SRECV(x) (x->header.owner_ia->hca_ptr->post_srq)
357 #define DAPL_PEEK(x) (x->header.owner_ia->hca_ptr->cq_peek)
358 #define DAPL_POLL(x) (x->header.owner_ia->hca_ptr->cq_poll)
359 #define DAPL_POLL1(x) (x->header.owner_ia->hca_ptr->cq_poll_one)
360 #define DAPL_NOTIFY(x) (x->header.owner_ia->hca_ptr->cq_notify)
361 #define DAPL_FLUSH(x) (x->header.owner_ia->hca_ptr->srq_flush)
362 #define DAPL_INIT_QP(x) (x->hca_ptr->qp_init)
363 #define DAPL_INIT_CQ(x) (x->hca_ptr->cq_init)
[all …]
H A Ddapl_adapter_util.h71 IN DAPL_HCA *hca_ptr,
169 IN DAPL_HCA *hca_ptr);
172 IN DAPL_HCA *hca_ptr);
228 IN DAPL_HCA *hca_ptr,
H A Ddapl_ia_util.h52 DAPL_HCA *hca_ptr);

12