Lines Matching refs:publicArea
680 locator + offsetof(NV_INDEX, publicArea.attributes), in NvReadNvIndexAttributes()
712 locator + offsetof(NV_INDEX, publicArea.attributes), in NvWriteNvIndexAttributes()
791 if(!IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, PLATFORMCREATE)) in NvIndexIsAccessible()
803 if(IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, WRITELOCKED) in NvIndexIsAccessible()
814 if(IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, READLOCKED) in NvIndexIsAccessible()
863 s_cachedNvIndex.publicArea.nvIndex = TPM_RH_UNASSIGNED; in NvIndexCacheInit()
888 nvAttributes = nvIndex->publicArea.attributes; in NvGetIndexData()
895 NV_RAM_REF ramAddr = NvRamGetIndex(nvIndex->publicArea.nvIndex); in NvGetIndexData()
903 pAssert(offset <= nvIndex->publicArea.dataSize in NvGetIndexData()
904 && size <= (nvIndex->publicArea.dataSize - offset)); in NvGetIndexData()
924 if (offset > nvIndex->publicArea.dataSize) in NvHashIndexData()
927 if ((offset + size) > nvIndex->publicArea.dataSize) in NvHashIndexData()
928 size = nvIndex->publicArea.dataSize - (UINT16)offset; in NvHashIndexData()
1037 if(s_cachedNvIndex.publicArea.nvIndex != nvHandle) in NvGetIndexInfo()
1039 s_cachedNvIndex.publicArea.nvIndex = TPM_RH_UNASSIGNED; in NvGetIndexInfo()
1045 if(IS_ATTRIBUTE(s_cachedNvIndex.publicArea.attributes, TPMA_NV, ORDERLY)) in NvGetIndexInfo()
1048 s_cachedNvIndex.publicArea.attributes = in NvGetIndexInfo()
1086 pAssert(nvIndex->publicArea.nvIndex == s_cachedNvIndex.publicArea.nvIndex); in NvWriteIndexData()
1089 pAssert(offset <= nvIndex->publicArea.dataSize in NvWriteIndexData()
1090 && size <= (nvIndex->publicArea.dataSize - offset)); in NvWriteIndexData()
1093 if(!IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, WRITTEN)) in NvWriteIndexData()
1096 SET_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, WRITTEN); in NvWriteIndexData()
1100 if(!IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, ORDERLY)) in NvWriteIndexData()
1103 nvIndex->publicArea.attributes); in NvWriteIndexData()
1108 if(IsNvOrdinaryIndex(nvIndex->publicArea.attributes) in NvWriteIndexData()
1109 && (nvIndex->publicArea.dataSize > size)) in NvWriteIndexData()
1111 nvIndex->publicArea.dataSize); in NvWriteIndexData()
1117 &nvIndex->publicArea.attributes, sizeof(TPMA_NV)); in NvWriteIndexData()
1120 if(IsNvCounterIndex(nvIndex->publicArea.attributes)) in NvWriteIndexData()
1126 else if(IsNvOrdinaryIndex(nvIndex->publicArea.attributes)) in NvWriteIndexData()
1128 0, nvIndex->publicArea.dataSize); in NvWriteIndexData()
1132 if(IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, ORDERLY)) in NvWriteIndexData()
1194 dataSize = TPMS_NV_PUBLIC_Marshal(&nvIndex->publicArea, &buffer, NULL); in NvGetIndexName()
1197 digestSize = CryptHashStart(&hashState, nvIndex->publicArea.nameAlg); in NvGetIndexName()
1204 UINT16_TO_BYTE_ARRAY(nvIndex->publicArea.nameAlg, name->b.buffer); in NvGetIndexName()
1234 TPMS_NV_PUBLIC *publicArea, // IN: A template for an area to create. in NvDefineIndex() argument
1247 if(!IS_ATTRIBUTE(publicArea->attributes, TPMA_NV, ORDERLY)) in NvDefineIndex()
1248 entrySize += publicArea->dataSize; in NvDefineIndex()
1253 if(!NvTestSpace(entrySize, TRUE, IsNvCounterIndex(publicArea->attributes))) in NvDefineIndex()
1258 if(IS_ATTRIBUTE(publicArea->attributes, TPMA_NV, ORDERLY) in NvDefineIndex()
1259 && !NvRamTestSpaceIndex(publicArea->dataSize)) in NvDefineIndex()
1262 nvIndex.publicArea = *publicArea; in NvDefineIndex()
1273 if(IS_ATTRIBUTE(publicArea->attributes, TPMA_NV, ORDERLY)) in NvDefineIndex()
1274 NvAddRAM(publicArea); in NvDefineIndex()
1332 if(IsNvCounterIndex(nvIndex->publicArea.attributes) in NvDeleteIndex()
1333 && IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, WRITTEN)) in NvDeleteIndex()
1339 if(IS_ATTRIBUTE(nvIndex->publicArea.attributes, TPMA_NV, ORDERLY)) in NvDeleteIndex()
1340 NvDeleteRAM(nvIndex->publicArea.nvIndex); in NvDeleteIndex()
1394 if(!IS_ATTRIBUTE(nvIndex.publicArea.attributes, TPMA_NV, in NvFlushHierarchy()