Searched refs:header_v1 (Results 1 – 2 of 2) sorted by relevance
132 struct socfpga_header_v1 header_v1 = { in sfp_build_header() local136 .header_u8 = cpu_to_le16(sizeof(header_v1)), in sfp_build_header()149 csum = sfp_hdr_checksum((uint8_t *)&header_v1, 1); in sfp_build_header()150 header_v1.checksum = cpu_to_le16(csum); in sfp_build_header()151 memcpy(buf, &header_v1, sizeof(header_v1)); in sfp_build_header()162 struct socfpga_header_v1 header_v1; in sfp_verify_header() local182 memcpy(&header_v1, buf, sizeof(header_v1)); in sfp_verify_header()183 hdr_csum = le16_to_cpu(header_v1.checksum); in sfp_verify_header()184 sfp_csum = sfp_hdr_checksum((uint8_t *)&header_v1, 1); in sfp_verify_header()185 img_len = le32_to_cpu(header_v1.length_u8); in sfp_verify_header()
116 const internal::MessageHeaderV1* header_v1() const { in COMPONENT_EXPORT()120 internal::MessageHeaderV1* header_v1() { in COMPONENT_EXPORT()143 uint64_t request_id() const { return header_v1()->request_id; } in COMPONENT_EXPORT()145 header_v1()->request_id = request_id; in COMPONENT_EXPORT()