• Home
  • Raw
  • Download

Lines Matching refs:slot_data

284     AvbSlotVerifyData* slot_data) {  in load_and_verify_hash_partition()  argument
460 if (slot_data->num_loaded_partitions == MAX_NUMBER_OF_LOADED_PARTITIONS) { in load_and_verify_hash_partition()
466 &slot_data->loaded_partitions[slot_data->num_loaded_partitions++]; in load_and_verify_hash_partition()
485 AvbSlotVerifyData* slot_data) { in load_requested_partitions() argument
526 if (slot_data->num_loaded_partitions == MAX_NUMBER_OF_LOADED_PARTITIONS) { in load_requested_partitions()
532 &slot_data->loaded_partitions[slot_data->num_loaded_partitions++]; in load_requested_partitions()
569 AvbSlotVerifyData* slot_data, in load_and_verify_vbmeta() argument
593 avb_assert(slot_data != NULL); in load_and_verify_vbmeta()
723 slot_data, in load_and_verify_vbmeta()
894 avb_assert(slot_data->num_vbmeta_images == 0); in load_and_verify_vbmeta()
897 avb_assert(slot_data->num_vbmeta_images > 0); in load_and_verify_vbmeta()
900 if (slot_data->num_vbmeta_images == MAX_NUMBER_OF_VBMETA_IMAGES) { in load_and_verify_vbmeta()
905 vbmeta_image_data = &slot_data->vbmeta_images[slot_data->num_vbmeta_images++]; in load_and_verify_vbmeta()
933 ops, requested_partitions, ab_suffix, slot_data); in load_and_verify_vbmeta()
972 slot_data); in load_and_verify_vbmeta()
1030 slot_data, in load_and_verify_vbmeta()
1087 if (slot_data->cmdline == NULL) { in load_and_verify_vbmeta()
1088 slot_data->cmdline = in load_and_verify_vbmeta()
1090 if (slot_data->cmdline == NULL) { in load_and_verify_vbmeta()
1094 avb_memcpy(slot_data->cmdline, in load_and_verify_vbmeta()
1099 size_t orig_size = avb_strlen(slot_data->cmdline); in load_and_verify_vbmeta()
1107 avb_memcpy(new_cmdline, slot_data->cmdline, orig_size); in load_and_verify_vbmeta()
1112 avb_free(slot_data->cmdline); in load_and_verify_vbmeta()
1113 slot_data->cmdline = new_cmdline; in load_and_verify_vbmeta()
1219 slot_data->rollback_indexes[rollback_index_location_to_use] = in load_and_verify_vbmeta()
1372 AvbSlotVerifyData* slot_data = NULL; in avb_slot_verify() local
1431 slot_data = avb_calloc(sizeof(AvbSlotVerifyData)); in avb_slot_verify()
1432 if (slot_data == NULL) { in avb_slot_verify()
1436 slot_data->vbmeta_images = in avb_slot_verify()
1438 if (slot_data->vbmeta_images == NULL) { in avb_slot_verify()
1442 slot_data->loaded_partitions = in avb_slot_verify()
1444 if (slot_data->loaded_partitions == NULL) { in avb_slot_verify()
1477 slot_data, in avb_slot_verify()
1498 slot_data, in avb_slot_verify()
1512 if (avb_strcmp(slot_data->vbmeta_images[0].partition_name, "vbmeta") != 0) { in avb_slot_verify()
1514 avb_strcmp(slot_data->vbmeta_images[0].partition_name, "boot") == 0); in avb_slot_verify()
1521 (const AvbVBMetaImageHeader*)slot_data->vbmeta_images[0].vbmeta_data, in avb_slot_verify()
1525 slot_data->ab_suffix = avb_strdup(ab_suffix); in avb_slot_verify()
1526 if (slot_data->ab_suffix == NULL) { in avb_slot_verify()
1540 avb_assert(slot_data->cmdline == NULL); in avb_slot_verify()
1545 slot_data->cmdline = in avb_slot_verify()
1549 slot_data->cmdline = avb_strdup(""); in avb_slot_verify()
1551 if (slot_data->cmdline == NULL) { in avb_slot_verify()
1562 ops, flags, slot_data, &resolved_hashtree_error_mode); in avb_slot_verify()
1571 slot_data->resolved_hashtree_error_mode = resolved_hashtree_error_mode; in avb_slot_verify()
1577 slot_data, in avb_slot_verify()
1589 if (slot_data->cmdline != NULL && avb_strlen(slot_data->cmdline) != 0) { in avb_slot_verify()
1592 slot_data->cmdline, in avb_slot_verify()
1596 if (new_cmdline != slot_data->cmdline) { in avb_slot_verify()
1601 avb_free(slot_data->cmdline); in avb_slot_verify()
1602 slot_data->cmdline = new_cmdline; in avb_slot_verify()
1607 *out_data = slot_data; in avb_slot_verify()
1609 avb_slot_verify_data_free(slot_data); in avb_slot_verify()
1622 if (slot_data != NULL) { in avb_slot_verify()
1623 avb_slot_verify_data_free(slot_data); in avb_slot_verify()