Home
last modified time | relevance | path

Searched refs:preamble_size (Results 1 – 22 of 22) sorted by relevance

/external/perfetto/src/tracing/core/
Dtrace_packet_unittest.cc112 size_t preamble_size; in TEST() local
116 std::tie(preamble, preamble_size) = tp.GetProtoPreamble(); in TEST()
117 ASSERT_EQ(2u, preamble_size); in TEST()
130 std::tie(preamble, preamble_size) = tp.GetProtoPreamble(); in TEST()
131 ASSERT_EQ(3u, preamble_size); in TEST()
135 memcpy(buf, preamble, preamble_size); in TEST()
137 memcpy(&buf[preamble_size], tp.slices()[0].start, tp.slices()[0].size); in TEST()
140 trace.ParseFromArray(buf, static_cast<int>(preamble_size + tp.size()))); in TEST()
Dtrace_packet.cc60 size_t preamble_size = reinterpret_cast<uintptr_t>(ptr) - in GetProtoPreamble() local
62 PERFETTO_DCHECK(preamble_size <= sizeof(preamble_)); in GetProtoPreamble()
63 return std::make_tuple(&preamble_[0], preamble_size); in GetProtoPreamble()
/external/perfetto/src/perfetto_cmd/
Dpacket_writer.cc59 size_t preamble_size = reinterpret_cast<uintptr_t>(ptr) - in GetPreamble() local
61 PERFETTO_DCHECK(preamble_size < preamble->size()); in GetPreamble()
62 return preamble_size; in GetPreamble()
207 size_t preamble_size = GetPreamble<kCompressedPacketsId>(size, &preamble); in FinalizeCompressedPacket() local
211 out_packet.AddSlice(preamble.data(), preamble_size); in FinalizeCompressedPacket()
/external/vboot_reference/firmware/include/
Dvboot_struct.h107 uint64_t preamble_size; member
149 uint64_t preamble_size; member
198 uint64_t preamble_size; member
235 uint64_t preamble_size; member
/external/vboot_reference/firmware/lib/
Dvboot_common.c324 if (size < preamble->preamble_size) { in VerifyFirmwarePreamble()
330 if (VerifySignatureInside(preamble, preamble->preamble_size, sig)) { in VerifyFirmwarePreamble()
336 if (preamble->preamble_size < sig->data_size) { in VerifyFirmwarePreamble()
410 if (size < preamble->preamble_size) { in VerifyKernelPreamble()
416 if (VerifySignatureInside(preamble, preamble->preamble_size, sig)) { in VerifyKernelPreamble()
Dvboot_kernel.c337 preamble->preamble_size; in LoadKernel()
/external/vboot_reference/host/lib/
Dextract_vmlinuz.c32 now += preamble->preamble_size; in ExtractVmlinuz()
59 preamble->preamble_size; in ExtractVmlinuz()
Dhost_common.c46 h->preamble_size = block_size; in CreateFirmwarePreamble()
108 h->preamble_size = block_size; in CreateKernelPreamble()
/external/vboot_reference/firmware/lib20/
Dcommon.c227 if (size < preamble->preamble_size) { in vb2_verify_fw_preamble()
233 if (vb2_verify_signature_inside(preamble, preamble->preamble_size, in vb2_verify_fw_preamble()
240 if (preamble->preamble_size < sig->data_size) { in vb2_verify_fw_preamble()
Dmisc.c166 pre_size = pre->preamble_size; in vb2_load_fw_preamble()
/external/vboot_reference/futility/
Dcmd_vbutil_firmware.c160 (1 != fwrite(preamble, preamble->preamble_size, 1, f))); in Vblock()
251 now += preamble->preamble_size; in Verify()
256 preamble->preamble_size); in Verify()
Dvb1_helper.c332 Debug("Preamble is 0x%" PRIx64 " bytes\n", preamble->preamble_size); in UnpackKPart()
333 now += preamble->preamble_size; in UnpackKPart()
433 outsize = keyblock->key_block_size + preamble->preamble_size; in SignKernelBlob()
438 preamble, preamble->preamble_size); in SignKernelBlob()
565 g_preamble->preamble_size, rsa)) { in VerifyKernelBlob()
572 g_preamble->preamble_size); in VerifyKernelBlob()
Ddump_kernel_config_lib.c97 to_skip = preamble.preamble_size - sizeof(preamble); in FindKernelConfigFromStream()
102 now += preamble.preamble_size; in FindKernelConfigFromStream()
Dcmd_show.c346 preamble->preamble_size); in futil_cb_show_fw_preamble()
458 preamble->preamble_size); in futil_cb_show_kernel_preamble()
Dcmd_sign.c360 preamble, preamble->preamble_size); in futil_cb_sign_raw_firmware()
409 memcpy(vblock->buf + more, preamble, preamble->preamble_size); in write_new_preamble()
Dcmd_vbutil_kernel.c620 preamble->preamble_size; in do_vbutil_kernel()
/external/vboot_reference/tests/
Dvb20_misc_tests.c106 pre->preamble_size = sizeof(mock_vblock.p); in reset_common_data()
286 TEST_EQ(sd->workbuf_preamble_size, pre->preamble_size, "preamble size"); in verify_preamble_tests()
323 pre->preamble_size = sizeof(mock_vblock); in verify_preamble_tests()
Dvboot_kernel_tests.c169 kph.preamble_size = 4096 - kbh.key_block_size; in ResetMocks()
722 kph.preamble_size |= 0x07; in LoadKernelTest()
727 kph.preamble_size += 65536; in LoadKernelTest()
Dvboot_common2_tests.c135 hsize = (unsigned) hdr->preamble_size; in VerifyKernelPreambleTest()
Dvboot_common3_tests.c184 hsize = (unsigned) hdr->preamble_size; in VerifyFirmwarePreambleTest()
Dvb20_common3_tests.c200 hsize = (uint32_t) hdr->preamble_size; in test_verify_fw_preamble()
/external/vboot_reference/firmware/lib20/include/
Dvb2_struct.h144 uint32_t preamble_size; member