Lines Matching defs:pState
192 static int vboxUSBMonSolarisClientInfo(vboxusbmon_state_t *pState, PVBOXUSB_CLIENT_INFO pClientInfo);
414 vboxusbmon_state_t *pState = NULL;
455 pState = ddi_get_soft_state(g_pVBoxUSBMonSolarisState, iOpenInstance);
459 if (!pState)
468 pState->Process = RTProcSelf();
480 vboxusbmon_state_t *pState = NULL;
484 pState = ddi_get_soft_state(g_pVBoxUSBMonSolarisState, getminor(Dev));
485 if (!pState)
487 LogRel((DEVICE_NAME ":VBoxUSBMonSolarisClose: failed to get pState.\n"));
513 VBoxUSBFilterRemoveOwner(pState->Process);
516 pState = NULL;
555 vboxusbmon_state_t *pState = ddi_get_soft_state(g_pVBoxUSBMonSolarisState, getminor(Dev));
556 if (!pState)
622 rc = vboxUSBMonSolarisProcessIOCtl(Cmd, pState, pvBuf, ReqWrap.cbData, &cbDataReturned);
681 vboxusbmon_state_t *pState = (vboxusbmon_state_t *)pvState;
724 rc = VBoxUSBFilterAdd(pFilter, pState->Process, &pReq->uId);
726 Log((DEVICE_NAME ":vboxUSBMonSolarisProcessIOCtl: ADD_FILTER (Process:%d) returned %d\n", pState->Process, rc));
735 rc = VBoxUSBFilterRemove(pState->Process, (uintptr_t)pReq->uId);
737 Log((DEVICE_NAME ":vboxUSBMonSolarisProcessIOCtl: REMOVE_FILTER (Process:%d) returned %d\n", pState->Process, rc));
748 Log((DEVICE_NAME ":vboxUSBMonSolarisProcessIOCtl: RESET_DEVICE (Process:%d) returned %d\n", pState->Process, rc));
757 rc = vboxUSBMonSolarisClientInfo(pState, pReq);
759 Log((DEVICE_NAME ":vboxUSBMonSolarisProcessIOCtl: CLIENT_INFO (Process:%d) returned %d\n", pState->Process, rc));
778 LogRel((DEVICE_NAME ":vboxUSBMonSolarisProcessIOCtl: Unknown request (Process:%d) %#x\n", pState->Process, iFunction));
853 * @param pState Pointer to the device state.
856 static int vboxUSBMonSolarisClientInfo(vboxusbmon_state_t *pState, PVBOXUSB_CLIENT_INFO pClientInfo)
858 LogFunc((DEVICE_NAME ":vboxUSBMonSolarisClientInfo pState=%p pClientInfo=%p\n", pState, pClientInfo));
860 AssertPtrReturn(pState, VERR_INVALID_POINTER);
879 rc = pCur->Info.pfnSetConsumerCredentials(pState->Process, pCur->Info.Instance, NULL /* pvReserved */);