Searched refs:c_sum (Results 1 – 1 of 1) sorted by relevance
740 unsigned int c_sum, c_sum2; in nvram_checksum() local742 c_sum = p->signature + p->length + sp[0] + sp[1] + sp[2] + sp[3] + sp[4] + sp[5]; in nvram_checksum()745 c_sum = ((c_sum & 0xffff) + (c_sum >> 16)) & 0xffff; in nvram_checksum()747 c_sum2 = (c_sum >> 8) + (c_sum << 8); in nvram_checksum()748 c_sum = ((c_sum + c_sum2) >> 8) & 0xff; in nvram_checksum()749 return c_sum; in nvram_checksum()987 unsigned char c_sum; in nvram_scan_partitions() local1018 c_sum = nvram_checksum(&phead); in nvram_scan_partitions()1019 if (c_sum != phead.checksum) { in nvram_scan_partitions()1022 phead.checksum, c_sum); in nvram_scan_partitions()