Lines Matching refs:chip
34 static struct tpm_chip *chip; variable
134 if (!chip) in TSS_authhmac()
198 if (!chip) in TSS_checkhmac1()
368 if (!chip) in trusted_tpm_send()
372 rc = tpm_send(chip, cmd, buflen); in trusted_tpm_send()
392 return tpm_pcr_extend(chip, pcrnum, digests) ? -EINVAL : 0; in pcrlock()
405 ret = tpm_get_random(chip, ononce, TPM_NONCE_SIZE); in osap()
437 if (!chip) in oiap()
504 ret = tpm_get_random(chip, td->nonceodd, TPM_NONCE_SIZE); in tpm_seal()
614 ret = tpm_get_random(chip, nonceodd, TPM_NONCE_SIZE); in tpm_unseal()
759 tpm2 = tpm_is_tpm2(chip); in getoptions()
928 tpm2 = tpm_is_tpm2(chip); in trusted_options_alloc()
978 tpm2 = tpm_is_tpm2(chip); in trusted_instantiate()
1019 ret = tpm_unseal_trusted(chip, payload, options); in trusted_instantiate()
1029 ret = tpm_get_random(chip, payload->key, key_len); in trusted_instantiate()
1035 ret = tpm_seal_trusted(chip, payload, options); in trusted_instantiate()
1233 digests = kcalloc(chip->nr_allocated_banks, sizeof(*digests), in init_digests()
1238 for (i = 0; i < chip->nr_allocated_banks; i++) in init_digests()
1239 digests[i].alg_id = chip->allocated_banks[i].alg_id; in init_digests()
1251 chip = tpm_default_chip(); in init_trusted()
1252 if (!chip) in init_trusted()
1270 put_device(&chip->dev); in init_trusted()
1276 if (chip) { in cleanup_trusted()
1277 put_device(&chip->dev); in cleanup_trusted()