/external/sonivox/arm-wt-22k/lib_src/ |
D | eas_pcm.c | 46 static EAS_RESULT LinearPCMDecode (EAS_DATA_HANDLE pEASData, S_PCM_STATE *pState); 47 static EAS_RESULT LinearPCMLocate (EAS_DATA_HANDLE pEASData, S_PCM_STATE *pState, EAS_I32 time); 108 static EAS_RESULT RenderPCMStream (S_EAS_DATA *pEASData, S_PCM_STATE *pState, EAS_I32 numSamples); 113 static EAS_RESULT InitPCMStream (S_EAS_DATA *pEASData, S_PCM_STATE *pState); 133 S_PCM_STATE *pState; in EAS_PEInit() local 153 for (i = 0, pState = pEASData->pPCMStreams; i < MAX_PCM_STREAMS; i++, pState++) in EAS_PEInit() 154 pState->fileHandle = NULL; in EAS_PEInit() 208 S_PCM_STATE *pState; in EAS_PERender() local 213 for (i = 0, pState = pEASData->pPCMStreams; i < MAX_PCM_STREAMS; i++, pState++) in EAS_PERender() 215 …if ((pState->fileHandle) && (pState->state != EAS_STATE_STOPPED) && (pState->state != EAS_STATE_PA… in EAS_PERender() [all …]
|
D | eas_imaadpcm.c | 49 static EAS_RESULT IMADecoderInit (EAS_DATA_HANDLE pEASData, S_PCM_STATE *pState); 50 static EAS_RESULT IMADecoderSample (EAS_DATA_HANDLE pEASData, S_PCM_STATE *pState); 51 static void IMADecoderADPCM (S_DECODER_STATE *pState, EAS_U8 nibble); 52 static EAS_RESULT IMADecoderLocate (EAS_DATA_HANDLE pEASData, S_PCM_STATE *pState, EAS_I32 time); 82 static EAS_RESULT IMADecoderInit (EAS_DATA_HANDLE pEASData, S_PCM_STATE *pState) in IMADecoderInit() argument 84 pState->decoderL.step = 0; in IMADecoderInit() 85 pState->decoderR.step = 0; in IMADecoderInit() 105 static EAS_RESULT IMADecoderSample (EAS_DATA_HANDLE pEASData, S_PCM_STATE *pState) in IMADecoderSample() argument 111 if (pState->hiNibble) in IMADecoderSample() 113 IMADecoderADPCM(&pState->decoderL, (EAS_U8)(pState->srcByte >> 4)); in IMADecoderSample() [all …]
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
D | api.cpp | 309 pCurDrawContext->pState = &pContext->dsRing[dsIndex]; in GetDrawContext() 321 CopyState(*pCurDrawContext->pState, *pPrevDrawContext->pState); in GetDrawContext() 324 SWR_ASSERT(pCurDrawContext->pState->pArena->IsEmpty() == true); in GetDrawContext() 326 pCurDrawContext->pState->pPrivateState = nullptr; in GetDrawContext() 334 pCurDrawContext->pState = pPrevDrawContext->pState; in GetDrawContext() 340 SWR_ASSERT(pCurDrawContext->pState->pArena->IsEmpty() == true); in GetDrawContext() 377 SWR_ASSERT(pDC->pState != nullptr); in GetDrawState() 379 return &pDC->pState->state; in GetDrawState() 463 API_STATE* pState = GetDrawState(pContext); in SetupDefaultState() local 465 pState->rastState.cullMode = SWR_CULLMODE_NONE; in SetupDefaultState() [all …]
|
/external/epid-sdk/ext/ipp/sources/ippcp/ |
D | pcpsha512final.c | 75 IPPFUN(IppStatus, ippsSHA512Final,(Ipp8u* pMD, IppsSHA512State* pState)) 78 IPP_BAD_PTR1_RET(pState); 79 pState = (IppsSHA512State*)( IPP_ALIGNED_PTR(pState, SHA512_ALIGNMENT) ); 80 IPP_BADARG_RET(idCtxSHA512 !=HASH_CTX_ID(pState), ippStsContextMatchErr); 85 cpFinalizeSHA512(HASH_VALUE(pState), 86 HASH_BUFF(pState), HAHS_BUFFIDX(pState), 87 HASH_LENLO(pState), HASH_LENHI(pState)); 89 ((Ipp64u*)pMD)[0] = ENDIANNESS64(HASH_VALUE(pState)[0]); 90 ((Ipp64u*)pMD)[1] = ENDIANNESS64(HASH_VALUE(pState)[1]); 91 ((Ipp64u*)pMD)[2] = ENDIANNESS64(HASH_VALUE(pState)[2]); [all …]
|
D | pcpsha384final.c | 76 IPPFUN(IppStatus, ippsSHA384Final,(Ipp8u* pMD, IppsSHA384State* pState)) 79 IPP_BAD_PTR1_RET(pState); 80 pState = (IppsSHA512State*)( IPP_ALIGNED_PTR(pState, SHA512_ALIGNMENT) ); 81 IPP_BADARG_RET(idCtxSHA512 !=HASH_CTX_ID(pState), ippStsContextMatchErr); 86 cpFinalizeSHA512(HASH_VALUE(pState), 87 HASH_BUFF(pState), HAHS_BUFFIDX(pState), 88 HASH_LENLO(pState), HASH_LENHI(pState)); 90 ((Ipp64u*)pMD)[0] = ENDIANNESS64(HASH_VALUE(pState)[0]); 91 ((Ipp64u*)pMD)[1] = ENDIANNESS64(HASH_VALUE(pState)[1]); 92 ((Ipp64u*)pMD)[2] = ENDIANNESS64(HASH_VALUE(pState)[2]); [all …]
|
D | pcpsha256final.c | 76 IPPFUN(IppStatus, ippsSHA256Final,(Ipp8u* pMD, IppsSHA256State* pState)) 79 IPP_BAD_PTR1_RET(pState); 80 pState = (IppsSHA256State*)( IPP_ALIGNED_PTR(pState, SHA256_ALIGNMENT) ); 81 IPP_BADARG_RET(idCtxSHA256 !=HASH_CTX_ID(pState), ippStsContextMatchErr); 86 … cpFinalizeSHA256(HASH_VALUE(pState), HASH_BUFF(pState), HAHS_BUFFIDX(pState), HASH_LENLO(pState)); 88 ((Ipp32u*)pMD)[0] = ENDIANNESS32(HASH_VALUE(pState)[0]); 89 ((Ipp32u*)pMD)[1] = ENDIANNESS32(HASH_VALUE(pState)[1]); 90 ((Ipp32u*)pMD)[2] = ENDIANNESS32(HASH_VALUE(pState)[2]); 91 ((Ipp32u*)pMD)[3] = ENDIANNESS32(HASH_VALUE(pState)[3]); 92 ((Ipp32u*)pMD)[4] = ENDIANNESS32(HASH_VALUE(pState)[4]); [all …]
|
D | pcpsha224final.c | 76 IPPFUN(IppStatus, ippsSHA224Final,(Ipp8u* pMD, IppsSHA224State* pState)) 79 IPP_BAD_PTR1_RET(pState); 80 pState = (IppsSHA256State*)( IPP_ALIGNED_PTR(pState, SHA256_ALIGNMENT) ); 81 IPP_BADARG_RET(idCtxSHA256 !=HASH_CTX_ID(pState), ippStsContextMatchErr); 86 … cpFinalizeSHA256(HASH_VALUE(pState), HASH_BUFF(pState), HAHS_BUFFIDX(pState), HASH_LENLO(pState)); 88 ((Ipp32u*)pMD)[0] = ENDIANNESS32(HASH_VALUE(pState)[0]); 89 ((Ipp32u*)pMD)[1] = ENDIANNESS32(HASH_VALUE(pState)[1]); 90 ((Ipp32u*)pMD)[2] = ENDIANNESS32(HASH_VALUE(pState)[2]); 91 ((Ipp32u*)pMD)[3] = ENDIANNESS32(HASH_VALUE(pState)[3]); 92 ((Ipp32u*)pMD)[4] = ENDIANNESS32(HASH_VALUE(pState)[4]); [all …]
|
D | pcpsha1final.c | 75 IPPFUN(IppStatus, ippsSHA1Final,(Ipp8u* pMD, IppsSHA1State* pState)) 78 IPP_BAD_PTR1_RET(pState); 79 pState = (IppsSHA1State*)( IPP_ALIGNED_PTR(pState, SHA1_ALIGNMENT) ); 80 IPP_BADARG_RET(idCtxSHA1 !=HASH_CTX_ID(pState), ippStsContextMatchErr); 85 cpFinalizeSHA1(HASH_VALUE(pState), HASH_BUFF(pState), HAHS_BUFFIDX(pState), HASH_LENLO(pState)); 87 ((Ipp32u*)pMD)[0] = ENDIANNESS32(HASH_VALUE(pState)[0]); 88 ((Ipp32u*)pMD)[1] = ENDIANNESS32(HASH_VALUE(pState)[1]); 89 ((Ipp32u*)pMD)[2] = ENDIANNESS32(HASH_VALUE(pState)[2]); 90 ((Ipp32u*)pMD)[3] = ENDIANNESS32(HASH_VALUE(pState)[3]); 91 ((Ipp32u*)pMD)[4] = ENDIANNESS32(HASH_VALUE(pState)[4]); [all …]
|
D | pcphashfinal_rmf.c | 75 IPPFUN(IppStatus, ippsHashFinal_rmf,(Ipp8u* pMD, IppsHashState_rmf* pState)) 78 IPP_BAD_PTR2_RET(pMD, pState); 79 pState= (IppsHashState_rmf*)( IPP_ALIGNED_PTR(pState, HASH_ALIGNMENT) ); 80 IPP_BADARG_RET(idCtxHash !=HASH_CTX_ID(pState), ippStsContextMatchErr); 83 const IppsHashMethod* method = HASH_METHOD(pState); 85 cpFinalize_rmf(HASH_VALUE(pState), 86 HASH_BUFF(pState), HAHS_BUFFIDX(pState), 87 HASH_LENLO(pState), HASH_LENHI(pState), 90 method->hashOctStr(pMD, HASH_VALUE(pState)); 93 HAHS_BUFFIDX(pState) = 0; [all …]
|
D | pcphashupdate.c | 84 IPPFUN(IppStatus, ippsHashUpdate,(const Ipp8u* pSrc, int len, IppsHashState* pState)) 87 IPP_BAD_PTR1_RET(pState); 89 IPP_BADARG_RET(!HASH_VALID_ID(pState), ippStsContextMatchErr); 97 const cpHashAttr* pAttr = &cpHashAlgAttr[HASH_ALG_ID(pState)]; 100 Ipp64u lenLo = HASH_LENLO(pState); 101 Ipp64u lenHi = HASH_LENHI(pState); 103 if(lenLo < HASH_LENLO(pState)) lenHi++; 108 cpHashProc hashFunc = HASH_FUNC(pState); /* processing function */ 109 const void* pParam = HASH_FUNC_PAR(pState); /* and it's addition params */ 119 int n = HAHS_BUFFIDX(pState); [all …]
|
D | pcphashupdate_rmf.c | 76 IPPFUN(IppStatus, ippsHashUpdate_rmf,(const Ipp8u* pSrc, int len, IppsHashState_rmf* pState)) 79 IPP_BAD_PTR1_RET(pState); 80 pState= (IppsHashState_rmf*)( IPP_ALIGNED_PTR(pState, HASH_ALIGNMENT) ); 81 IPP_BADARG_RET(idCtxHash !=HASH_CTX_ID(pState), ippStsContextMatchErr); 89 const IppsHashMethod* method = HASH_METHOD(pState); 95 int idx = HAHS_BUFFIDX(pState); 96 Ipp64u lenLo = HASH_LENLO(pState); 97 Ipp64u lenHi = HASH_LENHI(pState); 99 if(lenLo < HASH_LENLO(pState)) lenHi++; 104 CopyBlock(pSrc, HASH_BUFF(pState)+idx, procLen); [all …]
|
D | pcpgfpecessm2.h | 78 __INLINE Ipp8u cpECES_SM2KdfNextByte(IppsECESState_SM2* pState) { in cpECES_SM2KdfNextByte() argument 79 if (pState->kdfIndex == IPP_SM3_DIGEST_BITSIZE / BYTESIZE) { in cpECES_SM2KdfNextByte() 80 ++pState->kdfCounter; in cpECES_SM2KdfNextByte() 81 pState->kdfIndex = 0; in cpECES_SM2KdfNextByte() 85 ippsHashUpdate_rmf(pState->pSharedSecret, pState->sharedSecretLen, pState->pKdfHasher); in cpECES_SM2KdfNextByte() 86 U32_TO_HSTRING(ctnStr, pState->kdfCounter); in cpECES_SM2KdfNextByte() 87 ippsHashUpdate_rmf(ctnStr, sizeof(Ipp32u), pState->pKdfHasher); in cpECES_SM2KdfNextByte() 88 ippsHashFinal_rmf(pState->pKdfWindow, pState->pKdfHasher); in cpECES_SM2KdfNextByte() 92 pState->wasNonZero |= pState->pKdfWindow[pState->kdfIndex]; in cpECES_SM2KdfNextByte() 94 return pState->pKdfWindow[pState->kdfIndex++]; in cpECES_SM2KdfNextByte()
|
D | pcpsha512update.c | 77 IPPFUN(IppStatus, ippsSHA512Update,(const Ipp8u* pSrc, int len, IppsSHA512State* pState)) 80 IPP_BAD_PTR1_RET(pState); 82 pState = (IppsSHA512State*)( IPP_ALIGNED_PTR(pState, SHA512_ALIGNMENT) ); 83 IPP_BADARG_RET(idCtxSHA512 !=HASH_CTX_ID(pState), ippStsContextMatchErr); 96 int idx = HAHS_BUFFIDX(pState); 97 Ipp8u* pBuffer = HASH_BUFF(pState); 98 Ipp64u lenLo = HASH_LENLO(pState) +len; 99 Ipp64u lenHi = HASH_LENHI(pState); 100 if(lenLo < HASH_LENLO(pState)) lenHi++; 115 UpdateSHA512(HASH_VALUE(pState), pBuffer, MBS_SHA512, sha512_cnt); [all …]
|
D | pcphashgettag_rmf.c | 78 IPPFUN(IppStatus, ippsHashGetTag_rmf,(Ipp8u* pTag, int tagLen, const IppsHashState_rmf* pState)) 81 IPP_BAD_PTR1_RET(pState); 82 pState = (IppsHashState_rmf*)( IPP_ALIGNED_PTR(pState, HASH_ALIGNMENT) ); 83 IPP_BADARG_RET(idCtxHash !=HASH_CTX_ID(pState), ippStsContextMatchErr); 87 IPP_BADARG_RET((tagLen <1) || HASH_METHOD(pState)->hashLen<tagLen, ippStsLengthErr); 91 const IppsHashMethod* method = HASH_METHOD(pState); 92 CopyBlock(HASH_VALUE(pState), hash, sizeof(DigestSHA512)); 94 HASH_BUFF(pState), HAHS_BUFFIDX(pState), 95 HASH_LENLO(pState), HASH_LENHI(pState),
|
D | pcpsha256update.c | 77 IPPFUN(IppStatus, ippsSHA256Update,(const Ipp8u* pSrc, int len, IppsSHA256State* pState)) 80 IPP_BAD_PTR1_RET(pState); 81 pState = (IppsSHA256State*)( IPP_ALIGNED_PTR(pState, SHA256_ALIGNMENT) ); 82 IPP_BADARG_RET(idCtxSHA256 !=HASH_CTX_ID(pState), ippStsContextMatchErr); 104 int idx = HAHS_BUFFIDX(pState); 105 Ipp8u* pBuffer = HASH_BUFF(pState); 106 Ipp64u lenLo = HASH_LENLO(pState) +len; 121 updateFunc(HASH_VALUE(pState), pBuffer, MBS_SHA256, sha256_cnt); 129 updateFunc(HASH_VALUE(pState), pSrc, procLen, sha256_cnt); 141 HASH_LENLO(pState) = lenLo; [all …]
|
D | pcpsha1update.c | 77 IPPFUN(IppStatus, ippsSHA1Update,(const Ipp8u* pSrc, int len, IppsSHA1State* pState)) 80 IPP_BAD_PTR1_RET(pState); 81 pState = (IppsSHA1State*)( IPP_ALIGNED_PTR(pState, SHA1_ALIGNMENT) ); 82 IPP_BADARG_RET(idCtxSHA1 !=HASH_CTX_ID(pState), ippStsContextMatchErr); 104 int idx = HAHS_BUFFIDX(pState); 105 Ipp8u* pBuffer = HASH_BUFF(pState); 106 Ipp64u lenLo = HASH_LENLO(pState) +len; 121 updateFunc(HASH_VALUE(pState), pBuffer, MBS_SHA1, sha1_cnt); 129 updateFunc(HASH_VALUE(pState), pSrc, procLen, sha1_cnt); 141 HASH_LENLO(pState) = lenLo; [all …]
|
D | pcpsha256stuff.h | 171 static IppStatus InitSHA256(IppsSHA256State* pState, const DigestSHA256 IV) in InitSHA256() argument 174 IPP_BAD_PTR1_RET(pState); in InitSHA256() 175 pState = (IppsSHA256State*)( IPP_ALIGNED_PTR(pState, SHA256_ALIGNMENT) ); in InitSHA256() 177 HASH_CTX_ID(pState) = idCtxSHA256; in InitSHA256() 178 HASH_LENLO(pState) = 0; in InitSHA256() 179 HAHS_BUFFIDX(pState) = 0; in InitSHA256() 182 HASH_VALUE(pState)[0] = IV[0]; in InitSHA256() local 183 HASH_VALUE(pState)[1] = IV[1]; in InitSHA256() local 184 HASH_VALUE(pState)[2] = IV[2]; in InitSHA256() local 185 HASH_VALUE(pState)[3] = IV[3]; in InitSHA256() local [all …]
|
D | pcpsha512_init.c | 59 IppStatus InitSHA512(IppsSHA512State* pState, const DigestSHA512 IV) in InitSHA512() argument 62 IPP_BAD_PTR1_RET(pState); in InitSHA512() 63 pState = (IppsSHA512State*)( IPP_ALIGNED_PTR(pState, SHA512_ALIGNMENT) ); in InitSHA512() 66 HASH_CTX_ID(pState) = idCtxSHA512; in InitSHA512() 68 HASH_LENLO(pState) = 0; in InitSHA512() 69 HASH_LENHI(pState) = 0; in InitSHA512() 71 HAHS_BUFFIDX(pState) = 0; in InitSHA512() 73 hashInit(HASH_VALUE(pState), IV); in InitSHA512()
|
D | pcpsha384gettag.c | 79 IPPFUN(IppStatus, ippsSHA384GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA384State* pState)) 82 IPP_BAD_PTR1_RET(pState); 83 pState = (IppsSHA512State*)( IPP_ALIGNED_PTR(pState, SHA512_ALIGNMENT) ); 84 IPP_BADARG_RET(idCtxSHA512 !=HASH_CTX_ID(pState), ippStsContextMatchErr); 92 CopyBlock(HASH_VALUE(pState), digest, sizeof(DigestSHA512)); 94 HASH_BUFF(pState), HAHS_BUFFIDX(pState), 95 HASH_LENLO(pState), HASH_LENHI(pState));
|
D | pcpsha512gettag.c | 78 IPPFUN(IppStatus, ippsSHA512GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA512State* pState)) 81 IPP_BAD_PTR1_RET(pState); 82 pState = (IppsSHA512State*)( IPP_ALIGNED_PTR(pState, SHA512_ALIGNMENT) ); 83 IPP_BADARG_RET(idCtxSHA512 !=HASH_CTX_ID(pState), ippStsContextMatchErr); 91 CopyBlock(HASH_VALUE(pState), digest, sizeof(DigestSHA512)); 93 HASH_BUFF(pState), HAHS_BUFFIDX(pState), 94 HASH_LENLO(pState), HASH_LENHI(pState));
|
D | pcpsha1gettag.c | 78 IPPFUN(IppStatus, ippsSHA1GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA1State* pState)) 81 IPP_BAD_PTR1_RET(pState); 82 pState = (IppsSHA1State*)( IPP_ALIGNED_PTR(pState, SHA1_ALIGNMENT) ); 83 IPP_BADARG_RET(idCtxSHA1 !=HASH_CTX_ID(pState), ippStsContextMatchErr); 91 CopyBlock(HASH_VALUE(pState), digest, sizeof(DigestSHA1)); 92 cpFinalizeSHA1(digest, HASH_BUFF(pState), HAHS_BUFFIDX(pState), HASH_LENLO(pState));
|
D | pcphashinit_rmf.c | 73 IPPFUN(IppStatus, ippsHashInit_rmf,(IppsHashState_rmf* pState, const IppsHashMethod* pMethod)) 76 IPP_BAD_PTR2_RET(pState, pMethod); 77 pState= (IppsHashState_rmf*)( IPP_ALIGNED_PTR(pState, HASH_ALIGNMENT) ); 79 PaddBlock(0, pState, sizeof(IppsHashState_rmf)); 80 HASH_METHOD(pState) = pMethod; 81 HASH_CTX_ID(pState) = idCtxHash; 82 pMethod->hashInit(HASH_VALUE(pState));
|
D | pcpsha256gettag.c | 78 IPPFUN(IppStatus, ippsSHA256GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA256State* pState)) 81 IPP_BAD_PTR1_RET(pState); 82 pState = (IppsSHA256State*)( IPP_ALIGNED_PTR(pState, SHA256_ALIGNMENT) ); 83 IPP_BADARG_RET(idCtxSHA256 !=HASH_CTX_ID(pState), ippStsContextMatchErr); 91 CopyBlock(HASH_VALUE(pState), digest, sizeof(DigestSHA256)); 92 cpFinalizeSHA256(digest, HASH_BUFF(pState), HAHS_BUFFIDX(pState), HASH_LENLO(pState));
|
D | pcpsha224gettag.c | 79 IPPFUN(IppStatus, ippsSHA224GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA224State* pState)) 82 IPP_BAD_PTR1_RET(pState); 83 pState = (IppsSHA256State*)( IPP_ALIGNED_PTR(pState, SHA256_ALIGNMENT) ); 84 IPP_BADARG_RET(idCtxSHA256 !=HASH_CTX_ID(pState), ippStsContextMatchErr); 92 CopyBlock(HASH_VALUE(pState), digest, sizeof(DigestSHA256)); 93 cpFinalizeSHA256(digest, HASH_BUFF(pState), HAHS_BUFFIDX(pState), HASH_LENLO(pState));
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/memory/ |
D | TilingFunctions.h | 392 const SWR_SURFACE_STATE *pState, 395 const SWR_FORMAT_INFO &info = GetFormatInfo(pState->format); 400 lodOffset = pState->lodOffsets[0][lod]; 404 ComputeLODOffset1D(info, pState->width, pState->halign, lod, lodOffset); 407 xOffsetBytes = (array * pState->qpitch + lodOffset + x) * info.Bpp; 415 INLINE void AdjustCoordsForMSAA(const SWR_SURFACE_STATE *pState, uint32_t& x, uint32_t& y, uint32_t… 418 if((pState->tileMode == SWR_TILE_MODE_YMAJOR || 419 pState->tileMode == SWR_TILE_MODE_WMAJOR) && 420 pState->bInterleavedSamples) 423 switch(pState->numSamples) [all …]
|