Lines Matching defs:ssfw_head
477 const struct sigma_firmware_header *ssfw_head;
498 if (fw->size < sizeof(*ssfw_head) || fw->size >= 0x4000000) {
503 ssfw_head = (void *)fw->data;
504 if (memcmp(ssfw_head->magic, SIGMA_MAGIC, ARRAY_SIZE(ssfw_head->magic))) {
509 crc = crc32(0, fw->data + sizeof(*ssfw_head),
510 fw->size - sizeof(*ssfw_head));
512 if (crc != le32_to_cpu(ssfw_head->crc)) {
514 le32_to_cpu(ssfw_head->crc), crc);
518 switch (ssfw_head->version) {
528 ssfw_head->version);