Lines Matching refs:header

31 	const struct __pldm_header *header;
46 /* The CRC at the end of the package header */
105 * pldm_parse_header - Validate and extract details about the PLDM header
113 * * Verify that the UUID at the start of the header matches the expected
117 * to contain at least the length of this header
127 const struct __pldm_header *header;
131 err = pldm_move_fw_offset(data, sizeof(*header));
135 header = (const struct __pldm_header *)data->fw->data;
136 data->header = header;
138 if (!uuid_equal(&header->id, &pldm_firmware_header_id)) {
139 dev_dbg(dev, "Invalid package header identifier. Expected UUID %pUB, but got %pUB\n",
140 &pldm_firmware_header_id, &header->id);
144 if (header->revision != PACKAGE_HEADER_FORMAT_REVISION) {
145 dev_dbg(dev, "Invalid package header revision. Expected revision %u but got %u\n",
146 PACKAGE_HEADER_FORMAT_REVISION, header->revision);
150 data->total_header_size = get_unaligned_le16(&header->size);
151 header_size = data->total_header_size - sizeof(*header);
158 get_unaligned_le16(&header->component_bitmap_len);
168 err = pldm_move_fw_offset(data, header->version_len);
173 * PLDM header data.
192 * @size: the length from the descriptor header
310 * of the firmware file or the total length specified in the header section.
430 * pldm_parse_components - Locate the CRC header checksum
435 * the package header checksum.
437 * Extract the package header CRC and save it for verification.
495 dev_dbg(dev, "Invalid firmware header size. Expected %u but got %zu\n",
506 * pldm_verify_header_crc - Verify that the CRC in the header matches
510 * compares it to the value stored in the header.
520 /* Calculate the 32-bit CRC of the header header contents up to but
528 dev_dbg(dev, "Invalid CRC in firmware header. Got 0x%08x but expected 0x%08x\n",