Lines Matching defs:image

99 static void	emlxs_dump_image_header(emlxs_hba_t *hba, PIMAGE_HDR image);
139 static void emlxs_verify_image(emlxs_hba_t *hba, emlxs_fw_image_t *image);
177 /* We need to swap the image buffer before we start */
184 /* Perform a 32 bit swap of the image */
202 /* Validate image */
207 /* Verify image */
210 /* Get image type */
219 /* Check for absolute image */
428 /* Copy remaining image into payload */
437 /* load address, image size and block crc */
449 "%s: Unable to download image. status=%x",
501 "%s: Verifying image...", file->label);
533 "%s: Unable to read image. status=%x",
654 /* Verify image size */
764 fw->size = *wptr++; /* image size */
867 /* Check if this is a standard UFI image */
871 "Invalid image provided.");
909 "Invalid image size (%d != %d)",
1046 "Unknown image type found. type=%x",
1096 /* Make sure image will fit in block specified */
1099 "%s: Image too large for block. image=%x block=%x",
1156 "%s: type=%x block=%x image=%x offset=%x crc=%x load=%x",
1195 /* Validate image */
1330 /* We need to swap the image buffer before we start */
1337 /* Perform a 32 bit swap of the image */
1354 "Invalid image length: 0x%x > 128", len);
1368 /* Check the image vendor id */
1372 "Invalid image id: 0x%x", id);
1551 emlxs_dump_image_header(emlxs_hba_t *hba, PIMAGE_HDR image)
1557 "Img Header: BlockSize = 0x%x", image->BlockSize);
1559 "Img Header: PROG_ID Type = 0x%x", image->Id.Type);
1561 "Img Header: PROG_ID Id = 0x%x", image->Id.Id);
1563 "Img Header: PROG_ID Ver = 0x%x", image->Id.Ver);
1565 "Img Header: PROG_ID Rev = 0x%x", image->Id.Rev);
1567 "Img Header: PROG_ID revcomp = 0x%x", image->Id.un.revcomp);
1569 "Img Header: Flags = 0x%x", image->Flags);
1571 "Img Header: EntryAdr = 0x%x", image->EntryAdr);
1573 "Img Header: InitAdr = 0x%x", image->InitAdr);
1575 "Img Header: ExitAdr = 0x%x", image->ExitAdr);
1577 "Img Header: ImageBase = 0x%x", image->ImageBase);
1579 "Img Header: ImageSize = 0x%x", image->ImageSize);
1581 "Img Header: ZinitSize = 0x%x", image->ZinitSize);
1583 "Img Header: RelocSize = 0x%x", image->RelocSize);
1585 "Img Header: HdrCks = 0x%x", image->HdrCks);
3629 emlxs_fw_image_t *image)
3652 /* Get image type */
3666 "Invalid image header length: 0x%x < 0x%x",
3692 image->awc.offset =
3695 image->awc.version = AifHdr.AVersion;
3696 image->awc.revcomp = 0;
3704 &image->awc, id, type, "AWC file"))) {
3711 image->bwc.offset =
3714 image->bwc.version = AifHdr.AVersion;
3715 image->bwc.revcomp = 0;
3723 &image->bwc, id, type, "BWC file"))) {
3730 image->dwc.offset =
3733 image->dwc.version = AifHdr.AVersion;
3734 image->dwc.revcomp = 0;
3742 &image->dwc, id, type, "DWC file"))) {
3766 image->prog[type].offset =
3772 image->prog[type].version =
3778 image->prog[type].revcomp =
3783 &image->prog[type], ImageHdr.Id.Id,
3817 "Invalid image header length: 0x%x < 0x%x", Size,
3854 image->dwc.offset = 0;
3855 image->dwc.version = AifHdr.AVersion;
3856 image->dwc.revcomp = 0;
3862 if ((rval = emlxs_validate_version(hba, &image->dwc, id, type,
3881 image->prog[type].offset = NextImage;
3884 image->prog[type].version =
3890 image->prog[type].revcomp = ImageHdr.Id.un.revcomp;
3894 &image->prog[type], ImageHdr.Id.Id, type,
3904 /* Precheck image size */
3907 "Invalid image header length: 0x%x < 0x%x", Size,
3926 /* Validate image length */
3929 "Invalid image length: 0x%x != 0x%x", Size,
3949 image->prog[type].offset = 0;
3952 image->prog[type].version =
3958 image->prog[type].revcomp = ImageHdr.Id.un.revcomp;
3961 if ((rval = emlxs_validate_version(hba, &image->prog[type],
3969 * image file is < version 3.8
3972 ver = (image->prog[SLI2_OVERLAY].version &
4866 /* Update the parms with the boot image id */
4878 /* Scan load list for a boot image */
4881 /* Update the parms with the boot image id */