Lines Matching defs:ssfw_head
489 const struct sigma_firmware_header *ssfw_head;
510 if (fw->size < sizeof(*ssfw_head) || fw->size >= 0x4000000) {
515 ssfw_head = (void *)fw->data;
516 if (memcmp(ssfw_head->magic, SIGMA_MAGIC, ARRAY_SIZE(ssfw_head->magic))) {
521 crc = crc32(0, fw->data + sizeof(*ssfw_head),
522 fw->size - sizeof(*ssfw_head));
524 if (crc != le32_to_cpu(ssfw_head->crc)) {
526 le32_to_cpu(ssfw_head->crc), crc);
530 switch (ssfw_head->version) {
540 ssfw_head->version);