Lines Matching refs:vhbc

8459 	mdi_vhci_bus_config_t *vhbc = phbc->phbc_vhbusconfig;  in bus_config_phci()  local
8468 if (vhbc->vhbc_op == BUS_CONFIG_DRIVER || in bus_config_phci()
8469 vhbc->vhbc_op == BUS_UNCONFIG_DRIVER) { in bus_config_phci()
8471 vhbc->vhbc_op_flags, in bus_config_phci()
8472 vhbc->vhbc_op_major); in bus_config_phci()
8475 vhbc->vhbc_op_flags); in bus_config_phci()
8484 mutex_enter(&vhbc->vhbc_lock); in bus_config_phci()
8485 vhbc->vhbc_thr_count--; in bus_config_phci()
8486 if (vhbc->vhbc_thr_count == 0) in bus_config_phci()
8487 cv_broadcast(&vhbc->vhbc_cv); in bus_config_phci()
8488 mutex_exit(&vhbc->vhbc_lock); in bus_config_phci()
8500 mdi_vhci_bus_config_t *vhbc; in bus_config_all_phcis() local
8509 vhbc = kmem_zalloc(sizeof (*vhbc), KM_SLEEP); in bus_config_all_phcis()
8519 phbc->phbc_vhbusconfig = vhbc; in bus_config_all_phcis()
8522 vhbc->vhbc_thr_count++; in bus_config_all_phcis()
8526 vhbc->vhbc_op = op; in bus_config_all_phcis()
8527 vhbc->vhbc_op_major = maj; in bus_config_all_phcis()
8528 vhbc->vhbc_op_flags = NDI_NO_EVENT | in bus_config_all_phcis()
8530 mutex_init(&vhbc->vhbc_lock, NULL, MUTEX_DEFAULT, NULL); in bus_config_all_phcis()
8531 cv_init(&vhbc->vhbc_cv, NULL, CV_DRIVER, NULL); in bus_config_all_phcis()
8543 mutex_enter(&vhbc->vhbc_lock); in bus_config_all_phcis()
8545 while (vhbc->vhbc_thr_count > 0) in bus_config_all_phcis()
8546 cv_wait(&vhbc->vhbc_cv, &vhbc->vhbc_lock); in bus_config_all_phcis()
8547 mutex_exit(&vhbc->vhbc_lock); in bus_config_all_phcis()
8549 mutex_destroy(&vhbc->vhbc_lock); in bus_config_all_phcis()
8550 cv_destroy(&vhbc->vhbc_cv); in bus_config_all_phcis()
8551 kmem_free(vhbc, sizeof (*vhbc)); in bus_config_all_phcis()