Lines Matching full:checksum
33 * 0x 48 - Checksum
82 uint32_t checksum; /* 0x48 */ member
92 uint32_t checksum = 0; in zynqimage_checksum() local
97 checksum += le32_to_cpu(ptr->width_detection); in zynqimage_checksum()
98 checksum += le32_to_cpu(ptr->image_identifier); in zynqimage_checksum()
99 checksum += le32_to_cpu(ptr->encryption); in zynqimage_checksum()
100 checksum += le32_to_cpu(ptr->user_field); in zynqimage_checksum()
101 checksum += le32_to_cpu(ptr->image_offset); in zynqimage_checksum()
102 checksum += le32_to_cpu(ptr->image_size); in zynqimage_checksum()
103 checksum += le32_to_cpu(ptr->__reserved1); in zynqimage_checksum()
104 checksum += le32_to_cpu(ptr->image_load); in zynqimage_checksum()
105 checksum += le32_to_cpu(ptr->image_stored_size); in zynqimage_checksum()
106 checksum += le32_to_cpu(ptr->__reserved2); in zynqimage_checksum()
107 checksum = ~checksum; in zynqimage_checksum()
109 return cpu_to_le32(checksum); in zynqimage_checksum()
160 if (zynqimage_checksum(zynqhdr) != zynqhdr->checksum) in zynqimage_verify_header()
178 printf("Checksum : 0x%08x\n", le32_to_cpu(zynqhdr->checksum)); in zynqimage_print_header()
287 zynqhdr->checksum = zynqimage_checksum(zynqhdr); in zynqimage_set_header()