Lines Matching refs:object

52     OBJECT          *object  in ObjectFlush()  argument
55 object->attributes.occupied = CLEAR; in ObjectFlush()
62 OBJECT *object in ObjectSetInUse() argument
65 object->attributes.occupied = SET; in ObjectSetInUse()
104 OBJECT *object = &s_objects[i]; in ObjectCleanupEvict() local
105 if(object->attributes.evict == SET) in ObjectCleanupEvict()
106 ObjectFlush(object); in ObjectCleanupEvict()
144 OBJECT *object // IN: handle to be checked in ObjectIsSequence() argument
147 pAssert(object != NULL); in ObjectIsSequence()
148 return (object->attributes.hmacSeq == SET in ObjectIsSequence()
149 || object->attributes.hashSeq == SET in ObjectIsSequence()
150 || object->attributes.eventSeq == SET); in ObjectIsSequence()
192 OBJECT *object; in GetQualifiedName() local
201 object = HandleToObject(handle); in GetQualifiedName()
202 if(object == NULL || object->publicArea.nameAlg == TPM_ALG_NULL) in GetQualifiedName()
206 *qualifiedName = object->qualifiedName; in GetQualifiedName()
218 OBJECT *object // IN :object in ObjectGetHierarchy() argument
221 if(object->attributes.spsHierarchy) in ObjectGetHierarchy()
225 else if(object->attributes.epsHierarchy) in ObjectGetHierarchy()
229 else if(object->attributes.ppsHierarchy) in ObjectGetHierarchy()
250 OBJECT *object = HandleToObject(handle); in GetHierarchy() local
252 return ObjectGetHierarchy(object); in GetHierarchy()
268 OBJECT *object; in FindEmptyObjectSlot() local
272 object = &s_objects[i]; in FindEmptyObjectSlot()
273 if(object->attributes.occupied == CLEAR) in FindEmptyObjectSlot()
278 MemorySet(&object->attributes, 0, sizeof(OBJECT_ATTRIBUTES)); in FindEmptyObjectSlot()
279 return object; in FindEmptyObjectSlot()
292 OBJECT *object = FindEmptyObjectSlot(handle); in ObjectAllocateSlot() local
294 if(object != NULL) in ObjectAllocateSlot()
297 ObjectSetInUse(object); in ObjectAllocateSlot()
299 return object; in ObjectAllocateSlot()
308 OBJECT *object, // IN: object attributes to finalize in ObjectSetLoadedAttributes() argument
313 TPMA_OBJECT objectAttributes = object->publicArea.objectAttributes; in ObjectSetLoadedAttributes()
317 object->attributes.stClear = in ObjectSetLoadedAttributes()
322 object->attributes.primary = SET; in ObjectSetLoadedAttributes()
326 object->attributes.epsHierarchy = SET; in ObjectSetLoadedAttributes()
329 object->attributes.spsHierarchy = SET; in ObjectSetLoadedAttributes()
332 object->attributes.ppsHierarchy = SET; in ObjectSetLoadedAttributes()
336 object->attributes.temporary = SET; in ObjectSetLoadedAttributes()
337 object->attributes.primary = CLEAR; in ObjectSetLoadedAttributes()
344 object->attributes.stClear = in ObjectSetLoadedAttributes()
347 object->attributes.epsHierarchy = parent->attributes.epsHierarchy; in ObjectSetLoadedAttributes()
348 object->attributes.spsHierarchy = parent->attributes.spsHierarchy; in ObjectSetLoadedAttributes()
349 object->attributes.ppsHierarchy = parent->attributes.ppsHierarchy; in ObjectSetLoadedAttributes()
352 object->attributes.temporary = parent->attributes.temporary in ObjectSetLoadedAttributes()
353 || object->attributes.external; in ObjectSetLoadedAttributes()
357 if(object->attributes.external) in ObjectSetLoadedAttributes()
358 object->qualifiedName = object->name; in ObjectSetLoadedAttributes()
363 && !object->attributes.publicOnly in ObjectSetLoadedAttributes()
365 && object->publicArea.nameAlg != TPM_ALG_NULL) in ObjectSetLoadedAttributes()
369 if(object->publicArea.type == TPM_ALG_KEYEDHASH) in ObjectSetLoadedAttributes()
370 object->attributes.derivation = SET; in ObjectSetLoadedAttributes()
372 object->attributes.isParent = SET; in ObjectSetLoadedAttributes()
374 ComputeQualifiedName(parentHandle, object->publicArea.nameAlg, in ObjectSetLoadedAttributes()
375 &object->name, &object->qualifiedName); in ObjectSetLoadedAttributes()
378 ObjectSetInUse(object); in ObjectSetLoadedAttributes()
390 OBJECT *object, // IN: pointer to object slot in ObjectLoad() argument
454 if((result == TPM_RC_SUCCESS) && (object != NULL)) in ObjectLoad()
457 object->publicArea = *publicArea; in ObjectLoad()
460 object->attributes.publicOnly = SET; in ObjectLoad()
462 object->sensitive = *sensitive; in ObjectLoad()
465 object->name = *name; in ObjectLoad()
467 object->name.t.size = 0; in ObjectLoad()
483 HASH_OBJECT *object = (HASH_OBJECT *)ObjectAllocateSlot(newHandle); in AllocateSequenceSlot() local
490 if(object != NULL) in AllocateSequenceSlot()
495 MemorySet(&object->objectAttributes, 0, sizeof(TPMA_OBJECT)); in AllocateSequenceSlot()
498 object->type = TPM_ALG_NULL; in AllocateSequenceSlot()
501 object->nameAlg = TPM_ALG_NULL; in AllocateSequenceSlot()
505 object->attributes.temporary = SET; in AllocateSequenceSlot()
508 SET_ATTRIBUTE(object->objectAttributes, TPMA_OBJECT, noDA); in AllocateSequenceSlot()
512 object->auth = *auth; in AllocateSequenceSlot()
514 object->auth.t.size = 0; in AllocateSequenceSlot()
516 return object; in AllocateSequenceSlot()
646 ANY_OBJECT_BUFFER *object, // IN: pointer to object structure in saved in ObjectContextLoad() argument
657 MemoryCopy(newObject, object, offsetof(HASH_OBJECT, state)); in ObjectContextLoad()
663 (HASH_OBJECT_BUFFER *)object); in ObjectContextLoad()
668 MemoryCopy(newObject, object, sizeof(OBJECT)); in ObjectContextLoad()
748 OBJECT *object; in ObjectLoadEvict() local
762 object = ObjectAllocateSlot(handle); in ObjectLoadEvict()
763 if(object == NULL) in ObjectLoadEvict()
769 result = NvGetEvictObject(evictHandle, object); in ObjectLoadEvict()
779 if(ObjectGetHierarchy(object) == TPM_RH_ENDORSEMENT in ObjectLoadEvict()
889 OBJECT *object = HandleToObject(handle); in ObjectIsStorage() local
890 TPMT_PUBLIC *publicArea = ((object != NULL) ? &object->publicArea : NULL); in ObjectIsStorage()
896 && (object->publicArea.type == TPM_ALG_RSA in ObjectIsStorage()
897 || object->publicArea.type == TPM_ALG_ECC)); in ObjectIsStorage()