Searched refs:ima_tpm_chip (Results 1 – 8 of 8) sorted by relevance
97 for (i = 0; i < NR_BANKS(ima_tpm_chip) + ima_extra_slots; i++) in ima_alloc_tfm() 123 for (i = 0; i < NR_BANKS(ima_tpm_chip); i++) { in ima_init_crypto() 124 algo = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_crypto() 133 ima_sha1_idx = NR_BANKS(ima_tpm_chip) + ima_extra_slots++; in ima_init_crypto() 139 ima_hash_algo_idx = NR_BANKS(ima_tpm_chip) + ima_extra_slots++; in ima_init_crypto() 141 ima_algo_array = kcalloc(NR_BANKS(ima_tpm_chip) + ima_extra_slots, in ima_init_crypto() 148 for (i = 0; i < NR_BANKS(ima_tpm_chip); i++) { in ima_init_crypto() 149 algo = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_crypto() 173 if (ima_sha1_idx >= NR_BANKS(ima_tpm_chip)) { in ima_init_crypto() 188 if (ima_hash_algo_idx >= NR_BANKS(ima_tpm_chip) in ima_init_crypto() [all...]
149 if (!ima_tpm_chip) in ima_pcr_extend() 152 result = tpm_pcr_extend(ima_tpm_chip, pcr, digests_arg); in ima_pcr_extend() 269 if (!ima_tpm_chip) in ima_init_digests() 272 digests = kcalloc(ima_tpm_chip->nr_allocated_banks, sizeof(*digests), in ima_init_digests() 277 for (i = 0; i < ima_tpm_chip->nr_allocated_banks; i++) { in ima_init_digests() 278 digests[i].alg_id = ima_tpm_chip->allocated_banks[i].alg_id; in ima_init_digests() 279 digest_size = ima_tpm_chip->allocated_banks[i].digest_size; in ima_init_digests() 280 crypto_id = ima_tpm_chip->allocated_banks[i].crypto_id; in ima_init_digests()
25 struct tpm_chip *ima_tpm_chip; variable 74 if (ima_tpm_chip) { in ima_add_boot_aggregate() 122 ima_tpm_chip = tpm_default_chip(); in ima_init() 123 if (!ima_tpm_chip) in ima_init()
397 int count = NR_BANKS(ima_tpm_chip); in create_securityfs_measurement_lists() 399 if (ima_sha1_idx >= NR_BANKS(ima_tpm_chip)) in create_securityfs_measurement_lists()
55 digests = kcalloc(NR_BANKS(ima_tpm_chip) + ima_extra_slots, in ima_alloc_init_template()
370 digests = kcalloc(NR_BANKS(ima_tpm_chip) + ima_extra_slots, in ima_restore_template_data()
66 extern struct tpm_chip *ima_tpm_chip;
367 if (ima_tpm_chip) { in ima_eventdigest_init()