Lines Matching refs:checksum
484 uint32_t checksum = 0;
495 main_info->checksum = cpu_to_le32(BROM_STAMP_VALUE);
556 /* Calculate the checksum. Yes, it's that simple. */
558 checksum += le32_to_cpu(buf32[i]);
559 main_info->checksum = cpu_to_le32(checksum);
608 uint32_t checksum = BROM_STAMP_VALUE;
623 /* Verify the checksum without modifying the buffer. */
625 checksum += le32_to_cpu(buf32[i]);
626 if (checksum != 2 * le32_to_cpu(main_info->checksum))