Lines Matching refs:vhbc

8448 	mdi_vhci_bus_config_t *vhbc = phbc->phbc_vhbusconfig;  in bus_config_phci()  local
8457 if (vhbc->vhbc_op == BUS_CONFIG_DRIVER || in bus_config_phci()
8458 vhbc->vhbc_op == BUS_UNCONFIG_DRIVER) { in bus_config_phci()
8460 vhbc->vhbc_op_flags, in bus_config_phci()
8461 vhbc->vhbc_op_major); in bus_config_phci()
8464 vhbc->vhbc_op_flags); in bus_config_phci()
8473 mutex_enter(&vhbc->vhbc_lock); in bus_config_phci()
8474 vhbc->vhbc_thr_count--; in bus_config_phci()
8475 if (vhbc->vhbc_thr_count == 0) in bus_config_phci()
8476 cv_broadcast(&vhbc->vhbc_cv); in bus_config_phci()
8477 mutex_exit(&vhbc->vhbc_lock); in bus_config_phci()
8489 mdi_vhci_bus_config_t *vhbc; in bus_config_all_phcis() local
8498 vhbc = kmem_zalloc(sizeof (*vhbc), KM_SLEEP); in bus_config_all_phcis()
8508 phbc->phbc_vhbusconfig = vhbc; in bus_config_all_phcis()
8511 vhbc->vhbc_thr_count++; in bus_config_all_phcis()
8515 vhbc->vhbc_op = op; in bus_config_all_phcis()
8516 vhbc->vhbc_op_major = maj; in bus_config_all_phcis()
8517 vhbc->vhbc_op_flags = NDI_NO_EVENT | in bus_config_all_phcis()
8519 mutex_init(&vhbc->vhbc_lock, NULL, MUTEX_DEFAULT, NULL); in bus_config_all_phcis()
8520 cv_init(&vhbc->vhbc_cv, NULL, CV_DRIVER, NULL); in bus_config_all_phcis()
8532 mutex_enter(&vhbc->vhbc_lock); in bus_config_all_phcis()
8534 while (vhbc->vhbc_thr_count > 0) in bus_config_all_phcis()
8535 cv_wait(&vhbc->vhbc_cv, &vhbc->vhbc_lock); in bus_config_all_phcis()
8536 mutex_exit(&vhbc->vhbc_lock); in bus_config_all_phcis()
8538 mutex_destroy(&vhbc->vhbc_lock); in bus_config_all_phcis()
8539 cv_destroy(&vhbc->vhbc_cv); in bus_config_all_phcis()
8540 kmem_free(vhbc, sizeof (*vhbc)); in bus_config_all_phcis()