Lines Matching defs:instance
178 /** State info. for each driver instance. */
317 * @param pDip The module structure instance.
332 int instance = ddi_get_instance(pDip);
335 if (ddi_soft_state_zalloc(g_pVBoxDrvSolarisState, instance) != DDI_SUCCESS)
341 pState = ddi_get_soft_state(g_pVBoxDrvSolarisState, instance);
405 * @param pDip The module structure instance.
420 int instance = ddi_get_instance(pDip);
421 vbox_devstate_t *pState = ddi_get_soft_state(g_pVBoxDrvSolarisState, instance);
423 ddi_soft_state_free(g_pVBoxDrvSolarisState, instance);
454 * @param pDip The module structure instance.
484 * Locate a new device open instance.
551 int instance;
552 for (instance = 0; instance < DEVICE_MAXINSTANCES; instance++)
554 vbox_devstate_t *pState = ddi_get_soft_state(g_pVBoxDrvSolarisState, instance);
559 if (instance >= DEVICE_MAXINSTANCES)
565 *pDev = makedevice(getmajor(*pDev), instance);