Lines Matching defs:pHostParm
840 VBOXHGCMSVCPARM *pHostParm = (VBOXHGCMSVCPARM *)((char *)pCmd + sizeof (struct VBOXHGCMCMD));
842 uint8_t *pcBuf = (uint8_t *)pHostParm + cParms * sizeof (VBOXHGCMSVCPARM);
844 pCmd->paHostParms = pHostParm;
860 for (i = 0; i < cParms && RT_SUCCESS(rc); i++, pGuestParm++, pHostParm++)
868 pHostParm->type = VBOX_HGCM_SVC_PARM_32BIT;
869 pHostParm->u.uint32 = u32;
879 pHostParm->type = VBOX_HGCM_SVC_PARM_64BIT;
880 pHostParm->u.uint64 = u64;
893 pHostParm->type = VBOX_HGCM_SVC_PARM_PTR;
894 pHostParm->u.pointer.size = size;
902 pHostParm->u.pointer.addr = NULL;
914 pHostParm->u.pointer.addr = pcBuf;
954 pHostParm->type = VBOX_HGCM_SVC_PARM_PTR;
955 pHostParm->u.pointer.size = size;
963 pHostParm->u.pointer.addr = NULL;
977 pHostParm->u.pointer.addr = pcBuf;
1001 for (i = 0; i < cParms && RT_SUCCESS(rc); i++, pGuestParm++, pHostParm++)
1009 pHostParm->type = VBOX_HGCM_SVC_PARM_32BIT;
1010 pHostParm->u.uint32 = u32;
1020 pHostParm->type = VBOX_HGCM_SVC_PARM_64BIT;
1021 pHostParm->u.uint64 = u64;
1034 pHostParm->type = VBOX_HGCM_SVC_PARM_PTR;
1035 pHostParm->u.pointer.size = size;
1043 pHostParm->u.pointer.addr = NULL;
1055 pHostParm->u.pointer.addr = pcBuf;
1095 pHostParm->type = VBOX_HGCM_SVC_PARM_PTR;
1096 pHostParm->u.pointer.size = size;
1104 pHostParm->u.pointer.addr = NULL;
1118 pHostParm->u.pointer.addr = pcBuf;
1352 VBOXHGCMSVCPARM *pHostParm = (VBOXHGCMSVCPARM *)((uint8_t *)pCmd + sizeof (struct VBOXHGCMCMD));
1354 uint8_t *pu8Buf = (uint8_t *)pHostParm + cParms * sizeof (VBOXHGCMSVCPARM);
1356 pCmd->paHostParms = pHostParm;
1371 for (iParm = 0; iParm < cParms && RT_SUCCESS(rc); iParm++, pGuestParm++, pHostParm++)
1379 pHostParm->type = VBOX_HGCM_SVC_PARM_32BIT;
1380 pHostParm->u.uint32 = u32;
1390 pHostParm->type = VBOX_HGCM_SVC_PARM_64BIT;
1391 pHostParm->u.uint64 = u64;
1403 pHostParm->type = VBOX_HGCM_SVC_PARM_PTR;
1404 pHostParm->u.pointer.size = size;
1412 pHostParm->u.pointer.addr = NULL;
1468 pHostParm->u.pointer.addr = pu8Buf;
1504 pHostParm->type = VBOX_HGCM_SVC_PARM_PTR;
1505 pHostParm->u.pointer.size = size;
1513 pHostParm->u.pointer.addr = NULL;
1527 pHostParm->u.pointer.addr = pu8Buf;
1551 for (iParm = 0; iParm < cParms && RT_SUCCESS(rc); iParm++, pGuestParm++, pHostParm++)
1559 pHostParm->type = VBOX_HGCM_SVC_PARM_32BIT;
1560 pHostParm->u.uint32 = u32;
1570 pHostParm->type = VBOX_HGCM_SVC_PARM_64BIT;
1571 pHostParm->u.uint64 = u64;
1583 pHostParm->type = VBOX_HGCM_SVC_PARM_PTR;
1584 pHostParm->u.pointer.size = size;
1592 pHostParm->u.pointer.addr = NULL;
1648 pHostParm->u.pointer.addr = pu8Buf;
1684 pHostParm->type = VBOX_HGCM_SVC_PARM_PTR;
1685 pHostParm->u.pointer.size = size;
1693 pHostParm->u.pointer.addr = NULL;
1707 pHostParm->u.pointer.addr = pu8Buf;
1830 static int vmmdevHGCMParmVerify64(HGCMFunctionParameter64 *pGuestParm, VBOXHGCMSVCPARM *pHostParm)
1837 if (pHostParm->type == VBOX_HGCM_SVC_PARM_32BIT)
1842 if (pHostParm->type == VBOX_HGCM_SVC_PARM_64BIT)
1849 if ( pHostParm->type == VBOX_HGCM_SVC_PARM_PTR
1850 && pGuestParm->u.Pointer.size >= pHostParm->u.pointer.size)
1855 if ( pHostParm->type == VBOX_HGCM_SVC_PARM_PTR
1856 && pGuestParm->u.PageList.size >= pHostParm->u.pointer.size)
1870 static int vmmdevHGCMParmVerify32(HGCMFunctionParameter32 *pGuestParm, VBOXHGCMSVCPARM *pHostParm)
1872 static int vmmdevHGCMParmVerify32(HGCMFunctionParameter *pGuestParm, VBOXHGCMSVCPARM *pHostParm)
1880 if (pHostParm->type == VBOX_HGCM_SVC_PARM_32BIT)
1885 if (pHostParm->type == VBOX_HGCM_SVC_PARM_64BIT)
1892 if ( pHostParm->type == VBOX_HGCM_SVC_PARM_PTR
1893 && pGuestParm->u.Pointer.size >= pHostParm->u.pointer.size)
1898 if ( pHostParm->type == VBOX_HGCM_SVC_PARM_PTR
1899 && pGuestParm->u.PageList.size >= pHostParm->u.pointer.size)
2011 VBOXHGCMSVCPARM *pHostParm = pCmd->paHostParms;
2018 for (i = 0; i < cParms && RT_SUCCESS(rc); i++, pGuestParm++, pHostParm++)
2020 rc = vmmdevHGCMParmVerify64(pGuestParm, pHostParm);
2028 pGuestParm->u.value32 = pHostParm->u.uint32;
2033 pGuestParm->u.value64 = pHostParm->u.uint64;
2048 rc = vmmdevHGCMWriteLinPtr (pThis->pDevIns, i, pHostParm->u.pointer.addr,
2087 /* Copy pHostParm->u.pointer.addr[pHostParm->u.pointer.size] to pages. */
2088 rc = vmmdevHGCMPageListWrite(pThis->pDevIns, pPageListInfo, pHostParm->u.pointer.addr, size);
2120 VBOXHGCMSVCPARM *pHostParm = pCmd->paHostParms;
2127 for (i = 0; i < cParms && RT_SUCCESS(rc); i++, pGuestParm++, pHostParm++)
2129 rc = vmmdevHGCMParmVerify32(pGuestParm, pHostParm);
2137 pGuestParm->u.value32 = pHostParm->u.uint32;
2142 pGuestParm->u.value64 = pHostParm->u.uint64;
2157 rc = vmmdevHGCMWriteLinPtr (pThis->pDevIns, i, pHostParm->u.pointer.addr, size, iLinPtr, pCmd->paLinPtrs);
2195 /* Copy pHostParm->u.pointer.addr[pHostParm->u.pointer.size] to pages. */
2196 rc = vmmdevHGCMPageListWrite(pThis->pDevIns, pPageListInfo, pHostParm->u.pointer.addr, size);
2228 VBOXHGCMSVCPARM *pHostParm = pCmd->paHostParms;
2235 for (i = 0; i < cParms && RT_SUCCESS(rc); i++, pGuestParm++, pHostParm++)
2237 rc = vmmdevHGCMParmVerify32(pGuestParm, pHostParm);
2245 pGuestParm->u.value32 = pHostParm->u.uint32;
2250 pGuestParm->u.value64 = pHostParm->u.uint64;
2265 rc = vmmdevHGCMWriteLinPtr (pThis->pDevIns, i, pHostParm->u.pointer.addr, size, iLinPtr, pCmd->paLinPtrs);
2303 /* Copy pHostParm->u.pointer.addr[pHostParm->u.pointer.size] to pages. */
2304 rc = vmmdevHGCMPageListWrite(pThis->pDevIns, pPageListInfo, pHostParm->u.pointer.addr, size);