Searched refs:header_v0 (Results 1 – 1 of 1) sorted by relevance
124 struct socfpga_header_v0 header_v0 = { in sfp_build_header() local145 csum = sfp_hdr_checksum((uint8_t *)&header_v0, 0); in sfp_build_header()146 header_v0.checksum = cpu_to_le16(csum); in sfp_build_header()147 memcpy(buf, &header_v0, sizeof(header_v0)); in sfp_build_header()161 struct socfpga_header_v0 header_v0; in sfp_verify_header() local172 memcpy(&header_v0, buf, sizeof(header_v0)); in sfp_verify_header()174 if (le32_to_cpu(header_v0.validation) != VALIDATION_WORD) in sfp_verify_header()177 if (header_v0.version == 0) { in sfp_verify_header()178 hdr_csum = le16_to_cpu(header_v0.checksum); in sfp_verify_header()179 sfp_csum = sfp_hdr_checksum((uint8_t *)&header_v0, 0); in sfp_verify_header()[all …]