Lines Matching defs:pState
402 struct VBoxGuestDeviceState *pState = device_get_softc(pDevice);
415 VBoxGuestFreeBSDRemoveIRQ(pDevice, pState);
417 if (pState->pVMMDevMemRes)
418 bus_release_resource(pDevice, SYS_RES_MEMORY, pState->iVMMDevMemResId, pState->pVMMDevMemRes);
419 if (pState->pIOPortRes)
420 bus_release_resource(pDevice, SYS_RES_IOPORT, pState->iIOPortResId, pState->pIOPortRes);
465 struct VBoxGuestDeviceState *pState = (struct VBoxGuestDeviceState *)pvState;
467 pState->pIrqRes = bus_alloc_resource_any(pDevice, SYS_RES_IRQ, &iResId, RF_SHAREABLE | RF_ACTIVE);
470 rc = bus_setup_intr(pDevice, pState->pIrqRes, INTR_TYPE_BIO | INTR_MPSAFE, NULL, (driver_intr_t *)VBoxGuestFreeBSDISR, pState,
471 &pState->pfnIrqHandler);
473 rc = bus_setup_intr(pDevice, pState->pIrqRes, INTR_TYPE_BIO, (driver_intr_t *)VBoxGuestFreeBSDISR, pState, &pState->pfnIrqHandler);
478 pState->pfnIrqHandler = NULL;
482 pState->iIrqResId = iResId;
495 struct VBoxGuestDeviceState *pState = (struct VBoxGuestDeviceState *)pvState;
497 if (pState->pIrqRes)
499 bus_teardown_intr(pDevice, pState->pIrqRes, pState->pfnIrqHandler);
500 bus_release_resource(pDevice, SYS_RES_IRQ, 0, pState->pIrqRes);
508 struct VBoxGuestDeviceState *pState = NULL;
522 pState = device_get_softc(pDevice);
528 pState->pIOPortRes = bus_alloc_resource_any(pDevice, SYS_RES_IOPORT, &iResId, RF_ACTIVE);
529 pState->uIOPortBase = rman_get_start(pState->pIOPortRes);
530 pState->iIOPortResId = iResId;
531 if (pState->uIOPortBase)
537 pState->pVMMDevMemRes = bus_alloc_resource_any(pDevice, SYS_RES_MEMORY, &iResId, RF_ACTIVE);
538 pState->VMMDevMemHandle = rman_get_bushandle(pState->pVMMDevMemRes);
539 pState->VMMDevMemSize = rman_get_size(pState->pVMMDevMemRes);
541 pState->pMMIOBase = rman_get_virtual(pState->pVMMDevMemRes);
542 pState->iVMMDevMemResId = iResId;
543 if (pState->pMMIOBase)
548 rc = VbgdCommonInitDevExt(&g_DevExt, pState->uIOPortBase,
549 pState->pMMIOBase, pState->VMMDevMemSize,
561 rc = VBoxGuestFreeBSDAddIRQ(pDevice, pState);
577 VBoxGuestFreeBSDRemoveIRQ(pDevice, pState);