Lines Matching refs:factory
58 int Startup(TrunksFactory* factory) { in Startup() argument
59 factory->GetTpmUtility()->Shutdown(); in Startup()
60 return factory->GetTpmUtility()->Startup(); in Startup()
63 int Clear(TrunksFactory* factory) { in Clear() argument
64 return factory->GetTpmUtility()->Clear(); in Clear()
67 int InitializeTpm(TrunksFactory* factory) { in InitializeTpm() argument
68 return factory->GetTpmUtility()->InitializeTpm(); in InitializeTpm()
71 int AllocatePCR(TrunksFactory* factory) { in AllocatePCR() argument
73 result = factory->GetTpmUtility()->AllocatePCR(""); in AllocatePCR()
78 factory->GetTpmUtility()->Shutdown(); in AllocatePCR()
79 return factory->GetTpmUtility()->Startup(); in AllocatePCR()
82 int TakeOwnership(const std::string& owner_password, TrunksFactory* factory) { in TakeOwnership() argument
84 rc = factory->GetTpmUtility()->TakeOwnership(owner_password, in TakeOwnership()
94 int DumpStatus(TrunksFactory* factory) { in DumpStatus() argument
95 scoped_ptr<trunks::TpmState> state = factory->GetTpmState(); in DumpStatus()
145 scoped_ptr<TrunksFactory> factory = scoped_ptr<TrunksFactory>( in main() local
149 return DumpStatus(factory.get()); in main()
152 return Startup(factory.get()); in main()
155 return Clear(factory.get()); in main()
158 return InitializeTpm(factory.get()); in main()
161 return AllocatePCR(factory.get()); in main()
166 factory.get()); in main()