Home
last modified time | relevance | path

Searched refs:c_sum (Results 1 – 1 of 1) sorted by relevance

/linux-5.19.10/arch/powerpc/kernel/
Dnvram_64.c742 unsigned int c_sum, c_sum2; in nvram_checksum() local
744 c_sum = p->signature + p->length + sp[0] + sp[1] + sp[2] + sp[3] + sp[4] + sp[5]; in nvram_checksum()
747 c_sum = ((c_sum & 0xffff) + (c_sum >> 16)) & 0xffff; in nvram_checksum()
749 c_sum2 = (c_sum >> 8) + (c_sum << 8); in nvram_checksum()
750 c_sum = ((c_sum + c_sum2) >> 8) & 0xff; in nvram_checksum()
751 return c_sum; in nvram_checksum()
989 unsigned char c_sum; in nvram_scan_partitions() local
1020 c_sum = nvram_checksum(&phead); in nvram_scan_partitions()
1021 if (c_sum != phead.checksum) { in nvram_scan_partitions()
1024 phead.checksum, c_sum); in nvram_scan_partitions()