Lines Matching refs:preamble
122 uint64_t KernelCmdLineOffset(VbKernelPreambleHeader *preamble) in KernelCmdLineOffset() argument
124 return preamble->bootloader_address - preamble->body_load_address - in KernelCmdLineOffset()
304 VbKernelPreambleHeader *preamble; in UnpackKPart() local
331 preamble = (VbKernelPreambleHeader *)(kpart_data + now); in UnpackKPart()
332 Debug("Preamble is 0x%" PRIx64 " bytes\n", preamble->preamble_size); in UnpackKPart()
333 now += preamble->preamble_size; in UnpackKPart()
345 Debug(" kernel_version = %d\n", preamble->kernel_version); in UnpackKPart()
347 preamble->bootloader_address); in UnpackKPart()
348 Debug(" bootloader_size = 0x%" PRIx64 "\n", preamble->bootloader_size); in UnpackKPart()
350 preamble->body_signature.data_size); in UnpackKPart()
352 if (VbKernelHasFlags(preamble) == VBOOT_SUCCESS) in UnpackKPart()
353 flags = preamble->flags; in UnpackKPart()
356 g_preamble = preamble; in UnpackKPart()
359 if (VbGetKernelVmlinuzHeader(preamble, in UnpackKPart()
376 g_kernel_blob_size = preamble->body_signature.data_size; in UnpackKPart()
379 if (g_kernel_blob_size < preamble->body_signature.data_size) in UnpackKPart()
390 *preamble_ptr = preamble; in UnpackKPart()
404 VbKernelPreambleHeader *preamble; in SignKernelBlob() local
418 preamble = CreateKernelPreamble(version, in SignKernelBlob()
428 if (!preamble) { in SignKernelBlob()
433 outsize = keyblock->key_block_size + preamble->preamble_size; in SignKernelBlob()
438 preamble, preamble->preamble_size); in SignKernelBlob()