Lines Matching refs:chksum
1992 unsigned short get_checksum(char *buff, int bytes, unsigned short chksum)
1997 chksum = (chksum & 1) ? (chksum >> 1) | 0x8000 : chksum >> 1;
1998 chksum += *b++;
2001 return chksum;
2008 unsigned short chksum = 0;
2019 chksum = get_checksum(write_buffer->data, bytes,
2020 chksum);
2023 chksum = get_checksum(read_from_disk(start, bytes),
2024 bytes, chksum);
2029 return chksum;