Lines Matching refs:pSession
209 PVBOXGUESTSESSION pSession;
222 rc = VbgdCommonCreateUserSession(&g_DevExt, &pSession);
225 if (ASMAtomicCmpXchgPtr(&pDev->si_drv1, pSession, (void *)0x42))
227 Log((DEVICE_NAME ":VBoxGuestFreeBSDOpen success: g_DevExt=%p pSession=%p rc=%d pid=%d\n", &g_DevExt, pSession, rc, (int)RTProcSelf()));
232 VbgdCommonCloseSession(&g_DevExt, pSession);
245 PVBOXGUESTSESSION pSession = (PVBOXGUESTSESSION)pDev->si_drv1;
246 Log(("VBoxGuestFreeBSDClose: fFile=%#x pSession=%p\n", fFile, pSession));
251 if (VALID_PTR(pSession))
253 VbgdCommonCloseSession(&g_DevExt, pSession);
254 if (!ASMAtomicCmpXchgPtr(&pDev->si_drv1, NULL, pSession))
255 Log(("VBoxGuestFreeBSDClose: si_drv1=%p expected %p!\n", pDev->si_drv1, pSession));
261 Log(("VBoxGuestFreeBSDClose: si_drv1=%p!\n", pSession));
278 PVBOXGUESTSESSION pSession = (PVBOXGUESTSESSION)pDev->si_drv1;
279 if (RT_UNLIKELY(!VALID_PTR(pSession)))
328 Log((DEVICE_NAME ":VBoxGuestFreeBSDIOCtl: pSession=%p pid=%d.\n", pSession, (int)RTProcSelf()));
334 rc = VbgdCommonIoCtl(ulCmd, &g_DevExt, pSession, pvBuf, ReqWrap->cbData, &cbDataReturned);
368 PVBOXGUESTSESSION pSession = (PVBOXGUESTSESSION)pDev->si_drv1;
369 if (RT_UNLIKELY(!VALID_PTR(pSession))) {
375 if (pSession->u32MousePosChangedSeq != u32CurSeq)
378 pSession->u32MousePosChangedSeq = u32CurSeq;