Lines Matching refs:imx_header

16 static imx_header_v3_t imx_header[2]; /* At most there are 3 IVT headers */  variable
359 static void dump_header_v2(imx_header_v3_t *imx_header, int index) in dump_header_v2() argument
366 imx_header[index].fhdr.header.tag); in dump_header_v2()
368 imx_header[index].fhdr.header.length); in dump_header_v2()
370 imx_header[index].fhdr.header.version); in dump_header_v2()
372 imx_header[index].fhdr.entry); in dump_header_v2()
374 imx_header[index].fhdr.reserved1); in dump_header_v2()
376 imx_header[index].fhdr.dcd_ptr); in dump_header_v2()
378 imx_header[index].fhdr.boot_data_ptr); in dump_header_v2()
380 imx_header[index].fhdr.self); in dump_header_v2()
382 imx_header[index].fhdr.csf); in dump_header_v2()
384 imx_header[index].fhdr.reserved2); in dump_header_v2()
387 imx_header[index].boot_data.start); in dump_header_v2()
389 imx_header[index].boot_data.size); in dump_header_v2()
391 imx_header[index].boot_data.plugin); in dump_header_v2()
450 imx_header[IMAGE_IVT_ID].fhdr.header.tag = IVT_HEADER_TAG; /* 0xD1 */ in build_image()
451 imx_header[IMAGE_IVT_ID].fhdr.header.length = in build_image()
453 imx_header[IMAGE_IVT_ID].fhdr.header.version = IVT_VERSION_V3; /* 0x41 */ in build_image()
454 imx_header[IMAGE_IVT_ID].fhdr.entry = ap_start_addr; in build_image()
455 imx_header[IMAGE_IVT_ID].fhdr.self = ap_start_addr - in build_image()
457 imx_header[IMAGE_IVT_ID].fhdr.dcd_ptr = 0; in build_image()
458 imx_header[IMAGE_IVT_ID].fhdr.boot_data_ptr = in build_image()
459 imx_header[IMAGE_IVT_ID].fhdr.self + in build_image()
461 imx_header[IMAGE_IVT_ID].boot_data.start = in build_image()
462 imx_header[IMAGE_IVT_ID].fhdr.self - ivt_offset; in build_image()
463 imx_header[IMAGE_IVT_ID].boot_data.size = in build_image()
468 file_off += imx_header[IMAGE_IVT_ID].boot_data.size; in build_image()
470 imx_header[IMAGE_IVT_ID].boot_data.plugin = 0; in build_image()
471 imx_header[IMAGE_IVT_ID].fhdr.csf = in build_image()
472 imx_header[IMAGE_IVT_ID].boot_data.start + in build_image()
473 imx_header[IMAGE_IVT_ID].boot_data.size; in build_image()
475 imx_header[IMAGE_IVT_ID].boot_data.size += CSF_SIZE; /* 8K region dummy CSF */ in build_image()
491 imx_header[IMAGE_IVT_ID].fhdr.reserved1 = in build_image()
535 if (write(ofd, &imx_header[IMAGE_IVT_ID], sizeof(imx_header_v3_t)) != in build_image()
567 dump_header_v2(imx_header, 0); in build_image()
568 dump_header_v2(imx_header, 1); in build_image()
581 imx_header[IMAGE_IVT_ID].fhdr.self, header_image_off, in build_image()