Searched refs:mgr (Results 1 – 6 of 6) sorted by relevance
/xen-4.10.0-shim-comet/stubdom/vtpmmgr/ |
A D | disk_write.c | 225 if (mgr->root_seals_valid & (1 + mgr->active_root)) in disk_write_seal_list() 269 mgr->root_seals_valid |= 1 + mgr->active_root; in disk_write_seal_list() 282 disk_populate_used_group(&mgr->groups[i], mgr); in disk_populate_used_mgr() 378 disk_write_seal_list(mgr, mgr->groups[0].v); in disk_write_all() 391 struct mem_tpm_mgr *mgr = calloc(1, sizeof(*mgr)); in vtpm_new_disk() local 399 aes_setup(&mgr->tm_key_e, &mgr->tm_key); in vtpm_new_disk() 402 rc = TPM_disk_nvalloc(&mgr->nvram_slot, mgr->nvram_auth); in vtpm_new_disk() 406 rc = TPM_disk_alloc_counter(&mgr->counter_index, mgr->counter_auth, &mgr->counter_value); in vtpm_new_disk() 411 mgr->groups = calloc(1, sizeof(mgr->groups[0])); in vtpm_new_disk() 414 TPM_disk_nvwrite(&mgr->nv_key, 16, mgr->nvram_slot, mgr->nvram_auth); in vtpm_new_disk() [all …]
|
A D | vtpm_disk.c | 35 mgr->sequence++; in vtpm_sync_disk() 48 mgr->root_seals_valid = 0; in vtpm_sync_disk() 49 do_random(&mgr->tm_key, 16); in vtpm_sync_disk() 50 aes_setup(&mgr->tm_key_e, &mgr->tm_key); in vtpm_sync_disk() 58 mgr->root_seals_valid = 0; in vtpm_sync_disk() 63 mgr->root_seals_valid = 0; in vtpm_sync_disk() 69 disk_write_all(mgr); in vtpm_sync_disk() 76 rc = TPM_disk_incr_counter(mgr->counter_index, mgr->counter_auth); in vtpm_sync_disk() 86 rc = TPM_disk_nvwrite(&mgr->nv_key, 16, mgr->nvram_slot, mgr->nvram_auth); in vtpm_sync_disk() 92 rc = TPM_disk_change_counter(mgr->counter_index, prev, mgr->counter_auth); in vtpm_sync_disk() [all …]
|
A D | disk_io.h | 9 sector_t disk_find_free(const struct mem_tpm_mgr *mgr); 10 void disk_flush_slot(const struct mem_tpm_mgr *mgr); 11 void disk_set_used(sector_t loc, const struct mem_tpm_mgr *mgr); 13 void disk_write_all(struct mem_tpm_mgr *mgr); 15 static inline sector_t seal_loc(struct mem_tpm_mgr *mgr) in seal_loc() argument 17 return native_be32(mgr->active_root); in seal_loc() 20 static inline sector_t root_loc(struct mem_tpm_mgr *mgr) in root_loc() argument 22 return native_be32(2 + mgr->active_root); in root_loc()
|
A D | disk_io.c | 92 static int active_slot(const struct mem_tpm_mgr *mgr) in active_slot() argument 94 return 1 + mgr->active_root; in active_slot() 97 void disk_set_used(sector_t loc, const struct mem_tpm_mgr *mgr) in disk_set_used() argument 104 sector_inuse_map[s] |= active_slot(mgr); in disk_set_used() 107 void disk_flush_slot(const struct mem_tpm_mgr *mgr) in disk_flush_slot() argument 111 sector_inuse_map[i] &= ~active_slot(mgr); in disk_flush_slot() 114 sector_t disk_find_free(const struct mem_tpm_mgr *mgr) in disk_find_free() argument 120 sector_inuse_map[i] = active_slot(mgr); in disk_find_free()
|
A D | disk_read.c | 51 static void mgr_free(struct mem_tpm_mgr *mgr) in mgr_free() argument 54 if (!mgr) in mgr_free() 56 if (mgr->groups) { in mgr_free() 57 for(i=0; i < mgr->nr_groups; i++) in mgr_free() 58 group_free(mgr->groups[i].v); in mgr_free() 59 free(mgr->groups); in mgr_free() 61 free(mgr); in mgr_free() 211 disk_set_used(dst->disk_loc, mgr); in load_verify_vtpm_page() 299 disk_set_used(loc[i], mgr); in load_verify_vtpm_itree() 335 disk_set_used(dst->disk_loc, mgr); in load_verify_group() [all …]
|
A D | vtpm_disk.h | 225 int vtpm_sync_disk(struct mem_tpm_mgr *mgr, int depth);
|
Completed in 11 milliseconds