Home
last modified time | relevance | path

Searched refs:slot_data (Results 1 – 19 of 19) sorted by relevance

/external/avb/test/
Davb_slot_verify_unittest.cc66 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 …]
Davb_atx_slot_verify_unittest.cc117 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()
Davb_atx_validate_unittest.cc1030 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/
Davb_cmdline.c125 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 …]
Davb_slot_verify.c284 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 …]
Davb_cmdline.h65 AvbSlotVerifyData* slot_data,
/external/u-boot/lib/libavb/
Davb_cmdline.c98 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 …]
Davb_slot_verify.c164 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 …]
Davb_cmdline.h46 AvbSlotVerifyData* slot_data,
/external/avb/examples/uefi/
Dmain.c37 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()
Duefi_avb_boot.c117 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()
Duefi_avb_boot.h59 AvbSlotVerifyData* slot_data,
/external/avb/libavb_ab/
Davb_ab_flow.c211 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/
Dkcmp.c161 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/
Dkcmp.c161 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/
Dkcmp.c161 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/
Dmtb.py159 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/
Davbtool2139 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)
DREADME.md790 // The |slot_data| parameter should be the AvbSlotVerifyData returned
794 AvbSlotVerifyData* slot_data) {
796 uint64_t rollback_index = slot_data->rollback_indexes[n];