Lines Matching refs:checksum
561 u16 checksum; in af9005_boot_packet() local
573 checksum = buf[4] + buf[5]; in af9005_boot_packet()
574 buf[6] = (u8) ((checksum >> 8) & 0xff); in af9005_boot_packet()
575 buf[7] = (u8) (checksum & 0xff); in af9005_boot_packet()
582 checksum = buf[4] + buf[5]; in af9005_boot_packet()
583 buf[6] = (u8) ((checksum >> 8) & 0xff); in af9005_boot_packet()
584 buf[7] = (u8) (checksum & 0xff); in af9005_boot_packet()
595 checksum = 0; in af9005_boot_packet()
597 checksum += buf[i]; in af9005_boot_packet()
598 buf[10] = (u8) ((checksum >> 8) & 0xff); in af9005_boot_packet()
599 buf[11] = (u8) (checksum & 0xff); in af9005_boot_packet()
627 checksum = 0; in af9005_boot_packet()
647 checksum += buf[i]; in af9005_boot_packet()
648 if (buf[7] * 256 + buf[8] != checksum) { in af9005_boot_packet()
672 checksum += buf[i]; in af9005_boot_packet()
673 if (buf[7] * 256 + buf[8] != checksum) { in af9005_boot_packet()
701 checksum += buf[i]; in af9005_boot_packet()
702 if (buf[7] * 256 + buf[8] != checksum) { in af9005_boot_packet()