本文整理汇总了C++中PVR_UNREFERENCED_PARAMETER函数的典型用法代码示例。如果您正苦于以下问题:C++ PVR_UNREFERENCED_PARAMETER函数的具体用法?C++ PVR_UNREFERENCED_PARAMETER怎么用?C++ PVR_UNREFERENCED_PARAMETER使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PVR_UNREFERENCED_PARAMETER函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:DanBjorklund,项目名称:ME302C,代码行数:19,代码来源:client_mm_bridge.c
示例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;
}
开发者ID:MuMu360121,项目名称:jordan-kernel,代码行数:43,代码来源:devicemem.c
示例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);
}
开发者ID:ddalex,项目名称:XT890-Kernel-Gamma,代码行数:19,代码来源:sysconfig.c
示例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;
}
开发者ID:DanBjorklund,项目名称:ME302C,代码行数:19,代码来源:client_mm_bridge.c
示例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
}
开发者ID:Banjo0917,项目名称:mt6577_kernel3.4,代码行数:42,代码来源:sysutils_linux.c
示例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);
}
}
开发者ID:AdiPat,项目名称:i9003_Kernel,代码行数:20,代码来源:ioctl.c
示例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;
}
开发者ID:DanBjorklund,项目名称:ME302C,代码行数:20,代码来源:sys_pvr_drm_export.c
示例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;
}
}
}
开发者ID:arjen75,项目名称:bug20-2.6.35-linaro,代码行数:20,代码来源:hotkey.c
示例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;
}
开发者ID:AudioGod,项目名称:MediaTek-HelioX10-Kernel,代码行数:41,代码来源:tlserver.c
示例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;
}
开发者ID:Druboo666,项目名称:android_kernel_asus_moorefield,代码行数:41,代码来源:sysconfig.c
示例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;
}
开发者ID:CyanogenDefy,项目名称:hardware-ti-sgx,代码行数:41,代码来源:deviceclass.c
示例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;
}
开发者ID:ARMP,项目名称:ARM-Project,代码行数:41,代码来源:sysutils_linux.c
示例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
}
}
开发者ID:fgerneth,项目名称:Treibertest,代码行数:21,代码来源:sgxreset.c
示例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;
}
开发者ID:NotKit,项目名称:android-ia_kernel_intel_baytrail,代码行数:21,代码来源:client_sync_bridge.c
示例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;
}
开发者ID:sayeed99,项目名称:flareM_old,代码行数:19,代码来源:sync_server.c
示例16: BridgeHeapCfgHeapConfigName
IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgeHeapCfgHeapConfigName(IMG_HANDLE hBridge,
IMG_HANDLE hDeviceNode,
IMG_UINT32 ui32HeapConfigIndex,
IMG_UINT32 ui32HeapConfigNameBufSz,
IMG_CHAR *puiHeapConfigName)
{
PVRSRV_ERROR eError;
IMG_HANDLE hDeviceNodeInt;
PVR_UNREFERENCED_PARAMETER(hBridge);
hDeviceNodeInt = (IMG_HANDLE) hDeviceNode;
eError =
HeapCfgHeapConfigName(
hDeviceNodeInt,
ui32HeapConfigIndex,
ui32HeapConfigNameBufSz,
puiHeapConfigName);
return eError;
}
开发者ID:AudioGod,项目名称:MediaTek-HelioX10-Kernel,代码行数:21,代码来源:client_mm_bridge.c
示例17: FreeSharedSysMemCallBack
static PVRSRV_ERROR
FreeSharedSysMemCallBack(IMG_PVOID pvParam,
IMG_UINT32 ui32Param)
{
PVRSRV_KERNEL_MEM_INFO *psKernelMemInfo = pvParam;
PVR_UNREFERENCED_PARAMETER(ui32Param);
OSFreePages(psKernelMemInfo->ui32Flags,
psKernelMemInfo->ui32AllocSize,
psKernelMemInfo->pvLinAddrKM,
psKernelMemInfo->sMemBlk.hOSMemHandle);
OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP,
sizeof(PVRSRV_KERNEL_MEM_INFO),
psKernelMemInfo,
IMG_NULL);
return PVRSRV_OK;
}
开发者ID:CyanogenDefy,项目名称:hardware-ti-sgx,代码行数:21,代码来源:mem.c
示例18: BridgeServerSyncQueueHWOp
IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgeServerSyncQueueHWOp(IMG_HANDLE hBridge,
IMG_HANDLE hSyncHandle,
IMG_BOOL bbUpdate,
IMG_UINT32 *pui32FenceValue,
IMG_UINT32 *pui32UpdateValue)
{
PVRSRV_ERROR eError;
SERVER_SYNC_PRIMITIVE * psSyncHandleInt;
PVR_UNREFERENCED_PARAMETER(hBridge);
psSyncHandleInt = (SERVER_SYNC_PRIMITIVE *) hSyncHandle;
eError =
PVRSRVServerSyncQueueHWOpKM(
psSyncHandleInt,
bbUpdate,
pui32FenceValue,
pui32UpdateValue);
return eError;
}
开发者ID:NotKit,项目名称:android-ia_kernel_intel_baytrail,代码行数:21,代码来源:client_sync_bridge.c
示例19: RGXMMUCacheInvalidate
IMG_VOID RGXMMUCacheInvalidate(PVRSRV_DEVICE_NODE *psDeviceNode,
IMG_HANDLE hDeviceData,
MMU_LEVEL eMMULevel,
IMG_BOOL bUnmap)
{
PVR_UNREFERENCED_PARAMETER(bUnmap);
switch (eMMULevel)
{
case MMU_LEVEL_3: ui32CacheOpps |= RGXFWIF_MMUCACHEDATA_FLAGS_PC;
break;
case MMU_LEVEL_2: ui32CacheOpps |= RGXFWIF_MMUCACHEDATA_FLAGS_PD;
break;
case MMU_LEVEL_1: ui32CacheOpps |= RGXFWIF_MMUCACHEDATA_FLAGS_PT;
ui32CacheOpps |= RGXFWIF_MMUCACHEDATA_FLAGS_TLB;
break;
default:
PVR_ASSERT(0);
break;
}
}
开发者ID:wejgomi,项目名称:nexus-player,代码行数:21,代码来源:rgxmem.c
示例20: BridgeDevmemSLCFlushInvalRequest
IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgeDevmemSLCFlushInvalRequest(IMG_HANDLE hBridge,
IMG_HANDLE hDeviceNode,
IMG_HANDLE hPmr)
{
PVRSRV_ERROR eError;
IMG_HANDLE hDeviceNodeInt;
PMR * psPmrInt;
PVR_UNREFERENCED_PARAMETER(hBridge);
hDeviceNodeInt = (IMG_HANDLE) hDeviceNode;
psPmrInt = (PMR *) hPmr;
eError =
DevmemSLCFlushInvalRequest(
hDeviceNodeInt,
psPmrInt);
return eError;
}
开发者ID:DanBjorklund,项目名称:ME302C,代码行数:21,代码来源:client_mm_bridge.c
注:本文中的PVR_UNREFERENCED_PARAMETER函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论