tpm: two-phase chip management functions