Home
last modified time | relevance | path

Searched refs:hca_devp (Results 1 – 8 of 8) sorted by relevance

/titanic_50/usr/src/uts/common/io/ib/ibtl/
H A Dibtl_hca.c37 static ibt_status_t ibtl_query_hca_ports(ibtl_hca_devinfo_t *hca_devp,
67 ibtl_hca_devinfo_t *hca_devp; /* HCA Dev Info */ in ibt_open_hca() local
76 hca_devp = ibtl_get_hcadevinfo(hca_guid); in ibt_open_hca()
77 if (hca_devp == NULL) { in ibt_open_hca()
95 if (ddi_get_parent(ibt_hdl->clnt_dip) == hca_devp->hd_hca_dip) { in ibt_open_hca()
96 if (hca_guid != hca_devp->hd_hca_attr->hca_node_guid) { in ibt_open_hca()
103 if (hca_devp->hd_state != IBTL_HCA_DEV_ATTACHED) { in ibt_open_hca()
124 hca_infop = hca_devp->hd_clnt_list; in ibt_open_hca()
150 hca_infop->ha_hca_devp = hca_devp; /* HCA Device Info */ in ibt_open_hca()
154 hca_infop->ha_clnt_link = hca_devp->hd_clnt_list; in ibt_open_hca()
[all …]
H A Dibtl_impl.c528 ibtl_hca_devinfo_t *hca_devp; in ibc_attach() local
585 hca_devp = kmem_zalloc(sizeof (ibtl_hca_devinfo_t) + in ibc_attach()
591 hca_devp->hd_ibc_hca_hdl = info_p->hca_handle; in ibc_attach()
592 hca_devp->hd_ibc_ops = info_p->hca_ops; in ibc_attach()
593 hca_devp->hd_hca_attr = info_p->hca_attr; in ibc_attach()
594 hca_devp->hd_hca_dip = info_p->hca_attr->hca_dip; in ibc_attach()
596 status = ibtl_init_hca_portinfo(hca_devp); in ibc_attach()
601 kmem_free(hca_devp, sizeof (ibtl_hca_devinfo_t) + in ibc_attach()
607 if (ibtl_ibnex_phci_register(hca_devp->hd_hca_dip) != IBT_SUCCESS) { in ibc_attach()
610 kmem_free(hca_devp, sizeof (ibtl_hca_devinfo_t) + in ibc_attach()
[all …]
H A Dibtl_ibnex.c82 ibtl_hca_devinfo_t *hca_devp; in ibtl_ibnex_get_hca_info() local
98 if ((hca_devp = ibtl_get_hcadevinfo(hca_guid)) == NULL) { in ibtl_ibnex_get_hca_info()
111 ibt_hca = hca_devp->hd_clnt_list; in ibtl_ibnex_get_hca_info()
170 ((hca_devp->hd_hca_dip == parent) && in ibtl_ibnex_get_hca_info()
218 ((hca_devp->hd_hca_dip == parent) && in ibtl_ibnex_get_hca_info()
335 ibtl_hca_devinfo_t *hca_devp; in ibtl_ibnex_hcadip2guid() local
338 hca_devp = ibtl_hca_list; in ibtl_ibnex_hcadip2guid()
340 while (hca_devp) { in ibtl_ibnex_hcadip2guid()
341 if (hca_devp->hd_hca_dip == hca_dip) { in ibtl_ibnex_hcadip2guid()
342 hca_guid = hca_devp->hd_hca_attr->hca_node_guid; in ibtl_ibnex_hcadip2guid()
[all …]
H A Dibtl_handlers.c188 ibc_async_handler(ibc_clnt_hdl_t hca_devp, ibt_async_code_t code, in ibc_async_handler() argument
200 hca_devp, code, event_p); in ibc_async_handler()
324 hca_devp->hd_async_codes |= code; in ibc_async_handler()
325 hca_devp->hd_fma_ena = event_p->ev_fma_ena; in ibc_async_handler()
334 hca_devp->hd_hca_attr->hca_nports) { in ibc_async_handler()
340 portp = &hca_devp->hd_async_port[port_minus1]; in ibc_async_handler()
377 hca_devp->hd_async_codes |= code; in ibc_async_handler()
380 if ((hca_devp->hd_async_flags & IBTL_ASYNC_PENDING) == 0) { in ibc_async_handler()
381 hca_devp->hd_async_flags |= IBTL_ASYNC_PENDING; in ibc_async_handler()
382 hca_devp->hd_async_link = NULL; in ibc_async_handler()
[all …]
H A Dibtl_cm.c181 ibtl_hca_devinfo_t *hca_devp; /* HCA Dev Info */ in ibtl_cm_get_hca_port() local
230 hca_devp = ibtl_get_hcadevinfo(hca_guid); in ibtl_cm_get_hca_port()
232 hca_devp = ibtl_hca_list; in ibtl_cm_get_hca_port()
235 while (hca_devp != NULL) { in ibtl_cm_get_hca_port()
237 ports = hca_devp->hd_hca_attr->hca_nports; in ibtl_cm_get_hca_port()
238 portinfop = hca_devp->hd_portinfop; in ibtl_cm_get_hca_port()
256 hca_devp->hd_hca_attr->hca_node_guid; in ibtl_cm_get_hca_port()
277 hca_devp = hca_devp->hd_hca_dev_link; in ibtl_cm_get_hca_port()
624 ibtl_hca_devinfo_t *hca_devp; /* HCA Dev Info */ in ibtl_cm_get_1st_full_pkey_ix() local
631 hca_devp = ibtl_get_hcadevinfo(hca_guid); in ibtl_cm_get_1st_full_pkey_ix()
[all …]
H A Dibtl_qp.c732 ibtl_fillin_sgid(ibt_cep_path_t *pathp, ibtl_hca_devinfo_t *hca_devp) in ibtl_fillin_sgid() argument
740 if (port == 0 || port > hca_devp->hd_hca_attr->hca_nports || in ibtl_fillin_sgid()
741 sgid_ix >= IBTL_HDIP2SGIDTBLSZ(hca_devp)) { in ibtl_fillin_sgid()
746 sgidp = hca_devp->hd_portinfop[port-1].p_sgid_tbl; in ibtl_fillin_sgid()
773 ibtl_hca_devinfo_t *hca_devp; in ibt_query_qp() local
787 hca_devp = ibt_qp->ch_qp.qp_hca->ha_hca_devp; in ibt_query_qp()
793 hca_devp); in ibt_query_qp()
795 hca_devp); in ibt_query_qp()
799 hca_devp); in ibt_query_qp()
801 hca_devp); in ibt_query_qp()
H A Dibtl_chan.c1167 ibtl_hca_devinfo_t *hca_devp = ud_chan->ch_qp.qp_hca->ha_hca_devp; in ibtl_find_sgid_ix() local
1172 if (port == 0 || port > hca_devp->hd_hca_attr->hca_nports || in ibtl_find_sgid_ix()
1178 sgidp = &hca_devp->hd_portinfop[port - 1].p_sgid_tbl[0]; in ibtl_find_sgid_ix()
1179 sgid_tbl_sz = hca_devp->hd_portinfop[port - 1].p_sgid_tbl_sz; in ibtl_find_sgid_ix()
1615 ibtl_hca_devinfo_t *hca_devp = hca_hdl->ha_hca_devp; in ibt_query_ah() local
1619 if (port > 0 && port <= hca_devp->hd_hca_attr->hca_nports && in ibt_query_ah()
1620 adds_vectp->av_sgid_ix < IBTL_HDIP2SGIDTBLSZ(hca_devp)) { in ibt_query_ah()
1623 sgidp = hca_devp->hd_portinfop[port-1].p_sgid_tbl; in ibt_query_ah()
/titanic_50/usr/src/uts/common/sys/ib/ibtl/impl/
H A Dibtl.h471 #define IBTL_HDIP2CIHCA(hca_devp) (hca_devp)->hd_ibc_hca_hdl argument
481 #define IBTL_HDIP2CIHCAOPS_P(hca_devp) (hca_devp)->hd_ibc_ops argument
552 ibt_status_t ibtl_init_hca_portinfo(ibtl_hca_devinfo_t *hca_devp);
553 void ibtl_reinit_hca_portinfo(ibtl_hca_devinfo_t *hca_devp, uint8_t port);
562 void ibtl_announce_new_hca(ibtl_hca_devinfo_t *hca_devp);