Home
last modified time | relevance | path

Searched refs:desc_end (Results 1 – 11 of 11) sorted by relevance

/external/avb/libavb/
Davb_descriptor.c49 const uint8_t* desc_end; in avb_descriptor_foreach() local
82 desc_end = desc_start + avb_be64toh(header->descriptors_size); in avb_descriptor_foreach()
85 desc_end < image_data || desc_end > image_end || desc_end < desc_start) { in avb_descriptor_foreach()
90 for (p = desc_start; p < desc_end;) { in avb_descriptor_foreach()
91 if (p + sizeof(AvbDescriptor) > desc_end) { in avb_descriptor_foreach()
109 if (nb_total + p < desc_start || nb_total + p > desc_end) { in avb_descriptor_foreach()
/external/u-boot/lib/libavb/
Davb_descriptor.c30 const uint8_t* desc_end; in avb_descriptor_foreach() local
63 desc_end = desc_start + avb_be64toh(header->descriptors_size); in avb_descriptor_foreach()
66 desc_end < image_data || desc_end > image_end || desc_end < desc_start) { in avb_descriptor_foreach()
71 for (p = desc_start; p < desc_end;) { in avb_descriptor_foreach()
86 if (nb_total + p < desc_start || nb_total + p > desc_end) { in avb_descriptor_foreach()
/external/vboot_reference/tests/
Dvb21_common_tests.c60 uint32_t desc_end, m; in test_common_header_functions() local
66 desc_end = c->fixed_size + c->desc_size; in test_common_header_functions()
68 c2 = (struct vb2_struct_common *)(cbuf + desc_end); in test_common_header_functions()
69 c2->total_size = c->total_size - desc_end; in test_common_header_functions()
124 cbuf[desc_end - 1] = 1; in test_common_header_functions()
136 m = desc_end; in test_common_header_functions()
137 TEST_SUCC(vb2_verify_common_member(cbuf, &m, desc_end, 4), in test_common_header_functions()
139 TEST_EQ(m, desc_end + 4, " new minimum"); in test_common_header_functions()
157 TEST_EQ(vb2_verify_common_member(cbuf, &m, desc_end - 4, 4), in test_common_header_functions()
161 m = desc_end + 4; in test_common_header_functions()
[all …]
/external/u-boot/drivers/crypto/fsl/
Ddesc_constr.h78 static inline u32 *desc_end(u32 *desc) in desc_end() function
109 dma_addr_t *offset = (dma_addr_t *)desc_end(desc); in append_ptr()
126 u32 *offset = desc_end(desc); in append_data()
136 u32 *cmd = desc_end(desc); in append_cmd()
147 u32 *offset = desc_end(desc); in append_u64()
190 u32 *cmd = desc_end(desc); \
/external/u-boot/drivers/net/
Ddesignware.c364 ulong desc_end = desc_start + in _dw_eth_send() local
376 invalidate_dcache_range(desc_start, desc_end); in _dw_eth_send()
411 flush_dcache_range(desc_start, desc_end); in _dw_eth_send()
431 ulong desc_end = desc_start + in _dw_eth_recv() local
437 invalidate_dcache_range(desc_start, desc_end); in _dw_eth_recv()
461 ulong desc_end = desc_start + in _dw_free_pkt() local
471 flush_dcache_range(desc_start, desc_end); in _dw_free_pkt()
Dsun8i_emac.c559 uintptr_t desc_end = desc_start + in _sun8i_eth_recv() local
566 invalidate_dcache_range(desc_start, desc_end); in _sun8i_eth_recv()
605 uintptr_t desc_end = desc_start + in _sun8i_emac_eth_send() local
613 invalidate_dcache_range(desc_start, desc_end); in _sun8i_emac_eth_send()
633 flush_dcache_range(desc_start, desc_end); in _sun8i_emac_eth_send()
779 uintptr_t desc_end = desc_start + in _sun8i_free_pkt() local
786 flush_dcache_range(desc_start, desc_end); in _sun8i_free_pkt()
/external/avb/test/
Davbtool_unittest.cc596 const uint8_t* desc_end = reinterpret_cast<const uint8_t*>(descriptors[0]) + in AddHashFooterTest() local
600 std::string(reinterpret_cast<const char*>(desc_end + o), in AddHashFooterTest()
603 EXPECT_EQ("d00df00d", mem_to_hexstring(desc_end + o, d.salt_len)); in AddHashFooterTest()
606 mem_to_hexstring(desc_end + o, d.digest_len)); in AddHashFooterTest()
1120 const uint8_t* desc_end = reinterpret_cast<const uint8_t*>(descriptors[0]) + in AddHashtreeFooterTest() local
1124 std::string(reinterpret_cast<const char*>(desc_end + o), in AddHashtreeFooterTest()
1127 EXPECT_EQ("d00df00d", mem_to_hexstring(desc_end + o, d.salt_len)); in AddHashtreeFooterTest()
1130 mem_to_hexstring(desc_end + o, d.root_digest_len)); in AddHashtreeFooterTest()
1403 const uint8_t* desc_end = reinterpret_cast<const uint8_t*>(descriptors[0]) + in AddHashtreeFooterFECTest() local
1407 std::string(reinterpret_cast<const char*>(desc_end + o), in AddHashtreeFooterFECTest()
[all …]
Davb_slot_verify_unittest.cc945 const uint8_t* desc_end = reinterpret_cast<const uint8_t*>(descriptors[0]) + in TEST_F() local
949 std::string(reinterpret_cast<const char*>(desc_end + o), in TEST_F()
952 EXPECT_EQ("deadbeef", mem_to_hexstring(desc_end + o, hash_desc.salt_len)); in TEST_F()
955 mem_to_hexstring(desc_end + o, hash_desc.digest_len)); in TEST_F()
960 desc_end = reinterpret_cast<const uint8_t*>(descriptors[1]) + in TEST_F()
963 std::string(reinterpret_cast<const char*>(desc_end), in TEST_F()
1137 const uint8_t* desc_end = reinterpret_cast<const uint8_t*>(descriptors[0]) + in TEST_F() local
1141 std::string(reinterpret_cast<const char*>(desc_end + o), in TEST_F()
1144 EXPECT_EQ("deadbeef", mem_to_hexstring(desc_end + o, hash_desc.salt_len)); in TEST_F()
1147 mem_to_hexstring(desc_end + o, hash_desc.digest_len)); in TEST_F()
[all …]
/external/u-boot/lib/efi_loader/
Defi_memory.c396 uint64_t desc_end = desc->physical_start + desc_len; in efi_find_free_memory() local
397 uint64_t curmax = min(max_addr, desc_end); in efi_find_free_memory()
409 if ((ret + len) > desc_end) in efi_find_free_memory()
/external/bcc/src/cc/
Dbcc_elf.c98 const char *desc, *desc_end; in do_note_segment() local
111 desc_end = desc + hdr.n_descsz; in do_note_segment()
113 if (parse_stapsdt_note(&probe, desc, elf_class) == desc_end) { in do_note_segment()
/external/libunwind/src/ia64/
DGparser.c961 uint8_t *dp, *desc_end; in create_state_record_for() local
993 desc_end = dp + c->pi.unwind_info_size; in create_state_record_for()
994 while (!sr->done && dp < desc_end) in create_state_record_for()