Lines Matching refs:checksum
69 uint32_t checksum = 0; in zynqmpimage_checksum() local
74 checksum += le32_to_cpu(ptr->width_detection); in zynqmpimage_checksum()
75 checksum += le32_to_cpu(ptr->image_identifier); in zynqmpimage_checksum()
76 checksum += le32_to_cpu(ptr->encryption); in zynqmpimage_checksum()
77 checksum += le32_to_cpu(ptr->image_load); in zynqmpimage_checksum()
78 checksum += le32_to_cpu(ptr->image_offset); in zynqmpimage_checksum()
79 checksum += le32_to_cpu(ptr->pfw_image_length); in zynqmpimage_checksum()
80 checksum += le32_to_cpu(ptr->total_pfw_image_length); in zynqmpimage_checksum()
81 checksum += le32_to_cpu(ptr->image_size); in zynqmpimage_checksum()
82 checksum += le32_to_cpu(ptr->image_stored_size); in zynqmpimage_checksum()
83 checksum += le32_to_cpu(ptr->image_attributes); in zynqmpimage_checksum()
84 checksum = ~checksum; in zynqmpimage_checksum()
86 return cpu_to_le32(checksum); in zynqmpimage_checksum()
132 if (zynqmpimage_checksum(zynqhdr) != zynqhdr->checksum) in zynqmpimage_verify_header()
209 printf(" Checksum : 0x%08x\n", le32_to_cpu(ph->checksum)); in print_partition()
230 printf("Checksum : 0x%08x\n", le32_to_cpu(zynqhdr->checksum)); in zynqmpimage_print_header()
427 zynqhdr->checksum = zynqmpimage_checksum(zynqhdr); in zynqmpimage_set_header()