Lines Matching refs:root
390 static int load_root_pre(struct disk_root_sector *root, struct mem_tpm_mgr *dst) in load_root_pre() argument
396 rc = disk_read_crypt_sector(root, sizeof(*root), root_loc(dst), dst); in load_root_pre()
404 dst->sequence = be64_native(root->v.sequence); in load_root_pre()
467 static int load_root_post(struct mem_tpm_mgr *dst, const struct disk_root_sector *root) in load_root_post() argument
470 uint32_t nr_disk_rbs = be32_native(root->nr_rb_macs); in load_root_post()
473 root->v.tpm_counter_value); in load_root_post()
476 dst->counter_value = root->v.tpm_counter_value; in load_root_post()
478 dst->nr_groups = be32_native(root->v.nr_groups); in load_root_post()
487 root->v.group_hash, root->group_loc, NR_ENTRIES_PER_ROOT); in load_root_post()
507 const struct disk_rb_mac_entry *ent = &root->rb_macs[j]; in load_root_post()
532 if (aes_cmac_verify(&ent->mac, &root->v, sizeof(root->v), &key_e)) { in load_root_post()