/external/avb/test/ |
D | avb_slot_verify_unittest.cc | 66 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local 74 &slot_data)); in TEST_F() 75 EXPECT_NE(nullptr, slot_data); in TEST_F() 85 std::string(slot_data->cmdline)); in TEST_F() 88 slot_data, AVB_DIGEST_TYPE_SHA256, vbmeta_digest); in TEST_F() 91 avb_slot_verify_data_free(slot_data); in TEST_F() 107 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local 115 &slot_data)); in TEST_F() 116 EXPECT_NE(nullptr, slot_data); in TEST_F() 127 std::string(slot_data->cmdline)); in TEST_F() [all …]
|
D | avb_atx_slot_verify_unittest.cc | 117 AvbSlotVerifyData* slot_data = NULL; in RunSlotVerify() local 124 &slot_data, in RunSlotVerify() 127 EXPECT_NE(nullptr, slot_data); in RunSlotVerify() 128 avb_slot_verify_data_free(slot_data); in RunSlotVerify()
|
D | avb_atx_validate_unittest.cc | 1030 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local 1038 &slot_data)); in TEST_F() 1039 EXPECT_NE(nullptr, slot_data); in TEST_F() 1040 avb_slot_verify_data_free(slot_data); in TEST_F()
|
/external/avb/libavb/ |
D | avb_cmdline.c | 125 static int cmdline_append_option(AvbSlotVerifyData* slot_data, in cmdline_append_option() argument 135 if (slot_data->cmdline != NULL) { in cmdline_append_option() 136 offset = avb_strlen(slot_data->cmdline); in cmdline_append_option() 147 avb_memcpy(new_cmdline, slot_data->cmdline, offset - 1); in cmdline_append_option() 153 if (slot_data->cmdline != NULL) { in cmdline_append_option() 154 avb_free(slot_data->cmdline); in cmdline_append_option() 156 slot_data->cmdline = new_cmdline; in cmdline_append_option() 185 static int cmdline_append_version(AvbSlotVerifyData* slot_data, in cmdline_append_version() argument 201 return cmdline_append_option(slot_data, key, combined); in cmdline_append_version() 204 static int cmdline_append_uint64_base10(AvbSlotVerifyData* slot_data, in cmdline_append_uint64_base10() argument [all …]
|
D | avb_slot_verify.c | 284 AvbSlotVerifyData* slot_data) { in load_and_verify_hash_partition() argument 452 if (slot_data->num_loaded_partitions == MAX_NUMBER_OF_LOADED_PARTITIONS) { in load_and_verify_hash_partition() 458 &slot_data->loaded_partitions[slot_data->num_loaded_partitions++]; in load_and_verify_hash_partition() 477 AvbSlotVerifyData* slot_data) { in load_requested_partitions() argument 518 if (slot_data->num_loaded_partitions == MAX_NUMBER_OF_LOADED_PARTITIONS) { in load_requested_partitions() 524 &slot_data->loaded_partitions[slot_data->num_loaded_partitions++]; in load_requested_partitions() 560 AvbSlotVerifyData* slot_data, in load_and_verify_vbmeta() argument 584 avb_assert(slot_data != NULL); in load_and_verify_vbmeta() 701 slot_data, in load_and_verify_vbmeta() 849 avb_assert(slot_data->num_vbmeta_images == 0); in load_and_verify_vbmeta() [all …]
|
D | avb_cmdline.h | 65 AvbSlotVerifyData* slot_data,
|
/external/u-boot/lib/libavb/ |
D | avb_cmdline.c | 98 static int cmdline_append_option(AvbSlotVerifyData* slot_data, in cmdline_append_option() argument 108 if (slot_data->cmdline != NULL) { in cmdline_append_option() 109 offset = avb_strlen(slot_data->cmdline); in cmdline_append_option() 120 avb_memcpy(new_cmdline, slot_data->cmdline, offset - 1); in cmdline_append_option() 126 if (slot_data->cmdline != NULL) { in cmdline_append_option() 127 avb_free(slot_data->cmdline); in cmdline_append_option() 129 slot_data->cmdline = new_cmdline; in cmdline_append_option() 158 static int cmdline_append_version(AvbSlotVerifyData* slot_data, in cmdline_append_version() argument 174 return cmdline_append_option(slot_data, key, combined); in cmdline_append_version() 177 static int cmdline_append_uint64_base10(AvbSlotVerifyData* slot_data, in cmdline_append_uint64_base10() argument [all …]
|
D | avb_slot_verify.c | 164 AvbSlotVerifyData* slot_data) { in load_and_verify_hash_partition() argument 337 if (slot_data->num_loaded_partitions == MAX_NUMBER_OF_LOADED_PARTITIONS) { in load_and_verify_hash_partition() 343 &slot_data->loaded_partitions[slot_data->num_loaded_partitions++]; in load_and_verify_hash_partition() 362 AvbSlotVerifyData* slot_data) { in load_requested_partitions() argument 409 if (slot_data->num_loaded_partitions == MAX_NUMBER_OF_LOADED_PARTITIONS) { in load_requested_partitions() 415 &slot_data->loaded_partitions[slot_data->num_loaded_partitions++]; in load_requested_partitions() 451 AvbSlotVerifyData* slot_data, in load_and_verify_vbmeta() argument 475 avb_assert(slot_data != NULL); in load_and_verify_vbmeta() 588 slot_data, in load_and_verify_vbmeta() 736 avb_assert(slot_data->num_vbmeta_images == 0); in load_and_verify_vbmeta() [all …]
|
D | avb_cmdline.h | 46 AvbSlotVerifyData* slot_data,
|
/external/avb/examples/uefi/ |
D | main.c | 37 AvbSlotVerifyData* slot_data; in efi_main() local 73 &slot_data); in efi_main() 81 avb_printv("slot_suffix: ", slot_data->ab_suffix, "\n", NULL); in efi_main() 82 avb_printv("cmdline: ", slot_data->cmdline, "\n", NULL); in efi_main() 85 (const char*)((((AvbVBMetaImageHeader*)(slot_data->vbmeta_images[0] in efi_main() 96 slot_data->ab_suffix + 1, in efi_main() 99 slot_data->ab_suffix, in efi_main() 105 uefi_avb_boot_kernel(ImageHandle, slot_data, additional_cmdline); in efi_main() 110 avb_slot_verify_data_free(slot_data); in efi_main()
|
D | uefi_avb_boot.c | 117 AvbSlotVerifyData* slot_data, in uefi_avb_boot_kernel() argument 137 if (slot_data->num_loaded_partitions != 1) { in uefi_avb_boot_kernel() 143 boot = &slot_data->loaded_partitions[0]; in uefi_avb_boot_kernel() 211 cmdline_second_len = avb_strlen(slot_data->cmdline); in uefi_avb_boot_kernel() 233 avb_memcpy(cmdline_utf8 + offset, slot_data->cmdline, cmdline_second_len); in uefi_avb_boot_kernel()
|
D | uefi_avb_boot.h | 59 AvbSlotVerifyData* slot_data,
|
/external/avb/libavb_ab/ |
D | avb_ab_flow.c | 211 AvbSlotVerifyData* slot_data[2] = {NULL, NULL}; in avb_ab_flow() local 239 &slot_data[n]); in avb_ab_flow() 324 if (slot_data[0] != NULL && slot_data[1] != NULL) { in avb_ab_flow() 325 uint64_t a_rollback_index = slot_data[0]->rollback_indexes[n]; in avb_ab_flow() 326 uint64_t b_rollback_index = slot_data[1]->rollback_indexes[n]; in avb_ab_flow() 330 } else if (slot_data[0] != NULL) { in avb_ab_flow() 331 rollback_index_value = slot_data[0]->rollback_indexes[n]; in avb_ab_flow() 332 } else if (slot_data[1] != NULL) { in avb_ab_flow() 333 rollback_index_value = slot_data[1]->rollback_indexes[n]; in avb_ab_flow() 362 avb_assert(slot_data[slot_index_to_boot] != NULL); in avb_ab_flow() [all …]
|
/external/strace/tests/ |
D | kcmp.c | 161 static const struct kcmp_epoll_slot slot_data[] = { in main() local 219 for (i = 0; i < ARRAY_SIZE(slot_data); i++) { in main() 220 memcpy(slot, slot_data + i, sizeof(*slot)); in main()
|
/external/strace/tests-m32/ |
D | kcmp.c | 161 static const struct kcmp_epoll_slot slot_data[] = { in main() local 219 for (i = 0; i < ARRAY_SIZE(slot_data); i++) { in main() 220 memcpy(slot, slot_data + i, sizeof(*slot)); in main()
|
/external/strace/tests-mx32/ |
D | kcmp.c | 161 static const struct kcmp_epoll_slot slot_data[] = { in main() local 219 for (i = 0; i < ARRAY_SIZE(slot_data); i++) { in main() 220 memcpy(slot, slot_data + i, sizeof(*slot)); in main()
|
/external/autotest/client/site_tests/firmware_TouchMTB/ |
D | mtb.py | 159 for slot_data in sm.get_snapshot(): 160 syn_time, slot, tid, point, pressure = slot_data 484 slot_data = [self.syn_time, slot, tid, 486 slots_data.append(slot_data)
|
/external/avb/ |
D | avbtool | 2139 def set_ab_metadata(self, misc_image, slot_data): argument 2152 tokens = slot_data.split(':') 2154 raise AvbError('Malformed slot data "{}".'.format(slot_data)) 4361 self.avb.set_ab_metadata(args.misc_image, args.slot_data)
|
D | README.md | 790 // The |slot_data| parameter should be the AvbSlotVerifyData returned 794 AvbSlotVerifyData* slot_data) { 796 uint64_t rollback_index = slot_data->rollback_indexes[n];
|