Lines Matching refs:checksum
568 u16 checksum; in af9005_boot_packet() local
579 checksum = buf[4] + buf[5]; in af9005_boot_packet()
580 buf[6] = (u8) ((checksum >> 8) & 0xff); in af9005_boot_packet()
581 buf[7] = (u8) (checksum & 0xff); in af9005_boot_packet()
588 checksum = buf[4] + buf[5]; in af9005_boot_packet()
589 buf[6] = (u8) ((checksum >> 8) & 0xff); in af9005_boot_packet()
590 buf[7] = (u8) (checksum & 0xff); in af9005_boot_packet()
601 checksum = 0; in af9005_boot_packet()
603 checksum += buf[i]; in af9005_boot_packet()
604 buf[10] = (u8) ((checksum >> 8) & 0xff); in af9005_boot_packet()
605 buf[11] = (u8) (checksum & 0xff); in af9005_boot_packet()
633 checksum = 0; in af9005_boot_packet()
653 checksum += buf[i]; in af9005_boot_packet()
654 if (buf[7] * 256 + buf[8] != checksum) { in af9005_boot_packet()
678 checksum += buf[i]; in af9005_boot_packet()
679 if (buf[7] * 256 + buf[8] != checksum) { in af9005_boot_packet()
707 checksum += buf[i]; in af9005_boot_packet()
708 if (buf[7] * 256 + buf[8] != checksum) { in af9005_boot_packet()