本文整理汇总了C++中PVR_UNREFERENCED_PARAMETER函数的典型用法代码示例。如果您正苦于以下问题:C++ PVR_UNREFERENCED_PARAMETER函数的具体用法?C++ PVR_UNREFERENCED_PARAMETER怎么用?C++ PVR_UNREFERENCED_PARAMETER使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PVR_UNREFERENCED_PARAMETER函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: BridgePMRGetUID
IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgePMRGetUID(IMG_HANDLE hBridge,
IMG_HANDLE hPMR,
IMG_UINT64 *pui32UID)
{
PVRSRV_ERROR eError;
PMR * psPMRInt;
PVR_UNREFERENCED_PARAMETER(hBridge);
psPMRInt = (PMR *) hPMR;
eError =
PMRGetUID(
psPMRInt,
pui32UID);
return eError;
}
示例2: UnmapDeviceMemoryCallBack
static PVRSRV_ERROR UnmapDeviceMemoryCallBack(IMG_PVOID pvParam,
IMG_UINT32 ui32Param)
{
PVRSRV_ERROR eError;
RESMAN_MAP_DEVICE_MEM_DATA *psMapData = pvParam;
PVR_UNREFERENCED_PARAMETER(ui32Param);
if(psMapData->psMemInfo->sMemBlk.psIntSysPAddr)
{
OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP, sizeof(IMG_SYS_PHYADDR), psMapData->psMemInfo->sMemBlk.psIntSysPAddr, IMG_NULL);
psMapData->psMemInfo->sMemBlk.psIntSysPAddr = IMG_NULL;
}
if( psMapData->psMemInfo->psKernelSyncInfo )
{
psMapData->psMemInfo->psKernelSyncInfo->ui32RefCount--;
if (psMapData->psMemInfo->psKernelSyncInfo->ui32RefCount == 0)
{
eError = PVRSRVFreeSyncInfoKM(psMapData->psMemInfo->psKernelSyncInfo);
if(eError != PVRSRV_OK)
{
PVR_DPF((PVR_DBG_ERROR,"UnmapDeviceMemoryCallBack: Failed to free sync info"));
return eError;
}
}
}
eError = FreeDeviceMem(psMapData->psMemInfo);
if(eError != PVRSRV_OK)
{
PVR_DPF((PVR_DBG_ERROR,"UnmapDeviceMemoryCallBack: Failed to free DST meminfo"));
return eError;
}
eError = FreeMemCallBackCommon(psMapData->psSrcMemInfo, 0, IMG_FALSE);
OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP, sizeof(RESMAN_MAP_DEVICE_MEM_DATA), psMapData, IMG_NULL);
return eError;
}
示例3: SysDisableInterrupts
static IMG_VOID SysDisableInterrupts(SYS_DATA *psSysData)
{
#if !defined(NO_HARDWARE)
IMG_UINT32 ui32RegData;
IMG_UINT32 ui32Mask;
ui32Mask = POULSBO_THALIA_MASK;
ui32RegData = OSReadHWReg(gsPoulsboRegsCPUVaddr, POULSBO_INTERRUPT_ENABLE_REG);
OSWriteHWReg(gsPoulsboRegsCPUVaddr, POULSBO_INTERRUPT_ENABLE_REG, ui32RegData & (~ui32Mask));
ui32RegData = OSReadHWReg(gsPoulsboRegsCPUVaddr, POULSBO_INTERRUPT_MASK_REG);
OSWriteHWReg(gsPoulsboRegsCPUVaddr, POULSBO_INTERRUPT_MASK_REG, ui32RegData | ui32Mask);
PVR_TRACE(("SysDisableInterrupts: Interrupts disabled"));
#endif
PVR_UNREFERENCED_PARAMETER(psSysData);
}
示例4: BridgeHeapCfgHeapConfigCount
IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgeHeapCfgHeapConfigCount(IMG_HANDLE hBridge,
IMG_HANDLE hDeviceNode,
IMG_UINT32 *pui32NumHeapConfigs)
{
PVRSRV_ERROR eError;
IMG_HANDLE hDeviceNodeInt;
PVR_UNREFERENCED_PARAMETER(hBridge);
hDeviceNodeInt = (IMG_HANDLE) hDeviceNode;
eError =
HeapCfgHeapConfigCount(
hDeviceNodeInt,
pui32NumHeapConfigs);
return eError;
}
示例5: DisableSGXClocks
IMG_VOID DisableSGXClocks(SYS_DATA *psSysData)
{
#if !defined(NO_HARDWARE)
SYS_SPECIFIC_DATA *psSysSpecData = (SYS_SPECIFIC_DATA *) psSysData->pvSysSpecificData;
if (atomic_read(&psSysSpecData->sSGXClocksEnabled) == 0)
{
return;
}
PVR_DPF((PVR_DBG_MESSAGE, "DisableSGXClocks: Disabling SGX Clocks"));
SysDisableSGXInterrupts(psSysData);
#if defined(MTK_USE_GDC)
SysDeInitGDC();
#endif
DRV_WriteReg32(MMSYS2_CONFG_BASE+0x400, DRV_Reg32(MMSYS2_CONFG_BASE+0x400)&~4);
disable_clock(MT65XX_PDN_MM_MFG_HALF, "MFG");
disable_clock(MT65XX_PDN_MM_MFG, "MFG");
disable_clock(MT65XX_PDN_MM_G3D, "MFG");
//DRV_WriteReg32(MMSYS2_CONFG_BASE+0x400, DRV_Reg32(MMSYS2_CONFG_BASE+0x400)&~4);
#if defined(LDM_PLATFORM) && !defined(PVR_DRI_DRM_NOT_PCI) && defined(CONFIG_PM_RUNTIME)
{
int res = pm_runtime_put_sync(&gpsPVRLDMDev->dev);
if (res < 0)
{
PVR_DPF((PVR_DBG_ERROR, "DisableSGXClocks: pm_runtime_put_sync failed (%d)", -res));
}
}
#endif
atomic_set(&psSysSpecData->sSGXClocksEnabled, 0);
#else
PVR_UNREFERENCED_PARAMETER(psSysData);
#endif
}
示例6: DBGDIOCDrivSetFrame
static IMG_UINT32 DBGDIOCDrivSetFrame(IMG_VOID * pvInBuffer, IMG_VOID * pvOutBuffer)
{
PDBG_IN_SETFRAME psParams;
PDBG_STREAM psStream;
psParams = (PDBG_IN_SETFRAME) pvInBuffer;
PVR_UNREFERENCED_PARAMETER(pvOutBuffer);
psStream = SID2PStream(psParams->hStream);
if (psStream != (PDBG_STREAM)IMG_NULL)
{
ExtDBGDrivSetFrame(psStream,psParams->ui32Frame);
return(IMG_TRUE);
}
else
{
return(IMG_FALSE);
}
}
示例7: SYSPVRPreSuspend
int
SYSPVRPreSuspend(struct drm_device *dev)
{
if (PVRSRVSetPowerStateKM(PVRSRV_SYS_POWER_STATE_D3) != PVRSRV_OK)
{
return -EBUSY;
}
#if defined(DISPLAY_CONTROLLER)
if (PVR_DRM_MAKENAME(DISPLAY_CONTROLLER, _Suspend)(dev) != 0)
{
(void)PVRSRVSetPowerStateKM(PVRSRV_SYS_POWER_STATE_D0);
return -EBUSY;
}
#else
PVR_UNREFERENCED_PARAMETER(dev);
#endif
return 0;
}
示例8: RegisterKeyPressed
void RegisterKeyPressed(u32 dwui32ScanCode, struct HOTKEYINFO *pInfo)
{
struct DBG_STREAM *psStream;
PVR_UNREFERENCED_PARAMETER(pInfo);
if (dwui32ScanCode == g_PrivateHotKeyData.ui32ScanCode) {
PVR_DPF(PVR_DBG_MESSAGE, "PDUMP Hotkey pressed !\n");
psStream = (struct DBG_STREAM *)
g_PrivateHotKeyData.sHotKeyInfo.pvStream;
if (!g_bHotKeyPressed) {
g_ui32HotKeyFrame = psStream->ui32Current + 2;
g_bHotKeyPressed = IMG_TRUE;
}
}
}
示例9: TLServerReleaseDataKM
PVRSRV_ERROR
TLServerReleaseDataKM(PTL_STREAM_DESC psSD,
IMG_UINT32 uiReadOffset,
IMG_UINT32 uiReadLen)
{
TL_GLOBAL_DATA* psGD = TLGGD();
PTL_SNODE psNode = 0;
PVR_DPF_ENTERED;
/* Unreferenced in release builds */
PVR_UNREFERENCED_PARAMETER(uiReadOffset);
PVR_ASSERT(psSD);
// Sanity check, quick exit if there are no streams
if (psGD->psHead == NULL)
{
PVR_DPF_RETURN_RC(PVRSRV_ERROR_STREAM_ERROR);
}
// Check stream still valid
psNode = TLFindStreamNodeByDesc(psSD);
if ((psNode == NULL) || (psNode != psSD->psNode))
{
PVR_DPF_RETURN_RC(PVRSRV_ERROR_HANDLE_NOT_FOUND);
}
// Does stream still exist?
if (psNode->psStream == NULL)
{
PVR_DPF_RETURN_RC(PVRSRV_ERROR_RESOURCE_UNAVAILABLE);
}
PVR_DPF((PVR_DBG_VERBOSE, "TLReleaseDataKM uiReadOffset=%d, uiReadLen=%d", uiReadOffset, uiReadLen));
// Move read position on to free up space in stream buffer
TLStreamAdvanceReadPos(psNode->psStream, uiReadLen);
PVR_DPF_RETURN_OK;
}
示例10: SysCreateConfigData
PVRSRV_ERROR SysCreateConfigData(PVRSRV_SYSTEM_CONFIG **ppsSysConfig, void *hDevice)
{
PLAT_DATA *psPlatData;
PVRSRV_ERROR eError;
PVR_UNREFERENCED_PARAMETER(hDevice);
psPlatData = OSAllocZMem(sizeof(*psPlatData));
/* Query the Emu for reg and IRQ information */
eError = PCIInitDev(psPlatData);
if (eError != PVRSRV_OK)
{
goto e0;
}
/* Save data for this device */
sSysConfig.pasDevices[0].hSysData = (IMG_HANDLE) psPlatData;
/* Save private data for the physical memory heap */
gsPhysHeapConfig[0].hPrivData = (IMG_HANDLE) psPlatData;
#if defined(TDMETACODE)
#error "Not supported services/3rdparty/intel_drm/sysconfig.c"
gsPhysHeapConfig[1].hPrivData = IMG_NULL;
#endif
*ppsSysConfig = &sSysConfig;
gpsPlatData = psPlatData;
/* Setup other system specific stuff */
#if defined(SUPPORT_ION)
IonInit(NULL);
#endif
return PVRSRV_OK;
e0:
return eError;
}
示例11: CloseBCDeviceCallBack
static PVRSRV_ERROR CloseBCDeviceCallBack(IMG_PVOID pvParam,
IMG_UINT32 ui32Param)
{
PVRSRV_BUFFERCLASS_PERCONTEXT_INFO *psBCPerContextInfo;
PVRSRV_BUFFERCLASS_INFO *psBCInfo;
PVR_UNREFERENCED_PARAMETER(ui32Param);
psBCPerContextInfo = (PVRSRV_BUFFERCLASS_PERCONTEXT_INFO *)pvParam;
psBCInfo = psBCPerContextInfo->psBCInfo;
psBCInfo->ui32RefCount--;
if(psBCInfo->ui32RefCount == 0)
{
IMG_UINT32 i;
psBCInfo->psFuncTable->pfnCloseBCDevice(psBCInfo->hExtDevice);
for(i=0; i<psBCInfo->ui32BufferCount; i++)
{
if(psBCInfo->psBuffer[i].sDeviceClassBuffer.psKernelSyncInfo)
{
PVRSRVFreeSyncInfoKM(psBCInfo->psBuffer[i].sDeviceClassBuffer.psKernelSyncInfo);
}
}
if(psBCInfo->psBuffer)
{
OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP, sizeof(PVRSRV_BC_BUFFER), psBCInfo->psBuffer, IMG_NULL);
psBCInfo->psBuffer = IMG_NULL;
}
}
OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP, sizeof(PVRSRV_BUFFERCLASS_PERCONTEXT_INFO), psBCPerContextInfo, IMG_NULL);
return PVRSRV_OK;
}
示例12: EnableSGXClocks
PVRSRV_ERROR EnableSGXClocks(SYS_DATA *psSysData)
{
#if !defined(NO_HARDWARE)
SYS_SPECIFIC_DATA *psSysSpecData = (SYS_SPECIFIC_DATA *) psSysData->pvSysSpecificData;
if (atomic_read(&psSysSpecData->sSGXClocksEnabled) != 0)
{
return PVRSRV_OK;
}
PVR_DPF((PVR_DBG_MESSAGE, "EnableSGXClocks: Enabling SGX Clocks"));
#if defined(LDM_PLATFORM) && !defined(PVR_DRI_DRM_NOT_PCI)
{
int res;
if (sgx_idle_mode == 0)
RequestSGXFreq(psSysData, IMG_TRUE);
res = pm_runtime_get_sync(&gpsPVRLDMDev->dev);
if (res < 0)
{
PVR_DPF((PVR_DBG_ERROR, "EnableSGXClocks: pm_runtime_get_sync failed (%d)", -res));
return PVRSRV_ERROR_UNABLE_TO_ENABLE_CLOCK;
}
}
#endif
SysEnableSGXInterrupts(psSysData);
atomic_set(&psSysSpecData->sSGXClocksEnabled, 1);
#else
PVR_UNREFERENCED_PARAMETER(psSysData);
#endif
sgx_idle_log_on();
return PVRSRV_OK;
}
示例13: SGXResetSleep
static IMG_VOID SGXResetSleep(PVRSRV_SGXDEV_INFO *psDevInfo,
IMG_UINT32 ui32PDUMPFlags,
IMG_BOOL bPDump)
{
#if !defined(PDUMP)
PVR_UNREFERENCED_PARAMETER(ui32PDUMPFlags);
#endif
OSWaitus(1000 * 1000000 / psDevInfo->ui32CoreClockSpeed);
if (bPDump)
{
PDUMPIDLWITHFLAGS(30, ui32PDUMPFlags);
#if defined(PDUMP)
PDumpRegRead(EUR_CR_SOFT_RESET, ui32PDUMPFlags);
#endif
}
}
示例14: BridgeServerSyncAlloc
IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgeServerSyncAlloc(IMG_HANDLE hBridge,
IMG_HANDLE hDevNode,
IMG_HANDLE *phSyncHandle,
IMG_UINT32 *pui32SyncPrimVAddr)
{
PVRSRV_ERROR eError;
IMG_HANDLE hDevNodeInt;
SERVER_SYNC_PRIMITIVE * psSyncHandleInt;
PVR_UNREFERENCED_PARAMETER(hBridge);
hDevNodeInt = (IMG_HANDLE) hDevNode;
eError =
PVRSRVServerSyncAllocKM(
hDevNodeInt,
&psSyncHandleInt,
pui32SyncPrimVAddr);
*phSyncHandle = psSyncHandleInt;
return eError;
}
示例15: PVRSRVSyncRecordAddKM
PVRSRV_ERROR
PVRSRVSyncRecordAddKM(
SYNC_RECORD_HANDLE * phRecord,
SYNC_PRIMITIVE_BLOCK * hServerSyncPrimBlock,
IMG_UINT32 ui32FwBlockAddr,
IMG_UINT32 ui32SyncOffset,
IMG_BOOL bServerSync,
IMG_UINT32 ui32ClassNameSize,
const IMG_CHAR *pszClassName)
{
PVR_UNREFERENCED_PARAMETER(phRecord);
PVR_UNREFERENCED_PARAMETER(hServerSyncPrimBlock);
PVR_UNREFERENCED_PARAMETER(ui32FwBlockAddr);
PVR_UNREFERENCED_PARAMETER(ui32SyncOffset);
PVR_UNREFERENCED_PARAMETER(bServerSync);
PVR_UNREFERENCED_PARAMETER(ui32ClassNameSize);
PVR_UNREFERENCED_PARAMETER(pszClassName);
return PVRSRV_OK;
}