Lines Matching defs:hca_ndx

208 	int			hca_ndx;
268 for (hca_ndx = 0; hca_ndx < mod_ctxt->hca_count; hca_ndx++) {
270 mod_ctxt->hca_guid_list[mod_ctxt->hca_count - hca_ndx -1],
271 &mod_ctxt->hcas[hca_ndx].hdl);
279 mod_ctxt->hcas[hca_ndx].clnt_hdl = mod_ctxt->clnt_hdl;
280 llist_head_init(&mod_ctxt->hcas[hca_ndx].list,
281 &mod_ctxt->hcas[hca_ndx]);
282 mutex_init(&mod_ctxt->hcas[hca_ndx].event_handler_lock, NULL,
284 llist_head_init(&mod_ctxt->hcas[hca_ndx].event_handler_list,
286 mutex_init(&mod_ctxt->hcas[hca_ndx].client_data_lock, NULL,
288 llist_head_init(&mod_ctxt->hcas[hca_ndx].client_data_list,
292 llist_add_tail(&mod_ctxt->hcas[hca_ndx].list,
296 mod_ctxt->hcas[hca_ndx].guid =
297 mod_ctxt->hca_guid_list[mod_ctxt->hca_count - hca_ndx -1];
302 status = ibt_query_hca(mod_ctxt->hcas[hca_ndx].hdl,
303 &mod_ctxt->hcas[hca_ndx].attr);
314 hca_ndx, (u_longlong_t)mod_ctxt->hcas[hca_ndx].guid);
355 int hca_ndx;
361 for (hca_ndx = 0; hca_ndx < mod_ctxt->hca_count; hca_ndx++) {
362 if (mod_ctxt->hcas[hca_ndx].hdl != NULL) {
363 mutex_destroy(&mod_ctxt->hcas[hca_ndx].
365 mutex_destroy(&mod_ctxt->hcas[hca_ndx].
368 hcas[hca_ndx].hdl);
480 int rc, instance, hca_ndx;
545 for (hca_ndx = 0; hca_ndx < mod_ctxt->hca_count; hca_ndx++) {
548 (void) snprintf(name, 20, "uverbs%d", hca_ndx);
549 rc = ddi_create_minor_node(dip, name, S_IFCHR, hca_ndx,
558 hca_ndx), dip, "guid", mod_ctxt->hcas[hca_ndx].guid);
565 hca_ndx), dip, "vendor-id",
566 mod_ctxt->hcas[hca_ndx].attr.hca_vendor_id);
573 hca_ndx), dip, "device-id", mod_ctxt->
574 hcas[hca_ndx].attr.hca_device_id);